-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/footer' into develop
- Loading branch information
Showing
20 changed files
with
232 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "MyTonSwap", | ||
"short_name": "MyTonSwap", | ||
"icons": [ | ||
{ | ||
"src": "/web-app-manifest-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png", | ||
"purpose": "maskable" | ||
}, | ||
{ | ||
"src": "/web-app-manifest-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png", | ||
"purpose": "maskable" | ||
} | ||
], | ||
"theme_color": "#00220d", | ||
"background_color": "#000000", | ||
"display": "standalone" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import Logo from "@/assets/logo.png"; | ||
import { footer_links } from "@/constants/links"; | ||
import { socials } from "@/constants/socials"; | ||
|
||
const Footer = () => { | ||
return ( | ||
<div className="max-w-screen-lg dark:text-white mx-auto pb-8"> | ||
<div className="grid grid-cols-1 mx-4 md:grid-cols-footer"> | ||
<div> | ||
<div className="flex flex-col gap-y-4"> | ||
<span className="flex items-center font-bold"> | ||
<img | ||
src={Logo} | ||
alt="MyTonSwap Logo" | ||
className="w-6" | ||
/>{" "} | ||
MyTonSwap | ||
</span> | ||
<p className="max-w-[230px]"> | ||
Swap Toncoin for any token instantly at the best | ||
rate. | ||
</p> | ||
<a | ||
className="mt-2" | ||
href="https://ton.app/dex/mytonswap?id=2657" | ||
> | ||
<img | ||
src="https://ton.app/a2/badge/topapp?appId=2657" | ||
alt="MyTonSwap — #0 Dex in Ton App" | ||
loading="lazy" | ||
className="w-24" | ||
/> | ||
</a> | ||
<div className="flex items-center gap-x-4 text-xl mt-8"> | ||
{socials.map(({ icon, link, name }) => ( | ||
<a | ||
key={name} | ||
href={link} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="flex items-center transition-all dark:text-white/50 text-black/50 dark:hover:text-green-600 hover:text-green-500" | ||
> | ||
{icon} | ||
</a> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
{footer_links.map(({ category_name, links }) => { | ||
return ( | ||
<div> | ||
<h1 className="font-semibold">{category_name}</h1> | ||
<div className="flex flex-col opacity-50 gap-y-2 mt-2"> | ||
{links.map((item) => ( | ||
<a href={item.link} className="text-sm"> | ||
{item.name} | ||
</a> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
<hr className="my-8 opacity-30" /> | ||
<div> | ||
<p className="text-justify text-sm opacity-70"> | ||
Disclaimer: Nothing on this site is investment advice. All | ||
information is for informational purposes only. You should | ||
not construe any such information or other material as | ||
legal, tax, investment, financial, or other advice. Nothing | ||
contained on our site constitutes a solicitation, | ||
recommendation, endorsement, or offer by MyTonSwap or any | ||
third party service provider to buy or sell any assets, | ||
digital coins and tokens, securities or other financial | ||
instruments in this or in any other jurisdiction in which | ||
such solicitation or offer would be unlawful under the | ||
securities laws of such jurisdiction. | ||
</p> | ||
</div> | ||
<hr className="my-8 opacity-30" /> | ||
<div className="text-sm opacity-70 grid grid-cols-2"> | ||
<div> | ||
<p>Based on TON</p> | ||
</div> | ||
<div className="text-right"> | ||
MyTonSwap © {new Date().getFullYear()} | ||
</div> | ||
<div></div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
export const footer_links = [ | ||
{ | ||
category_name: "MyTonSwap", | ||
links: [ | ||
{ | ||
name: "Blog", | ||
link: "https://mytonswap.com/blog", | ||
}, | ||
{ | ||
name: "User Documentation", | ||
link: "https://docs.mytonswap.com/", | ||
}, | ||
{ | ||
name: "Trading Bot", | ||
link: "https://t.me/MyTonSwap_Trading_bot", | ||
}, | ||
], | ||
}, | ||
{ | ||
category_name: "Developers", | ||
links: [ | ||
{ | ||
name: "Documentation", | ||
link: "https://mytonswap.com/docs", | ||
}, | ||
{ | ||
name: "Github", | ||
link: "https://github.com/mytonswap", | ||
}, | ||
{ | ||
name: "Swap Widget", | ||
link: "https://mytonswap.com/docs", | ||
}, | ||
{ | ||
name: "Swap SDK", | ||
link: "https://mytonswap.com/docs", | ||
}, | ||
], | ||
}, | ||
{ | ||
category_name: "Support", | ||
links: [ | ||
{ | ||
name: "Contact Us", | ||
link: "https://t.me/Mytonswap_SupportAcc", | ||
}, | ||
{ | ||
name: "Community Chat", | ||
link: "https://t.me/MyTonSwap_Chat", | ||
}, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { BsGithub, BsRobot, BsTelegram, BsTwitterX } from "react-icons/bs"; | ||
export const socials = [ | ||
{ | ||
name: "Telegram", | ||
link: "https://t.me/mytonswap", | ||
icon: <BsTelegram />, | ||
}, | ||
{ | ||
name: "Twitter", | ||
link: "https://x.com/mytonswap", | ||
icon: <BsTwitterX />, | ||
}, | ||
{ | ||
name: "Github", | ||
link: "https://github.com/mytonswap", | ||
icon: <BsGithub />, | ||
}, | ||
{ | ||
name: "Trading Bot", | ||
link: "https://github.com/mytonswap", | ||
icon: <BsRobot />, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react-swc' | ||
import { defineConfig } from "vite"; | ||
import react from "@vitejs/plugin-react-swc"; | ||
import path from "path"; | ||
|
||
// https://vite.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
}) | ||
plugins: [react()], | ||
resolve: { | ||
alias: { | ||
"@": path.resolve(__dirname, "./src"), | ||
}, | ||
}, | ||
}); |