Skip to content

Commit

Permalink
fix: l2 banner visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
manneredboor committed Mar 11, 2024
1 parent 9ae14fe commit 10c2c7f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions assets/icons/l2-swap-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
10 changes: 5 additions & 5 deletions shared/banners/l2-banner/styles.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled, { css } from 'styled-components';
import { Button, Link } from '@lidofinance/lido-ui';
import Icons from 'assets/icons/l2-swap.svg';
import IconsLight from 'assets/icons/l2-swap-light.svg';
import IconsDark from 'assets/icons/l2-swap-dark.svg';
import { LocalLink } from 'shared/components/local-link';

export const Wrapper = styled.div`
Expand Down Expand Up @@ -45,13 +46,12 @@ export const Wrapper = styled.div`
}
`;

export const L2Icons = styled.img.attrs({
src: Icons,
alt: '',
})`
export const L2Icons = styled.div`
display: block;
width: 188px;
height: 32px;
background-image: url(${({ theme }) =>
theme.name === 'dark' ? IconsDark : IconsLight});
`;

export const FooterWrap = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion shared/banners/l2-banners/l2-after-stake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const L2AfterStake: React.FC = () => {
text={
<>
Learn about <b>Lido on L2 opportunities</b> and enjoy various
opportunities in DeFi.
opportunities in DeFi
</>
}
buttonText="Learn more"
Expand Down
2 changes: 1 addition & 1 deletion shared/banners/l2-banners/l2-after-wrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const L2AfterWrap = () => {
text={
<>
Learn about <b>DeFi opportunities</b> using wstETH across multiple L2
networks.
networks
</>
}
buttonText="Learn more"
Expand Down
2 changes: 1 addition & 1 deletion shared/banners/l2-banners/l2-wsteth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const L2Wsteth = ({ matomoEventLink }: L2WstethProps) => {
text={
<>
Enjoy <b>lower gas</b> fees and <b>DeFi opportunities</b> using wstETH
across multiple L2 networks.
across multiple L2 networks
</>
}
/>
Expand Down

0 comments on commit 10c2c7f

Please sign in to comment.