Skip to content

Commit bab15ec

Browse files
committed
Update home page
1 parent 2a82a0c commit bab15ec

File tree

3 files changed

+65
-47
lines changed

3 files changed

+65
-47
lines changed

src/components/CardSection.module.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
gap: 4rem;
4747
align-items: start;
4848
}
49+
50+
// When there's no title or description, use full width for cards
51+
&.cards-only {
52+
@include bp('desktop') {
53+
grid-template-columns: 1fr;
54+
}
55+
}
4956
}
5057

5158
.content-column {
@@ -61,6 +68,10 @@
6168
@include bp('tablet') {
6269
grid-template-columns: repeat(2, 1fr);
6370
}
71+
72+
@include bp('desktop') {
73+
grid-template-columns: repeat(3, 1fr);
74+
}
6475
}
6576

6677
.card-column {

src/components/CardSection.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ export default function CardSection({
3030
<div className="container">
3131
<div className={styles['grid-wrapper']}>
3232
<div className={styles['grid-col-center']}>
33-
<div
34-
className={styles['section-grid']}
33+
<div
34+
className={clsx(
35+
styles['section-grid'],
36+
!title && !description && styles['cards-only']
37+
)}
3538
style={
3639
colorPalette
3740
? ({
38-
'--color-palette': `var(--developer-${colorPalette})`,
39-
} as CSSProperties)
41+
'--color-palette': `var(--developer-${colorPalette})`,
42+
} as CSSProperties)
4043
: {}
4144
}
4245
>

src/pages/index.tsx

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,74 +14,78 @@ export default function Home(): JSX.Element {
1414
title={siteConfig.title}
1515
description="Build with the world's leading self-custodial crypto wallet."
1616
button={{
17-
label: 'Get Started',
18-
href: '/sdk',
17+
label: 'Playground',
18+
href: '/playground',
1919
icon: 'arrow-right',
2020
}}
2121
/>
22-
<SectionIntro description="What do you want to build with MetaMask? Whether you're integrating with the extension, embedding smart accounts, or scaling with powerful infrastructure—choose a path below to get started." />
22+
23+
<SectionIntro description="Get started with the following resources:" />
24+
2325
<CardSection
24-
title="Connect to MetaMask extension and mobile"
25-
description="Connect your dapp to the MetaMask browser extension and MetaMask mobile app. Ideal for users who want full control over their keys and transactions."
2626
colorPalette="purple"
2727
cards={[
2828
{
29-
title: 'MetaMask SDK',
30-
description:
31-
'Provide your users a fast, reliable, and seamless connection to MetaMask extension and mobile.',
32-
href: '/sdk',
33-
buttonIcon: "arrow-right",
29+
title: 'Features',
30+
description: 'Explore MetaMask features and capabilities for developers.',
31+
href: '/features/',
32+
buttonIcon: 'arrow-right',
33+
},
34+
{
35+
title: 'Tutorials',
36+
description: 'Step-by-step guides to help you build with MetaMask.',
37+
href: '/tutorials/',
38+
buttonIcon: 'arrow-right',
3439
},
3540
{
36-
title: 'Wallet API',
37-
description:
38-
"Directly integrate your dapp with the MetaMask extension, and interact with your users' accounts.",
39-
href: '/wallet',
40-
buttonIcon: "arrow-right",
41+
title: 'Quickstart',
42+
description: 'Get up and running quickly with our quickstart guides.',
43+
href: '/quick-start',
44+
buttonIcon: 'arrow-right',
4145
},
4246
]}
4347
/>
4448

49+
<SectionIntro description="What do you want to do with MetaMask?" />
50+
4551
<CardSection
46-
title="Add an embedded MetaMask wallet"
47-
description="Enable embedded wallets and smart accounts directly within your dapp. Ideal for seamless onboarding, custom permission controls, and mobile-first, or first-time user experiences."
4852
colorPalette="purple"
4953
cards={[
5054
{
51-
title: 'Delegation Toolkit',
52-
description:
53-
'Integrate MetaMask Smart Accounts into your dapp. Create embedded wallets that support delegated permissions, gas abstraction, and secure execution.',
55+
title: 'Connect to MetaMask',
56+
description: 'Connect your dapp to the MetaMask browser extension and mobile app. Ideal for users who want full control over their keys and transactions.',
57+
href: '/sdk',
58+
buttonIcon: 'arrow-right',
59+
},
60+
{
61+
title: 'Create embedded wallets',
62+
description: 'Onboard power users and first-time users in seconds via social logins, passkeys, or by integrating your own authentication providers.',
63+
href: '/sdk',
64+
buttonIcon: 'arrow-right',
65+
},
66+
{
67+
title: 'Create smart accounts',
68+
description: 'Integrate MetaMask Smart Accounts into your dapp. Create smart wallets that support delegated permissions, gas abstraction, and secure execution.',
5469
href: '/delegation-toolkit',
55-
buttonIcon: "arrow-right",
70+
buttonIcon: 'arrow-right',
5671
},
5772
{
58-
title: 'Embedded Wallets SDK',
59-
description:
60-
'Onboard power users and first-time users in seconds via social logins, passkeys, or by integrating your own authentication providers.',
61-
href: 'https://web3auth.io/docs/',
62-
buttonIcon: "external-arrow",
73+
title: 'Build and scale your dapp',
74+
description: 'Use high performance APIs provided by MetaMask and Infura to build and scale your dapp or Snap.',
75+
href: '/services',
76+
buttonIcon: 'arrow-right',
6377
},
64-
]}
65-
/>
66-
67-
<CardSection
68-
title="Extend MetaMask and scale your dapp"
69-
description="Extend MetaMask's capabilities and build scalable dapps with developer tools, hosted infrastructure, and customizable Snaps."
70-
colorPalette="purple"
71-
cards={[
7278
{
73-
title: 'Snaps',
74-
description:
75-
'Create a custom mini app that runs inside the MetaMask extension. Add support for custom networks, accounts types, and APIs.',
79+
title: 'Extend MetaMask\'s capabilities',
80+
description: 'Create a custom mini app that runs inside the MetaMask extension. Add support for custom networks, accounts types, and APIs.',
7681
href: '/snaps',
77-
buttonIcon: "arrow-right",
82+
buttonIcon: 'arrow-right',
7883
},
7984
{
80-
title: 'Services',
81-
description:
82-
'Use high performance APIs provided by MetaMask and Infura to build and scale your dapp or Snap.',
83-
href: '/services',
84-
buttonIcon: "arrow-right",
85+
title: 'Get testnet tokens',
86+
description: 'Access testnet tokens for development and testing purposes.',
87+
href: '/faucet',
88+
buttonIcon: 'arrow-right',
8589
},
8690
]}
8791
/>

0 commit comments

Comments
 (0)