From a0485ad26353a08562c13c14ea9de73fd705f9de Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 1 Jan 2024 16:32:41 -0500 Subject: Initial Rewrite --- src/components/Navbar.astro | 9 ++++++ src/components/Navbar.css | 3 ++ src/env.d.ts | 1 + src/layouts/Layout.astro | 79 +++++++++++++++++++++++++++++++++++++++++++++ src/pages/index.astro | 11 +++++++ 5 files changed, 103 insertions(+) create mode 100644 src/components/Navbar.astro create mode 100644 src/components/Navbar.css create mode 100644 src/env.d.ts create mode 100644 src/layouts/Layout.astro create mode 100644 src/pages/index.astro (limited to 'src') diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro new file mode 100644 index 0000000..6cf958a --- /dev/null +++ b/src/components/Navbar.astro @@ -0,0 +1,9 @@ +--- +import "./Navbar.css" +--- + diff --git a/src/components/Navbar.css b/src/components/Navbar.css new file mode 100644 index 0000000..d92fbbc --- /dev/null +++ b/src/components/Navbar.css @@ -0,0 +1,3 @@ +nav { + text-align: center; +} diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..f964fe0 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..23e3efb --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,79 @@ +--- +interface Props { + title: string; +} + +const { title } = Astro.props; +import Navbar from '../components/Navbar.astro'; +--- + + + + + + + + + + + + + {title} + + + + +
+

© Copyright 2018-2024

+
+ + + diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..9f15d62 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,11 @@ +--- +import Layout from '../layouts/Layout.astro'; +import { Image } from 'astro:assets'; +--- + + +
+ Andrew Lee +

Hey, I'm Andrew Lee!

+
+
-- cgit v1.2.3