refactor for v2

This commit is contained in:
Ale 2024-10-06 14:08:07 +02:00
parent b189b5ea67
commit 2212218520
13 changed files with 157 additions and 148 deletions

View file

@ -0,0 +1,22 @@
---
const { title } = Astro.props;
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<nav>
<a href="#">Home</a>
<a href="#">Posts</a>
<a href="#">Contact</a>
</nav>
<h1>{title}</h1>
<article>
<slot />
<!-- il tuo contenuto viene inserito qui -->
</article>
</body>
</html>

View file

@ -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')
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Cakey's home directory</title>
</head>
<body>
<div id="content">
<h1>/home/<strong>alecake</strong></h1>
<div class="commandline">
<p> &gt ls ~/subpages/</p>
</div>
<SubPagesRow/>
<div class="commandline">
<p>&gt ls ~/blogposts/</p>
</div>
<div id="bloglist">
{posts.map(post => (
<BlogPost
title={post.frontmatter.title}
url={post.url}
date={post.frontmatter.date}
description={post.frontmatter.description}
></BlogPost>
)
)}
</div>
</div>
</body>
</html>

View file

@ -1,18 +0,0 @@
---
import "../Styles/index.css"
import SubPagesRow from "../Components/SubPagesRow.astro"
---
<html lang="en">
<head>
</head>
<body>
<div id="content">
<h1>/home/<strong>alecake</strong></h1>
<div class="commandline"><p>&gt ls ~/subpages/</p></div>
<SubPagesRow />
</div>
</body>
</html>

View file

@ -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";
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Cakey's home directory</title>
</head>
<body>
<div id="content">
<h1>/home/<strong>cake</strong></h1>
<div class="commandline">
<p>&gt ls ~/subpages/</p>
</div>
<SubPagesRow />
<div class="commandline">
<p>&gt ls ~/contacts_and_socialmedia/</p>
</div>
<ContactsRow />
<div id="intro">
<div class="commandline">
<p>&gt cat ~/intro.md</p>
</div>
<p>
Howdy~ I'm <strong>Cake</strong>. I'm a software developer, though i
enjoy doing basically anything that is actually fun and mostly relates
to computers.
<br />
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!
</p>
<hr />
</div>
<div class="commandline">
<p>&gt cat ~/intropart2idk.md</p>
</div>
<span class="paragraphwpic">
<p>
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 <a
href="https://archlinux.org/">Arch</a> with KDE, which is a really
nice combo.
</p>
<img src="/Assets/Homepage/desktop.jpg" />
</span>
<div class="commandline">
<p>&gt cat ~/randomstuff/interests.md</p>
</div>
<span class="paragraphwpic">
<p>
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 <i>really like</i> 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.
</p>
<img class="small" src="/Assets/Homepage/thirdimpact.png" />
</span>
<p>
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.
</p>
<div class="commandline">
<p>&gt ls ~/important_stuff/important_people/</p>
</div>
<FriendsRow />
</div>
</body>
</html>

View file

@ -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");
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Cakey's home directory</title>
</head>
<body>
<div id="content">
<h1>/home/<strong>alecake</strong></h1>
<div class="commandline">
<p>&gt ls ~/subpages/</p>
</div>
<SubPagesRow />
<div class="commandline">
<p>&gt ls ~/blogposts/</p>
</div>
<div id="bloglist">
{
posts.map((post) => (
<BlogPost
title={post.frontmatter.title}
url={post.url}
date={post.frontmatter.date}
description={post.frontmatter.description}
/>
))
}
</div>
</div>
</body>
</html>

View file

@ -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";
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Cakey's home directory</title>
</head>
<body>
<div id="content">
<h1>/home/<strong>cake</strong></h1>
<div class="commandline">
<p>&gt ls ~/subpages/</p>
</div>
<SubPagesRow />
<div class="commandline">
<p>&gt ls ~/contacts_and_socialmedia/</p>
</div>
<ContactsRow />
<div id="intro">
<div class="commandline">
<p>&gt cat ~/intro.md</p>
</div>
<p>
Howdy~ I'm <strong>Cake</strong>. I'm a software developer,
though i enjoy doing basically anything that is actually fun
and mostly relates to computers.
<br />
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!
</p>
<hr />
</div>
<div class="commandline">
<p>&gt cat ~/intropart2idk.md</p>
</div>
<span class="paragraphwpic">
<p>
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 <a href="https://archlinux.org/"
>Arch</a
> with KDE, which is a really nice combo.
</p>
<img src="/Assets/Homepage/desktop.jpg" />
</span>
<div class="commandline">
<p>&gt cat ~/randomstuff/interests.md</p>
</div>
<span class="paragraphwpic">
<p>
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 <i>really like</i> 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.
</p>
<img class="small" src="/Assets/Homepage/thirdimpact.png" />
</span>
<p>
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.
</p>
<div class="commandline">
<p>&gt ls ~/important_stuff/important_people/</p>
</div>
<FriendsRow />
</div>
</body>
</html>