Skip to content
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

change background color of header #219

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from
Draft
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
86 changes: 44 additions & 42 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,50 @@ export const Footer = () => {
const { classes } = useStyles()
return (
<Grid className={classes.footer}>
<Grid className={classes.footerItem}>
<TooltipHover text='Github'>
<a href={social.github} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.GithubIcon} alt={'github icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Telegram'>
<a href={social.telegram} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.TelegramIcon} alt={'telegram icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='X'>
<a href={social.x} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.XIcon} alt={'x icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Discord'>
<a href={social.discord} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.DiscordIcon} alt={'discord icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Medium'>
<a href={social.medium} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.mediumIcon} alt={'medium icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Docs'>
<a href={social.docs} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.docsIcon} alt={'medium icon'} />
</a>
</TooltipHover>
</Grid>
<div className={classes.footerWrapper}>
<Grid className={classes.footerItem}>
<TooltipHover text='Github'>
<a href={social.github} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.GithubIcon} alt={'github icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Telegram'>
<a href={social.telegram} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.TelegramIcon} alt={'telegram icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='X'>
<a href={social.x} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.XIcon} alt={'x icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Discord'>
<a href={social.discord} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.DiscordIcon} alt={'discord icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Medium'>
<a href={social.medium} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.mediumIcon} alt={'medium icon'} />
</a>
</TooltipHover>
</Grid>
<Grid className={classes.footerItem}>
<TooltipHover text='Docs'>
<a href={social.docs} className={classes.footerLink} target='_blank'>
<img className={classes.icon} src={icons.docsIcon} alt={'medium icon'} />
</a>
</TooltipHover>
</Grid>
</div>
</Grid>
)
}
Expand Down
8 changes: 8 additions & 0 deletions src/components/Footer/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ const useStyles = makeStyles()(() => {
icon: {
height: 40,
width: 40
},
footerWrapper: {
display: 'flex',
alignItems: 'center',
height: 56,
paddingInline: 16,
borderRadius: 24,
background: colors.invariant.component
}
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const Header: React.FC<IHeader> = ({
}, [network])

return (
<Grid container>
<Grid container className={classes.background}>
<Grid container className={classes.root} direction='row' alignItems='center' wrap='nowrap'>
<Grid
container
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/HeaderButton/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const useStyles = makeStyles()((theme: Theme) => {
height: 32,
boxShadow: 'none',
'&:hover': {
background: colors.invariant.light,
background: colors.blue.deep,
'@media (hover: none)': {
background: 'transparent'
}
Expand Down
6 changes: 5 additions & 1 deletion src/components/Header/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const useStyles = makeStyles()((theme: Theme) => {
height: 70,
display: 'flex',
justifyContent: 'space-between',
background: colors.invariant.component,

[theme.breakpoints.down('xl')]: {
paddingInline: 32
Expand Down Expand Up @@ -89,7 +90,7 @@ const useStyles = makeStyles()((theme: Theme) => {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
backgroundColor: colors.invariant.component,
backgroundColor: colors.invariant.light,
borderRadius: 14,
width: 'auto',
padding: 4
Expand Down Expand Up @@ -135,6 +136,9 @@ const useStyles = makeStyles()((theme: Theme) => {
[theme.breakpoints.up(1600)]: {
flex: '1 1 0%'
}
},
background: {
background: colors.invariant.component
}
}
})
Expand Down
Loading