diff --git a/src/routes/projects/[category]/[id]/+page.svelte b/src/routes/projects/[category]/[id]/+page.svelte index 9fb1d89..4220789 100644 --- a/src/routes/projects/[category]/[id]/+page.svelte +++ b/src/routes/projects/[category]/[id]/+page.svelte @@ -49,6 +49,7 @@ color: var(--color-text); padding: 4px 12px; margin: 0; + font-weight: 600; border-top: var(--border-style) var(--border-dash-size) var(--color-highlight-alt); border-bottom: var(--border-style) var(--border-dash-size) var(--color-highlight-alt); diff --git a/src/routes/projects/[category]/[id]/+page.ts b/src/routes/projects/[category]/[id]/+page.ts index 72f25e5..4840a7d 100644 --- a/src/routes/projects/[category]/[id]/+page.ts +++ b/src/routes/projects/[category]/[id]/+page.ts @@ -3,17 +3,8 @@ import { projects, type Project } from '../../projects2'; export async function load({ params }) { const post = await import(`../../${params.category}/${params.id}.md`); - // const tag: string = `${params.year}/${params.date}`; // link to the page. not to be confused with tags. i know it's confusing naming - const projectDetails = projects.find((p: Project) => p.category.toString() == params.category.toString() && p.id == params.id); + const projectDetails: Project = projects.find((p: Project) => p.category.toString() == params.category.toString() && p.id == params.id)!; const content = post.default; - // const title: string = postValues?.title ?? ""; - // const subtitle: string = postValues?.subtitle ?? ""; - // const date: string = postValues?.date ?? ""; - // const dateUpdated: string = postValues?.dateUpdated ?? ""; - // const time: string = postValues?.time ?? ""; - // const banner: string = postValues?.banner ?? ""; - // const description: string = postValues?.description ?? ""; - // const tags: BlogPostTag[] = postValues?.tags ?? []; // blog post tags. should be renamed 'keywords' return { content, diff --git a/src/routes/projects/projects2.ts b/src/routes/projects/projects2.ts index b7fe5d0..4bceb97 100644 --- a/src/routes/projects/projects2.ts +++ b/src/routes/projects/projects2.ts @@ -9,6 +9,7 @@ export interface Project { description: string; isOngoing: boolean; // whether the project is currently active (true) or a past project (false) date: string; + dateUpdated?: string; status: ProjectStatus; links: Link[]; // may pass an empty array isHighlight?: boolean; @@ -128,7 +129,7 @@ export const projects: Project[] = [ { category: ProjectCategory.GAMES, id: "magician", - banner: "/projects/magician/banner.webp", + banner: "banner.webp", bannerAlt: "", title: "Magician", subtitle: "Online Multiplayer Card Game", @@ -146,7 +147,7 @@ export const projects: Project[] = [ { category: ProjectCategory.GAMES, id: "projektike", - banner: "/projects/projektike/banner.webp", + banner: "banner.webp", bannerAlt: "", title: "Projektike", subtitle: "Local PvP Game", @@ -162,7 +163,7 @@ export const projects: Project[] = [ { category: ProjectCategory.ELECTRONICS, id: "3ds-usb-c", - banner: "", + banner: "finished.webp", bannerAlt: "", title: "3DS USB-C mod", subtitle: "DIY charging port mod", @@ -198,7 +199,7 @@ export const projects: Project[] = [ { category: ProjectCategory.ELECTRONICS, id: "deej0461", - banner: "", + banner: "finished.webp", bannerAlt: "", title: "deej0461", subtitle: "PC companion audio source controller", @@ -212,7 +213,7 @@ export const projects: Project[] = [ { category: ProjectCategory.APPS, id: "weserplaner", - banner: "/projects/weserplaner/banner.webp", + banner: "banner.webp", bannerAlt: "", title: "WeserPlaner", subtitle: "University Timetable & Canteen Info App", @@ -236,7 +237,7 @@ export const projects: Project[] = [ { category: ProjectCategory.APPS, id: "textbasic", - banner: "", + banner: "icon.webp", bannerAlt: "", title: "Text Basic", subtitle: "Extremely Basic Text Widget App", @@ -258,7 +259,7 @@ export const projects: Project[] = [ { category: ProjectCategory.GAMES, id: "swordsnstuff", - banner: "/projects/swordsnstuff/banner.webp", + banner: "banner.webp", bannerAlt: "", title: "Swords & Stuff", subtitle: "Unity 2D RPG", @@ -276,7 +277,7 @@ export const projects: Project[] = [ { category: ProjectCategory.GAMES, id: "tads", - banner: "/projects/tads/banner.webp", + banner: "banner.webp", bannerAlt: "", title: "Totally Accurate Dating Simulator", subtitle: "HTML Text Adventure", @@ -300,7 +301,7 @@ export const projects: Project[] = [ { category: ProjectCategory.MUSIC, id: "dreamworld", - banner: "/projects/dreamworld/banner.webp", + banner: "banner.webp", bannerAlt: "", title: "Dreamworld", subtitle: "My First Album", @@ -320,7 +321,7 @@ export const projects: Project[] = [ { category: ProjectCategory.APPS, id: "qwark", - banner: "", + banner: "icon.webp", bannerAlt: "", title: "Qwark Grade Log", subtitle: "Grade Logging App", @@ -338,7 +339,7 @@ export const projects: Project[] = [ { category: ProjectCategory.APPS, id: "avhplan", - banner: "", + banner: "icon.webp", bannerAlt: "", title: "AvH-Vertretungsplan", subtitle: "Substitution Plan App", @@ -362,7 +363,7 @@ export const projects: Project[] = [ { category: ProjectCategory.MUSIC, id: "anewbeginning", - banner: "", + banner: "cover.webp", bannerAlt: "", title: "A New Beginning", subtitle: "Coming-of-age EP", @@ -382,7 +383,7 @@ export const projects: Project[] = [ { category: ProjectCategory.MUSIC, id: "soundcloud", - banner: "", + banner: "icon2.webp", bannerAlt: "", title: "Soundcloud", subtitle: "Demo Dump & Archive", diff --git a/static/projects/avhplan/icon.webp b/static/projects/apps/avhplan/icon.webp similarity index 100% rename from static/projects/avhplan/icon.webp rename to static/projects/apps/avhplan/icon.webp diff --git a/static/projects/qwark/icon.webp b/static/projects/apps/qwark/icon.webp similarity index 100% rename from static/projects/qwark/icon.webp rename to static/projects/apps/qwark/icon.webp diff --git a/static/projects/textbasic/icon.webp b/static/projects/apps/textbasic/icon.webp similarity index 100% rename from static/projects/textbasic/icon.webp rename to static/projects/apps/textbasic/icon.webp diff --git a/static/projects/weserplaner/banner.webp b/static/projects/apps/weserplaner/banner.webp similarity index 100% rename from static/projects/weserplaner/banner.webp rename to static/projects/apps/weserplaner/banner.webp diff --git a/static/projects/weserplaner/icon.webp b/static/projects/apps/weserplaner/icon.webp similarity index 100% rename from static/projects/weserplaner/icon.webp rename to static/projects/apps/weserplaner/icon.webp diff --git a/static/projects/magician/banner.webp b/static/projects/games/magician/banner.webp similarity index 100% rename from static/projects/magician/banner.webp rename to static/projects/games/magician/banner.webp diff --git a/static/projects/projektike/banner.webp b/static/projects/games/projektike/banner.webp similarity index 100% rename from static/projects/projektike/banner.webp rename to static/projects/games/projektike/banner.webp diff --git a/static/projects/swordsnstuff/banner.webp b/static/projects/games/swordsnstuff/banner.webp similarity index 100% rename from static/projects/swordsnstuff/banner.webp rename to static/projects/games/swordsnstuff/banner.webp diff --git a/static/projects/tads/banner.webp b/static/projects/games/tads/banner.webp similarity index 100% rename from static/projects/tads/banner.webp rename to static/projects/games/tads/banner.webp diff --git a/static/projects/tads/icon.webp b/static/projects/games/tads/icon.webp similarity index 100% rename from static/projects/tads/icon.webp rename to static/projects/games/tads/icon.webp diff --git a/static/projects/anewbeginning/cover.webp b/static/projects/music/anewbeginning/cover.webp similarity index 100% rename from static/projects/anewbeginning/cover.webp rename to static/projects/music/anewbeginning/cover.webp diff --git a/static/projects/dreamworld/banner.webp b/static/projects/music/dreamworld/banner.webp similarity index 100% rename from static/projects/dreamworld/banner.webp rename to static/projects/music/dreamworld/banner.webp diff --git a/static/projects/dreamworld/icon.webp b/static/projects/music/dreamworld/icon.webp similarity index 100% rename from static/projects/dreamworld/icon.webp rename to static/projects/music/dreamworld/icon.webp diff --git a/static/projects/soundcloud/icon.webp b/static/projects/music/soundcloud/icon.webp similarity index 100% rename from static/projects/soundcloud/icon.webp rename to static/projects/music/soundcloud/icon.webp diff --git a/static/projects/music/soundcloud/icon2.webp b/static/projects/music/soundcloud/icon2.webp new file mode 100644 index 0000000..d4309f3 Binary files /dev/null and b/static/projects/music/soundcloud/icon2.webp differ diff --git a/static/projects/small/crate.webp b/static/projects/small/crate.webp deleted file mode 100644 index 2ffe632..0000000 Binary files a/static/projects/small/crate.webp and /dev/null differ