Skip to content

Commit 1d79123

Browse files
authored
Add link to Embedded wallets (#2069)
* Add embedded wallets. Signed-off-by: bgravenorst <[email protected]> * Stylesheet updates. Signed-off-by: bgravenorst <[email protected]> * Apply feedback. Signed-off-by: bgravenorst <[email protected]> --------- Signed-off-by: bgravenorst <[email protected]>
1 parent 6816a5f commit 1d79123

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

docusaurus.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ const config = {
412412
},
413413
},
414414
},
415+
announcementBar: {
416+
id: 'support_us',
417+
content:
418+
'<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.',
419+
isCloseable: false,
420+
},
415421
}),
416422
}
417423

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ export default function Home(): JSX.Element {
2828
"Use the Wallet API to integrate your dapp with MetaMask. Connect to the MetaMask browser extension and interact with your users' accounts.",
2929
href: '/wallet',
3030
theme: '',
31+
},
32+
{
33+
title: 'Embedded Wallets',
34+
description:
35+
'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.',
36+
href: 'https://web3auth.io/docs',
37+
theme: '',
3138
},
3239
{
3340
title: 'Snaps',

src/scss/custom.scss

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

0 commit comments

Comments
 (0)