Released New Website

This commit is contained in:
2026-08-21 14:48:57 -07:00
parent e58db3d719
commit ade74f1280
86 changed files with 3683 additions and 276 deletions

View File

@@ -0,0 +1,12 @@
import { DATA_PATHS } from '../config/constants.js';
import { fetchJsonArray } from './json-source.js';
import { youtubeIdFromUrl } from '../utils/youtube.js';
export async function getShowcaseVideos() {
const links = await fetchJsonArray(DATA_PATHS.showcases);
const videos = links
.map((url) => ({ url, id: youtubeIdFromUrl(url) }))
.filter((video) => video.id);
if (!videos.length) throw new Error('No valid showcase videos found');
return videos;
}