-
-
Notifications
You must be signed in to change notification settings - Fork 968
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Faucet maintenance mode (#1475)
- Loading branch information
Vlad Lobachov
authored
Aug 2, 2024
1 parent
597b1ec
commit 7fe56b5
Showing
7 changed files
with
131 additions
and
7 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
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
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,30 @@ | ||
import MaintenanceIco from "./maintenance.svg"; | ||
import Text from "@site/src/components/Text"; | ||
import Button from "@site/src/components/Button"; | ||
|
||
import styles from "./maintenance.module.scss"; | ||
import React from "react"; | ||
|
||
const Maintenance = ({ network }: { network: "linea" | "sepolia" }) => { | ||
const SEPOLIA_URL = "https://faucetlink.to/sepolia"; | ||
const LINEA_URL = | ||
"https://docs.linea.build/build-on-linea/use-linea-testnet/fund"; | ||
|
||
return ( | ||
<div className={styles.maintenance}> | ||
<div className={styles.modal}> | ||
<MaintenanceIco /> | ||
<Text as="h3">Our faucet is at full capacity due to high demand</Text> | ||
<Text as="p"> | ||
We’re thrilled by the enthusiasm and are working hard to scale up. Try | ||
checking back later. Thanks for your patience. Need ETH urgently? | ||
</Text> | ||
<Button className={styles.button} href={network === "sepolia" ? SEPOLIA_URL : LINEA_URL}> | ||
Explore Alternative Faucets | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Maintenance; |
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
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 @@ | ||
:root[data-theme="dark"] { | ||
--maintenance-modal-shadow: rgba(0, 0, 0, 0.4); | ||
--maintenance-modal-background: #24272a; | ||
} | ||
|
||
:root[data-theme="light"] { | ||
--maintenance-modal-shadow: rgba(44, 59, 88, 0.1); | ||
--maintenance-modal-background: #fff; | ||
} | ||
|
||
.maintenance { | ||
background: rgba(0, 0, 0, 0.4); | ||
position: absolute; | ||
top: -55px; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
padding: 25px 0; | ||
|
||
.modal { | ||
position: sticky; | ||
top: 80px; | ||
width: 100%; | ||
max-width: 480px; | ||
margin: 0 auto; | ||
padding: 16px; | ||
text-align: center; | ||
border-radius: 8px; | ||
background: var(--maintenance-modal-background); | ||
box-shadow: | ||
0px 0px 16px 0px var(--maintenance-modal-shadow), | ||
0px 32px 32px 0px var(--maintenance-modal-shadow), | ||
0px 16px 16px 0px var(--maintenance-modal-shadow), | ||
0px 8px 8px 0px var(--maintenance-modal-shadow), | ||
0px 4px 4px 0px var(--maintenance-modal-shadow), | ||
0px 2px 2px 0px var(--maintenance-modal-shadow); | ||
|
||
.button { | ||
padding: 0 36px; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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