Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/swap widget #260

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

jude98
Copy link
Contributor

@jude98 jude98 commented Feb 15, 2025

Closes 200

Completed

  • Added new page that can be used as swap widget
  • Accepts input and output token in query params
  • Updated UI for the widget feel

Example usage:

<iframe
        height="100%"
        src="https://mira.ly/widget/?assetIn=0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07&assetOut=0x286c479da40dc953bddc3bb4c453b608bba2e0ac483b077bd475174115395e6b"
        title="Mira swap"
        width="100%"
 />`
      

Copy link

vercel bot commented Feb 15, 2025

@jude98 is attempting to deploy a commit to the Mira-dex Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Feb 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mira-amm-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2025 9:33am

@amaljosea
Copy link
Contributor

amaljosea commented Feb 17, 2025

HTML for local testing

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Iframe Demo</title>
    <style>
    </style>
</head>
<body>
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <iframe 
        src="https://mira-amm-web-git-fork-jude98-feature-swap-widget-mira-dex.vercel.app/widget/?assetIn=0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07&assetOut=0x286c479da40dc953bddc3bb4c453b608bba2e0ac483b077bd475174115395e6b"
        height="400px"
        title="Mira swap"
        width="400px"
        >
    </iframe>
</body>
</html>

Screenshot 2025-02-17 at 10 20 54 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Iframe-embeddable swap widget
2 participants