From 424cb2a69afc159407fa4f88af2d91a1aae3c09e Mon Sep 17 00:00:00 2001 From: Haylan Date: Tue, 30 Jun 2026 11:23:32 +0200 Subject: [PATCH] Add initial spell data and HTML structure for Oswin Eisenbach's spell cards --- CLAUDE.md | 46 ++ .../oswin-eisenbach/1/disguise-self.json | 18 + characters/oswin-eisenbach/1/identify.json | 19 + .../oswin-eisenbach/1/speak-with-animals.json | 18 + .../cantrip/create-bonfire.json | 20 + .../oswin-eisenbach/cantrip/magic-stone.json | 19 + .../oswin-eisenbach/cantrip/mending.json | 18 + .../cantrip/minor-illusion.json | 19 + characters/oswin-eisenbach/manifest.json | 16 + index.html | 503 ++++++++++++++++++ 10 files changed, 696 insertions(+) create mode 100644 CLAUDE.md create mode 100644 characters/oswin-eisenbach/1/disguise-self.json create mode 100644 characters/oswin-eisenbach/1/identify.json create mode 100644 characters/oswin-eisenbach/1/speak-with-animals.json create mode 100644 characters/oswin-eisenbach/cantrip/create-bonfire.json create mode 100644 characters/oswin-eisenbach/cantrip/magic-stone.json create mode 100644 characters/oswin-eisenbach/cantrip/mending.json create mode 100644 characters/oswin-eisenbach/cantrip/minor-illusion.json create mode 100644 characters/oswin-eisenbach/manifest.json create mode 100644 index.html diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..0a0e286 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,46 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Overview + +This renders printable D&D 5e spell reference cards for a specific character ("Oswin Eisenbach", a Forest Gnome Artificer). `index.html` is the static page (Tailwind CSS, Flowbite, and Google Fonts from CDNs, no build step), but spell data lives in JSON files under `characters/`, loaded at runtime via `fetch()`. + +## Running / Previewing + +`index.html` fetches JSON files, which browsers block on `file://` URLs (CORS). You must serve the directory: + +``` +python3 -m http.server +``` + +then open `http://localhost:8000/`. Opening `index.html` directly will not load any spells. + +## Architecture + +### `index.html` + +1. **` + + + + +
+
+
+
 
+
 
+
+ +
+ + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + + + + \ No newline at end of file