-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Ajayos/update
updated
- Loading branch information
Showing
55 changed files
with
1,695 additions
and
1,512 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Helmet } from "react-helmet-async"; | ||
import { Link as RouterLink } from "react-router-dom"; | ||
import { styled } from "@mui/material/styles"; | ||
import { Button, Typography, Container, Box } from "@mui/material"; | ||
|
||
const StyledContent = styled("div")(({ theme }) => ({ | ||
maxWidth: 480, | ||
margin: "auto", | ||
minHeight: "100vh", | ||
display: "flex", | ||
justifyContent: "center", | ||
flexDirection: "column", | ||
padding: theme.spacing(12, 0), | ||
})); | ||
|
||
export default function Page500() { | ||
return ( | ||
<> | ||
<Helmet> | ||
<title> 500 Internal Server Error | MI LIBRO </title> | ||
</Helmet> | ||
|
||
<Container> | ||
<StyledContent sx={{ textAlign: "center", alignItems: "center" }}> | ||
<Typography variant="h3" paragraph> | ||
There was an error, please try again later | ||
</Typography> | ||
|
||
<Box | ||
component="img" | ||
src={`/public/static/images/500.svg`} | ||
sx={{ height: 260, mx: "auto", marginTop: "-25%"}} | ||
/> | ||
|
||
<Button | ||
to="/" | ||
size="large" | ||
variant="contained" | ||
component={RouterLink} | ||
> | ||
Go to Home | ||
</Button> | ||
<Button | ||
to="/" | ||
size="large" | ||
variant="contained" | ||
component={RouterLink} | ||
> | ||
Go to Home | ||
</Button> | ||
</StyledContent> | ||
</Container> | ||
</> | ||
); | ||
} |
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
File renamed without changes.
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
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import React from 'react'; | ||
import React, { useContext } from 'react'; | ||
import { DarkContext } from '../../../contexts/ThemeContext'; | ||
import { IconButton } from '@mui/material'; | ||
import { Brightness4, Brightness7 } from '@mui/icons-material'; | ||
|
||
const ThemeSwitcher = () => { | ||
const { themeMode, toggleThemeMode } = useContext(DarkContext); | ||
|
||
const DarkLight = () => { | ||
return ( | ||
<div> | ||
|
||
</div> | ||
<IconButton color="inherit" onClick={toggleThemeMode}> | ||
{themeMode === 'light' ? <Brightness4 /> : <Brightness7 />} | ||
</IconButton> | ||
); | ||
} | ||
}; | ||
|
||
export default DarkLight; | ||
export default ThemeSwitcher; |
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
Oops, something went wrong.