Skip to content

Commit

Permalink
Basin UI - Hover behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Aug 23, 2023
1 parent fb322e9 commit a28aa1a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 6 additions & 0 deletions projects/dex-ui/src/components/Frame/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ const Box = styled.a`
text-decoration: none;
color: black;
gap: 16px;
:hover {
background-color: #f0fdf4;
}
:first-child {
border-left: none;
}
Expand All @@ -60,6 +63,9 @@ const SmallBox = styled.a`
width: 64px;
border-left: 1px solid black;
justify-content: center;
:hover {
background-color: #f0fdf4;
}
`;

const StyledLink = styled.span`
Expand Down
16 changes: 13 additions & 3 deletions projects/dex-ui/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from "react";
import { size } from "src/breakpoints";
import { Link } from "react-router-dom";
import { RightArrow, RightArrowCircle } from "src/components/Icons";
import { RightArrowCircle } from "src/components/Icons";
import styled from "styled-components";

export const Home = () => {
Expand All @@ -24,8 +24,7 @@ export const Home = () => {
<SubTitle>
Customizable liquidity pools with shared components. &nbsp;
<WhitepaperLink href={"/basin.pdf"} target="_blank">
Read the whitepaper
<RightArrow color="#46B955" />
Read the whitepaper →
</WhitepaperLink>
</SubTitle>
</TitleSubtitleContainer>
Expand Down Expand Up @@ -144,6 +143,9 @@ const OracleWP = styled.a`
text-decoration: none;
display: flex;
align-items: center;
:hover {
text-decoration: underline;
}
`;

const WhitepaperLink = styled.a`
Expand All @@ -156,6 +158,10 @@ const WhitepaperLink = styled.a`
display: flex;
align-items: center;
:hover {
text-decoration: underline;
}
@media (min-width: ${size.mobile}) {
font-size: 20px;
line-height: 24px;
Expand Down Expand Up @@ -198,6 +204,10 @@ const Box = styled(Link)`
text-decoration: none;
color: black;
:hover {
background-color: #f0fdf4;
}
@media (min-width: ${size.mobile}) {
padding: 0px;
font-size: 24px;
Expand Down

0 comments on commit a28aa1a

Please sign in to comment.