From c4d7a7ad353a60f56c6f1c31d48810f3e4c1b36e Mon Sep 17 00:00:00 2001 From: Araozu Date: Thu, 15 Aug 2024 12:06:09 -0500 Subject: [PATCH] Use a single layout for side projects --- src/layouts/SideProject.astro | 48 ++++++++++++--- src/pages/side-projects/index.astro | 95 +++++------------------------ src/pages/side-projects/thp.astro | 17 ++++++ 3 files changed, 69 insertions(+), 91 deletions(-) create mode 100644 src/pages/side-projects/thp.astro diff --git a/src/layouts/SideProject.astro b/src/layouts/SideProject.astro index b3d3854..ad75804 100644 --- a/src/layouts/SideProject.astro +++ b/src/layouts/SideProject.astro @@ -2,6 +2,8 @@ import GithubIcon from "../components/Sideprojects/GithubIcon.astro"; import GlobeIcon from "../components/Sideprojects/GlobeIcon.astro"; import NavigationLayout from "./NavigationLayout.astro"; + +const { project_title, git_url, page_url, previous, next } = Astro.props; --- @@ -30,32 +32,58 @@ import NavigationLayout from "./NavigationLayout.astro";
-
+

- Typed Hyperscript Processor (webpage) + {project_title}

- DescripciĆ³n del proyecto :D (carita feliz) en 240 - palabras o menos +

- Source code + Source code
- - https://webpage.araozu.dev/ + { + page_url && ( + <> + + + Webpage + + + ) + }
+ +
+ +
diff --git a/src/pages/side-projects/index.astro b/src/pages/side-projects/index.astro index fc00fb5..59e4181 100644 --- a/src/pages/side-projects/index.astro +++ b/src/pages/side-projects/index.astro @@ -1,84 +1,17 @@ --- -import GithubIcon from "../../components/Sideprojects/GithubIcon.astro"; -import GlobeIcon from "../../components/Sideprojects/GlobeIcon.astro"; -import NavigationLayout from "../../layouts/NavigationLayout.astro"; +import SideProject from "../../layouts/SideProject.astro"; --- - - - - - - - - - - Side projects - Fernando Araoz - - - - - - - - -
-
-
-

- Typed Hyperscript Processor (webpage) -

- -

- This is a static webpage that contains documentation - for my other project, the THP compiler. -
-
- It is written with Astro and Markdown, highlights the - syntax in the code snippets using said compiler, and - has some interactive code snippets. -

- - - -
logos
-
-
- -
- Project image -
-
-
- - + + This is a static webpage that contains documentation for my other project, + the THP compiler. +
+
+ It is written with Astro and Markdown, highlights the syntax in the code snippets + using said compiler, and has some interactive code snippets. +
diff --git a/src/pages/side-projects/thp.astro b/src/pages/side-projects/thp.astro new file mode 100644 index 0000000..bef82bc --- /dev/null +++ b/src/pages/side-projects/thp.astro @@ -0,0 +1,17 @@ +--- +import SideProject from "../../layouts/SideProject.astro"; +--- + + + This is a static webpage that contains documentation for my other project, + the THP compiler. +
+
+ It is written with Astro and Markdown, highlights the syntax in the code snippets + using said compiler, and has some interactive code snippets. +