Skip to content

chore: use emotion for styling (pt. 8) #10447

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

Merged
merged 23 commits into from
Nov 1, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
emotion: NotFoundPage
  • Loading branch information
aslilac committed Oct 31, 2023
commit 42f5b5dd563a2076e708a213eac780d0177e8f77
40 changes: 18 additions & 22 deletions site/src/pages/404Page/404Page.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
import { makeStyles } from "@mui/styles";
import Typography from "@mui/material/Typography";
import { FC } from "react";
import { type FC } from "react";

export const NotFoundPage: FC = () => {
const styles = useStyles();

return (
<div className={styles.root}>
<div className={styles.headingContainer}>
<div
css={{
width: "100%",
height: "100%",
display: "flex",
flexDirection: "row",
justifyContent: "center",
alignItems: "center",
}}
>
<div
css={(theme) => ({
margin: theme.spacing(1),
padding: theme.spacing(1),
borderRight: theme.palette.divider,
})}
>
<Typography variant="h4">404</Typography>
</div>
<Typography variant="body2">This page could not be found.</Typography>
</div>
);
};

const useStyles = makeStyles((theme) => ({
root: {
width: "100%",
height: "100%",
display: "flex",
flexDirection: "row",
justifyContent: "center",
alignItems: "center",
},
headingContainer: {
margin: theme.spacing(1),
padding: theme.spacing(1),
borderRight: theme.palette.divider,
},
}));

export default NotFoundPage;