-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from lidofinance/develop
Develop to main
- Loading branch information
Showing
11 changed files
with
148 additions
and
33 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
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
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,28 @@ | ||
import { CHAINS } from '@lido-sdk/constants'; | ||
import { useSDK } from '@lido-sdk/react'; | ||
import { Text, Link } from '@lidofinance/lido-ui'; | ||
import { SunsetMessageStyle } from './styles'; | ||
|
||
const URL_INFORMATION = 'https://docs.lido.fi/deployed-contracts/goerli/'; | ||
const URL_HOLESKY = | ||
'https://docs.lido.fi/deployed-contracts/holesky/#hole%C5%A1ky-testnet'; | ||
|
||
export const GoerliSunsetBanner = () => { | ||
const { chainId } = useSDK(); | ||
|
||
if (chainId !== CHAINS.Goerli) return null; | ||
|
||
return ( | ||
<SunsetMessageStyle> | ||
<Text weight={700} size="sm"> | ||
Görli Testnet is sunsetting, this process is scheduled till the end | ||
of Q4 2023. | ||
</Text> | ||
<Text weight={400} size="xxs"> | ||
Additional information can be found{' '} | ||
<Link href={URL_INFORMATION}>here</Link>, and you can locate the Testnet | ||
staking widget on <Link href={URL_HOLESKY}>Holesky</Link>. | ||
</Text> | ||
</SunsetMessageStyle> | ||
); | ||
}; |
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 @@ | ||
export * from './goerli-sunset-banner'; |
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,24 @@ | ||
import styled from 'styled-components'; | ||
import { WalletCardStyle } from 'shared/wallet/card/styles'; | ||
|
||
export const SunsetMessageStyle = styled(WalletCardStyle)` | ||
text-align: center; | ||
background: radial-gradient( | ||
90% 110% at 50% 100%, | ||
#5f2144 0%, | ||
rgb(247 38 138 / 0%) 100% | ||
), | ||
linear-gradient(0deg, #e54f64, #f89371); | ||
> * { | ||
color: var(--lido-color-accentContrast); | ||
} | ||
a { | ||
color: var(--lido-color-primary); | ||
} | ||
> p:not(:last-child) { | ||
margin-bottom: 6px; | ||
} | ||
`; |
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