forked from Uniswap/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stable version with updated balances, add liquidity using SDK, pair m…
…enu search
- Loading branch information
Showing
45 changed files
with
3,284 additions
and
2,648 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
import React from 'react' | ||
import { Button as RebassButton } from 'rebass/styled-components' | ||
import styled from 'styled-components' | ||
import { darken } from 'polished' | ||
|
||
import { RowBetween } from '../Row' | ||
import { ChevronDown } from 'react-feather' | ||
|
||
const Base = styled(RebassButton)` | ||
padding: ${({ padding }) => (padding ? padding : '16px')}; | ||
width: ${({ width }) => (width ? width : '100%')}; | ||
font-size: 1rem; | ||
font-weight: 500; | ||
text-align: center; | ||
border-radius: 20px; | ||
outline: none; | ||
border: 1px solid transparent; | ||
color: white; | ||
cursor: pointer; | ||
&:disabled { | ||
cursor: auto; | ||
} | ||
` | ||
|
||
export const ButtonPrimary = styled(Base)` | ||
background-color: ${({ theme }) => theme.royalBlue}; | ||
color: white; | ||
&:focus { | ||
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.royalBlue)}; | ||
background-color: ${({ theme }) => darken(0.05, theme.royalBlue)}; | ||
} | ||
&:hover { | ||
background-color: ${({ theme }) => darken(0.05, theme.royalBlue)}; | ||
} | ||
&:active { | ||
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.royalBlue)}; | ||
background-color: ${({ theme }) => darken(0.1, theme.royalBlue)}; | ||
} | ||
&:disabled { | ||
background-color: ${({ theme }) => theme.royalBlue}; | ||
opacity: 50%; | ||
cursor: auto; | ||
} | ||
` | ||
|
||
export const ButtonSecondary = styled(Base)` | ||
background-color: #ebf4ff; | ||
color: #2172e5; | ||
border-radius: 8px; | ||
padding: 10px; | ||
&:focus { | ||
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, '#ebf4ff')}; | ||
background-color: ${({ theme }) => darken(0.05, '#ebf4ff')}; | ||
} | ||
&:hover { | ||
background-color: ${({ theme }) => darken(0.05, '#ebf4ff')}; | ||
} | ||
&:active { | ||
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, '#ebf4ff')}; | ||
background-color: ${({ theme }) => darken(0.1, '#ebf4ff')}; | ||
} | ||
&:disabled { | ||
background-color: ${({ theme }) => '#ebf4ff'}; | ||
opacity: 50%; | ||
cursor: auto; | ||
} | ||
` | ||
|
||
export const ButtonEmpty = styled(Base)` | ||
border: 1px solid #edeef2; | ||
background-color: transparent; | ||
color: black; | ||
&:focus { | ||
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, '#edeef2')}; | ||
} | ||
&:hover { | ||
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, '#edeef2')}; | ||
} | ||
&:active { | ||
box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, '#edeef2')}; | ||
} | ||
&:disabled { | ||
opacity: 50%; | ||
cursor: auto; | ||
} | ||
` | ||
|
||
export function ButtonDropwdown({ disabled, children, ...rest }) { | ||
return ( | ||
<ButtonPrimary {...rest}> | ||
<RowBetween> | ||
<div style={{ display: 'flex', alignItems: 'center' }}>{children}</div> | ||
<ChevronDown size={24} /> | ||
</RowBetween> | ||
</ButtonPrimary> | ||
) | ||
} |
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,16 @@ | ||
import styled from 'styled-components' | ||
import { Box } from 'rebass/styled-components' | ||
|
||
const Card = styled(Box)` | ||
width: 100%; | ||
border-radius: 20px; | ||
padding: 1rem; | ||
padding: ${({ padding }) => padding}; | ||
border: ${({ border }) => border}; | ||
` | ||
|
||
export default Card | ||
|
||
export const LightCard = styled(Card)` | ||
border: 1px solid ${({ theme }) => theme.outlineGrey}; | ||
` |
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,20 @@ | ||
import styled from 'styled-components' | ||
|
||
const Column = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
` | ||
export const ColumnCenter = styled(Column)` | ||
width: 100%; | ||
align-items: center; | ||
` | ||
|
||
export const AutoColumn = styled.div` | ||
display: grid; | ||
grid-auto-rows: auto; | ||
grid-row-gap: ${({ gap }) => gap}; | ||
justify-items: ${({ justify }) => justify && justify}; | ||
` | ||
|
||
export default Column |
Oops, something went wrong.