update primary/secondary color

This commit is contained in:
Dawid Wysokiński 2021-01-04 19:48:50 +01:00
parent d450ff79b2
commit c7f1afab78
4 changed files with 22 additions and 9 deletions

View File

@ -35,9 +35,7 @@ function Footer({ author, lang }) {
<Toolbar disableGutters>
<Typography align="center" className={classes.copyright}>
{translations.backgroundCredits}{' '}
<Link color="secondary" href="https://svgbackgrounds.com">
svgbackgrounds.com
</Link>
<Link href="https://svgbackgrounds.com">svgbackgrounds.com</Link>
. <br /> &copy; {new Date().getFullYear()} {author}
</Typography>
</Toolbar>

View File

@ -82,12 +82,11 @@ const IndexPage = ({ location, pageContext }) => {
</Typography>
<Typography gutterBottom>{t.header.description}</Typography>
<Divider variant="fullWidth" className={classes.divider} />
<ButtonGroup variant="contained" color="secondary">
<ButtonGroup variant="contained" color="primary">
<Button>
<Link
href={data.site.siteMetadata.botInviteUrl}
color="inherit"
underline="none"
title={t.header.inviteBot}
>
{t.header.inviteBot}
@ -97,7 +96,7 @@ const IndexPage = ({ location, pageContext }) => {
<Link
to={routes[pageContext.langKey].COMMANDS_PAGE}
color="inherit"
underline="none"
title={t.header.commands}
>
{t.header.commands}
</Link>

View File

@ -3,6 +3,24 @@ import { createMuiTheme, responsiveFontSizes } from '@material-ui/core/styles';
const theme = createMuiTheme({
palette: {
type: 'dark',
primary: {
main: '#BB86FC',
contrastText: '#000',
},
secondary: {
main: '#03DAC6',
contrastText: '#000',
},
},
typography: {
h2: {
fontWeight: 400,
},
},
props: {
MuiLink: {
underline: 'none',
},
},
overrides: {
MuiCssBaseline: {

View File

@ -43,9 +43,7 @@ const NotFoundPage = ({ location, pageContext }) => {
exist on this site.
</Typography>
<Typography variant="h4">
<Link color="secondary" to="/">
Back to our site
</Link>
<Link to="/">Back to our site</Link>
</Typography>
</Container>
</Layout>