Skip to content

Test v2 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
"@walletconnect/web3-provider": "1.1.1-alpha.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts --openssl-legacy-provider build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
Expand All @@ -106,4 +106,4 @@
]
},
"license": "GPL-3.0-or-later"
}
}
Binary file modified public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/192x192_App_Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/512x512_App_Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/fonts/SF-Pro-Rounded-Bold.woff2
Binary file not shown.
Binary file added src/assets/fonts/SF-Pro-Rounded-Medium.woff2
Binary file not shown.
Binary file added src/assets/fonts/SF-Pro-Rounded-Regular.woff2
Binary file not shown.
Binary file added src/assets/fonts/SF-Pro-Rounded-Semibold.woff2
Binary file not shown.
46 changes: 46 additions & 0 deletions src/assets/svg/swap_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 10 additions & 28 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,26 @@ import { Text } from 'rebass'

import styled from 'styled-components'

import Logo from '../../assets/svg/logo.svg'
import Logo from '../../assets/svg/swap_logo.svg'
import LogoDark from '../../assets/svg/logo_white.svg'
import Wordmark from '../../assets/svg/wordmark.svg'
import WordmarkDark from '../../assets/svg/wordmark_white.svg'
import { useActiveWeb3React } from '../../hooks'
import { useDarkModeManager } from '../../state/user/hooks'
import { useETHBalances } from '../../state/wallet/hooks'

import { YellowCard } from '../Card'
import Settings from '../Settings'
import Menu from '../Menu'
/* import Settings from '../Settings' */
/* import Menu from '../Menu' */

import Row, { RowBetween } from '../Row'
import { RowBetween } from '../Row'
import Web3Status from '../Web3Status'
import VersionSwitch from './VersionSwitch'

const HeaderFrame = styled.div`
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: column;
width: 100%;
top: 0;
position: absolute;
margin-bottom: 50px;
z-index: 2;
${({ theme }) => theme.mediaWidth.upToExtraSmall`
padding: 12px 0 0 0;
Expand Down Expand Up @@ -61,14 +57,6 @@ const Title = styled.a`
}
`

const TitleText = styled(Row)`
width: fit-content;
white-space: nowrap;
${({ theme }) => theme.mediaWidth.upToExtraSmall`
display: none;
`};
`

const AccountElement = styled.div<{ active: boolean }>`
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -99,12 +87,10 @@ const NetworkCard = styled(YellowCard)`

const UniIcon = styled.div`
transition: transform 0.3s ease;
:hover {
transform: rotate(-5deg);
}
${({ theme }) => theme.mediaWidth.upToSmall`
img {
width: 4.5rem;
width: 6.25rem;
height: auto;
}
`};
`
Expand Down Expand Up @@ -148,9 +134,6 @@ export default function Header() {
<UniIcon>
<img src={isDark ? LogoDark : Logo} alt="logo" />
</UniIcon>
<TitleText>
<img style={{ marginLeft: '4px', marginTop: '4px' }} src={isDark ? WordmarkDark : Wordmark} alt="logo" />
</TitleText>
</Title>
</HeaderElement>
<HeaderControls>
Expand All @@ -168,9 +151,8 @@ export default function Header() {
</AccountElement>
</HeaderElement>
<HeaderElementWrap>
<VersionSwitch />
<Settings />
<Menu />
{/* <Settings /> */}
{/* <Menu /> */}
</HeaderElementWrap>
</HeaderControls>
</RowBetween>
Expand Down
2 changes: 1 addition & 1 deletion src/components/swap/AdvancedSwapDetailsDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AdvancedDetailsFooter = styled.div<{ show: boolean }>`
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
color: ${({ theme }) => theme.text2};
background-color: ${({ theme }) => theme.advancedBG};
background-color: ${({ theme }) => theme.bg2};
z-index: -1;

transform: ${({ show }) => (show ? 'translateY(0%)' : 'translateY(-100%)')};
Expand Down
24 changes: 24 additions & 0 deletions src/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@font-face {
font-family: 'SF Pro Rounded';
src: url('./assets/fonts/SF-Pro-Rounded-Bold.woff2') format('woff2');
font-weight: 700;
}
@font-face {
font-family: 'SF Pro Rounded';
src: url('./assets/fonts/SF-Pro-Rounded-Semibold.woff2') format('woff2');
font-weight: 600;
}
@font-face {
font-family: 'SF Pro Rounded';
src: url('./assets/fonts/SF-Pro-Rounded-Medium.woff2') format('woff2');
font-weight: 500;
}
@font-face {
font-family: 'SF Pro Rounded';
src: url('./assets/fonts/SF-Pro-Rounded-Regular.woff2') format('woff2');
font-weight: normal;
}

* {
font-family: 'SF Pro Rounded' !important;
}
11 changes: 3 additions & 8 deletions src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { RedirectOldRemoveLiquidityPathStructure } from './RemoveLiquidity/redir
import Swap from './Swap'
import { RedirectPathToSwapOnly, RedirectToSwap } from './Swap/redirects'

import '../fonts.css'

const AppWrapper = styled.div`
display: flex;
flex-flow: column;
Expand All @@ -39,12 +41,10 @@ const BodyWrapper = styled.div`
display: flex;
flex-direction: column;
width: 100%;
padding-top: 160px;
align-items: center;
flex: 1;
overflow-y: auto;
overflow-x: hidden;
z-index: 10;
padding-bottom: 2rem;

${({ theme }) => theme.mediaWidth.upToExtraSmall`
padding: 16px;
Expand All @@ -53,10 +53,6 @@ const BodyWrapper = styled.div`
z-index: 1;
`

const Marginer = styled.div`
margin-top: 5rem;
`

export default function App() {
return (
<Suspense fallback={null}>
Expand Down Expand Up @@ -88,7 +84,6 @@ export default function App() {
<Route component={RedirectPathToSwapOnly} />
</Switch>
</Web3ReactManager>
<Marginer />
</BodyWrapper>
</AppWrapper>
</HashRouter>
Expand Down
7 changes: 3 additions & 4 deletions src/pages/AppBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import styled from 'styled-components'

export const BodyWrapper = styled.div`
position: relative;
max-width: 420px;
max-width: 460px;
width: 100%;
background: ${({ theme }) => theme.bg1};
box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),
0px 24px 32px rgba(0, 0, 0, 0.01);
border-radius: 30px;
border-radius: 15px;
padding: 1rem;
border: 1px solid ${({ theme }) => theme.border};
`

/**
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Pool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { StyledInternalLink, TYPE } from '../../theme'
import { Text } from 'rebass'
import { LightCard } from '../../components/Card'
import { RowBetween } from '../../components/Row'
import { ButtonPrimary, ButtonSecondary } from '../../components/Button'
import { ButtonPrimary /* ButtonSecondary */ } from '../../components/Button'
import { AutoColumn } from '../../components/Column'

import { useActiveWeb3React } from '../../hooks'
Expand Down Expand Up @@ -113,11 +113,11 @@ export default function Pool() {
</AutoColumn>
</AppBody>

<div style={{ display: 'flex', alignItems: 'center', marginTop: '1.5rem' }}>
{/* <div style={{ display: 'flex', alignItems: 'center', marginTop: '1.5rem' }}>
<ButtonSecondary as={Link} style={{ width: 'initial' }} to="/migrate/v1">
Migrate V1 Liquidity
</ButtonSecondary>
</div>
</div> */}
</>
)
}
36 changes: 23 additions & 13 deletions src/theme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ export function colors(darkMode: boolean): Colors {
advancedBG: darkMode ? 'rgba(0,0,0,0.1)' : 'rgba(255,255,255,0.6)',

//primary colors
primary1: darkMode ? '#2172E5' : '#ff007a',
primary1: darkMode ? '#2172E5' : '#EB4182',
primary2: darkMode ? '#3680E7' : '#FF8CC3',
primary3: darkMode ? '#4D8FEA' : '#FF99C9',
primary4: darkMode ? '#376bad70' : '#F6DDE8',
primary5: darkMode ? '#153d6f70' : '#FDEAF1',

// color text
primaryText1: darkMode ? '#6da8ff' : '#ff007a',
primaryText1: darkMode ? '#6da8ff' : '#EB4182',

// secondary colors
secondary1: darkMode ? '#2172E5' : '#ff007a',
secondary1: darkMode ? '#2172E5' : '#EB4182',
secondary2: darkMode ? '#17000b26' : '#F6DDE8',
secondary3: darkMode ? '#17000b26' : '#FDEAF1',

Expand All @@ -78,7 +78,8 @@ export function colors(darkMode: boolean): Colors {
red2: '#F82D3A',
green1: '#27AE60',
yellow1: '#FFE270',
yellow2: '#F3841E'
yellow2: '#F3841E',
border: '#ececed'

// dont wanna forget these blue yet
// blue4: darkMode ? '#153d6f70' : '#C4D9F8',
Expand Down Expand Up @@ -169,16 +170,12 @@ export const TYPE = {
}

export const FixedGlobalStyle = createGlobalStyle`


html, input, textarea, button {
font-family: 'Inter', sans-serif;
letter-spacing: -0.018em;
letter-spacing: -0.018em;
font-display: fallback;
}
@supports (font-variation-settings: normal) {
html, input, textarea, button {
font-family: 'Inter var', sans-serif;
}
}

html,
body {
Expand All @@ -196,7 +193,6 @@ button {

html {
font-size: 16px;
font-variant: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
Expand All @@ -206,17 +202,31 @@ html {
export const ThemedGlobalStyle = createGlobalStyle`
html {
color: ${({ theme }) => theme.text1};
background-color: ${({ theme }) => theme.bg2};
background-color: ${({ theme }) => theme.bg1};
}

body {
min-height: 100vh;
background-position: 0 -30vh;
background-repeat: no-repeat;
position: relative;
overflow-y: auto;
overflow-x: hidden;

&::after{
width: 200%;
height: 100%;
content: " ";
backdrop-filter: blur(50px);
background-image: ${({ theme }) =>
`radial-gradient(50% 50% at 50% 50%, ${transparentize(0.9, theme.primary1)} 0%, ${transparentize(
1,
theme.bg1
)} 100%)`};
position: fixed;
top: -100px;
left: 50%;
transform: translateX(-50%)
}
}
`
1 change: 1 addition & 0 deletions src/theme/styled.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export interface Colors {
green1: Color
yellow1: Color
yellow2: Color
border: Color
}

export interface Grids {
Expand Down