diff --git a/app/loading.tsx b/app/loading.tsx index ad1491e0..7968a68e 100644 --- a/app/loading.tsx +++ b/app/loading.tsx @@ -1,12 +1,33 @@ -import React from 'react' -import LoadingSvg from "@/public/assets/ripple-1s-200px.svg" +import React, { DetailedHTMLProps, HTMLAttributes } from 'react' +import LoadingSvg from "@/public/assets/Eclipse-1s-200px.svg" +import Image from 'next/image' +import Logo from "@/public/logo.png" function LoadingPlaceholder() { + + const styles = { + position: "relative", + aspectRatio: "1117 / 393", + width: "80vw", + maxWidth: "200px" + } as DetailedHTMLProps, HTMLDivElement> + return (
- -

Loading...

+ +
+ Logo +
+ + + +

+ Loading... +

+
) diff --git a/app/not-found.tsx b/app/not-found.tsx new file mode 100644 index 00000000..daeb7b9f --- /dev/null +++ b/app/not-found.tsx @@ -0,0 +1,91 @@ +import Link from 'next/link' +import React, { DetailedHTMLProps, HTMLAttributes } from 'react' +import errorImg from "@/public/404.jpg" +import Image from 'next/image' + +function Custom404() { + + const errorContainerStyles = { + display: "flex", + flexDirection: "column", + gap: "16px 0", + margin: "20px auto", + minHeight: "80vh", + maxHeight: "700px", + background: 'var(--white-100)', + width: "96%", + maxWidth: "720px", + borderRadius: "8px", + boxShadow: "5px 5px 1px 0px var(--black-25)" + + } as DetailedHTMLProps, HTMLDivElement> + + // h1 + const errorH1Styles = { + fontWeight: "300", + color: "#f44336", + padding: "16px" + } as DetailedHTMLProps, HTMLDivElement> + + const errorHeadingContainerStyles = { + + display: "flex", + flexDirection: "column", + gap: "32px 0", + margin: "auto", + textAlign: "center", + alignItems: "center" + + } as DetailedHTMLProps, HTMLDivElement> + + const errorButtonContainerStyles = { + + display: "flex", + gap: "0 16px", + margin: "32px auto", + maxWidth: "720px", + + } as DetailedHTMLProps, HTMLDivElement> + + const errorReturnHomeContainerStyles = { + + padding: "16px 8px", + border: "1px solid var(--brand-color)", + borderRadius: "4px", + background: "var(--brand-color)", + color: "var(--white-100)", + fontWeight: "300" + + } + + return ( + +
+ +
+

Page Not Found!

+ + {'Error + + + + Image by storyset + + {" "}on Freepik + +
+ +
+ + + Return to Home Page + + +
+ +
+ + ) +} + +export default Custom404 \ No newline at end of file diff --git a/public/404.jpg b/public/404.jpg new file mode 100644 index 00000000..0e37eb5a Binary files /dev/null and b/public/404.jpg differ diff --git a/public/assets/Eclipse-1s-200px.svg b/public/assets/Eclipse-1s-200px.svg new file mode 100644 index 00000000..090c03f8 --- /dev/null +++ b/public/assets/Eclipse-1s-200px.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file