generated from defi-wonderland/web3-react-boilerplate
-
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.
- Loading branch information
Showing
31 changed files
with
249 additions
and
94 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
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,21 @@ | ||
/* | ||
Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter) | ||
This Font Software is licensed under the SIL Open Font License, Version 1.1. | ||
This license is copied below, and is also available with a FAQ at: | ||
https://openfontlicense.org | ||
----------------------------------------------------------- | ||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 | ||
----------------------------------------------------------- | ||
*/ | ||
|
||
@font-face { | ||
font-family: 'Inter-Variable'; | ||
src: | ||
url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('ttf'), | ||
url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('ttf'); | ||
font-weight: 200 700; | ||
font-display: swap; | ||
font-style: normal; | ||
} |
Binary file not shown.
Binary file not shown.
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.
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
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.
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
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.
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.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { Typography, Box, styled } from '@mui/material'; | ||
import Image from 'next/image'; | ||
import { useTranslation } from 'next-i18next'; | ||
|
||
import GasLight from '~/assets/icons/gasLight.svg'; | ||
import GasDark from '~/assets/icons/gasDark.svg'; | ||
import { useCustomTheme } from '~/hooks'; | ||
import { SBox } from '~/components'; | ||
|
||
export const Gas = () => { | ||
const { theme } = useCustomTheme(); | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<GasContainer> | ||
<Image src={theme === 'dark' ? GasDark : GasLight} alt='gas' /> | ||
<Box> | ||
<SBox> | ||
<Typography>{t('HOME.gasPrice')}:</Typography> | ||
<GasValueText>10 wei</GasValueText> | ||
</SBox> | ||
<SBox> | ||
<Typography>{t('HOME.transfer')}:</Typography> | ||
<GasValueText>$10</GasValueText> | ||
</SBox> | ||
</Box> | ||
</GasContainer> | ||
); | ||
}; | ||
|
||
const GasContainer = styled(Box)(() => { | ||
const { currentTheme } = useCustomTheme(); | ||
|
||
return { | ||
display: 'flex', | ||
alignItems: 'center', | ||
color: currentTheme.textSecondary, | ||
gap: currentTheme.gap, | ||
fontWeight: 400, | ||
fontSize: '0.7rem', | ||
lineHeight: '1.25rem', | ||
padding: '0.5rem 1rem', | ||
}; | ||
}); | ||
|
||
const GasValueText = styled(Typography)(() => { | ||
const { currentTheme } = useCustomTheme(); | ||
|
||
return { | ||
color: currentTheme.textPrimary, | ||
fontWeight: 500, | ||
letterSpacing: '-0.03em', | ||
}; | ||
}); |
Oops, something went wrong.