Preparation for v2

This commit is contained in:
Ale 2024-10-07 00:05:06 +02:00
parent 2212218520
commit e53bedeec8
21 changed files with 217 additions and 127 deletions

View file

Before

Width:  |  Height:  |  Size: 448 KiB

After

Width:  |  Height:  |  Size: 448 KiB

View file

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 218 KiB

View file

Before

Width:  |  Height:  |  Size: 414 B

After

Width:  |  Height:  |  Size: 414 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -4,7 +4,8 @@
<div>
<span><a href="/">Home/</a></span>
<span
><a href="https://forge.cakey.me/Cake/Personal_website">GitRepo/</a></span
><a href="https://forge.cakey.me/Cake/Personal_website">GitRepo/</a
></span
>
</div>

View file

View file

@ -0,0 +1,8 @@
---
import "../../Styles/v2/navbar.css";
---
<nav>
<a>home</a>
<a>blog</a>
</nav>

View file

@ -0,0 +1,13 @@
---
import "../../Styles/v2/titlebar.css";
const { page_title } = Astro.props;
---
<div id="titlebar">
<img src="/v2/Assets/header-pic.png" />
<div id="titlebar-title-wrapper">
<h1>{page_title}</h1>
</div>
</div>

View file

@ -1,6 +1,6 @@
@font-face {
font-family: "victor mono";
src: url("/Assets/VictorMono-Regular.ttf");
src: url("/v1/Assets/VictorMono-Regular.ttf");
}
:root {
@ -127,6 +127,7 @@ hr {
padding-left: 5px;
padding-right: 5px;
}
.commandline>* {
color: var(--highlight-color) !important;
}

View file

@ -0,0 +1,44 @@
:root {
--background-color: #282a36;
--border-color: #44475a;
--primary-color: #ff79c6;
--secondary-color: #bd93f9;
--text-color: #f8f8f2;
--link-color: #ffb86c;
--highlight-color: #8be9fd;
--navbar-header-pic-size: 128px;
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
width: 100%;
height: 100vh;
}
#main-container {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
width: 100%;
background: url("/v2/Assets/background.png");
background-repeat: repeat;
}
#header-container {
border: 24px solid transparent;
border-image: url("/v2/Assets/border.png") 32 round;
width: 100%;
max-width: 900px;
margin-top: 32px;
}

View file

View file

@ -0,0 +1,16 @@
#titlebar {
display: flex;
align-items: center;
}
#titlebar>#titlebar-title-wrapper {
margin: auto;
position: relative;
left: calc(0px - calc(var(--navbar-header-pic-size)/2));
}
#titlebar>img {
width: var(--navbar-header-pic-size);
height: var(--navbar-header-pic-size);
padding: 16px;
}

View file

@ -1,22 +0,0 @@
---
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

@ -0,0 +1,24 @@
---
import "../../Styles/v2/common.css";
const { page_title } = Astro.props;
import Navbar from "../../Components/v2/navbar.astro";
import Titlebar from "../../Components/v2/titlebar.astro";
---
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<div id="main-container">
<div id="header-container">
<Titlebar page_title={page_title} />
<Navbar />
</div>
<main>
<slot />
</main>
</div>
</body>
</html>

View file

@ -0,0 +1,5 @@
---
import CommonLayout from "../layouts/v2/common.astro";
---
<CommonLayout page_title="cake">pallw</CommonLayout>

View file

@ -10,7 +10,7 @@ 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" />
<link rel="icon" type="image/svg+xml" href="/v1/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Cakey's home directory</title>

View file

@ -8,7 +8,7 @@ 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" />
<link rel="icon" type="image/svg+xml" href="/v1/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Cakey's home directory</title>
@ -57,7 +57,7 @@ import FriendsRow from "../../Components/v1/FriendsRow.astro";
>Arch</a
> with KDE, which is a really nice combo.
</p>
<img src="/Assets/Homepage/desktop.jpg" />
<img src="/v1/Assets/Homepage/desktop.jpg" />
</span>
<div class="commandline">
@ -74,7 +74,7 @@ import FriendsRow from "../../Components/v1/FriendsRow.astro";
resonates with me so much, both in the anime ending, and the
movie.
</p>
<img class="small" src="/Assets/Homepage/thirdimpact.png" />
<img class="small" src="/v1/Assets/Homepage/thirdimpact.png" />
</span>
<p>