Fixed Error 404 page

This commit is contained in:
keannu125 2023-02-21 14:21:37 +08:00
parent b4b8b3e03d
commit c08d927f01
2 changed files with 10 additions and 12 deletions

View file

@ -4,9 +4,11 @@ import NotFoundIcon from "../../Components/Icons/NotFoundIcon/NotFoundIcon";
export default function Error() {
return (
<div style={styles.container}>
<NotFoundIcon size={64} color="#a44141" />
<p style={styles.text}>Could not find the requested page</p>
<div style={styles.content_center}>
<div style={styles.content_column}>
<NotFoundIcon size={64} color="#a44141" />
<p style={styles.text}>Could not find the requested page</p>
</div>
</div>
);
}

View file

@ -7,15 +7,6 @@ const styles: { [key: string]: React.CSSProperties } = {
height: "100%",
backgroundColor: "#0b2322",
},
container: {
display: "flex",
flexDirection: "column",
flex: 1,
height: "100%",
alignItems: "center",
paddingTop: 0,
paddingLeft: 16,
},
text_tiny: {
fontSize: "0.6vw",
color: "white",
@ -130,6 +121,11 @@ const styles: { [key: string]: React.CSSProperties } = {
flexDirection: "column",
lineHeight: 0,
},
content_center: {
display: "flex",
justifyContent: "center",
textAlign: "center",
},
flex_row: {
display: "flex",
flexDirection: "row",