main page shenanigans; added dateUpdate attribute to blog posts; updated banner to display them
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
let {
|
let {
|
||||||
title,
|
title,
|
||||||
date = "",
|
date = "", // date posted
|
||||||
|
dateUpdated = "",
|
||||||
subtitle = "",
|
subtitle = "",
|
||||||
banner = "",
|
banner = "",
|
||||||
bannerAlt = "",
|
bannerAlt = "",
|
||||||
@@ -9,6 +10,7 @@
|
|||||||
}: {
|
}: {
|
||||||
title: string;
|
title: string;
|
||||||
date?: string;
|
date?: string;
|
||||||
|
dateUpdated?: string;
|
||||||
subtitle?: string;
|
subtitle?: string;
|
||||||
banner?: string;
|
banner?: string;
|
||||||
bannerAlt?: string;
|
bannerAlt?: string;
|
||||||
@@ -19,14 +21,21 @@
|
|||||||
|
|
||||||
{#snippet titles({title, subtitle, date}: {title: string, subtitle: string, date: string})}
|
{#snippet titles({title, subtitle, date}: {title: string, subtitle: string, date: string})}
|
||||||
<div class="title-container">
|
<div class="title-container">
|
||||||
<h1 class="title">{title}</h1>
|
<div class="title-text-container">
|
||||||
{#if subtitle}
|
<h1 class="title">{title}</h1>
|
||||||
<p class="subtitle">[ {subtitle} ]</p>
|
{#if subtitle}
|
||||||
|
<p class="subtitle">[ {subtitle} ]</p>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{#if date}
|
||||||
|
<div class="date-container">
|
||||||
|
<p class="date">posted :: {date}</p>
|
||||||
|
{#if dateUpdated}
|
||||||
|
<p class="date">last updated :: {dateUpdated}</p>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if date}
|
|
||||||
<p class="date">» {date}</p>
|
|
||||||
{/if}
|
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -55,8 +64,8 @@
|
|||||||
.title-container {
|
.title-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: flex-end;
|
/* align-items: flex-end; */
|
||||||
gap: 12px;
|
gap: 16px;
|
||||||
margin: var(--margin-header-top) 0 var(--margin-header-bottom) 0;
|
margin: var(--margin-header-top) 0 var(--margin-header-bottom) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +74,19 @@
|
|||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title-text-container {
|
||||||
|
width: fit-content;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.date-container {
|
||||||
|
width: fit-content;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
@@ -72,14 +94,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.date {
|
.date {
|
||||||
font-weight:700;
|
font-weight: 500;
|
||||||
font-size: 1.3rem;
|
font-family: var(--font-mono);
|
||||||
margin-top: 0;
|
font-size: 1.0rem;
|
||||||
|
line-height: 1.4rem;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 0;
|
||||||
color: var(--color-highlight);
|
color: var(--color-highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
|
/* width: fit-content; */
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 1.0rem;
|
font-size: 1.0rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -148,7 +148,7 @@
|
|||||||
|
|
||||||
--font-lightyears: 'LIGHTYEARS', sans-serif;
|
--font-lightyears: 'LIGHTYEARS', sans-serif;
|
||||||
|
|
||||||
--font-size-h1: 2.0rem;
|
--font-size-h1: 2.2rem;
|
||||||
--font-size-h2: 1.5rem;
|
--font-size-h2: 1.5rem;
|
||||||
--font-size-h3: 1.3rem;
|
--font-size-h3: 1.3rem;
|
||||||
--font-size-h4: 1.2rem;
|
--font-size-h4: 1.2rem;
|
||||||
|
|||||||
@@ -98,39 +98,43 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div>
|
<div class="split-intro-container">
|
||||||
|
<div>
|
||||||
|
<img class="me-img pixelated-img" src="me.webp" alt="Pixelated mirror selfie of the website creator wearing a green shirt, fitting the website theme. The face is obscured." title="hi!">
|
||||||
|
|
||||||
<img class="me-img pixelated-img" src="me.webp" alt="Pixelated mirror selfie of the website creator wearing a green shirt, fitting the website theme. The face is obscured." title="hi!">
|
<p>Hi! I'm Deniz. Welcome to my website! I keep rewriting this introduction but I'm REALLY bad at this type of stuff.</p>
|
||||||
|
<p>I made this website because I really don't like modern social media and I wanted a more creative way of expressing myself without giving in to the attention economy or submitting all my data including my soul to some megacorp. That's why you'll find a bunch of stuff here that interests me: programming, gamedev, 3D modelling, electronic music, drawing, electronics and microcontroller programming, Linux and self-hosting, and probably some other stuff too. I am currently developing at least one game and I am also posting random things on my blog, both of which you can find linked above and below.</p>
|
||||||
|
<p>I listen to A LOT of music (fav artists: <a href="https://acloudyskye.bandcamp.com/">acloudyskye</a>, <a href="https://jaronsteele.bandcamp.com/">Jaron</a>, <a href="https://janeremover.bandcamp.com/">Jane Remover</a>) and I enjoy dabbling around in <a href="https://godotengine.org/">Godot</a> and <a href="https://blender.org/">Blender</a>. I also use <a href="https://fedoraproject.org/">Fedora KDE</a>... btw. Want to know more about me and this website? Firstly, <i>why?</i> But also, <a href="/meta/about">here</a>!</p>
|
||||||
|
<p>irl I am from 🇩🇪 Northern Germany and studying to become a secondary school teacher.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>Hi! I'm Deniz. Welcome to my website! I keep rewriting this introduction but I'm REALLY bad at this type of stuff.</p>
|
<div>
|
||||||
<p>I made this website because I really don't like modern social media and I wanted a more creative way of expressing myself without giving in to the attention economy or submitting all my data including my soul to some megacorp. That's why you'll find a bunch of stuff here that interests me: programming, gamedev, 3D modelling, electronic music, drawing, electronics and microcontroller programming, Linux and self-hosting, and probably some other stuff too. I am currently developing at least one game and I am also posting random things on my blog, both of which you can find linked above and below.</p>
|
<div class="sidebox-container">
|
||||||
<p>I listen to A LOT of music (fav artists: <a href="https://acloudyskye.bandcamp.com/">acloudyskye</a>, <a href="https://jaronsteele.bandcamp.com/">Jaron</a>, <a href="https://janeremover.bandcamp.com/">Jane Remover</a>) and I enjoy dabbling around in <a href="https://godotengine.org/">Godot</a> and <a href="https://blender.org/">Blender</a>. I also use <a href="https://fedoraproject.org/">Fedora KDE</a>... btw. Want to know more about me and this website? Firstly, <i>why?</i> But also, <a href="/meta/about">here</a>!</p>
|
<h4 class="sidebox-header">heads-up</h4>
|
||||||
<p>irl I am from 🇩🇪 Northern Germany and studying to become a secondary school teacher.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="split-container">
|
|
||||||
<div class="meta-vertical-container">
|
|
||||||
<div class="meta-container info-container">
|
|
||||||
<a class="status-header-link" href="/"><h4 class="update-header">latest status</h4></a>
|
|
||||||
<p class="status-content">{latestStatusContent}</p>
|
|
||||||
<span class="status-timestamp">:: {latestStatusTimestamp}</span>
|
|
||||||
</div>
|
|
||||||
<div class="meta-container info-container">
|
|
||||||
<h4 class="update-header">heads-up</h4>
|
|
||||||
<p>This website works best on Firefox and other Gecko-based browsers! All pages <i>should</i> be responsive and work on mobile.</p>
|
<p>This website works best on Firefox and other Gecko-based browsers! All pages <i>should</i> be responsive and work on mobile.</p>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<a class="sidebox-header-link" href="/"><h4 class="sidebox-header">latest status</h4></a>
|
||||||
|
<p class="status-content">"{latestStatusContent}"</p>
|
||||||
|
<span class="status-timestamp">:: {latestStatusTimestamp}</span>
|
||||||
|
|
||||||
|
<!-- <hr>
|
||||||
|
|
||||||
|
<a class="sidebox-header-link" href="/meta/updates"><h4 class="sidebox-header">website updates <span class="small-supertext">(new!)</span></h4></a>
|
||||||
|
{#each updateEntriesTrimmed as entry}
|
||||||
|
<UpdateEntry {entry} />
|
||||||
|
{/each} -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="meta-container update-container">
|
|
||||||
<a class="update-header-link" href="/meta/updates"><h4 class="update-header">website updates <span class="small-supertext">(new!)</span></h4></a>
|
|
||||||
{#each updateEntriesTrimmed as entry}
|
|
||||||
<UpdateEntry {entry} />
|
|
||||||
{/each}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
<GalleryRow entries={galleryTopRow} />
|
<GalleryRow entries={galleryTopRow} />
|
||||||
<GalleryRow entries={galleryBottomRow} />
|
<GalleryRow entries={galleryBottomRow} />
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
<div class="split-container">
|
<div class="split-container">
|
||||||
<div class="webring-container">
|
<div class="webring-container">
|
||||||
@@ -174,6 +178,11 @@
|
|||||||
</Content>
|
</Content>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.split-intro-container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 3fr 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
.split-container {
|
.split-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -219,36 +228,24 @@
|
|||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.meta-vertical-container {
|
.sidebox-container {
|
||||||
flex: 3;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.meta-container {
|
|
||||||
padding: 8px 24px;
|
padding: 8px 24px;
|
||||||
backdrop-filter: blur(var(--blur-radius-background));
|
backdrop-filter: blur(var(--blur-radius-background));
|
||||||
border-width: var(--border-dash-size);
|
border-width: var(--border-dash-size);
|
||||||
border-style: var(--border-style);
|
border-style: var(--border-style);
|
||||||
|
border-color: var(--color-highlight-alt);
|
||||||
/* transition: border-radius var(--duration-animation) var(--anim-curve); */
|
/* transition: border-radius var(--duration-animation) var(--anim-curve); */
|
||||||
/* border-radius: var(--border-radius); */
|
/* border-radius: var(--border-radius); */
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-container {
|
.sidebox-container hr {
|
||||||
border-color: var(--color-highlight-alt);
|
border-color: var(--color-highlight-alt);
|
||||||
}
|
margin: 16px 0;
|
||||||
.info-container p, .info-container a {
|
|
||||||
font-size: 1.0rem;
|
|
||||||
line-height: 1.4rem;
|
|
||||||
}
|
|
||||||
.info-container > h4 {
|
|
||||||
color: var(--color-highlight-alt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.update-container {
|
.sidebox-container p, .sidebox-container a {
|
||||||
border-color: var(--color-highlight);
|
font-size: 0.9rem;
|
||||||
flex: 4;
|
line-height: 1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-content {
|
.status-content {
|
||||||
@@ -278,29 +275,25 @@
|
|||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.update-header-link, .status-header-link {
|
.sidebox-header {
|
||||||
|
font-size: 1.0rem;
|
||||||
|
line-height: 1.0rem;
|
||||||
|
margin-top: 8px;
|
||||||
|
color: var(--color-highlight-alt);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebox-header-link {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.update-header-link:hover {
|
.sidebox-header-link:hover {
|
||||||
text-decoration-color: var(--color-highlight);
|
|
||||||
}
|
|
||||||
.status-header-link:hover {
|
|
||||||
text-decoration-color: var(--color-highlight-alt);
|
text-decoration-color: var(--color-highlight-alt);
|
||||||
}
|
}
|
||||||
.update-header-link:hover, .status-header-link:hover {
|
.sidebox-header-link:hover {
|
||||||
text-decoration-line: underline;
|
text-decoration-line: underline;
|
||||||
text-decoration-style: dashed;
|
text-decoration-style: dashed;
|
||||||
text-decoration-thickness: var(--border-dash-size);
|
text-decoration-thickness: var(--border-dash-size);
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-header-link .update-header {
|
|
||||||
color: var(--color-highlight-alt);
|
|
||||||
}
|
|
||||||
|
|
||||||
.update-header {
|
|
||||||
margin-top: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gradient-title {
|
.gradient-title {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
90deg,
|
90deg,
|
||||||
|
|||||||
@@ -15,7 +15,8 @@
|
|||||||
<Content>
|
<Content>
|
||||||
<Banner2
|
<Banner2
|
||||||
title="{data.title}"
|
title="{data.title}"
|
||||||
date="{data.date}, {data.time}"
|
date="{data.date}"
|
||||||
|
dateUpdated="{data.dateUpdated}"
|
||||||
banner="{data.banner}"
|
banner="{data.banner}"
|
||||||
bannerAlt="Banner for blog post '{data.title}'" />
|
bannerAlt="Banner for blog post '{data.title}'" />
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ export async function load({ params }) {
|
|||||||
const content = post.default;
|
const content = post.default;
|
||||||
const title: string = postValues?.title ?? "";
|
const title: string = postValues?.title ?? "";
|
||||||
const date: string = postValues?.date ?? "";
|
const date: string = postValues?.date ?? "";
|
||||||
|
const dateUpdated: string = postValues?.dateUpdated ?? "";
|
||||||
const time: string = postValues?.time ?? "";
|
const time: string = postValues?.time ?? "";
|
||||||
const banner: string = postValues?.banner ?? "";
|
const banner: string = postValues?.banner ?? "";
|
||||||
const description: string = postValues?.description ?? "";
|
const description: string = postValues?.description ?? "";
|
||||||
@@ -17,6 +18,7 @@ export async function load({ params }) {
|
|||||||
title,
|
title,
|
||||||
banner,
|
banner,
|
||||||
date,
|
date,
|
||||||
|
dateUpdated,
|
||||||
time,
|
time,
|
||||||
tag,
|
tag,
|
||||||
description,
|
description,
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ export interface BlogPostDetails {
|
|||||||
// Format: HH:mm
|
// Format: HH:mm
|
||||||
time: string;
|
time: string;
|
||||||
|
|
||||||
|
dateUpdated?: string;
|
||||||
|
|
||||||
// Banner image title. If empty, defaults to banner.webp
|
// Banner image title. If empty, defaults to banner.webp
|
||||||
banner: string;
|
banner: string;
|
||||||
bannerAlt: string;
|
bannerAlt: string;
|
||||||
@@ -67,6 +69,7 @@ export const posts: BlogPostLink[] = [
|
|||||||
post: {
|
post: {
|
||||||
date: "2026-03-17",
|
date: "2026-03-17",
|
||||||
time: "17:00",
|
time: "17:00",
|
||||||
|
dateUpdated: "2026-03-25",
|
||||||
banner: "banner.webp",
|
banner: "banner.webp",
|
||||||
bannerAlt: "A Microsoft Surface Pro 8 displaying a Blue Screen of Death.",
|
bannerAlt: "A Microsoft Surface Pro 8 displaying a Blue Screen of Death.",
|
||||||
title: "How To: Set Up SvelteKit Frontend + PostgreSQL Backend",
|
title: "How To: Set Up SvelteKit Frontend + PostgreSQL Backend",
|
||||||
@@ -110,6 +113,7 @@ export const posts: BlogPostLink[] = [
|
|||||||
post: {
|
post: {
|
||||||
date: "2026-02-05",
|
date: "2026-02-05",
|
||||||
time: "22:55",
|
time: "22:55",
|
||||||
|
dateUpdated: "2026-03-05",
|
||||||
banner: "banner.webp",
|
banner: "banner.webp",
|
||||||
bannerAlt: "A Leuchtturm-branded notebook with a copper-coloured cover. An eraser, a pencil sharpener, and a Faber-Castell pencil are lying on top.",
|
bannerAlt: "A Leuchtturm-branded notebook with a copper-coloured cover. An eraser, a pencil sharpener, and a Faber-Castell pencil are lying on top.",
|
||||||
title: "Drawing Challenge",
|
title: "Drawing Challenge",
|
||||||
|
|||||||
Reference in New Issue
Block a user