-
Notifications
You must be signed in to change notification settings - Fork 13
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 #131 from lidofinance/develop
Develop to main
- Loading branch information
Showing
16 changed files
with
156 additions
and
41 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import styled from 'styled-components'; | ||
import { DataTable } from '@lidofinance/lido-ui'; | ||
|
||
export const StatsDataTable = styled(DataTable)` | ||
margin-top: ${({ theme }) => theme.spaceMap.xl}px; | ||
`; | ||
import { Block } from '@lidofinance/lido-ui'; | ||
|
||
export const InputWrap = styled.div` | ||
margin-bottom: ${({ theme }) => theme.spaceMap.md}px; | ||
`; | ||
|
||
export const WrapBlock = styled(Block)` | ||
gap: ${({ theme }) => theme.spaceMap.md}px; | ||
display: flex; | ||
flex-direction: column; | ||
`; |
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 @@ | ||
export * from './l2-oneinch'; |
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
File renamed without changes.
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 { L2Wsteth } from './l2-wsteth'; |
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,32 @@ | ||
import { | ||
Banner, | ||
L2Icons, | ||
LinkButton, | ||
TextContent, | ||
OverlayLink, | ||
} from './styles'; | ||
import { L2_DISCOVERY_LINK } from '../l2-banner'; | ||
import { MATOMO_CLICK_EVENTS } from 'config'; | ||
import { trackEvent } from '@lidofinance/analytics-matomo'; | ||
|
||
const linkClickHandler = () => trackEvent(...MATOMO_CLICK_EVENTS.l2BannerWrap); | ||
|
||
export const L2Wsteth = () => { | ||
return ( | ||
<Banner> | ||
<L2Icons /> | ||
<TextContent> | ||
Enjoy <b>lower gas</b> fees and <b>DeFi opportunities</b> using wstETH | ||
across Arbitrum, Optimism and Base. | ||
</TextContent> | ||
<OverlayLink | ||
href={L2_DISCOVERY_LINK} | ||
onClick={linkClickHandler} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<LinkButton>Learn More</LinkButton> | ||
</OverlayLink> | ||
</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,63 @@ | ||
import styled from 'styled-components'; | ||
import { Button } from '@lidofinance/lido-ui'; | ||
import Icons from 'assets/icons/l2-wsteth.svg'; | ||
|
||
export const Banner = styled.div` | ||
height: 112px; | ||
position: relative; | ||
display: flex; | ||
text-align: left; | ||
align-items: center; | ||
padding: ${({ theme }) => theme.spaceMap.lg}px; | ||
border-radius: ${({ theme }) => theme.borderRadiusesMap.lg}px; | ||
gap: 20px; | ||
overflow: hidden; | ||
background-color: #07080c; | ||
background: radial-gradient( | ||
93.45% 103.1% at 6.55% 17.29%, | ||
#3c64b6 0%, | ||
#2e1d7b 55.75%, | ||
#142698 100% | ||
); | ||
box-sizing: border-box; | ||
${({ theme }) => theme.mediaQueries.md} { | ||
cursor: pointer; | ||
} | ||
`; | ||
|
||
export const L2Icons = styled.img.attrs({ | ||
src: Icons, | ||
alt: '', | ||
})` | ||
position: relative; | ||
display: block; | ||
width: 28px; | ||
height: 72px; | ||
`; | ||
|
||
export const LinkButton = styled(Button)` | ||
padding: 7px 16px; | ||
font-size: 12px; | ||
line-height: 20px; | ||
${({ theme }) => theme.mediaQueries.md} { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const OverlayLink = styled.a` | ||
display: block; | ||
${({ theme }) => theme.mediaQueries.md} { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
} | ||
`; | ||
|
||
export const TextContent = styled.p` | ||
color: var(--lido-color-primaryContrast); | ||
`; |
This file was deleted.
Oops, something went wrong.