From 9d3d55d7704f071f9e84c067dcc64c5367c76bb5 Mon Sep 17 00:00:00 2001 From: Andrew Still Date: Sat, 24 Feb 2024 14:20:44 -0500 Subject: [PATCH] Added Navbar and Footer --- next.config.js | 5 ++++- src/app/about/page.tsx | 7 +++++++ src/app/globals.css | 38 +++++++++++++++++++++++++++++++++++++- src/app/links/page.tsx | 4 ++++ src/app/page.tsx | 4 ++++ src/components/Footer.tsx | 9 +++++++++ src/components/Navbar.tsx | 12 ++++++++++++ 7 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 src/components/Footer.tsx create mode 100644 src/components/Navbar.tsx diff --git a/next.config.js b/next.config.js index ee2c108..697ffed 100644 --- a/next.config.js +++ b/next.config.js @@ -4,7 +4,10 @@ const nextConfig = { output: 'export', poweredByHeader: false, reactStrictMode: true, - swcMinify: true + swcMinify: true, + images: { + unoptimized: true + } } module.exports = nextConfig \ No newline at end of file diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index cbd69c4..24cd415 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -1,6 +1,8 @@ import Link from 'next/link' import 'animate.css' import { Box } from '@mui/system'; +import Navbar from '../../components/Navbar'; +import Footer from '../../components/Footer'; let page = "About" @@ -11,6 +13,7 @@ export const metadata = { export default function About() { return (
+

@@ -24,8 +27,12 @@ export default function About() {

Hi, I'm AndrewDragon

+

+ I'm a Content Creator and Developer. I'm passionate about creating content and sharing my knowledge with the world. Most of my projects can be found on Dragonaere Enterprises. I also have a YouTube Channel where I post videos about my projects and other things I'm passionate about. If you want to find me on any other platform, take a look at My Socials. +

+
) } \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index 1fb9a68..e8817fb 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -6,6 +6,11 @@ body { Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } +.maintext { + padding: 0 20%; + font-size: 1.1rem; +} + a { color: inherit; text-decoration: none; @@ -24,6 +29,21 @@ a { text-align: center; } +.navbar { + position: fixed; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + max-width: 100vw; + width: 100%;; +} + +.navbar-image { + display: flex; + flex-direction: row; +} + .head { display: flex; flex-direction: row; @@ -64,7 +84,7 @@ a { .linksbox { display: grid; - grid-template-columns: repeat(2, 320px); + grid-template-columns: repeat(2, 360px); grid-template-rows: 1fr; justify-content: center; align-items: center; @@ -77,6 +97,10 @@ a { text-align: center; } +.highlightedLink { + color: #F46904; +} + .links a { padding: 1.5rem 5rem; display: inline-block; @@ -86,6 +110,18 @@ a { color: #F46904; } +.footer { + display: flex; + flex: 1; + justify-content: center; + align-items: center; + position: absolute; + bottom: 0; + height: 32px; + width: 100%; + font-size: 1rem; +} + @media (max-width: 600px) { .grid { width: 100%; diff --git a/src/app/links/page.tsx b/src/app/links/page.tsx index ca2d914..a8e7479 100644 --- a/src/app/links/page.tsx +++ b/src/app/links/page.tsx @@ -2,6 +2,8 @@ import Link from 'next/link' import type { Route } from 'next'; import 'animate.css' import { Box } from '@mui/system'; +import Navbar from '../../components/Navbar'; +import Footer from '../../components/Footer'; let page = "Links" @@ -12,6 +14,7 @@ export const metadata = { export default function Links() { return (
+

@@ -69,6 +72,7 @@ export default function Links() { +

) } \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index ee44259..c060701 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,10 +1,13 @@ import Link from 'next/link' import { Box } from '@mui/system'; import 'animate.css' +import Navbar from '../components/Navbar'; +import Footer from '../components/Footer'; export default function Home() { return (
+

@@ -32,6 +35,7 @@ export default function Home() { +

) } diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx new file mode 100644 index 0000000..44f5f6d --- /dev/null +++ b/src/components/Footer.tsx @@ -0,0 +1,9 @@ +// import Image from 'next/image' + +export default function Footer() { + return ( + + ) +} diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx new file mode 100644 index 0000000..1b917a3 --- /dev/null +++ b/src/components/Navbar.tsx @@ -0,0 +1,12 @@ +import Image from 'next/image'; +import Link from 'next/link'; + +export default async function Navbar() { + return ( + + ) +}