Preparation for v2
Before Width: | Height: | Size: 448 KiB After Width: | Height: | Size: 448 KiB |
Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 218 KiB |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 414 B |
BIN
App/public/v2/Assets/background.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
App/public/v2/Assets/border.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
App/public/v2/Assets/header-pic.png
Normal file
After Width: | Height: | Size: 68 KiB |
|
@ -4,7 +4,8 @@
|
||||||
<div>
|
<div>
|
||||||
<span><a href="/">Home/</a></span>
|
<span><a href="/">Home/</a></span>
|
||||||
<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>
|
</div>
|
||||||
|
|
||||||
|
|
0
App/src/Components/v2/button.astro
Normal file
8
App/src/Components/v2/navbar.astro
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
import "../../Styles/v2/navbar.css";
|
||||||
|
---
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<a>home</a>
|
||||||
|
<a>blog</a>
|
||||||
|
</nav>
|
13
App/src/Components/v2/titlebar.astro
Normal 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>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "victor mono";
|
font-family: "victor mono";
|
||||||
src: url("/Assets/VictorMono-Regular.ttf");
|
src: url("/v1/Assets/VictorMono-Regular.ttf");
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
@ -127,6 +127,7 @@ hr {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.commandline>* {
|
.commandline>* {
|
||||||
color: var(--highlight-color) !important;
|
color: var(--highlight-color) !important;
|
||||||
}
|
}
|
||||||
|
|
44
App/src/Styles/v2/common.css
Normal 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;
|
||||||
|
}
|
0
App/src/Styles/v2/navbar.css
Normal file
16
App/src/Styles/v2/titlebar.css
Normal 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;
|
||||||
|
}
|
|
@ -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>
|
|
24
App/src/layouts/v2/common.astro
Normal 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>
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
import CommonLayout from "../layouts/v2/common.astro";
|
||||||
|
---
|
||||||
|
|
||||||
|
<CommonLayout page_title="cake">pallw</CommonLayout>
|
|
@ -10,7 +10,7 @@ const posts = await Astro.glob("./posts/*.md");
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<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="viewport" content="width=device-width" />
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>Cakey's home directory</title>
|
<title>Cakey's home directory</title>
|
|
@ -8,7 +8,7 @@ import FriendsRow from "../../Components/v1/FriendsRow.astro";
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<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="viewport" content="width=device-width" />
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>Cakey's home directory</title>
|
<title>Cakey's home directory</title>
|
||||||
|
@ -57,7 +57,7 @@ import FriendsRow from "../../Components/v1/FriendsRow.astro";
|
||||||
>Arch</a
|
>Arch</a
|
||||||
> with KDE, which is a really nice combo.
|
> with KDE, which is a really nice combo.
|
||||||
</p>
|
</p>
|
||||||
<img src="/Assets/Homepage/desktop.jpg" />
|
<img src="/v1/Assets/Homepage/desktop.jpg" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="commandline">
|
<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
|
resonates with me so much, both in the anime ending, and the
|
||||||
movie.
|
movie.
|
||||||
</p>
|
</p>
|
||||||
<img class="small" src="/Assets/Homepage/thirdimpact.png" />
|
<img class="small" src="/v1/Assets/Homepage/thirdimpact.png" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<p>
|
<p>
|