From 01e455d3bf9ba9cbf05159cc4394bee7f908d028 Mon Sep 17 00:00:00 2001 From: denizk0461 Date: Sat, 31 Jan 2026 16:45:01 +0100 Subject: [PATCH] fixed post dates and removed marquee classes from main page --- src/routes/+page.svelte | 56 +++------------------------------------ src/routes/quotes.ts | 58 ----------------------------------------- 2 files changed, 3 insertions(+), 111 deletions(-) delete mode 100644 src/routes/quotes.ts diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 52fe870..79222cb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -4,19 +4,14 @@ import GamedevWebring from "$lib/webrings/gamedev.svelte"; import Gallery, { type GalleryEntry } from "$lib/lists/gallery.svelte"; import LinkList from "$lib/lists/link-list.svelte"; - import { quotes, type Quote } from "./quotes"; import { posts as devlogPosts } from "./projects/projectn5/devlog/posts"; import { posts as blogPosts } from "./blog/posts"; let meImg: string = $state("common/me/a.webp"); - let marqueeQuote: Quote = $state({ - author: "", - content: "", - source: "", - }); - let latestDevlogDate = devlogPosts.values().next().value?.date ?? "could not fetch"; - let latestBlogDate = blogPosts.values().next().value?.date ?? "could not fetch"; + + let latestDevlogDate = devlogPosts[0].post.date; + let latestBlogDate = blogPosts[0].post.date; const galleryEntries: GalleryEntry[] = [ { @@ -51,7 +46,6 @@ onMount(() => { setPicture(); - setMarqueeText(); }); function getRandom(max: number): number { @@ -63,10 +57,6 @@ var selectedPicture = pictures[getRandom(pictures.length)]; meImg = "common/me/" + selectedPicture + ".webp"; }; - - let setMarqueeText = function() { - marqueeQuote = quotes[getRandom(quotes.length)]; - }; @@ -78,11 +68,6 @@

Moin! ~ welcome to my website :)


-

about ↬Deniz, the website developer, small and pixelated↫ me

@@ -113,10 +98,6 @@ -{#snippet marqueeContent({quote, ignoreA11y}: {quote: Quote, ignoreA11y: boolean})} - {quote.content} – {quote.author} [{quote.source}] *** -{/snippet} - \ No newline at end of file diff --git a/src/routes/quotes.ts b/src/routes/quotes.ts deleted file mode 100644 index 1155953..0000000 --- a/src/routes/quotes.ts +++ /dev/null @@ -1,58 +0,0 @@ -export interface Quote { - content: string; - author: string; - source: string; -} - -export let quotes: Quote[] = [ - { - content: "If you live a life in letters you might never really feel alive", - author: "Pierce Fulton", - source: "Life in Letters", - }, - { - content: "Life's a game made for everyone, and love is the prize", - author: "Avicii & Aloe Blacc", - source: "Wake Me Up", - }, - { - content: "We've come a long way since that day, and we will never look back at the faded silhouette", - author: "Avicii & Salem Al Fakir", - source: "Silhouettes", - }, - { - content: "Just hold on tight!", - author: "acloudyskye", - source: "Curses", - }, - { - content: "Can we try to forget again?", - author: "acloudyskye", - source: "Myth", - }, - { - content: "Even if you go, I'll be ok", - author: "Midnight Kids & klei", - source: "Find Your Way", - }, - { - content: "If you see me falling I'll just see you looking up", - author: "Jaron", - source: "ICARUS", - }, - { - content: "Let me simmer down and cover up for I am cooking broth; it don't take a genius to achieve it, it just takes some sauce", - author: "Jaron", - source: "PIECES", - }, - { - content: "When I die, I hope I'm buried in a forest; that is if any of it's left", - author: "brakence", - source: "5g", - }, - { - content: "Seven days a week, it's time to make it count", - author: "Jaron", - source: "PIECES", - }, -]; \ No newline at end of file