Skip to content

Commit

Permalink
chore: update quickstart links (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
chakra-guy authored Dec 18, 2024
1 parent e8e36d3 commit 0de0cfc
Show file tree
Hide file tree
Showing 2 changed files with 5,863 additions and 1,480 deletions.
46 changes: 25 additions & 21 deletions examples/quickstart/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default function Home() {
<div className="flex flex-col gap-10">
{/* Docs Card */}
<a
href="#"
href="https://docs.metamask.io/sdk/"
target="_blank"
className="relative bg-indigo-500 rounded-tr-sm rounded-bl-sm rounded-tl-xl rounded-br-xl bg-opacity-40 max-w-md text-white border-none transition-colors h-full"
>
<div className="bg-indigo-500 bg-opacity-20 h-[107%] w-[104%] rounded-xl -z-20 absolute right-0 bottom-0"></div>
Expand All @@ -35,7 +36,8 @@ export default function Home() {

{/* Get ETH Card */}
<a
href="#"
href="https://docs.metamask.io/developer-tools/faucet/"
target="_blank"
className="bg-teal-300 bg-opacity-60 rounded-tr-sm rounded-bl-sm rounded-tl-xl rounded-br-xl relative max-w-md h-full text-white border-none transition-colors"
>
<div className="bg-teal-300 bg-opacity-20 h-[107%] w-[104%] rounded-xl -z-20 absolute right-0 bottom-0"></div>
Expand All @@ -54,7 +56,7 @@ export default function Home() {
</a>
</div>

<Card className="relative bg-pink-500 bg-opacity-35 rounded-tr-sm rounded-bl-sm text-white border-none h-full w-full max-w-xl">
<Card className="relative bg-pink-500 bg-opacity-35 rounded-tr-sm rounded-bl-sm text-white border-none h-full w-full max-w-xl self-start h-[360px]">
<div className="bg-pink-500 bg-opacity-20 h-[104%] w-[103%] md:h-[103%] md:w-[102%] rounded-xl -z-20 absolute right-0 bottom-0"></div>
<div className="bg-pink-500 bg-opacity-20 h-[104%] w-[103%] md:h-[103%] md:w-[102%] rounded-xl -z-20 absolute top-0 left-0"></div>
<CardHeader>
Expand All @@ -67,16 +69,17 @@ export default function Home() {
<h3 className="text-lg font-semibold">Guides</h3>
<div className="space-y-2">
{[
"Manage Networks",
"Handle Transactions",
"Interact with Smart Contracts",
{url: "https://docs.metamask.io/sdk/guides/network-management/", text: "Manage Networks"},
{url: "https://docs.metamask.io/sdk/guides/transaction-handling/", text: "Handle Transactions"},
{url: "https://docs.metamask.io/sdk/guides/interact-with-contracts/", text: "Interact with Smart Contracts"},
].map((item) => (
<a
href="#"
key={item}
href={item.url}
key={item.text}
target="_blank"
className="flex items-center gap-2 w-fit text-white text-opacity-80 cursor-pointer transition-colors"
>
<span className="hover:mr-1 duration-300">{item}</span>
<span className="hover:mr-1 duration-300">{item.text}</span>
<ArrowRight className="h-5 w-5" />
</a>
))}
Expand All @@ -85,18 +88,19 @@ export default function Home() {
<div className="space-y-1">
<h3 className="text-lg font-semibold">Examples</h3>
<div className="space-y-1">
{["Web 3 AI Agent", "Mint NFT App", "Swap DeFi App"].map(
(item) => (
<a
href="#"
key={item}
className="flex items-center gap-2 w-fit text-white text-opacity-80 cursor-pointer transition-colors"
>
<span className="hover:mr-1 duration-300">{item}</span>
<ArrowRight className="h-5 w-5" />
</a>
)
)}
{[
{url: "https://github.com/MetaMask/metamask-sdk-examples/tree/main/examples/quickstart", text: "Next.js + Wagmi"},
].map((item) => (
<a
href={item.url}
key={item.text}
target="_blank"
className="flex items-center gap-2 w-fit text-white text-opacity-80 cursor-pointer transition-colors"
>
<span className="hover:mr-1 duration-300">{item.text}</span>
<ArrowRight className="h-5 w-5" />
</a>
))}
</div>
</div>
</CardContent>
Expand Down
Loading

0 comments on commit 0de0cfc

Please sign in to comment.