From 2a9d20ed98e672b3fcf77e2e690b66830a258b42 Mon Sep 17 00:00:00 2001 From: Nuno Pereira Date: Fri, 22 Dec 2023 01:55:55 +0000 Subject: [PATCH] Started reworking project listing page --- src/components/AppBar/index.astro | 9 --------- src/components/Page/Header.astro | 12 ++++++------ src/components/Page/Home/Introduction.astro | 2 +- src/components/Project/Card.astro | 5 ++++- src/layouts/Base.astro | 20 +++++++++++++------- src/pages/blog/index.astro | 11 ----------- src/pages/projects/index.astro | 4 +++- 7 files changed, 27 insertions(+), 36 deletions(-) delete mode 100644 src/pages/blog/index.astro diff --git a/src/components/AppBar/index.astro b/src/components/AppBar/index.astro index 8357008..b0d3abb 100644 --- a/src/components/AppBar/index.astro +++ b/src/components/AppBar/index.astro @@ -5,15 +5,6 @@ import { type Page } from "./Nav/Link.astro"; import PC from "./PC.astro"; const pages: Page[] = [ - { - name: "Blog", - url: "/blog", - icon: { - pack: "mdi", - name: "blog-outline", - enabled: false, - }, - }, { name: "Projects", url: "/projects", diff --git a/src/components/Page/Header.astro b/src/components/Page/Header.astro index f929fbd..580fe48 100644 --- a/src/components/Page/Header.astro +++ b/src/components/Page/Header.astro @@ -1,13 +1,13 @@ --- interface Props { - title: string; - description: string; + title: string; + description: string; } -const {title, description} = Astro.props +const { title, description } = Astro.props; --- -
-

{title}

-

{description}

+
+

{title}

+

{description}

diff --git a/src/components/Page/Home/Introduction.astro b/src/components/Page/Home/Introduction.astro index fd33a3e..0c37444 100644 --- a/src/components/Page/Home/Introduction.astro +++ b/src/components/Page/Home/Introduction.astro @@ -4,7 +4,7 @@ import { Image } from "astro:assets"; import banner from "./me.jpg"; --- -
+
Home Page Banner +
{project.name}
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 98e77ea..902a3e2 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -1,6 +1,6 @@ --- import Footer from "../components/Footer.astro"; -import AppBar from "../components/AppBar/index.astro" +import AppBar from "../components/AppBar/index.astro"; export interface Props { title: string; @@ -10,14 +10,14 @@ export interface Props { const { title } = Astro.props; --- - + - + - + {title} @@ -47,8 +47,14 @@ const { title } = Astro.props; } code { - font-family: Menlo, Monaco, Lucida Console, Liberation Mono, - DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace; + font-family: + Menlo, + Monaco, + Lucida Console, + Liberation Mono, + DejaVu Sans Mono, + Bitstream Vera Sans Mono, + Courier New, + monospace; } - diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro deleted file mode 100644 index 8fcbfca..0000000 --- a/src/pages/blog/index.astro +++ /dev/null @@ -1,11 +0,0 @@ ---- -import PageLayout from "../../layouts/Page.astro"; ---- - - - <> - diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro index 7145a68..e5f1db9 100644 --- a/src/pages/projects/index.astro +++ b/src/pages/projects/index.astro @@ -12,7 +12,9 @@ const projects = await getCollection("project"); contentTitle="Projects" description="These are some of the projects I have developed so far:" > -
+
{projects.map((entry) => )}