-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
536 additions
and
397 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.text-tono-gradient { | ||
@apply text-transparent uppercase bg-clip-text bg-gradient-to-r from-[#F0B5B3] via-[#E47673] to-[#F0B5B3]; | ||
} |
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,38 +1,29 @@ | ||
import { SOCIAL_LINKS } from "@/constants/links"; | ||
import { Logo, Footer as FooterCore } from "@mochi-ui/core"; | ||
import { X, Discord, Telegram } from "@mochi-ui/icons"; | ||
import { Typography } from "@mochi-ui/core"; | ||
import { X, Discord } from "@mochi-ui/icons"; | ||
|
||
export const Footer = () => { | ||
return ( | ||
<FooterCore | ||
className="[&>*]:px-4 lg:[&>*]:px-8" | ||
copyrightText="Copyright © 2024 Tono, All rights reserved" | ||
logo={<Logo className="!h-8 !w-8" />} | ||
nav={[ | ||
{ | ||
title: "Developers", | ||
links: [ | ||
{ href: SOCIAL_LINKS.DOCUMENT, text: "Documentation" }, | ||
{ href: SOCIAL_LINKS.GITHUB, text: "GitHub" }, | ||
], | ||
}, | ||
{ | ||
title: "Resources", | ||
links: [{ href: SOCIAL_LINKS.CHANGELOG, text: "Changelog" }], | ||
}, | ||
{ | ||
title: "Company", | ||
links: [ | ||
{ href: SOCIAL_LINKS.DISCORD, text: "Contact" }, | ||
{ href: SOCIAL_LINKS.TWITTER, text: "Twitter" }, | ||
], | ||
}, | ||
]} | ||
social={[ | ||
{ href: SOCIAL_LINKS.TWITTER, Icon: X, title: "X" }, | ||
{ href: SOCIAL_LINKS.DISCORD, Icon: Discord, title: "Discord" }, | ||
{ href: SOCIAL_LINKS.TELEGRAM, Icon: Telegram, title: "Telegram" }, | ||
]} | ||
/> | ||
<div className="px-4 py-6 border-t border-divider"> | ||
<div className="flex items-center justify-between w-full max-w-6xl mx-auto"> | ||
<Typography level="p6" className="text-text-tertiary"> | ||
Copyright © 2024 Tono, All rights reserved. | ||
</Typography> | ||
<div className="flex items-center space-x-4"> | ||
<Typography level="p6" className="text-text-tertiary"> | ||
Docs | ||
</Typography> | ||
<Typography level="p6" className="text-text-tertiary"> | ||
GitHub | ||
</Typography> | ||
<Typography level="p6" className="text-text-tertiary"> | ||
Support | ||
</Typography> | ||
<div className="flex items-center space-x-2"> | ||
<Discord className="w-4 h-4 text-text-tertiary" /> | ||
<X className="w-4 h-4 text-text-tertiary" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
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,19 +1,24 @@ | ||
import { Button, Typography } from "@mochi-ui/core"; | ||
import { Logo } from "../logo"; | ||
import { DocumentStarSolid, SwapCircleSolid } from "@mochi-ui/icons"; | ||
import { useLoginWidget } from "@mochi-web3/login-widget"; | ||
|
||
export const LeftSlot = () => { | ||
const { isLoggedIn } = useLoginWidget(); | ||
|
||
return ( | ||
<div className="flex items-center"> | ||
<Logo /> | ||
<Button variant="link" color="neutral" className="ml-7"> | ||
<SwapCircleSolid className="w-4 h-4 text-text-icon-secondary" /> | ||
<Typography level="p8">Swap</Typography> | ||
</Button> | ||
<Button variant="link" color="neutral"> | ||
<DocumentStarSolid className="w-4 h-4 text-text-icon-secondary" /> | ||
<Typography level="p8">Take a look around</Typography> | ||
</Button> | ||
{isLoggedIn && ( | ||
<Button variant="link" color="neutral"> | ||
<DocumentStarSolid className="w-4 h-4 text-text-icon-secondary" /> | ||
<Typography level="p8">Take a look around</Typography> | ||
</Button> | ||
)} | ||
</div> | ||
); | ||
}; |
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,30 @@ | ||
import { Button } from "@mochi-ui/core"; | ||
import { ChevronDownLine } from "@mochi-ui/icons"; | ||
import { TokenImage } from "../token-image"; | ||
import { useWalletNetwork } from "@/hooks/useWalletNetwork"; | ||
|
||
export const NetworkButton = () => { | ||
const { isConnected, isCorrectNetwork, changeNetwork } = useWalletNetwork({ | ||
chain: { | ||
id: 84532, | ||
name: "Base", | ||
rpc: "https://sepolia.base.org", | ||
currency: "ETH", | ||
}, | ||
}); | ||
|
||
if (!isConnected) return null; | ||
|
||
return isCorrectNetwork ? ( | ||
<Button variant="link" color="neutral" size="sm"> | ||
<TokenImage symbol="base" size={22} /> | ||
Base | ||
<ChevronDownLine className="w-4 h-4 text-text-icon-secondary" /> | ||
</Button> | ||
) : ( | ||
<Button variant="link" color="neutral" size="sm" onClick={changeNetwork}> | ||
Switch to Base | ||
<ChevronDownLine className="w-4 h-4 text-text-icon-secondary" /> | ||
</Button> | ||
); | ||
}; |
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
Oops, something went wrong.