diff --git a/src/components/NotFoundPage.css b/src/components/NotFoundPage.css new file mode 100644 index 0000000..4cb3a78 --- /dev/null +++ b/src/components/NotFoundPage.css @@ -0,0 +1,31 @@ +.not-found-container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100vh; + width: 100%; +} + +.not-found-heading { + font-size: 4.5em; + margin-bottom: 0; +} + +.not-found-page-nav-link { + --color-text: var(--color-cobalt-blue); + color: var(--color-text); + font-size: 1.4em; + flex: 0 1 auto; + line-height: 1; + padding: 0.8rem; + text-align: center; + text-underline-offset: 0.1em; + text-decoration: none; + opacity: 0.7; +} + +.not-found-page-nav-link:hover { + opacity: 1; + text-decoration: underline; +} diff --git a/src/components/NotFoundPage.jsx b/src/components/NotFoundPage.jsx index 21d77f9..a1a4ded 100644 --- a/src/components/NotFoundPage.jsx +++ b/src/components/NotFoundPage.jsx @@ -1,12 +1,22 @@ import React from 'react'; -import { Link } from 'react-router-dom'; +import { NavLink } from 'react-router-dom'; + +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faHouse } from '@fortawesome/free-solid-svg-icons'; + +import './NotFoundPage.css'; export default function NotFoundPage() { return ( -
-

404

+
+

404

Oops! The page you are looking for does not exist.

- Go to Home Page + +
+ +
Go to Home Page
+
+
); } diff --git a/src/index.jsx b/src/index.jsx index 0888be6..7e235c1 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,6 +1,5 @@ import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; -import { Theme } from '@radix-ui/themes'; import { App } from './App'; import '@radix-ui/themes/styles.css'; diff --git a/src/views/Layout.css b/src/views/Layout.css index 39782a4..fdc7a6f 100644 --- a/src/views/Layout.css +++ b/src/views/Layout.css @@ -41,7 +41,7 @@ align-items: center; justify-content: flex-end; position: fixed; - bottom: 6.18rem; + bottom: 8.18em; left: 0; padding: 0.4em 0.4em; } @@ -96,17 +96,23 @@ path { .Nav-link { --color-text: var(--color-accent); - color: var(--color-text); - font-size: 1.4em; + font-size: 0.85em; flex: 0 1 auto; line-height: 1; padding: 0.8rem; text-align: center; text-underline-offset: 0.1em; + text-decoration: none; } .Nav-link.active { - text-decoration-thickness: 0.22em; - text-underline-offset: 0.1em; + text-decoration: underline; + text-decoration-thickness: 0.2em; + text-underline-offset: 0.2em; +} + +.nav-icon { + font-size: 1.5em; + margin-bottom: 0.2em; } diff --git a/src/views/Layout.jsx b/src/views/Layout.jsx index 4c2028f..8a74164 100644 --- a/src/views/Layout.jsx +++ b/src/views/Layout.jsx @@ -7,6 +7,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faSquareGithub } from '@fortawesome/free-brands-svg-icons'; import StackedLogo from '../assets/StackedLogo.jsx'; import CollabLabLogo from '../assets/CollabLabLogo.jsx'; +import { faHouse, faList, faUserPen } from '@fortawesome/free-solid-svg-icons'; export function Layout() { const { user } = useAuth(); @@ -44,13 +45,24 @@ export function Layout() {