Commit Graph
9 Commits
Author SHA1 Message Date
spaghet 80577d6404 feat: serve site content from Appwrite TablesDB with .md fallback
Replace astro:content getCollection() reads in all 9 content pages with
src/lib/content-source.ts: Appwrite TablesDB (spaghet-home database on
appwrite.spaghet.io) first, bundled src/content/*.md fallback on a
cold-cache outage. Blog/project/legal detail pages flip from prerender
to SSR (content now arrives at request time); sitemap keeps every
detail URL via customPages computed from the bundled .md copies.

- src/lib/appwrite.ts: TablesDB service (node-appwrite), markdown
  rendered through Astro's own satteri+shiki pipeline (dual-theme, same
  config as astro.config.mjs) — article HTML verified byte-identical to
  production. Public reads: tables grant read(any), no secret required.
  60s in-process cache, stale-serving on refresh failure.
- src/lib/__tests__/appwrite.test.ts: 11 tests mocking the SDK boundary
  (the SDK binds its own fetch, so global stubs do not intercept it).
- Draft posts now 302 to /blog and drop off listings/RSS/search at
  request time instead of at build time.
- astro check: 0 errors; vitest: 94 pass; build clean; end-to-end
  verified against live Appwrite and against a forced outage.
2026-11-26 19:29:31 -05:00
spaghet 9e157a4fa3 feat(theme): implement dual light/dark colour token system with WCAG AA contrast
Replace hard-coded hex values and ad-hoc `dark:` variants with a single
semantic token layer in `src/styles/global.css` (`@theme` + `html.dark`
re-declaration), so every component uses the same Tailwind class list in
both modes.

Key changes:
- Define semantic tokens (page, surface, ink, accent, edge, etc.) and raw
  ingredient palette (--color-spaghetti-*, --color-marinara*, etc.)
- Configure dual Shiki themes (light-plus / everforest-dark) with
  `defaultColor: false` for proper per-mode code block colours, replacing
  the old `.prose pre { #1f2937 !important }` hack
- Tint background particles to match the warm cream/espresso palette
  instead of pure black dots
- Document theme rules: add tokens not `dark:` variants, keep colour rules
  inside `@layer`, never target Tailwind utility classes with unlayered
  overrides, route prose colours through `--tw-prose-*` only

All text and interactive elements meet WCAG AA contrast (4.5:1 body, 3:1
large/interactive). Light mode is a warm cream plate with white cards; dark
mode is espresso (#140C08) with raised cards.
2026-11-12 20:48:10 -05:00
spaghet ab6cd7c162 Refactor components and add tests for improved functionality and coverage 2026-11-04 22:16:17 -05:00
spaghet 3fef5d378e chore(deps): upgrade tailwind to v4 via vite plugin
Replace @astrojs/tailwind with @tailwindcss/vite in the Astro config and lockfile to adopt Tailwind CSS v4 and simplify the build setup. Also update Markdown site content with current SpaghetAI/MarvinBlade infrastructure details.
2026-11-04 12:31:58 -05:00
spaghet ac545c4668 chore: migrate hosting documentation from Appwrite to self-hosted
Update README.md and astro.config.mjs to reflect the migration from
Appwrite to self-hosted infrastructure. Remove Appwrite-specific
environment variable schema from Astro config. Add .clinerules and
.cline to .gitignore.
2026-10-15 14:32:15 -04:00
Spaghet 73db6d2cd3 Migrate Astro to latest version and update dependencies
- Updated Astro core package and related integrations to latest versions
- Added environment variable configuration in astro.config.mjs
- Removed deprecated migration plan and favicon.svg files
- Updated Search component to use onCleanup for proper effect cleanup
- Updated Appwrite service integration and configuration
- Removed old migration documentation and scripts
2025-08-22 21:54:30 -04:00
SpaghetGaming 89c5e065de Starting infrastructure for server side image loading 2025-08-14 16:06:25 -04:00
SpaghetGaming 773e8ebaeb Fix Astro configuration error and secure Appwrite integration 2025-08-14 13:16:53 -04:00
spaghet 469482dd8d Upload files to "/" 2025-08-13 00:17:00 -04:00