Skip to content

Commit bf1448e

Browse files
committed
Add link to Embedded wallets (#2069)
* Add embedded wallets. Signed-off-by: bgravenorst <byron.gravenorst@consensys.net> * Stylesheet updates. Signed-off-by: bgravenorst <byron.gravenorst@consensys.net> * Apply feedback. Signed-off-by: bgravenorst <byron.gravenorst@consensys.net> --------- Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
1 parent 7a1c453 commit bf1448e

4 files changed

Lines changed: 52 additions & 2 deletions

File tree

docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,12 @@ const config = {
450450
},
451451
},
452452
},
453+
announcementBar: {
454+
id: 'support_us',
455+
content:
456+
'<span style="font-weight: 600">NEW!</span> Build embedded wallets with MetaMask using the <a target="_blank" rel="noopener noreferrer" href="https://web3auth.io/docs">Embedded Wallets SDK</a>. Instantly onboard users with social logins, passkeys, and more.',
457+
isCloseable: false,
458+
},
453459
}),
454460
}
455461

sdk/introduction/welcome.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ With the SDK, you can:
1616

1717
[Get started with JavaScript and Wagmi.](quickstart/javascript-wagmi.md)
1818

19+
:::tip Build embedded wallet experiences that work seamlessly with MetaMask
20+
Introducing our latest [Embedded Wallets SDK](https://web3auth.io/docs) (previously Web3Auth), you can now onboard users
21+
instantly and design seamless onchain experiences with social logins, passkeys and more.
22+
:::
23+
1924
## Why use the SDK?
2025

2126
The benefits of using MetaMask SDK include the following:

src/pages/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ export default function Home(): JSX.Element {
2929
href: '/wallet',
3030
theme: '',
3131
},
32-
{
32+
{
3333
title: 'Delegation Toolkit',
3434
description:
3535
'Integrate MetaMask smart accounts into your dapp. Create embedded wallets that support delegated permissions, gas abstraction, and secure execution.',
3636
href: '/gator',
37+
},
38+
{
39+
title: 'Embedded Wallets',
40+
description:
41+
'Use the Embedded Wallets SDK (Web3Auth) to onboard power users and first-time users in seconds via social logins, passkeys, or by integrating your own authentication providers.',
42+
href: 'https://web3auth.io/docs',
3743
theme: '',
3844
},
3945
{

src/scss/custom.scss

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,4 +766,37 @@ ol {
766766
.resources-dropdown-menu a {
767767
width: 100%; // Makes each box take full width of dropdown
768768
}
769-
}
769+
}
770+
771+
div[class^='announcementBar_'] {
772+
font-family: var(--font-mm-centra);
773+
font-size: 1.4rem;
774+
padding: 1rem 2rem;
775+
text-align: center;
776+
border-bottom: 1px solid var(--general-gray-light);
777+
background-color: var(--developer-purple-light);
778+
color: var(--color-text);
779+
780+
a {
781+
color: var(--ifm-link-color);
782+
text-decoration: underline;
783+
font-weight: 500;
784+
785+
&:hover {
786+
color: var(--ifm-link-hover-color);
787+
}
788+
}
789+
790+
[data-theme='dark'] & {
791+
background-color: var(--developer-purple-light);
792+
color: var(--general-black);
793+
794+
a {
795+
color: var(--general-black);
796+
797+
&:hover {
798+
color: var(--developer-purple);
799+
}
800+
}
801+
}
802+
}

0 commit comments

Comments
 (0)