clavitor/clavitor.ai
James 9a84da34a4 templates: split language/currency selector into two dropdowns
Replaces the combined locale dropdown in base.tmpl with two independent
selectors as requested in issue #10.

Changes:
- Split nav-dropdown--locale into nav-dropdown--language and nav-dropdown--currency
- Language dropdown: flag + 2-letter code (e.g., 🇺🇸 EN)
- Currency dropdown: symbol + 3-letter code (e.g., $ USD)
- Independent JavaScript state management for each selector
- Maintains localStorage persistence for both preferences

Design requirements met:
- Both dropdowns fit within nav bar without wrapping
- Mobile: stack vertically in hamburger menu (CSS already in place)
- 8px gap between selectors using existing spacing vars
- Maintains current hover/click behavior

fixes #10

Author: Luna <luna-20250409-001>
2026-04-09 03:43:26 -04:00
..
admin Address Hans' workflow feedback - make it actionable 2026-04-09 01:10:39 -04:00
fonts Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
templates templates: split language/currency selector into two dropdowns 2026-04-09 03:43:26 -04:00
.DS_Store Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
CLAUDE.md Address Hans' workflow feedback - make it actionable 2026-04-09 01:10:39 -04:00
Makefile Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
OAUTH_SETUP.md Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
README.md Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
apple-touch-icon.png Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
clavitor-logo.svg Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
clavitor-web Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor-web-linux-amd64 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.css clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
clavitor.db Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.gz Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.xz Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.zst Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup-prod-20260408_001632.zst19 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
clavitor.db.backup.20260407_235845 Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
corporate.db Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
favicon.svg Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
go.mod Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
go.sum Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
main.go clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
oauth.go clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
onboarding.go clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
schema.sql Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00
test-for-mme.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-hosted.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-index.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-mobile.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
test-signup.html Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
tlw.go clavitor.ai: oauth, onboarding flow, admin, templates, css 2026-04-08 12:11:05 -04:00
worldmap.svg Multi-project update: import system, edition system, web UI, CLI, website, POP sync 2026-04-05 06:40:40 -04:00

README.md

Styleguide

clavitor.css is the single global stylesheet for all clavitor web surfaces — marketing site (clavitor-web) and the app UI (clavitor).

Rules (no exceptions)

  1. One stylesheet. clavitor.css only. No Tailwind, no inline styles, no <style> blocks.
  2. One rule per class. If you need a variant, add a modifier class (e.g. .card.gold), not a new inline style.
  3. One width. --width: 1280px via .container. Never hardcode a max-width anywhere else.
  4. One padding. --pad: 2rem via .container. Never hardcode horizontal padding.
  5. CSS variables for everything. Colors, spacing, radius, fonts — all via var(--*).

To use in clavitor app

Copy or symlink clavitor.css into clavitor/web/ and embed it. The token set (colors, fonts, radius) is shared — app UI should feel identical to the marketing site.