-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
1 parent
1622ec2
commit 91e4c73
Showing
3 changed files
with
77 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
import Link from "@docusaurus/Link"; | ||
import styles from "./styles.module.css"; | ||
|
||
interface AuthBoxProps { | ||
isMetamaskInstalled: boolean; | ||
} | ||
|
||
const MetamaskInstallMessage = () => ( | ||
<div className={styles.msgWrapper}> | ||
<strong className={styles.msgHeading}>Install MetaMask</strong> | ||
<p className={styles.msgText}>Install MetaMask for your browser to enable interactive features</p> | ||
<Link className={styles.primaryBtn} href="https://metamask.io/download/">Install MetaMask</Link> | ||
</div> | ||
); | ||
|
||
export const AuthBox = ({ isMetamaskInstalled }: AuthBoxProps) => { | ||
return ( | ||
<> | ||
{isMetamaskInstalled ? <MetamaskInstallMessage /> : null} | ||
</> | ||
); | ||
}; |
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,42 @@ | ||
.msgWrapper { | ||
text-align: center; | ||
padding: 16px; | ||
border-radius: 8px; | ||
border: 1px solid #848C96; | ||
margin-bottom: 16px; | ||
} | ||
|
||
.msgHeading { | ||
display: block; | ||
font-size: 16px; | ||
line-height: 1.2; | ||
margin: 0 0 10px; | ||
} | ||
|
||
.msgText { | ||
font-size: 14px; | ||
line-height: 22px; | ||
} | ||
|
||
.primaryBtn { | ||
background: #1098FC; | ||
color: #141618; | ||
font-size: 14px; | ||
line-height: 1; | ||
font-weight: 500; | ||
display: inline-flex; | ||
align-items: center; | ||
border-radius: 999px; | ||
padding: 12px 16px; | ||
margin-bottom: 1px; | ||
cursor: pointer; | ||
transition-property: 'color', 'background-color'; | ||
transition-duration: .4s; | ||
transition-timing-function: ease; | ||
} | ||
|
||
.primaryBtn:hover { | ||
text-decoration: none; | ||
color: #fff; | ||
background-color: #036AB5; | ||
} |
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