From 268ffcdd278a3d9cff3bcd952a2010f74da0c624 Mon Sep 17 00:00:00 2001 From: luxick Date: Fri, 17 Apr 2026 10:54:06 +0200 Subject: [PATCH] WIP Redesign --- CLAUDE.md | 16 +- assets.go | 52 ++++ assets/diary/diary-day.html | 12 +- assets/diary/diary-month.html | 12 +- assets/diary/diary-year.html | 12 +- assets/page.html | 117 +++++---- assets/sections.js | 2 +- assets/style.css | 433 +--------------------------------- diary.go | 12 +- main.go | 9 +- render.go | 2 +- 11 files changed, 174 insertions(+), 505 deletions(-) create mode 100644 assets.go diff --git a/CLAUDE.md b/CLAUDE.md index ba3e31c..efff3b1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -54,8 +54,20 @@ Prefer separate, human-readable `.html` files over inlined HTML strings in Go. E - Do not inline JS in templates or merge unrelated features into one file - `ALT+SHIFT` is the modifier for all keyboard shortcuts — do not introduce others - Editor toolbar buttons use `data-action` + `data-key`; adding `data-key` auto-registers the shortcut -- Prefer generic, descriptive CSS classes (`btn`, `btn-small`, `muted`, `danger`) over element-specific names (`save-button`, `cancel-button`, `form-name-input`). Use a modifier + base class pattern (`btn btn-small`) rather than one-off classes that duplicate shared styles. -- Where possible, re-use existing CSS classes + +### CSS / HTML — Pico CSS + +[Pico CSS](https://picocss.com) is the styling framework. Strictly stay within it. + +- Do not add other CSS frameworks, utility libraries, or icon fonts. +- Prefer pico's **class-less semantic HTML**: `