Files
pages/src/routes/feed/feed.ts

75 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-04-26 10:46:56 +02:00
import { type A11yImage } from "$lib/media/a11y-img";
export interface FeedEntry {
id: string;
title: string;
subtitle: string;
date: string;
posted: string;
2026-04-26 10:46:56 +02:00
images: A11yImage[];
}
export let entries: FeedEntry[] = [
{
id: "electronics/nintendo-repairs",
title: "Nintendo Handheld Repairs",
subtitle: "it's been 8 years...",
date: "2026-04-16 2026-04-23",
posted: "2026-04-24",
images: [
{
src: "cardboard.webp",
alt: "A Nintendo Switch with its back removed. The SD card reader connector is obstructed by a pink piece of cardboard.",
},
{
src: "knifetoswitch.webp",
alt: "The SD card reader connector of a Nintendo Switch currently being stabbed with a knife in an attempt at repair.",
},
{
src: "3dsopen.webp",
alt: "A 2011 Nintendo 3DS with its back covers removed on both the top and the bottom half.",
},
{
src: "thread.webp",
alt: "The hinge of a 3DS with some ribbon cables halfway pulled through.",
},
{
src: "threadsuccess.webp",
alt: "The hinge of a 3DS with three ribbon cables successfully pulled through.",
},
{
src: "3dsfunctional.webp",
alt: "A functional 2011 Nintendo 3DS on the home screen, displaying the game 'Zelda: Four Swords Anniversary Edition'",
},
],
},
{
id: "electronics/trans-phone",
title: "Transparent Phone Back",
subtitle: "nowhere to hide!",
date: "2026-04-11 2026-04-12",
posted: "2026-04-12",
images: [
{
src: "scratching.webp",
alt: "The back of a Samsung Galaxy S20 FE lying face-down on a deskmat. Toothpicks, cotton pads, and a metal spudger are lying nearby.",
},
{
src: "halfway.webp",
alt: "A white phone back that's half-scratched off to reveal the clear plastic.",
},
{
src: "clear.webp",
alt: "An entirely clear phone back.",
},
{
src: "final.webp",
alt: "A Samsung Galaxy S20 FE with a clear back inside a clear phone case. The phone has a sticker in the middle of the back that shows a lantern with leaves around it.",
},
],
},
];
export function getLatestPostDate(): string {
return entries[0].posted;
}