From 2212218520bad204879fd2798e1da9baa0cea8ef Mon Sep 17 00:00:00 2001 From: Ale Date: Sun, 6 Oct 2024 14:08:07 +0200 Subject: [PATCH] refactor for v2 --- App/src/Components/{ => v1}/BlogPost.astro | 0 App/src/Components/{ => v1}/ContactRow.astro | 0 App/src/Components/{ => v1}/FriendsRow.astro | 0 App/src/Components/{ => v1}/SubPagesRow.astro | 0 App/src/Styles/{ => v1}/blogPage.css | 0 App/src/Styles/{ => v1}/index.css | 0 App/src/layouts/BlogPost.astro | 0 App/src/layouts/default.astro | 22 +++++ App/src/pages/blog.astro | 42 --------- App/src/pages/dictionary.astro | 18 ---- App/src/pages/index.astro | 88 ------------------ App/src/pages/old/blog.astro | 43 +++++++++ App/src/pages/old/index.astro | 92 +++++++++++++++++++ 13 files changed, 157 insertions(+), 148 deletions(-) rename App/src/Components/{ => v1}/BlogPost.astro (100%) rename App/src/Components/{ => v1}/ContactRow.astro (100%) rename App/src/Components/{ => v1}/FriendsRow.astro (100%) rename App/src/Components/{ => v1}/SubPagesRow.astro (100%) rename App/src/Styles/{ => v1}/blogPage.css (100%) rename App/src/Styles/{ => v1}/index.css (100%) delete mode 100644 App/src/layouts/BlogPost.astro create mode 100644 App/src/layouts/default.astro delete mode 100644 App/src/pages/blog.astro delete mode 100644 App/src/pages/dictionary.astro create mode 100644 App/src/pages/old/blog.astro create mode 100644 App/src/pages/old/index.astro diff --git a/App/src/Components/BlogPost.astro b/App/src/Components/v1/BlogPost.astro similarity index 100% rename from App/src/Components/BlogPost.astro rename to App/src/Components/v1/BlogPost.astro diff --git a/App/src/Components/ContactRow.astro b/App/src/Components/v1/ContactRow.astro similarity index 100% rename from App/src/Components/ContactRow.astro rename to App/src/Components/v1/ContactRow.astro diff --git a/App/src/Components/FriendsRow.astro b/App/src/Components/v1/FriendsRow.astro similarity index 100% rename from App/src/Components/FriendsRow.astro rename to App/src/Components/v1/FriendsRow.astro diff --git a/App/src/Components/SubPagesRow.astro b/App/src/Components/v1/SubPagesRow.astro similarity index 100% rename from App/src/Components/SubPagesRow.astro rename to App/src/Components/v1/SubPagesRow.astro diff --git a/App/src/Styles/blogPage.css b/App/src/Styles/v1/blogPage.css similarity index 100% rename from App/src/Styles/blogPage.css rename to App/src/Styles/v1/blogPage.css diff --git a/App/src/Styles/index.css b/App/src/Styles/v1/index.css similarity index 100% rename from App/src/Styles/index.css rename to App/src/Styles/v1/index.css diff --git a/App/src/layouts/BlogPost.astro b/App/src/layouts/BlogPost.astro deleted file mode 100644 index e69de29..0000000 diff --git a/App/src/layouts/default.astro b/App/src/layouts/default.astro new file mode 100644 index 0000000..2fc81ba --- /dev/null +++ b/App/src/layouts/default.astro @@ -0,0 +1,22 @@ +--- +const { title } = Astro.props; +--- + + + + + + + + +

{title}

+
+ + +
+ + diff --git a/App/src/pages/blog.astro b/App/src/pages/blog.astro deleted file mode 100644 index a786c8a..0000000 --- a/App/src/pages/blog.astro +++ /dev/null @@ -1,42 +0,0 @@ ---- -import "../Styles/index.css" -import "../Styles/blogPage.css" -import SubPagesRow from "../Components/SubPagesRow.astro" -import BlogPost from "../Components/BlogPost.astro"; - -const posts = await Astro.glob('./posts/*.md') ---- - - - - - - - - Cakey's home directory - - - -
-

/home/alecake

-
-

> ls ~/subpages/

-
- -
-

> ls ~/blogposts/

-
-
- {posts.map(post => ( - - ) - )} -
-
- - diff --git a/App/src/pages/dictionary.astro b/App/src/pages/dictionary.astro deleted file mode 100644 index bb5a800..0000000 --- a/App/src/pages/dictionary.astro +++ /dev/null @@ -1,18 +0,0 @@ ---- -import "../Styles/index.css" -import SubPagesRow from "../Components/SubPagesRow.astro" ---- - - - - - - -
-

/home/alecake

-

> ls ~/subpages/

- - -
- - diff --git a/App/src/pages/index.astro b/App/src/pages/index.astro index 5040c8d..e69de29 100644 --- a/App/src/pages/index.astro +++ b/App/src/pages/index.astro @@ -1,88 +0,0 @@ ---- -import "../Styles/index.css"; -import ContactsRow from "../Components/ContactRow.astro"; -import SubPagesRow from "../Components/SubPagesRow.astro"; -import FriendsRow from "../Components/FriendsRow.astro"; ---- - - - - - - - - Cakey's home directory - - -
-

/home/cake

-
-

> ls ~/subpages/

-
- - - -
-

> ls ~/contacts_and_socialmedia/

-
- - - -
-
-

> cat ~/intro.md

-
-

- Howdy~ I'm Cake. I'm a software developer, though i - enjoy doing basically anything that is actually fun and mostly relates - to computers. -
- Other stuff to let you know me better, mh, i'm 20, and i live in italy - 🍕, yeah, that's it, this is supposed to be a short intro! -

-
-
- -
-

> cat ~/intropart2idk.md

-
- - -

- If you are my friend you may already know, but I'm very much obsessed - with open source crap, that's why this website is hosted on my git - istance, and that's why i use linux, specifically, i'm using Arch with KDE, which is a really - nice combo. -

- -
- -
-

> cat ~/randomstuff/interests.md

-
- -

- My interests...well, i do enjoy a lot of things, my main ones focus on - software, i like to learn new technologies, even if it takes me a - while. And, as you might have noticed, dear reader, my wallpaper is - from an anime, evangelion, and i really like evangelion and with - like, i mean that it's one of my favorite pieces of media ever, the third - impact just resonates with me so much, both in the anime ending, and the - movie. -

- -
- -

- Other than that, i do enjoy coding, making websites, writing css, - drawing, making pixel art, trying new technologies... i have quite a lot - of interests, that i am not going to write here, for now. -

-
-

> ls ~/important_stuff/important_people/

-
- -
- - diff --git a/App/src/pages/old/blog.astro b/App/src/pages/old/blog.astro new file mode 100644 index 0000000..fc8bdcd --- /dev/null +++ b/App/src/pages/old/blog.astro @@ -0,0 +1,43 @@ +--- +import "../../Styles/v1/index.css"; +import "../../Styles/v1/blogPage.css"; +import SubPagesRow from "../../Components/v1/SubPagesRow.astro"; +import BlogPost from "../../Components/v1/BlogPost.astro"; + +const posts = await Astro.glob("./posts/*.md"); +--- + + + + + + + + Cakey's home directory + + + +
+

/home/alecake

+
+

> ls ~/subpages/

+
+ +
+

> ls ~/blogposts/

+
+
+ { + posts.map((post) => ( + + )) + } +
+
+ + diff --git a/App/src/pages/old/index.astro b/App/src/pages/old/index.astro new file mode 100644 index 0000000..93f731e --- /dev/null +++ b/App/src/pages/old/index.astro @@ -0,0 +1,92 @@ +--- +import "../../Styles/v1/index.css"; +import ContactsRow from "../../Components/v1/ContactRow.astro"; +import SubPagesRow from "../../Components/v1/SubPagesRow.astro"; +import FriendsRow from "../../Components/v1/FriendsRow.astro"; +--- + + + + + + + + Cakey's home directory + + +
+

/home/cake

+
+

> ls ~/subpages/

+
+ + + +
+

> ls ~/contacts_and_socialmedia/

+
+ + + +
+
+

> cat ~/intro.md

+
+

+ Howdy~ I'm Cake. I'm a software developer, + though i enjoy doing basically anything that is actually fun + and mostly relates to computers. +
+ Other stuff to let you know me better, mh, i'm 20, and i live + in italy 🍕, yeah, that's it, this is supposed to be a short + intro! +

+
+
+ +
+

> cat ~/intropart2idk.md

+
+ + +

+ If you are my friend you may already know, but I'm very much + obsessed with open source crap, that's why this website is + hosted on my git istance, and that's why i use linux, + specifically, i'm using Arch with KDE, which is a really nice combo. +

+ +
+ +
+

> cat ~/randomstuff/interests.md

+
+ +

+ My interests...well, i do enjoy a lot of things, my main + ones focus on software, i like to learn new technologies, + even if it takes me a while. And, as you might have noticed, + dear reader, my wallpaper is from an anime, evangelion, and + i really like evangelion and with like, i mean that it's + one of my favorite pieces of media ever, the third impact just + resonates with me so much, both in the anime ending, and the + movie. +

+ +
+ +

+ Other than that, i do enjoy coding, making websites, writing + css, drawing, making pixel art, trying new technologies... i + have quite a lot of interests, that i am not going to write + here, for now. +

+
+

> ls ~/important_stuff/important_people/

+
+ +
+ +