From c45810762a689a2787b29ac5ea442d5caf4a8db0 Mon Sep 17 00:00:00 2001 From: Joren de Graaf Date: Wed, 7 Oct 2026 13:03:22 +0200 Subject: [PATCH] progressing with scss conversion --- frontend/src/entries/admin-audio-preview.js | 3 +- frontend/src/entries/admin-login.js | 3 +- frontend/src/entries/dashboard.js | 17 +- frontend/src/entries/events.js | 7 +- frontend/src/entries/fireworks-home.js | 7 +- frontend/src/entries/home.js | 11 +- frontend/src/entries/legacy-fireworks-home.js | 5 +- frontend/src/entries/login.js | 5 +- frontend/src/entries/map.js | 7 +- frontend/src/entries/member-form.js | 5 +- frontend/src/entries/member-list.js | 5 +- frontend/src/entries/member-success.js | 5 +- frontend/src/entries/not-found.js | 5 +- frontend/src/entries/settings.js | 7 +- frontend/src/styles/README.md | 9 + frontend/src/styles/_settings.scss | 16 + .../src/styles/components/burst-listener.css | 26 - .../src/styles/components/burst-listener.scss | 140 ++++ .../components/fireworks-navigation.css | 104 --- .../components/fireworks-navigation.scss | 161 ++++ ...manual-compass.css => manual-compass.scss} | 77 +- .../components/manual-report-structure.css | 218 ------ .../components/manual-report-structure.scss | 586 +++++++++++++++ frontend/src/styles/fonts.scss | 4 + .../src/styles/pages/admin-audio-preview.css | 1 - .../src/styles/pages/admin-audio-preview.scss | 51 ++ frontend/src/styles/pages/admin-login.css | 1 - frontend/src/styles/pages/admin-login.scss | 153 ++++ frontend/src/styles/pages/dashboard.css | 52 -- frontend/src/styles/pages/dashboard.scss | 362 +++++++++ frontend/src/styles/pages/events.css | 48 -- frontend/src/styles/pages/events.scss | 267 +++++++ frontend/src/styles/pages/fireworks-home.css | 522 ------------- frontend/src/styles/pages/fireworks-home.scss | 650 ++++++++++++++++ frontend/src/styles/pages/home.css | 85 --- frontend/src/styles/pages/home.scss | 415 +++++++++++ .../styles/pages/legacy-fireworks-home.css | 38 - .../styles/pages/legacy-fireworks-home.scss | 450 +++++++++++ frontend/src/styles/pages/login.css | 1 - frontend/src/styles/pages/login.scss | 67 ++ frontend/src/styles/pages/map.css | 17 - frontend/src/styles/pages/map.scss | 424 +++++++++++ frontend/src/styles/pages/member-form.css | 129 ---- frontend/src/styles/pages/member-form.scss | 149 ++++ frontend/src/styles/pages/member-list.css | 209 ------ frontend/src/styles/pages/member-list.scss | 226 ++++++ frontend/src/styles/pages/member-success.css | 127 ---- frontend/src/styles/pages/member-success.scss | 148 ++++ frontend/src/styles/pages/not-found.css | 8 - frontend/src/styles/pages/not-found.scss | 159 ++++ frontend/src/styles/pages/settings.css | 51 -- frontend/src/styles/pages/settings.scss | 700 ++++++++++++++++++ frontend/src/styles/static/hello.scss | 129 ++++ frontend/src/styles/static/project-admin.scss | 175 +++++ frontend/src/styles/theme.css | 117 --- frontend/src/styles/theme.scss | 109 +++ hello/static/hello/style.css | 203 +++-- package-lock.json | 391 ++++++++++ package.json | 7 +- project_admin/static/project_admin/admin.css | 176 ++++- staticfiles/hello/style.css | 203 +++-- staticfiles/project_admin/admin.css | 176 ++++- .../vite/assets/admin-login-CJd637Ns.css | 1 + .../browser-submission-processor-YT5vt2-z.js | 2 + .../browser-yamnet-classifier-ldF6zTfh.js | 1 + .../vite/assets/dashboard-C1NKhBy7.css | 1 + staticfiles/vite/assets/events-eRxioTQd.css | 1 + .../assets/ffmpeg-video-extractor-KJPjcx9x.js | 1 + .../vite/assets/fireworks-home-ojbnZX65.css | 1 + staticfiles/vite/assets/fonts-4o1Uz5dn.css | 1 + .../admin-audio-preview.js-vLZXVaMY.js | 1 + .../src/entries/admin-login.js-Bh9Fp4Fr.js | 1 + .../src/entries/dashboard.js-CKvNQKct.js | 1 + .../src/entries/events.js-DloTmZtv.js | 1 + .../src/entries/fireworks-home.js-CZsCTUTv.js | 2 + .../frontend/src/entries/home.js-c2ypdtO0.js | 1 + .../legacy-fireworks-home.js-Cod9E8XY.js | 1 + .../frontend/src/entries/login.js-PEW1GjqV.js | 1 + .../frontend/src/entries/map.js-Du7o3-in.js | 1 + .../src/entries/member-form.js-Di4vmLCq.js | 1 + .../src/entries/member-list.js-Buj1pYaw.js | 1 + .../src/entries/member-success.js-By5Mf6TX.js | 1 + .../src/entries/not-found.js-BtTrR72f.js | 1 + .../src/entries/settings.js-s58FgvNQ.js | 1 + staticfiles/vite/assets/home-BZbCv9Mm.css | 1 + .../assets/legacy-fireworks-home-C1-s3aRT.css | 1 + staticfiles/vite/assets/login-CxDTcyYu.css | 1 + .../vite/assets/manual-report-D8qXoYte.js | 1 + .../vite/assets/manual-report-DFvFa_Hm.css | 1 + staticfiles/vite/assets/map-ipEW9d4A.css | 1 + .../vite/assets/member-form-CvIJ0BOZ.css | 1 + .../vite/assets/member-list-DxFGu1JS.css | 1 + .../vite/assets/member-success-Ck85tFD-.css | 1 + .../vite/assets/not-found-BuNpIK-z.css | 1 + 94 files changed, 6624 insertions(+), 2039 deletions(-) create mode 100644 frontend/src/styles/README.md create mode 100644 frontend/src/styles/_settings.scss delete mode 100644 frontend/src/styles/components/burst-listener.css create mode 100644 frontend/src/styles/components/burst-listener.scss delete mode 100644 frontend/src/styles/components/fireworks-navigation.css create mode 100644 frontend/src/styles/components/fireworks-navigation.scss rename frontend/src/styles/components/{manual-compass.css => manual-compass.scss} (50%) delete mode 100644 frontend/src/styles/components/manual-report-structure.css create mode 100644 frontend/src/styles/components/manual-report-structure.scss create mode 100644 frontend/src/styles/fonts.scss delete mode 100644 frontend/src/styles/pages/admin-audio-preview.css create mode 100644 frontend/src/styles/pages/admin-audio-preview.scss delete mode 100644 frontend/src/styles/pages/admin-login.css create mode 100644 frontend/src/styles/pages/admin-login.scss delete mode 100644 frontend/src/styles/pages/dashboard.css create mode 100644 frontend/src/styles/pages/dashboard.scss delete mode 100644 frontend/src/styles/pages/events.css create mode 100644 frontend/src/styles/pages/events.scss delete mode 100644 frontend/src/styles/pages/fireworks-home.css create mode 100644 frontend/src/styles/pages/fireworks-home.scss delete mode 100644 frontend/src/styles/pages/home.css create mode 100644 frontend/src/styles/pages/home.scss delete mode 100644 frontend/src/styles/pages/legacy-fireworks-home.css create mode 100644 frontend/src/styles/pages/legacy-fireworks-home.scss delete mode 100644 frontend/src/styles/pages/login.css create mode 100644 frontend/src/styles/pages/login.scss delete mode 100644 frontend/src/styles/pages/map.css create mode 100644 frontend/src/styles/pages/map.scss delete mode 100644 frontend/src/styles/pages/member-form.css create mode 100644 frontend/src/styles/pages/member-form.scss delete mode 100644 frontend/src/styles/pages/member-list.css create mode 100644 frontend/src/styles/pages/member-list.scss delete mode 100644 frontend/src/styles/pages/member-success.css create mode 100644 frontend/src/styles/pages/member-success.scss delete mode 100644 frontend/src/styles/pages/not-found.css create mode 100644 frontend/src/styles/pages/not-found.scss delete mode 100644 frontend/src/styles/pages/settings.css create mode 100644 frontend/src/styles/pages/settings.scss create mode 100644 frontend/src/styles/static/hello.scss create mode 100644 frontend/src/styles/static/project-admin.scss delete mode 100644 frontend/src/styles/theme.css create mode 100644 frontend/src/styles/theme.scss create mode 100644 staticfiles/vite/assets/admin-login-CJd637Ns.css create mode 100644 staticfiles/vite/assets/browser-submission-processor-YT5vt2-z.js create mode 100644 staticfiles/vite/assets/browser-yamnet-classifier-ldF6zTfh.js create mode 100644 staticfiles/vite/assets/dashboard-C1NKhBy7.css create mode 100644 staticfiles/vite/assets/events-eRxioTQd.css create mode 100644 staticfiles/vite/assets/ffmpeg-video-extractor-KJPjcx9x.js create mode 100644 staticfiles/vite/assets/fireworks-home-ojbnZX65.css create mode 100644 staticfiles/vite/assets/fonts-4o1Uz5dn.css create mode 100644 staticfiles/vite/assets/frontend/src/entries/admin-audio-preview.js-vLZXVaMY.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/admin-login.js-Bh9Fp4Fr.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/dashboard.js-CKvNQKct.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/events.js-DloTmZtv.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/fireworks-home.js-CZsCTUTv.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/home.js-c2ypdtO0.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/legacy-fireworks-home.js-Cod9E8XY.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/login.js-PEW1GjqV.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/map.js-Du7o3-in.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/member-form.js-Di4vmLCq.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/member-list.js-Buj1pYaw.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/member-success.js-By5Mf6TX.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/not-found.js-BtTrR72f.js create mode 100644 staticfiles/vite/assets/frontend/src/entries/settings.js-s58FgvNQ.js create mode 100644 staticfiles/vite/assets/home-BZbCv9Mm.css create mode 100644 staticfiles/vite/assets/legacy-fireworks-home-C1-s3aRT.css create mode 100644 staticfiles/vite/assets/login-CxDTcyYu.css create mode 100644 staticfiles/vite/assets/manual-report-D8qXoYte.js create mode 100644 staticfiles/vite/assets/manual-report-DFvFa_Hm.css create mode 100644 staticfiles/vite/assets/map-ipEW9d4A.css create mode 100644 staticfiles/vite/assets/member-form-CvIJ0BOZ.css create mode 100644 staticfiles/vite/assets/member-list-DxFGu1JS.css create mode 100644 staticfiles/vite/assets/member-success-Ck85tFD-.css create mode 100644 staticfiles/vite/assets/not-found-BuNpIK-z.css diff --git a/frontend/src/entries/admin-audio-preview.js b/frontend/src/entries/admin-audio-preview.js index 9b9f461..0411ebd 100644 --- a/frontend/src/entries/admin-audio-preview.js +++ b/frontend/src/entries/admin-audio-preview.js @@ -1,2 +1,3 @@ -import "../styles/pages/admin-audio-preview.css"; +import "../styles/fonts.scss"; +import "../styles/pages/admin-audio-preview.scss"; import "../scripts/admin-audio-preview.js"; diff --git a/frontend/src/entries/admin-login.js b/frontend/src/entries/admin-login.js index db93d22..32c77a4 100644 --- a/frontend/src/entries/admin-login.js +++ b/frontend/src/entries/admin-login.js @@ -1 +1,2 @@ -import "../styles/pages/admin-login.css"; +import "../styles/fonts.scss"; +import "../styles/pages/admin-login.scss"; diff --git a/frontend/src/entries/dashboard.js b/frontend/src/entries/dashboard.js index a96eb9c..f9a4261 100644 --- a/frontend/src/entries/dashboard.js +++ b/frontend/src/entries/dashboard.js @@ -1,11 +1,12 @@ -import "../styles/components/fireworks-navigation.css"; -import "../styles/pages/fireworks-home.css"; -import "../styles/pages/map.css"; -import "../styles/pages/dashboard.css"; -import "../styles/components/burst-listener.css"; -import "../styles/components/manual-compass.css"; -import "../styles/components/manual-report-structure.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/components/fireworks-navigation.scss"; +import "../styles/pages/fireworks-home.scss"; +import "../styles/pages/map.scss"; +import "../styles/pages/dashboard.scss"; +import "../styles/components/burst-listener.scss"; +import "../styles/components/manual-compass.scss"; +import "../styles/components/manual-report-structure.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; import "../scripts/manual-report.js"; import "../scripts/audio-upload.js"; diff --git a/frontend/src/entries/events.js b/frontend/src/entries/events.js index 9224704..cb71edb 100644 --- a/frontend/src/entries/events.js +++ b/frontend/src/entries/events.js @@ -1,4 +1,5 @@ -import "../styles/components/fireworks-navigation.css"; -import "../styles/pages/events.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/components/fireworks-navigation.scss"; +import "../styles/pages/events.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; diff --git a/frontend/src/entries/fireworks-home.js b/frontend/src/entries/fireworks-home.js index 607bdec..f38220b 100644 --- a/frontend/src/entries/fireworks-home.js +++ b/frontend/src/entries/fireworks-home.js @@ -1,5 +1,6 @@ -import "../styles/components/fireworks-navigation.css"; -import "../styles/pages/fireworks-home.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/components/fireworks-navigation.scss"; +import "../styles/pages/fireworks-home.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; import "../scripts/audio-upload.js"; diff --git a/frontend/src/entries/home.js b/frontend/src/entries/home.js index 9e08f9e..46dbe14 100644 --- a/frontend/src/entries/home.js +++ b/frontend/src/entries/home.js @@ -1,7 +1,8 @@ -import "../styles/pages/home.css"; -import "../styles/components/burst-listener.css"; -import "../styles/components/manual-compass.css"; -import "../styles/components/manual-report-structure.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/home.scss"; +import "../styles/components/burst-listener.scss"; +import "../styles/components/manual-compass.scss"; +import "../styles/components/manual-report-structure.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; import "../scripts/manual-report.js"; diff --git a/frontend/src/entries/legacy-fireworks-home.js b/frontend/src/entries/legacy-fireworks-home.js index d9f0394..64bad62 100644 --- a/frontend/src/entries/legacy-fireworks-home.js +++ b/frontend/src/entries/legacy-fireworks-home.js @@ -1,4 +1,5 @@ -import "../styles/pages/legacy-fireworks-home.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/legacy-fireworks-home.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; import "../scripts/legacy-audio-upload.js"; diff --git a/frontend/src/entries/login.js b/frontend/src/entries/login.js index 1a59139..230964a 100644 --- a/frontend/src/entries/login.js +++ b/frontend/src/entries/login.js @@ -1,3 +1,4 @@ -import "../styles/pages/login.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/login.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; diff --git a/frontend/src/entries/map.js b/frontend/src/entries/map.js index e1e00a8..db5bb70 100644 --- a/frontend/src/entries/map.js +++ b/frontend/src/entries/map.js @@ -1,5 +1,6 @@ -import "../styles/components/fireworks-navigation.css"; -import "../styles/pages/map.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/components/fireworks-navigation.scss"; +import "../styles/pages/map.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; import "../scripts/event-map.js"; diff --git a/frontend/src/entries/member-form.js b/frontend/src/entries/member-form.js index dba1a94..97d3825 100644 --- a/frontend/src/entries/member-form.js +++ b/frontend/src/entries/member-form.js @@ -1,3 +1,4 @@ -import "../styles/pages/member-form.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/member-form.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; diff --git a/frontend/src/entries/member-list.js b/frontend/src/entries/member-list.js index aa392c4..c0204e9 100644 --- a/frontend/src/entries/member-list.js +++ b/frontend/src/entries/member-list.js @@ -1,3 +1,4 @@ -import "../styles/pages/member-list.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/member-list.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; diff --git a/frontend/src/entries/member-success.js b/frontend/src/entries/member-success.js index 88c73d4..be26f68 100644 --- a/frontend/src/entries/member-success.js +++ b/frontend/src/entries/member-success.js @@ -1,3 +1,4 @@ -import "../styles/pages/member-success.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/member-success.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; diff --git a/frontend/src/entries/not-found.js b/frontend/src/entries/not-found.js index 6d6f4d7..7b160aa 100644 --- a/frontend/src/entries/not-found.js +++ b/frontend/src/entries/not-found.js @@ -1,3 +1,4 @@ -import "../styles/pages/not-found.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/not-found.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; diff --git a/frontend/src/entries/settings.js b/frontend/src/entries/settings.js index a010aff..f445611 100644 --- a/frontend/src/entries/settings.js +++ b/frontend/src/entries/settings.js @@ -1,5 +1,6 @@ -import "../styles/pages/settings.css"; -import "../styles/components/fireworks-navigation.css"; -import "../styles/theme.css"; +import "../styles/fonts.scss"; +import "../styles/pages/settings.scss"; +import "../styles/components/fireworks-navigation.scss"; +import "../styles/theme.scss"; import "../scripts/theme.js"; import "../scripts/user-settings.js"; diff --git a/frontend/src/styles/README.md b/frontend/src/styles/README.md new file mode 100644 index 0000000..430ab33 --- /dev/null +++ b/frontend/src/styles/README.md @@ -0,0 +1,9 @@ +# Styles + +Page and component styles are SCSS imported by the JavaScript entries in `frontend/src/entries/`. Vite compiles them during development and production builds. + +`_settings.scss` holds build-time defaults. `theme.scss` exposes shared colors as CSS custom properties on `:root`, and `fonts.scss` exposes the UI font stack as `--font-ui`. Prefer `var(...)` in component rules for values that should remain visible and adjustable in browser developer tools. Use Sass variables for values shared at build time; keep nesting shallow so selectors and source order remain easy to inspect. + +The Django admin and hello pages load CSS directly from Django's static directory. Their SCSS sources live in `static/`; `npm run styles:static` compiles them to the existing static paths. `npm run dev` watches those sources, and `npm run build` compiles them before Vite and `collectstatic`. + +There is no downloaded web font. If one is added later, put its loading rule in `fonts.scss`. diff --git a/frontend/src/styles/_settings.scss b/frontend/src/styles/_settings.scss new file mode 100644 index 0000000..94a2303 --- /dev/null +++ b/frontend/src/styles/_settings.scss @@ -0,0 +1,16 @@ +// Build-time defaults. Theme values are exposed as CSS custom properties so +// they remain inspectable and can change at runtime. +$font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; +$night-bg: #090e1d; +$night-ink: #eef3ff; +$night-muted: #aab9d8; +$night-surface: #172443; +$night-surface-raised: #111a31; +$night-line: #2b3d68; +$night-input: #0a1123; +$day-bg: #f4f7fc; +$day-ink: #172033; +$day-muted: #536174; +$day-surface: #ffffff; +$day-surface-raised: #f2f6fc; +$day-line: #c4cede; diff --git a/frontend/src/styles/components/burst-listener.css b/frontend/src/styles/components/burst-listener.css deleted file mode 100644 index 94f513a..0000000 --- a/frontend/src/styles/components/burst-listener.css +++ /dev/null @@ -1,26 +0,0 @@ -.manual-report__supporting { padding: 1rem; border: 1px solid #514282; border-radius: 1rem; background: #11152c; } -.manual-report__supporting-header { display: flex; align-items: center; gap: .7rem; } -.manual-report__microphone { display: grid; width: 2.5rem; height: 2.5rem; flex: none; place-items: center; border-radius: .7rem; background: #2a2051; font-size: 1.3rem; } -.burst-listener__state { display: block; margin-top: .15rem; color: #b9addb; font-size: .84rem; } -.manual-report__supporting[data-state="listening"] .burst-listener__state { color: #8fe5cc; } -.manual-report__supporting[data-state="error"] .burst-listener__state { color: #ffbd9d; } -.burst-listener { width: 100%; margin-top: .85rem; } -.burst-listener__button, .burst-listener__actions button { min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid #8d77d2; border-radius: .7rem; color: #e8dcff; font: inherit; font-weight: 750; background: #292148; cursor: pointer; } -.burst-listener__button { width: 100%; } -.burst-listener__panel { color: #f0eaff; } -.burst-listener__panel strong { font-size: .92rem; } -.burst-listener__panel canvas { display: block; width: 100%; height: 4rem; margin: .7rem 0 .35rem; border-radius: .5rem; background: linear-gradient(90deg, #191738, #241b44); } -.burst-listener__panel p { margin: .35rem 0 .75rem; color: #b9addb; font-size: .82rem; } -.burst-listener__panel audio { width: 100%; margin-bottom: .75rem; } -.burst-listener__actions { display: flex; flex-wrap: wrap; gap: .5rem; } -.burst-listener__actions button { flex: 1 1 10rem; } -.burst-listener__actions #burst-stop { border-color: #fb9b72; color: #ffd8c4; background: #2e1b31; } -.burst-listener [hidden] { display: none !important; } -.burst-listener [role="alert"] { margin: .65rem 0 0; color: #ffd1b6; } -.burst-listener button:focus-visible { outline: 3px solid #c9b4ff; outline-offset: 3px; } -:root[data-theme="light"] .manual-report__supporting { border-color: #d9b4d8; background: #fff8fb; } -:root[data-theme="light"] .manual-report__microphone { background: #ead2eb; } -:root[data-theme="light"] .burst-listener__state, :root[data-theme="light"] .burst-listener__panel p { color: #694b68; } -:root[data-theme="light"] .burst-listener__panel { color: #321d42; } -:root[data-theme="light"] .burst-listener__button, :root[data-theme="light"] .burst-listener__actions button { border-color: #b68bb5; color: #321d42; background: #ead2eb; } -:root[data-theme="light"] .burst-listener__actions #burst-stop { border-color: #cf7957; color: #71331d; background: #ffe9de; } diff --git a/frontend/src/styles/components/burst-listener.scss b/frontend/src/styles/components/burst-listener.scss new file mode 100644 index 0000000..0e7fc6a --- /dev/null +++ b/frontend/src/styles/components/burst-listener.scss @@ -0,0 +1,140 @@ +.manual-report__supporting { + padding: 1rem; + border: 1px solid #514282; + border-radius: 1rem; + background: #11152c; +} + +.manual-report__supporting-header { + display: flex; + align-items: center; + gap: .7rem; +} + +.manual-report__microphone { + display: grid; + width: 2.5rem; + height: 2.5rem; + flex: none; + place-items: center; + border-radius: .7rem; + background: #2a2051; + font-size: 1.3rem; +} + +.burst-listener__state { + display: block; + margin-top: .15rem; + color: #b9addb; + font-size: .84rem; +} + +.manual-report__supporting[data-state="listening"] .burst-listener__state { + color: #8fe5cc; +} + +.manual-report__supporting[data-state="error"] .burst-listener__state { + color: #ffbd9d; +} + +.burst-listener { + width: 100%; + margin-top: .85rem; +} + +.burst-listener__button, .burst-listener__actions button { + min-height: 2.75rem; + padding: .65rem 1rem; + border: 1px solid #8d77d2; + border-radius: .7rem; + color: #e8dcff; + font: inherit; + font-weight: 750; + background: #292148; + cursor: pointer; +} + +.burst-listener__button { + width: 100%; +} + +.burst-listener__panel { + color: #f0eaff; + strong { + font-size: .92rem; + } + canvas { + display: block; + width: 100%; + height: 4rem; + margin: .7rem 0 .35rem; + border-radius: .5rem; + background: linear-gradient(90deg, #191738, #241b44); + } + p { + margin: .35rem 0 .75rem; + color: #b9addb; + font-size: .82rem; + } + audio { + width: 100%; + margin-bottom: .75rem; + } +} + +.burst-listener__actions { + display: flex; + flex-wrap: wrap; + gap: .5rem; + button { + flex: 1 1 10rem; + } + #burst-stop { + border-color: #fb9b72; + color: #ffd8c4; + background: #2e1b31; + } +} + +.burst-listener [hidden] { + display: none !important; +} + +.burst-listener [role="alert"] { + margin: .65rem 0 0; + color: #ffd1b6; +} + +.burst-listener button:focus-visible { + outline: 3px solid #c9b4ff; + outline-offset: 3px; +} + +:root[data-theme="light"] .manual-report__supporting { + border-color: #d9b4d8; + background: #fff8fb; +} + +:root[data-theme="light"] .manual-report__microphone { + background: #ead2eb; +} + +:root[data-theme="light"] .burst-listener__state, :root[data-theme="light"] .burst-listener__panel p { + color: #694b68; +} + +:root[data-theme="light"] .burst-listener__panel { + color: #321d42; +} + +:root[data-theme="light"] .burst-listener__button, :root[data-theme="light"] .burst-listener__actions button { + border-color: #b68bb5; + color: #321d42; + background: #ead2eb; +} + +:root[data-theme="light"] .burst-listener__actions #burst-stop { + border-color: #cf7957; + color: #71331d; + background: #ffe9de; +} diff --git a/frontend/src/styles/components/fireworks-navigation.css b/frontend/src/styles/components/fireworks-navigation.css deleted file mode 100644 index 736e11b..0000000 --- a/frontend/src/styles/components/fireworks-navigation.css +++ /dev/null @@ -1,104 +0,0 @@ -.fireworks-header { - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; - margin-bottom: 3.5rem; -} -.fireworks-brand { - display: flex; - align-items: center; - gap: .7rem; - color: var(--ink, var(--i, #eef3ff)); - font-size: .9rem; - font-weight: 800; - letter-spacing: .1em; - text-decoration: none; - text-transform: uppercase; -} -.fireworks-header .brand-mark { - display: grid; - width: 2.25rem; - aspect-ratio: 1; - place-items: center; - border-radius: .75rem; - color: #141022; - background: linear-gradient(135deg, #fcd34d, #fb7185); - box-shadow: 0 .5rem 1.5rem #fb718550; -} -.fireworks-header__controls { display: flex; align-items: center; gap: .65rem; } -.fireworks-menu-toggle { display: none; } -.fireworks-nav { - display: flex; - gap: .3rem; - padding: .25rem; - border: 1px solid var(--line, var(--l, #2b3d68)); - border-radius: .75rem; - background: #111a31d9; - box-shadow: 0 .5rem 1.5rem #03071440; -} -.fireworks-nav a, -.fireworks-nav button { - padding: .5rem .75rem; - border-radius: .5rem; - color: var(--muted, var(--m, #aab9d8)); - font-size: .86rem; - font-weight: 750; - text-decoration: none; -} -.fireworks-nav form { display: flex; margin: 0; } -.fireworks-nav button { border: 0; background: transparent; font: inherit; cursor: pointer; } -.fireworks-nav a:hover, -.fireworks-nav button:hover { color: var(--ink, var(--i, #eef3ff)); background: #20345f; } -.fireworks-nav a[aria-current="page"] { color: var(--ink, var(--i, #eef3ff)); background: #2a3b67; } -.theme-toggle--inline { - position: static; - flex: 0 0 auto; - min-height: 2.35rem; - padding: .45rem .7rem; - white-space: nowrap; -} -:root[data-theme="light"] .fireworks-nav { - border-color: #cbd9ed; - background: #edf4ff; - box-shadow: 0 .45rem 1.25rem rgba(34, 68, 117, .12); -} -:root[data-theme="light"] .fireworks-nav a, -:root[data-theme="light"] .fireworks-nav button { color: #47617f; } -:root[data-theme="light"] .fireworks-nav a:hover, -:root[data-theme="light"] .fireworks-nav button:hover { color: #234a7b; background: #dceaff; } -:root[data-theme="light"] .fireworks-nav a[aria-current="page"] { - color: #173d6a; - background: #cfe3ff; - box-shadow: inset 0 0 0 1px #9cc0ed; -} -@media (max-width: 44rem) { - .fireworks-header { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 2.5rem; } - .fireworks-menu-toggle { - display: flex; - flex: 0 0 auto; - flex-direction: column; - align-items: center; - justify-content: center; - gap: .3rem; - width: 2.75rem; - height: 2.75rem; - padding: 0; - border: 1px solid var(--theme-line); - border-radius: .7rem; - color: var(--theme-ink); - background: var(--theme-surface-raised); - cursor: pointer; - } - .fireworks-menu-toggle span { width: 1.2rem; height: 2px; border-radius: 2px; background: currentColor; } - .fireworks-menu-toggle:focus-visible { outline: 3px solid #8abaff; outline-offset: 3px; } - .fireworks-header__controls { display: none; flex-basis: 100%; width: 100%; flex-direction: column; align-items: stretch; } - .fireworks-menu-toggle[aria-expanded="true"] ~ .fireworks-header__controls { display: flex; } - .fireworks-nav { flex-direction: column; } - .fireworks-nav a, - .fireworks-nav button { padding: .75rem; } - .fireworks-nav form, - .fireworks-nav button { width: 100%; } - .fireworks-nav button { text-align: left; } - .theme-toggle--inline { width: 100%; } -} diff --git a/frontend/src/styles/components/fireworks-navigation.scss b/frontend/src/styles/components/fireworks-navigation.scss new file mode 100644 index 0000000..a422749 --- /dev/null +++ b/frontend/src/styles/components/fireworks-navigation.scss @@ -0,0 +1,161 @@ +.fireworks-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + margin-bottom: 3.5rem; +} + +.fireworks-brand { + display: flex; + align-items: center; + gap: .7rem; + color: var(--ink, var(--i, #eef3ff)); + font-size: .9rem; + font-weight: 800; + letter-spacing: .1em; + text-decoration: none; + text-transform: uppercase; +} + +.fireworks-header .brand-mark { + display: grid; + width: 2.25rem; + aspect-ratio: 1; + place-items: center; + border-radius: .75rem; + color: #141022; + background: linear-gradient(135deg, #fcd34d, #fb7185); + box-shadow: 0 .5rem 1.5rem #fb718550; +} + +.fireworks-header__controls { + display: flex; + align-items: center; + gap: .65rem; +} + +.fireworks-menu-toggle { + display: none; +} + +.fireworks-nav { + display: flex; + gap: .3rem; + padding: .25rem; + border: 1px solid var(--line, var(--l, #2b3d68)); + border-radius: .75rem; + background: #111a31d9; + box-shadow: 0 .5rem 1.5rem #03071440; + a, button { + padding: .5rem .75rem; + border-radius: .5rem; + color: var(--muted, var(--m, #aab9d8)); + font-size: .86rem; + font-weight: 750; + text-decoration: none; + } + form { + display: flex; + margin: 0; + } + button { + border: 0; + background: transparent; + font: inherit; + cursor: pointer; + } + a:hover, button:hover { + color: var(--ink, var(--i, #eef3ff)); + background: #20345f; + } + a[aria-current="page"] { + color: var(--ink, var(--i, #eef3ff)); + background: #2a3b67; + } +} + +.theme-toggle--inline { + position: static; + flex: 0 0 auto; + min-height: 2.35rem; + padding: .45rem .7rem; + white-space: nowrap; +} + +:root[data-theme="light"] .fireworks-nav { + border-color: #cbd9ed; + background: #edf4ff; + box-shadow: 0 .45rem 1.25rem rgba(34, 68, 117, .12); + a, button { + color: #47617f; + } + a:hover, button:hover { + color: #234a7b; + background: #dceaff; + } + a[aria-current="page"] { + color: #173d6a; + background: #cfe3ff; + box-shadow: inset 0 0 0 1px #9cc0ed; + } +} + +@media (max-width: 44rem) { + .fireworks-header { + flex-wrap: wrap; + justify-content: flex-start; + margin-bottom: 2.5rem; + } + .fireworks-menu-toggle { + display: flex; + flex: 0 0 auto; + flex-direction: column; + align-items: center; + justify-content: center; + gap: .3rem; + width: 2.75rem; + height: 2.75rem; + padding: 0; + border: 1px solid var(--theme-line); + border-radius: .7rem; + color: var(--theme-ink); + background: var(--theme-surface-raised); + cursor: pointer; + span { + width: 1.2rem; + height: 2px; + border-radius: 2px; + background: currentColor; + } + &:focus-visible { + outline: 3px solid #8abaff; + outline-offset: 3px; + } + } + .fireworks-header__controls { + display: none; + flex-basis: 100%; + width: 100%; + flex-direction: column; + align-items: stretch; + } + .fireworks-menu-toggle[aria-expanded="true"] ~ .fireworks-header__controls { + display: flex; + } + .fireworks-nav { + flex-direction: column; + a, button { + padding: .75rem; + } + form, button { + width: 100%; + } + button { + text-align: left; + } + } + .theme-toggle--inline { + width: 100%; + } +} diff --git a/frontend/src/styles/components/manual-compass.css b/frontend/src/styles/components/manual-compass.scss similarity index 50% rename from frontend/src/styles/components/manual-compass.css rename to frontend/src/styles/components/manual-compass.scss index 5c270be..4c94844 100644 --- a/frontend/src/styles/components/manual-compass.css +++ b/frontend/src/styles/components/manual-compass.scss @@ -7,8 +7,11 @@ font-size: .78rem; font-weight: 850; font-variant-numeric: tabular-nums; + &[hidden] { + display: none; + } } -.manual-compass[hidden] { display: none; } + .manual-compass__dial { position: relative; width: 5.75rem; @@ -18,12 +21,42 @@ background: radial-gradient(circle, #342441 0 28%, #211a32 75%); box-shadow: 0 .35rem 1rem #09061566, inset 0 0 0 .25rem #ffffff12; } -.manual-compass__rose { position: absolute; inset: 0; transition: transform 120ms ease-out; } -.manual-compass__rose span { position: absolute; line-height: 1; } -.manual-compass__north { top: .38rem; left: 50%; color: #ff9e78; transform: translateX(-50%); } -.manual-compass__east { right: .47rem; top: 50%; transform: translateY(-50%); } -.manual-compass__south { bottom: .38rem; left: 50%; transform: translateX(-50%); } -.manual-compass__west { left: .47rem; top: 50%; transform: translateY(-50%); } + +.manual-compass__rose { + position: absolute; + inset: 0; + transition: transform 120ms ease-out; + span { + position: absolute; + line-height: 1; + } +} + +.manual-compass__north { + top: .38rem; + left: 50%; + color: #ff9e78; + transform: translateX(-50%); +} + +.manual-compass__east { + right: .47rem; + top: 50%; + transform: translateY(-50%); +} + +.manual-compass__south { + bottom: .38rem; + left: 50%; + transform: translateX(-50%); +} + +.manual-compass__west { + left: .47rem; + top: 50%; + transform: translateY(-50%); +} + .manual-compass__pointer { position: absolute; top: -.55rem; @@ -36,6 +69,7 @@ transform: translateX(-50%); filter: drop-shadow(0 .1rem .15rem #160d1b); } + .manual-compass__center { position: absolute; top: 50%; @@ -46,10 +80,29 @@ background: #ffbd62; transform: translate(-50%, -50%); } -.manual-compass__heading { margin-top: .5rem; white-space: nowrap; } -:root[data-theme="light"] .manual-compass { color: #43243d; } -:root[data-theme="light"] .manual-compass__dial { border-color: #996a9b; background: radial-gradient(circle, #f8ebf8 0 28%, #e8d7e9 75%); } + +.manual-compass__heading { + margin-top: .5rem; + white-space: nowrap; +} + +:root[data-theme="light"] .manual-compass { + color: #43243d; +} + +:root[data-theme="light"] .manual-compass__dial { + border-color: #996a9b; + background: radial-gradient(circle, #f8ebf8 0 28%, #e8d7e9 75%); +} + :root[data-theme="light"] .manual-compass__east, :root[data-theme="light"] .manual-compass__south, -:root[data-theme="light"] .manual-compass__west { color: #43243d; } -@media (prefers-reduced-motion: reduce) { .manual-compass__rose { transition: none; } } +:root[data-theme="light"] .manual-compass__west { + color: #43243d; +} + +@media (prefers-reduced-motion: reduce) { + .manual-compass__rose { + transition: none; + } +} diff --git a/frontend/src/styles/components/manual-report-structure.css b/frontend/src/styles/components/manual-report-structure.css deleted file mode 100644 index df6b189..0000000 --- a/frontend/src/styles/components/manual-report-structure.css +++ /dev/null @@ -1,218 +0,0 @@ -.manual-report__header { - max-width: 42rem; -} - -.manual-report { --manual-report-section-gap: 1rem; } - -.manual-report__primary { - display: grid; - gap: var(--manual-report-section-gap); - max-width: 36rem; -} - -.manual-report__quantity { - padding: 1rem; - border: 1px solid #584891; - border-radius: 1rem; - background: #151932; -} - -.manual-report .manual-report__quantity #manual-occurrences { - width: 100%; - min-width: 0; - min-height: 3.75rem; - margin: 0; - padding: 0; - border: 0; - color: #f5f0ff; - font-size: clamp(2.25rem, 8vw, 3.5rem); - font-weight: 850; - text-align: center; - background: transparent; - appearance: textfield; - -moz-appearance: textfield; -} - -.manual-report__quantity #manual-occurrences::-webkit-inner-spin-button, -.manual-report__quantity #manual-occurrences::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } - -.manual-report__stepper { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: .5rem; } -.manual-report__stepper button { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; min-height: 0; padding: 0; border: 1px solid #6d54ac; border-radius: 50%; color: #f5f0ff; font: inherit; font-size: 2rem; line-height: 1; background: #302553; cursor: pointer; } -.manual-report__stepper button:disabled { opacity: .4; cursor: default; } - -.manual-report .manual-report__primary .manual-direction-panel { - width: 100%; - margin: 0; - border-radius: 1rem; - background: #1a1739; -} -.manual-direction-panel[data-state="measuring"] { border-color: #a27cff; } -.manual-direction-panel[data-state="captured"] { border-color: #68dba1; } -.manual-direction-panel[data-state="unavailable"] { border-color: #d38b7a; } - -.manual-direction-panel__topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } -.manual-direction-panel__summary { margin: .35rem 0 .8rem; color: #f5f0ff; font-weight: 700; } -.manual-report .manual-direction-panel__status--accuracy { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .75rem 0; padding: .55rem .75rem; border: 1px solid #5d4d92; border-radius: .7rem; color: #d9cfee; background: #191630; font-size: .85rem; } -.manual-direction-panel__status--accuracy strong { color: #f5edff; font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; } -.manual-direction-panel__open, .manual-direction-panel__close { min-height: 2.75rem; border: 1px solid #8d77d2; border-radius: .7rem; color: #e8dcff; font: inherit; font-weight: 750; background: #302553; cursor: pointer; } -.manual-direction-panel__open { padding: .5rem .85rem; } -.manual-direction-panel__close { min-width: 2.75rem; font-size: 1.4rem; } - -.manual-report #manual-submit { - width: 100%; - max-width: 36rem; - min-height: 4.5rem; - margin-top: var(--manual-report-section-gap); -} - -.manual-report__submit:disabled { cursor: wait; opacity: .72; } -.manual-submission { display: grid; justify-items: center; gap: .5rem; max-width: 36rem; margin-top: 1rem; padding: 1.3rem; border: 1px solid #4caa82; border-radius: 1rem; color: #eafff2; text-align: center; background: #10352e; } -.manual-submission__icon { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border: 2px solid #6ce4a8; border-radius: 50%; color: #eafff2; font-size: 2rem; background: #226c51; } -.manual-submission strong { font-size: 1.35rem; } -.manual-submission p { margin: 0; line-height: 1.45; } -.manual-submission__summary { margin-top: .35rem !important; color: #b2e8cf; font-size: .9rem; } -.manual-submission--error { border-color: #d37c6a; color: #fff0e8; background: #3a1c2b; } -.manual-submission--error .manual-submission__icon { border-color: #ffac8c; background: #9b493a; } -.manual-report__submission:empty { display: none; } - -.manual-report button:focus-visible, .manual-report input:focus-visible { outline: 3px solid #c9b4ff; outline-offset: 3px; } - -.manual-report__supporting { - max-width: 36rem; - margin-top: var(--manual-report-section-gap); - padding-top: 1.25rem; - border-top: 1px solid #584891; -} - -.manual-report__supporting h3 { - margin: 0; - color: #d8cffd; - font-size: 1rem; -} - -.manual-report__supporting .burst-listener { - width: 100%; -} - -:root[data-theme="light"] .manual-report__quantity { - border-color: #d9b4d8; - background: #fff8fb; -} - -:root[data-theme="light"] .manual-report__quantity #manual-occurrences { border: 0 !important; color: #321d42 !important; background: transparent !important; } -:root[data-theme="light"] .manual-report__stepper button, -:root[data-theme="light"] .manual-direction-panel__open, -:root[data-theme="light"] .manual-direction-panel__close { color: #321d42; border-color: #b68bb5; background: #ead2eb; } -:root[data-theme="light"] .manual-direction-panel__summary { color: #321d42; } -:root[data-theme="light"] .manual-report .manual-direction-panel__status--accuracy { border-color: #cfaad1; color: #694b68; background: #fff8fb; } -:root[data-theme="light"] .manual-direction-panel__status--accuracy strong { color: #321d42; } -:root[data-theme="light"] .manual-submission { border-color: #54a67b; color: #164d34; background: #e8fff2; } -:root[data-theme="light"] .manual-submission__icon { color: #fff; } -:root[data-theme="light"] .manual-submission__summary { color: #2b6b48; } -:root[data-theme="light"] .manual-submission--error { border-color: #ca7d65; color: #743520; background: #fff0e8; } - -:root[data-theme="light"] .manual-report__supporting { - border-color: #d9b4d8; -} - -:root[data-theme="light"] .manual-report__supporting h3 { - color: #492846; -} - -@media (max-width: 42rem) { - .home-grid { grid-template-columns: minmax(0, 1fr); } - body:not(.dashboard-page) { padding: max(1rem, env(safe-area-inset-top, 0px)) max(.5rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(.5rem, env(safe-area-inset-left, 0px)); } - .home-grid .manual-report, .dashboard-report, .dashboard-report .manual-report { overflow: visible; } - .manual-report { padding: 1.25rem; } - .dashboard-report .manual-report { padding: 0; } - .manual-report__header { padding-right: 2.5rem; } - .manual-report form { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); } - .manual-report #manual-submit { - position: sticky; - bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); - z-index: 10; - box-shadow: 0 .7rem 1.6rem #070a18b3; - } - body:has(#manual-occurrences:focus) .manual-report #manual-submit { position: static; } - .dashboard-intro { margin-bottom: 1rem; } - .dashboard-intro h1 { font-size: clamp(2rem, 8vw, 2.8rem); } - .dashboard-intro p:last-child { margin-top: .75rem; font-size: .95rem; line-height: 1.4; } - .dashboard-section { margin-top: 1rem; } - .dashboard-shell { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); } - .manual-report__stepper { grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; } -} - -@media (max-width: 23.5rem) { - .manual-report { padding: 1rem; } - .manual-report__quantity { padding: .75rem; } - .manual-report__stepper { grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: .25rem; } - .manual-report__stepper button { width: 3rem; height: 3rem; } -} - -.manual-report__heading-row { display: flex; align-items: center; gap: .7rem; } -.manual-report__fire { flex: none; font-size: clamp(1.8rem, 5vw, 2.5rem); filter: drop-shadow(0 .2rem .65rem #ff703b88); } -.manual-report__intro, .dashboard-report .manual-report__intro { margin-bottom: .85rem; } -.report-clock { - box-sizing: border-box; - width: 100%; - max-width: 36rem; - margin: 0 0 1rem; - padding: .65rem .95rem .7rem; - border: 1px solid #69539d; - border-radius: .85rem; - background: linear-gradient(115deg, #17162d, #10182c); - box-shadow: inset 0 1px #ffffff0a; -} -.report-clock__label { color: #cbbce5; font-size: .66rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; } -.report-clock__display { display: flex; align-items: end; justify-content: space-between; gap: .75rem; } -.report-clock__time { - display: inline-flex; - align-items: center; - color: #ffbf72; - font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; - font-size: clamp(2rem, 9vw, 2.45rem); - font-weight: 700; - line-height: 1.1; - letter-spacing: 0; - font-variant-numeric: tabular-nums; - text-shadow: 0 0 .7rem #ff963b55; - white-space: nowrap; -} -.report-clock__time span { display: inline-block; } -.report-clock__time #report-clock-hours, .report-clock__time #report-clock-minutes { width: 2ch; } -.report-clock__colon { width: 1ch; flex: none; margin-inline: -.08em; line-height: 1; text-align: center; transform: translateY(-.06em); animation: report-clock-blink 2s steps(1, end) infinite; } -.report-clock__now { display: inline-flex; align-items: center; gap: .4rem; flex: none; padding: .2rem .45rem; border: 1px solid #93634d; border-radius: 999px; color: #ffd2a2; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; } -.report-clock__dot { width: .4rem; height: .4rem; border-radius: 50%; background: #ffab5d; } -@keyframes report-clock-blink { 50% { opacity: 0; } } -.manual-direction-panel__open { width: 100%; text-align: left; } -.manual-direction-panel--open .manual-compass { width: 100%; margin: .5rem auto 1rem; } -.manual-direction-panel--open .manual-compass__dial { width: min(100%, 12rem); border-color: #8b67d4; background: radial-gradient(circle, #302054 0 20%, #17132d 70%); box-shadow: 0 0 0 .35rem #6640a228, 0 0 2rem #ac6aff35; } -.manual-direction-panel--open .manual-compass__pointer { border-bottom-color: #ff925f; } -.manual-direction-panel--open .manual-compass__heading { font-size: 1.1rem; } -.manual-report__stepper button, .manual-direction-panel__open, .manual-direction-panel__close, .manual-report__submit { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; } -.manual-report__stepper button:not(:disabled):active, .manual-direction-panel__open:active, .manual-report__submit:not(:disabled):active { transform: scale(.97); } -.manual-report__submit:not(:disabled):hover { filter: brightness(1.05); } -.manual-submission--success .manual-submission__icon { animation: manual-confirm .35s ease-out both; } -@keyframes manual-confirm { from { transform: scale(.75); opacity: .3; } to { transform: scale(1); opacity: 1; } } - -:root[data-theme="dark"] .home-grid .manual-report, -:root[data-theme="dark"] .dashboard-report { border-color: #7256ab; background: radial-gradient(circle at 88% 5%, #58254a55, transparent 13rem), linear-gradient(155deg, #151326, #0d1022 72%); box-shadow: 0 1rem 3rem #02041399; } -:root[data-theme="dark"] .manual-report__title { color: #fff8f3; } -:root[data-theme="dark"] .manual-report__intro { color: #d6cce4; } -:root[data-theme="dark"] .manual-report__quantity { border-color: #514896; background: linear-gradient(145deg, #19183a, #121834); box-shadow: inset 0 0 0 1px #ffffff08; } -:root[data-theme="dark"] .home-grid .manual-direction-panel, -:root[data-theme="dark"] .dashboard-report .manual-direction-panel { border-color: #59499b; background: linear-gradient(145deg, #211945, #151835); } -:root[data-theme="dark"] .manual-report__supporting { border-color: #493d7d; background: linear-gradient(145deg, #15142f, #10162d); } -:root[data-theme="dark"] .manual-report__stepper button { box-shadow: 0 .25rem .7rem #07041655; } -:root[data-theme="dark"] .manual-report__submit { background: linear-gradient(110deg, #ffc276, #ff7654); box-shadow: 0 .55rem 1.35rem #e2633a4d; } -:root[data-theme="dark"] .manual-direction-panel[data-state="measuring"] { border-color: #a27cff; } -:root[data-theme="dark"] .manual-direction-panel[data-state="captured"] { border-color: #68dba1; } -:root[data-theme="dark"] .manual-direction-panel[data-state="unavailable"] { border-color: #d38b7a; } - -:root[data-theme="light"] .report-clock { border-color: #8b6bab; background: linear-gradient(115deg, #221b37, #182039); } -:root[data-theme="light"] .manual-direction-panel--open .manual-compass__dial { background: radial-gradient(circle, #f8ebf8 0 25%, #e8d7e9 75%); } -@media (prefers-reduced-motion: reduce) { - .manual-report__stepper button, .manual-direction-panel__open, .manual-direction-panel__close, .manual-report__submit { transition: none; } - .manual-submission--success .manual-submission__icon { animation: none; } - .report-clock__colon { animation: none; opacity: 1; } -} diff --git a/frontend/src/styles/components/manual-report-structure.scss b/frontend/src/styles/components/manual-report-structure.scss new file mode 100644 index 0000000..7405f46 --- /dev/null +++ b/frontend/src/styles/components/manual-report-structure.scss @@ -0,0 +1,586 @@ +.manual-report__header { + max-width: 42rem; +} + +.manual-report { + --manual-report-section-gap: 1rem; +} + +.manual-report__primary { + display: grid; + gap: var(--manual-report-section-gap); + max-width: 36rem; +} + +.manual-report__quantity { + padding: 1rem; + border: 1px solid #584891; + border-radius: 1rem; + background: #151932; +} + +.manual-report .manual-report__quantity #manual-occurrences { + width: 100%; + min-width: 0; + min-height: 3.75rem; + margin: 0; + padding: 0; + border: 0; + color: #f5f0ff; + font-size: clamp(2.25rem, 8vw, 3.5rem); + font-weight: 850; + text-align: center; + background: transparent; + appearance: textfield; + -moz-appearance: textfield; +} + +.manual-report__quantity #manual-occurrences::-webkit-inner-spin-button, +.manual-report__quantity #manual-occurrences::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; +} + +.manual-report__stepper { + display: grid; + grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; + align-items: center; + gap: .5rem; + button { + display: grid; + place-items: center; + width: 3.5rem; + height: 3.5rem; + min-height: 0; + padding: 0; + border: 1px solid #6d54ac; + border-radius: 50%; + color: #f5f0ff; + font: inherit; + font-size: 2rem; + line-height: 1; + background: #302553; + cursor: pointer; + &:disabled { + opacity: .4; + cursor: default; + } + } +} + +.manual-report .manual-report__primary .manual-direction-panel { + width: 100%; + margin: 0; + border-radius: 1rem; + background: #1a1739; +} + +.manual-direction-panel[data-state="measuring"] { + border-color: #a27cff; +} + +.manual-direction-panel[data-state="captured"] { + border-color: #68dba1; +} + +.manual-direction-panel[data-state="unavailable"] { + border-color: #d38b7a; +} + +.manual-direction-panel__topline { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; +} + +.manual-direction-panel__summary { + margin: .35rem 0 .8rem; + color: #f5f0ff; + font-weight: 700; +} + +.manual-report .manual-direction-panel__status--accuracy { + display: flex; + align-items: center; + justify-content: space-between; + gap: .75rem; + margin: .75rem 0; + padding: .55rem .75rem; + border: 1px solid #5d4d92; + border-radius: .7rem; + color: #d9cfee; + background: #191630; + font-size: .85rem; +} + +.manual-direction-panel__status--accuracy strong { + color: #f5edff; + font-size: 1rem; + font-variant-numeric: tabular-nums; + white-space: nowrap; +} + +.manual-direction-panel__open, .manual-direction-panel__close { + min-height: 2.75rem; + border: 1px solid #8d77d2; + border-radius: .7rem; + color: #e8dcff; + font: inherit; + font-weight: 750; + background: #302553; + cursor: pointer; +} + +.manual-direction-panel__open { + padding: .5rem .85rem; +} + +.manual-direction-panel__close { + min-width: 2.75rem; + font-size: 1.4rem; +} + +.manual-report #manual-submit { + width: 100%; + max-width: 36rem; + min-height: 4.5rem; + margin-top: var(--manual-report-section-gap); +} + +.manual-report__submit:disabled { + cursor: wait; + opacity: .72; +} + +.manual-submission { + display: grid; + justify-items: center; + gap: .5rem; + max-width: 36rem; + margin-top: 1rem; + padding: 1.3rem; + border: 1px solid #4caa82; + border-radius: 1rem; + color: #eafff2; + text-align: center; + background: #10352e; +} + +.manual-submission__icon { + display: grid; + width: 3.5rem; + height: 3.5rem; + place-items: center; + border: 2px solid #6ce4a8; + border-radius: 50%; + color: #eafff2; + font-size: 2rem; + background: #226c51; +} + +.manual-submission strong { + font-size: 1.35rem; +} + +.manual-submission p { + margin: 0; + line-height: 1.45; +} + +.manual-submission__summary { + margin-top: .35rem !important; + color: #b2e8cf; + font-size: .9rem; +} + +.manual-submission--error { + border-color: #d37c6a; + color: #fff0e8; + background: #3a1c2b; + .manual-submission__icon { + border-color: #ffac8c; + background: #9b493a; + } +} + +.manual-report__submission:empty { + display: none; +} + +.manual-report button:focus-visible, .manual-report input:focus-visible { + outline: 3px solid #c9b4ff; + outline-offset: 3px; +} + +.manual-report__supporting { + max-width: 36rem; + margin-top: var(--manual-report-section-gap); + padding-top: 1.25rem; + border-top: 1px solid #584891; + h3 { + margin: 0; + color: #d8cffd; + font-size: 1rem; + } + .burst-listener { + width: 100%; + } +} + +:root[data-theme="light"] .manual-report__quantity { + border-color: #d9b4d8; + background: #fff8fb; + #manual-occurrences { + border: 0 !important; + color: #321d42 !important; + background: transparent !important; + } +} + +:root[data-theme="light"] .manual-report__stepper button, +:root[data-theme="light"] .manual-direction-panel__open, +:root[data-theme="light"] .manual-direction-panel__close { + color: #321d42; + border-color: #b68bb5; + background: #ead2eb; +} + +:root[data-theme="light"] .manual-direction-panel__summary { + color: #321d42; +} + +:root[data-theme="light"] .manual-report .manual-direction-panel__status--accuracy { + border-color: #cfaad1; + color: #694b68; + background: #fff8fb; +} + +:root[data-theme="light"] .manual-direction-panel__status--accuracy strong { + color: #321d42; +} + +:root[data-theme="light"] .manual-submission { + border-color: #54a67b; + color: #164d34; + background: #e8fff2; +} + +:root[data-theme="light"] .manual-submission__icon { + color: #fff; +} + +:root[data-theme="light"] .manual-submission__summary { + color: #2b6b48; +} + +:root[data-theme="light"] .manual-submission--error { + border-color: #ca7d65; + color: #743520; + background: #fff0e8; +} + +:root[data-theme="light"] .manual-report__supporting { + border-color: #d9b4d8; + h3 { + color: #492846; + } +} + +@media (max-width: 42rem) { + .home-grid { + grid-template-columns: minmax(0, 1fr); + } + body:not(.dashboard-page) { + padding: max(1rem, env(safe-area-inset-top, 0px)) max(.5rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(.5rem, env(safe-area-inset-left, 0px)); + } + .home-grid .manual-report, .dashboard-report, .dashboard-report .manual-report { + overflow: visible; + } + .manual-report { + padding: 1.25rem; + } + .dashboard-report .manual-report { + padding: 0; + } + .manual-report__header { + padding-right: 2.5rem; + } + .manual-report form { + padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); + } + .manual-report #manual-submit { + position: sticky; + bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); + z-index: 10; + box-shadow: 0 .7rem 1.6rem #070a18b3; + } + body:has(#manual-occurrences:focus) .manual-report #manual-submit { + position: static; + } + .dashboard-intro { + margin-bottom: 1rem; + h1 { + font-size: clamp(2rem, 8vw, 2.8rem); + } + p:last-child { + margin-top: .75rem; + font-size: .95rem; + line-height: 1.4; + } + } + .dashboard-section { + margin-top: 1rem; + } + .dashboard-shell { + padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); + } + .manual-report__stepper { + grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; + } +} + +@media (max-width: 23.5rem) { + .manual-report { + padding: 1rem; + } + .manual-report__quantity { + padding: .75rem; + } + .manual-report__stepper { + grid-template-columns: 3rem minmax(0, 1fr) 3rem; + gap: .25rem; + button { + width: 3rem; + height: 3rem; + } + } +} + +.manual-report__heading-row { + display: flex; + align-items: center; + gap: .7rem; +} + +.manual-report__fire { + flex: none; + font-size: clamp(1.8rem, 5vw, 2.5rem); + filter: drop-shadow(0 .2rem .65rem #ff703b88); +} + +.manual-report__intro, .dashboard-report .manual-report__intro { + margin-bottom: .85rem; +} + +.report-clock { + box-sizing: border-box; + width: 100%; + max-width: 36rem; + margin: 0 0 1rem; + padding: .65rem .95rem .7rem; + border: 1px solid #69539d; + border-radius: .85rem; + background: linear-gradient(115deg, #17162d, #10182c); + box-shadow: inset 0 1px #ffffff0a; +} + +.report-clock__label { + color: #cbbce5; + font-size: .66rem; + font-weight: 750; + letter-spacing: .13em; + text-transform: uppercase; +} + +.report-clock__display { + display: flex; + align-items: end; + justify-content: space-between; + gap: .75rem; +} + +.report-clock__time { + display: inline-flex; + align-items: center; + color: #ffbf72; + font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; + font-size: clamp(2rem, 9vw, 2.45rem); + font-weight: 700; + line-height: 1.1; + letter-spacing: 0; + font-variant-numeric: tabular-nums; + text-shadow: 0 0 .7rem #ff963b55; + white-space: nowrap; + span { + display: inline-block; + } + #report-clock-hours, #report-clock-minutes { + width: 2ch; + } +} + +.report-clock__colon { + width: 1ch; + flex: none; + margin-inline: -.08em; + line-height: 1; + text-align: center; + transform: translateY(-.06em); + animation: report-clock-blink 2s steps(1, end) infinite; +} + +.report-clock__now { + display: inline-flex; + align-items: center; + gap: .4rem; + flex: none; + padding: .2rem .45rem; + border: 1px solid #93634d; + border-radius: 999px; + color: #ffd2a2; + font-size: .7rem; + font-weight: 750; + letter-spacing: .08em; + text-transform: uppercase; +} + +.report-clock__dot { + width: .4rem; + height: .4rem; + border-radius: 50%; + background: #ffab5d; +} + +@keyframes report-clock-blink { + 50% { + opacity: 0; + } +} + +.manual-direction-panel__open { + width: 100%; + text-align: left; +} + +.manual-direction-panel--open .manual-compass { + width: 100%; + margin: .5rem auto 1rem; +} + +.manual-direction-panel--open .manual-compass__dial { + width: min(100%, 12rem); + border-color: #8b67d4; + background: radial-gradient(circle, #302054 0 20%, #17132d 70%); + box-shadow: 0 0 0 .35rem #6640a228, 0 0 2rem #ac6aff35; +} + +.manual-direction-panel--open .manual-compass__pointer { + border-bottom-color: #ff925f; +} + +.manual-direction-panel--open .manual-compass__heading { + font-size: 1.1rem; +} + +.manual-report__stepper button, .manual-direction-panel__open, .manual-direction-panel__close, .manual-report__submit { + transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; +} + +.manual-report__stepper button:not(:disabled):active, .manual-direction-panel__open:active, .manual-report__submit:not(:disabled):active { + transform: scale(.97); +} + +.manual-report__submit:not(:disabled):hover { + filter: brightness(1.05); +} + +.manual-submission--success .manual-submission__icon { + animation: manual-confirm .35s ease-out both; +} + +@keyframes manual-confirm { + from { + transform: scale(.75); + opacity: .3; + } + to { + transform: scale(1); + opacity: 1; + } +} + +:root[data-theme="dark"] .home-grid .manual-report, +:root[data-theme="dark"] .dashboard-report { + border-color: #7256ab; + background: radial-gradient(circle at 88% 5%, #58254a55, transparent 13rem), linear-gradient(155deg, #151326, #0d1022 72%); + box-shadow: 0 1rem 3rem #02041399; +} + +:root[data-theme="dark"] .manual-report__title { + color: #fff8f3; +} + +:root[data-theme="dark"] .manual-report__intro { + color: #d6cce4; +} + +:root[data-theme="dark"] .manual-report__quantity { + border-color: #514896; + background: linear-gradient(145deg, #19183a, #121834); + box-shadow: inset 0 0 0 1px #ffffff08; +} + +:root[data-theme="dark"] .home-grid .manual-direction-panel, +:root[data-theme="dark"] .dashboard-report .manual-direction-panel { + border-color: #59499b; + background: linear-gradient(145deg, #211945, #151835); +} + +:root[data-theme="dark"] .manual-report__supporting { + border-color: #493d7d; + background: linear-gradient(145deg, #15142f, #10162d); +} + +:root[data-theme="dark"] .manual-report__stepper button { + box-shadow: 0 .25rem .7rem #07041655; +} + +:root[data-theme="dark"] .manual-report__submit { + background: linear-gradient(110deg, #ffc276, #ff7654); + box-shadow: 0 .55rem 1.35rem #e2633a4d; +} + +:root[data-theme="dark"] .manual-direction-panel[data-state="measuring"] { + border-color: #a27cff; +} + +:root[data-theme="dark"] .manual-direction-panel[data-state="captured"] { + border-color: #68dba1; +} + +:root[data-theme="dark"] .manual-direction-panel[data-state="unavailable"] { + border-color: #d38b7a; +} + +:root[data-theme="light"] .report-clock { + border-color: #8b6bab; + background: linear-gradient(115deg, #221b37, #182039); +} + +:root[data-theme="light"] .manual-direction-panel--open .manual-compass__dial { + background: radial-gradient(circle, #f8ebf8 0 25%, #e8d7e9 75%); +} + +@media (prefers-reduced-motion: reduce) { + .manual-report__stepper button, .manual-direction-panel__open, .manual-direction-panel__close, .manual-report__submit { + transition: none; + } + .manual-submission--success .manual-submission__icon { + animation: none; + } + .report-clock__colon { + animation: none; + opacity: 1; + } +} diff --git a/frontend/src/styles/fonts.scss b/frontend/src/styles/fonts.scss new file mode 100644 index 0000000..f30c89e --- /dev/null +++ b/frontend/src/styles/fonts.scss @@ -0,0 +1,4 @@ +@use "settings" as settings; + +// The project currently uses a system fallback stack; no web-font request is needed. +:root { --font-ui: #{settings.$font-ui}; } diff --git a/frontend/src/styles/pages/admin-audio-preview.css b/frontend/src/styles/pages/admin-audio-preview.css deleted file mode 100644 index df2db91..0000000 --- a/frontend/src/styles/pages/admin-audio-preview.css +++ /dev/null @@ -1 +0,0 @@ -.audio-preview{display:flex;align-items:center;gap:12px;margin:18px 0;padding:14px;border:1px solid #2b3d68;border-radius:10px;background:#14203a}.audio-play{display:inline-flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:10px 15px!important;color:#121a34;font-weight:850;background:linear-gradient(135deg,#99c8ff,#c6adff);cursor:pointer}.audio-play__icon{display:grid;width:22px;height:22px;place-items:center;border-radius:50%;color:#fff;background:#172443}.audio-play.is-loading .audio-play__icon{color:transparent;border:2px solid #263a76;border-top-color:#fff;animation:audio-spin .7s linear infinite}.audio-status{color:#aab9d8;font-size:.85rem}@keyframes audio-spin{to{transform:rotate(360deg)}} \ No newline at end of file diff --git a/frontend/src/styles/pages/admin-audio-preview.scss b/frontend/src/styles/pages/admin-audio-preview.scss new file mode 100644 index 0000000..5b0ac59 --- /dev/null +++ b/frontend/src/styles/pages/admin-audio-preview.scss @@ -0,0 +1,51 @@ +.audio-preview { + display: flex; + align-items: center; + gap: 12px; + margin: 18px 0; + padding: 14px; + border: 1px solid #2b3d68; + border-radius: 10px; + background: #14203a; +} + +.audio-play { + display: inline-flex; + align-items: center; + gap: 9px; + border: 0; + border-radius: 999px; + padding: 10px 15px !important; + color: #121a34; + font-weight: 850; + background: linear-gradient(135deg,#99c8ff,#c6adff); + cursor: pointer; +} + +.audio-play__icon { + display: grid; + width: 22px; + height: 22px; + place-items: center; + border-radius: 50%; + color: #fff; + background: #172443; +} + +.audio-play.is-loading .audio-play__icon { + color: transparent; + border: 2px solid #263a76; + border-top-color: #fff; + animation: audio-spin .7s linear infinite; +} + +.audio-status { + color: #aab9d8; + font-size: .85rem; +} + +@keyframes audio-spin { + to { + transform: rotate(360deg); + } +} diff --git a/frontend/src/styles/pages/admin-login.css b/frontend/src/styles/pages/admin-login.css deleted file mode 100644 index 135472d..0000000 --- a/frontend/src/styles/pages/admin-login.css +++ /dev/null @@ -1 +0,0 @@ -:root{--ink:#edf3ff;--muted:#aab9d8;--line:#2b3d68;--danger:#ff9ea8}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 8% 0,#263a76,transparent 31rem),radial-gradient(circle at 96% 100%,#512363,transparent 29rem),#090e1d}.card{width:min(100%,27rem);position:relative;overflow:hidden;padding:clamp(2rem,7vw,3.5rem);border:1px solid var(--line);border-radius:1.4rem;background:linear-gradient(145deg,#172443e8,#10182ddd);box-shadow:0 1.75rem 5rem #01030c99;backdrop-filter:blur(16px)}.card:before{content:"";width:12rem;height:12rem;position:absolute;top:-7rem;right:-5rem;border-radius:50%;background:#78a8ef45}.brand{display:flex;align-items:center;gap:.65rem;margin-bottom:2.7rem;font-size:.78rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.mark{display:grid;width:2.25rem;aspect-ratio:1;place-items:center;border-radius:.72rem;color:#17132b;font-size:1.1rem;background:linear-gradient(135deg,#fcd34d,#fb7185);box-shadow:0 .5rem 1.5rem #fb718550}.eyebrow{margin:0;color:#bcd4ff;font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}h1{margin:.55rem 0 .75rem;font-size:clamp(2rem,7vw,3.2rem);line-height:1;letter-spacing:-.06em}.intro{margin:0 0 1.8rem;color:var(--muted);line-height:1.55}.error{margin:0 0 1rem;padding:.75rem;border:1px solid #994957;border-radius:.7rem;color:#ffd6da;font-size:.88rem;background:#551d2b70}label{display:block;margin:1rem 0 .4rem;color:#c7d6f4;font-size:.82rem;font-weight:800}input{width:100%;min-height:2.85rem;padding:.7rem .8rem;border:1px solid #3d5487;border-radius:.7rem;color:var(--ink);font:inherit;background:#0a1123}input:focus{outline:2px solid #9bc8ff;outline-offset:2px}button{width:100%;min-height:2.9rem;margin-top:1.5rem;border:1px solid #b3c9ff;border-radius:.75rem;color:#121a34;font:inherit;font-weight:850;background:linear-gradient(135deg,#99c8ff,#c6adff);box-shadow:0 .65rem 1.75rem #7058dd50;cursor:pointer;transition:transform .2s}button:hover{transform:translateY(-2px)}.foot{margin:1.5rem 0 0;color:#8498c1;font-size:.78rem;text-align:center}@media(prefers-reduced-motion:reduce){button{transition:none}} \ No newline at end of file diff --git a/frontend/src/styles/pages/admin-login.scss b/frontend/src/styles/pages/admin-login.scss new file mode 100644 index 0000000..b3bd957 --- /dev/null +++ b/frontend/src/styles/pages/admin-login.scss @@ -0,0 +1,153 @@ +:root { + --ink: #edf3ff; + --muted: #aab9d8; + --line: #2b3d68; + --danger: #ff9ea8; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + display: grid; + place-items: center; + margin: 0; + padding: 1.5rem; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 8% 0,#263a76,transparent 31rem),radial-gradient(circle at 96% 100%,#512363,transparent 29rem),#090e1d; +} + +.card { + width: min(100%,27rem); + position: relative; + overflow: hidden; + padding: clamp(2rem,7vw,3.5rem); + border: 1px solid var(--line); + border-radius: 1.4rem; + background: linear-gradient(145deg,#172443e8,#10182ddd); + box-shadow: 0 1.75rem 5rem #01030c99; + backdrop-filter: blur(16px); + &:before { + content: ""; + width: 12rem; + height: 12rem; + position: absolute; + top: -7rem; + right: -5rem; + border-radius: 50%; + background: #78a8ef45; + } +} + +.brand { + display: flex; + align-items: center; + gap: .65rem; + margin-bottom: 2.7rem; + font-size: .78rem; + font-weight: 900; + letter-spacing: .14em; + text-transform: uppercase; +} + +.mark { + display: grid; + width: 2.25rem; + aspect-ratio: 1; + place-items: center; + border-radius: .72rem; + color: #17132b; + font-size: 1.1rem; + background: linear-gradient(135deg,#fcd34d,#fb7185); + box-shadow: 0 .5rem 1.5rem #fb718550; +} + +.eyebrow { + margin: 0; + color: #bcd4ff; + font-size: .75rem; + font-weight: 800; + letter-spacing: .14em; + text-transform: uppercase; +} + +h1 { + margin: .55rem 0 .75rem; + font-size: clamp(2rem,7vw,3.2rem); + line-height: 1; + letter-spacing: -.06em; +} + +.intro { + margin: 0 0 1.8rem; + color: var(--muted); + line-height: 1.55; +} + +.error { + margin: 0 0 1rem; + padding: .75rem; + border: 1px solid #994957; + border-radius: .7rem; + color: #ffd6da; + font-size: .88rem; + background: #551d2b70; +} + +label { + display: block; + margin: 1rem 0 .4rem; + color: #c7d6f4; + font-size: .82rem; + font-weight: 800; +} + +input { + width: 100%; + min-height: 2.85rem; + padding: .7rem .8rem; + border: 1px solid #3d5487; + border-radius: .7rem; + color: var(--ink); + font: inherit; + background: #0a1123; + &:focus { + outline: 2px solid #9bc8ff; + outline-offset: 2px; + } +} + +button { + width: 100%; + min-height: 2.9rem; + margin-top: 1.5rem; + border: 1px solid #b3c9ff; + border-radius: .75rem; + color: #121a34; + font: inherit; + font-weight: 850; + background: linear-gradient(135deg,#99c8ff,#c6adff); + box-shadow: 0 .65rem 1.75rem #7058dd50; + cursor: pointer; + transition: transform .2s; + &:hover { + transform: translateY(-2px); + } +} + +.foot { + margin: 1.5rem 0 0; + color: #8498c1; + font-size: .78rem; + text-align: center; +} + +@media (prefers-reduced-motion:reduce) { + button { + transition: none; + } +} diff --git a/frontend/src/styles/pages/dashboard.css b/frontend/src/styles/pages/dashboard.css deleted file mode 100644 index 7e9a349..0000000 --- a/frontend/src/styles/pages/dashboard.css +++ /dev/null @@ -1,52 +0,0 @@ -:root { - --dashboard-ink: #edf3ff; - --dashboard-muted: #aab9d8; - --dashboard-line: #2b3d68; - --dashboard-surface: #111a31; - --dashboard-surface-raised: #172443; -} -body.dashboard-page { - display: block; - min-width: 320px; - min-height: 100vh; - margin: 0; - color: var(--dashboard-ink); - font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; - background: radial-gradient(circle at 8% 0%, #263a76 0, transparent 31rem), radial-gradient(circle at 96% 100%, #512363 0, transparent 29rem), #090e1d; -} -.dashboard-shell { width: min(100% - 2.5rem, 70rem); margin: 0 auto; padding: clamp(2rem, 6vw, 5rem) 0; } -.dashboard-intro { max-width: 44rem; margin-bottom: 2rem; } -.dashboard-kicker { margin: 0 0 .8rem; color: #bfdbfe; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; } -.dashboard-intro h1 { max-width: 11ch; margin: 0; color: var(--dashboard-ink); font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .94; letter-spacing: -.065em; } -.dashboard-intro p:last-child { max-width: 42rem; margin: 1.25rem 0 0; color: var(--dashboard-muted); font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.65; } -.dashboard-section { margin-top: 2.25rem; } -.dashboard-section__header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; } -.dashboard-section__header h2 { margin: .25rem 0 0; color: var(--dashboard-ink); font-size: clamp(1.65rem, 4vw, 2.3rem); letter-spacing: -.045em; } -.dashboard-section__header .dashboard-kicker { margin-bottom: .3rem; } -.dashboard-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .7rem 1rem; border: 1px solid #789ed7; border-radius: .7rem; color: #dceaff; font-size: .9rem; font-weight: 800; text-decoration: none; background: #1b2e52; transition: transform .2s ease, background .2s ease; } -.dashboard-link:hover { transform: translateY(-1px); background: #274574; } -.dashboard-report { position: relative; overflow: hidden; padding: clamp(1.35rem, 4vw, 2.4rem); border: 1px solid #b86c2a; border-radius: 1.35rem; background: linear-gradient(135deg, #4a2b16e8, #171225dd); box-shadow: 0 1.5rem 4rem #02061680; } -.dashboard-report::after { content: ""; position: absolute; width: 17rem; height: 17rem; right: -9rem; top: -10rem; border-radius: 50%; background: #ffb4541f; pointer-events: none; } -.dashboard-report > * { position: relative; } -.dashboard-report .eyebrow { margin: 0 0 .7rem; color: #ffd08a; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; } -.dashboard-report .eyebrow::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .45rem; border-radius: 50%; background: #ffbd62; box-shadow: 0 0 0 .25rem #fbbf2430; } -.dashboard-report .manual-report__title { max-width: 14ch; margin: 0 0 .6rem; color: #fff6e7; font-size: clamp(2rem, 5vw, 3.4rem); line-height: .98; letter-spacing: -.06em; } -.dashboard-report .manual-report__intro { max-width: 42rem; margin: 0 0 1.35rem; color: #f3c8a3; line-height: 1.55; } -.dashboard-report .manual-report__label { display: block; margin-bottom: .5rem; color: #fff2df; font-weight: 800; } -.dashboard-report #manual-occurrences { width: min(100%, 36rem); min-height: 3.25rem; display: block; margin-bottom: 1rem; padding: .75rem .9rem; border: 1px solid #e2934a; border-radius: .75rem; color: #edf3ff; font: inherit; font-weight: 800; background: #151b31; } -.dashboard-report .manual-direction-panel { width: min(100%, 36rem); margin: 0 0 1rem; padding: 1rem; border: 1px solid #8d5bb5; border-radius: .75rem; background: #241b38; } -.dashboard-report .manual-direction-panel__heading { display: block; margin-bottom: .35rem; }.dashboard-report .manual-direction-panel__heading span { color: #c7b5eb; font-weight: 600; }.dashboard-report .manual-direction-panel__copy { margin: 0 0 .75rem; color: #d4c6ef; font-size: .88rem; line-height: 1.45; }.dashboard-report .manual-direction-panel__button { min-height: 2.75rem; padding: .65rem .9rem; border: 1px solid #c3a5eb; border-radius: .65rem; color: #211234; font: inherit; font-weight: 850; background: #d8c1fb; cursor: pointer; }.dashboard-report .manual-direction-panel__status { min-height: 1.4rem; margin-top: .7rem; color: #e5dcf7; font-size: .9rem; } -.dashboard-report .manual-report__submit { width: min(100%, 36rem); min-height: 4.5rem; border: 0; border-radius: 1rem; color: #281306; font: inherit; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 900; background: linear-gradient(135deg, #ffd18c, #ff8f5b); box-shadow: 0 .75rem 1.8rem #d664344d; cursor: pointer; }.dashboard-report .manual-report__submission { min-height: 1.5rem; margin-top: 1rem; color: #ffd18c; } -.dashboard-map .map { height: clamp(22rem, 48vh, 34rem); }.dashboard-map .map-header { background: #121d37; }.dashboard-map .legend { display: none; } -.dashboard-upload { padding: clamp(1rem, 3vw, 1.5rem); } -.dashboard-upload .drop-zone { min-height: 12rem; } -@media (max-width: 42rem) { .dashboard-shell { width: min(100% - 1.25rem, 70rem); }.dashboard-section__header { align-items: flex-start; flex-direction: column; }.dashboard-link { width: 100%; }.dashboard-map .map { height: 23rem; } } -:root[data-theme="light"] body.dashboard-page { --dashboard-ink: #172b50; --dashboard-muted: #596d88; --dashboard-line: #cbd9ed; --dashboard-surface: #fff; --dashboard-surface-raised: #f4f8ff; background: radial-gradient(circle at 8% 0%, #dbeaff 0, transparent 31rem), radial-gradient(circle at 96% 100%, #eee2ff 0, transparent 29rem), #f4f7fc; } -:root[data-theme="light"] .dashboard-intro h1, :root[data-theme="light"] .dashboard-section__header h2 { color: #172b50 !important; } -:root[data-theme="light"] .dashboard-kicker { color: #3f6fa9 !important; } -:root[data-theme="light"] .dashboard-link { border-color: #9fc0e9; color: #234a7b; background: #e6f0ff; }.dashboard-link:hover { background: #d8e8ff; } -:root[data-theme="light"] .dashboard-report { border-color: #eca851; background: linear-gradient(145deg, #fff8ef, #ffe0bb); box-shadow: 0 1.4rem 3.4rem rgba(116, 69, 25, .18); } -:root[data-theme="light"] .dashboard-report .eyebrow { color: #9f4d16 !important; }:root[data-theme="light"] .dashboard-report .manual-report__title { color: #4a2510 !important; }:root[data-theme="light"] .dashboard-report .manual-report__intro { color: #70411d !important; }:root[data-theme="light"] .dashboard-report .manual-report__label { color: #54311b; }:root[data-theme="light"] .dashboard-report #manual-occurrences { border-color: #dfaa68; color: #322014; background: #fffdfa; }:root[data-theme="light"] .dashboard-report .manual-direction-panel { border-color: #d9b4d8; background: #fff5fc; }:root[data-theme="light"] .dashboard-report .manual-direction-panel__heading { color: #492846; }:root[data-theme="light"] .dashboard-report .manual-direction-panel__heading span { color: #70466d; }:root[data-theme="light"] .dashboard-report .manual-direction-panel__copy { color: #694b68; }:root[data-theme="light"] .dashboard-report .manual-direction-panel__button { border-color: #b68bb5; color: #321a34; background: #ead2eb; }:root[data-theme="light"] .dashboard-report .manual-direction-panel__status { color: #6b4267; }:root[data-theme="light"] .dashboard-report .manual-report__submission { color: #87421b; } -:root[data-theme="light"] .dashboard-map .map-header { background: #f2f6fc !important; } - -.dashboard-page .profile-circle { display: grid; width: 3rem; height: 3rem; position: fixed; top: 1.25rem; right: 1.25rem; place-items: center; border: 1px solid #d0c0ff; border-radius: 50%; z-index: 1201; color: #17132b; font-weight: 900; text-decoration: none; background: linear-gradient(135deg, #fcd34d, #c4a5fd); box-shadow: 0 .5rem 1.5rem #01030c66; }.dashboard-page .profile-circle:focus-visible { outline: 3px solid #a5c9ff80; outline-offset: 3px; } diff --git a/frontend/src/styles/pages/dashboard.scss b/frontend/src/styles/pages/dashboard.scss new file mode 100644 index 0000000..52b58e5 --- /dev/null +++ b/frontend/src/styles/pages/dashboard.scss @@ -0,0 +1,362 @@ +:root { + --dashboard-ink: #edf3ff; + --dashboard-muted: #aab9d8; + --dashboard-line: #2b3d68; + --dashboard-surface: #111a31; + --dashboard-surface-raised: #172443; +} + +body.dashboard-page { + display: block; + min-width: 320px; + min-height: 100vh; + margin: 0; + color: var(--dashboard-ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 8% 0%, #263a76 0, transparent 31rem), radial-gradient(circle at 96% 100%, #512363 0, transparent 29rem), #090e1d; +} + +.dashboard-shell { + width: min(100% - 2.5rem, 70rem); + margin: 0 auto; + padding: clamp(2rem, 6vw, 5rem) 0; +} + +.dashboard-intro { + max-width: 44rem; + margin-bottom: 2rem; +} + +.dashboard-kicker { + margin: 0 0 .8rem; + color: #bfdbfe; + font-size: .76rem; + font-weight: 850; + letter-spacing: .14em; + text-transform: uppercase; +} + +.dashboard-intro h1 { + max-width: 11ch; + margin: 0; + color: var(--dashboard-ink); + font-size: clamp(2.8rem, 7vw, 5.5rem); + line-height: .94; + letter-spacing: -.065em; +} + +.dashboard-intro p:last-child { + max-width: 42rem; + margin: 1.25rem 0 0; + color: var(--dashboard-muted); + font-size: clamp(1rem, 2vw, 1.16rem); + line-height: 1.65; +} + +.dashboard-section { + margin-top: 2.25rem; +} + +.dashboard-section__header { + display: flex; + align-items: end; + justify-content: space-between; + gap: 1rem; + margin: 0 0 1rem; + h2 { + margin: .25rem 0 0; + color: var(--dashboard-ink); + font-size: clamp(1.65rem, 4vw, 2.3rem); + letter-spacing: -.045em; + } + .dashboard-kicker { + margin-bottom: .3rem; + } +} + +.dashboard-link { + display: inline-flex; + align-items: center; + justify-content: center; + min-height: 2.75rem; + padding: .7rem 1rem; + border: 1px solid #789ed7; + border-radius: .7rem; + color: #dceaff; + font-size: .9rem; + font-weight: 800; + text-decoration: none; + background: #1b2e52; + transition: transform .2s ease, background .2s ease; + &:hover { + transform: translateY(-1px); + background: #274574; + } +} + +.dashboard-report { + position: relative; + overflow: hidden; + padding: clamp(1.35rem, 4vw, 2.4rem); + border: 1px solid #b86c2a; + border-radius: 1.35rem; + background: linear-gradient(135deg, #4a2b16e8, #171225dd); + box-shadow: 0 1.5rem 4rem #02061680; + &::after { + content: ""; + position: absolute; + width: 17rem; + height: 17rem; + right: -9rem; + top: -10rem; + border-radius: 50%; + background: #ffb4541f; + pointer-events: none; + } + > * { + position: relative; + } + .eyebrow { + margin: 0 0 .7rem; + color: #ffd08a; + font-size: .76rem; + font-weight: 850; + letter-spacing: .14em; + text-transform: uppercase; + &::before { + content: ""; + display: inline-block; + width: .5rem; + height: .5rem; + margin-right: .45rem; + border-radius: 50%; + background: #ffbd62; + box-shadow: 0 0 0 .25rem #fbbf2430; + } + } + .manual-report__title { + max-width: 14ch; + margin: 0 0 .6rem; + color: #fff6e7; + font-size: clamp(2rem, 5vw, 3.4rem); + line-height: .98; + letter-spacing: -.06em; + } + .manual-report__intro { + max-width: 42rem; + margin: 0 0 1.35rem; + color: #f3c8a3; + line-height: 1.55; + } + .manual-report__label { + display: block; + margin-bottom: .5rem; + color: #fff2df; + font-weight: 800; + } + #manual-occurrences { + width: min(100%, 36rem); + min-height: 3.25rem; + display: block; + margin-bottom: 1rem; + padding: .75rem .9rem; + border: 1px solid #e2934a; + border-radius: .75rem; + color: #edf3ff; + font: inherit; + font-weight: 800; + background: #151b31; + } + .manual-direction-panel { + width: min(100%, 36rem); + margin: 0 0 1rem; + padding: 1rem; + border: 1px solid #8d5bb5; + border-radius: .75rem; + background: #241b38; + } + .manual-direction-panel__heading { + display: block; + margin-bottom: .35rem; + span { + color: #c7b5eb; + font-weight: 600; + } + } + .manual-direction-panel__copy { + margin: 0 0 .75rem; + color: #d4c6ef; + font-size: .88rem; + line-height: 1.45; + } + .manual-direction-panel__button { + min-height: 2.75rem; + padding: .65rem .9rem; + border: 1px solid #c3a5eb; + border-radius: .65rem; + color: #211234; + font: inherit; + font-weight: 850; + background: #d8c1fb; + cursor: pointer; + } + .manual-direction-panel__status { + min-height: 1.4rem; + margin-top: .7rem; + color: #e5dcf7; + font-size: .9rem; + } + .manual-report__submit { + width: min(100%, 36rem); + min-height: 4.5rem; + border: 0; + border-radius: 1rem; + color: #281306; + font: inherit; + font-size: clamp(1.05rem, 2vw, 1.3rem); + font-weight: 900; + background: linear-gradient(135deg, #ffd18c, #ff8f5b); + box-shadow: 0 .75rem 1.8rem #d664344d; + cursor: pointer; + } + .manual-report__submission { + min-height: 1.5rem; + margin-top: 1rem; + color: #ffd18c; + } +} + +.dashboard-map .map { + height: clamp(22rem, 48vh, 34rem); +} + +.dashboard-map .map-header { + background: #121d37; +} + +.dashboard-map .legend { + display: none; +} + +.dashboard-upload { + padding: clamp(1rem, 3vw, 1.5rem); + .drop-zone { + min-height: 12rem; + } +} + +@media (max-width: 42rem) { + .dashboard-shell { + width: min(100% - 1.25rem, 70rem); + } + .dashboard-section__header { + align-items: flex-start; + flex-direction: column; + } + .dashboard-link { + width: 100%; + } + .dashboard-map .map { + height: 23rem; + } +} + +:root[data-theme="light"] body.dashboard-page { + --dashboard-ink: #172b50; + --dashboard-muted: #596d88; + --dashboard-line: #cbd9ed; + --dashboard-surface: #fff; + --dashboard-surface-raised: #f4f8ff; + background: radial-gradient(circle at 8% 0%, #dbeaff 0, transparent 31rem), radial-gradient(circle at 96% 100%, #eee2ff 0, transparent 29rem), #f4f7fc; +} + +:root[data-theme="light"] .dashboard-intro h1, :root[data-theme="light"] .dashboard-section__header h2 { + color: #172b50 !important; +} + +:root[data-theme="light"] .dashboard-kicker { + color: #3f6fa9 !important; +} + +:root[data-theme="light"] .dashboard-link { + border-color: #9fc0e9; + color: #234a7b; + background: #e6f0ff; +} + +.dashboard-link:hover { + background: #d8e8ff; +} + +:root[data-theme="light"] .dashboard-report { + border-color: #eca851; + background: linear-gradient(145deg, #fff8ef, #ffe0bb); + box-shadow: 0 1.4rem 3.4rem rgba(116, 69, 25, .18); + .eyebrow { + color: #9f4d16 !important; + } + .manual-report__title { + color: #4a2510 !important; + } + .manual-report__intro { + color: #70411d !important; + } + .manual-report__label { + color: #54311b; + } + #manual-occurrences { + border-color: #dfaa68; + color: #322014; + background: #fffdfa; + } + .manual-direction-panel { + border-color: #d9b4d8; + background: #fff5fc; + } + .manual-direction-panel__heading { + color: #492846; + span { + color: #70466d; + } + } + .manual-direction-panel__copy { + color: #694b68; + } + .manual-direction-panel__button { + border-color: #b68bb5; + color: #321a34; + background: #ead2eb; + } + .manual-direction-panel__status { + color: #6b4267; + } + .manual-report__submission { + color: #87421b; + } +} + +:root[data-theme="light"] .dashboard-map .map-header { + background: #f2f6fc !important; +} + +.dashboard-page .profile-circle { + display: grid; + width: 3rem; + height: 3rem; + position: fixed; + top: 1.25rem; + right: 1.25rem; + place-items: center; + border: 1px solid #d0c0ff; + border-radius: 50%; + z-index: 1201; + color: #17132b; + font-weight: 900; + text-decoration: none; + background: linear-gradient(135deg, #fcd34d, #c4a5fd); + box-shadow: 0 .5rem 1.5rem #01030c66; + &:focus-visible { + outline: 3px solid #a5c9ff80; + outline-offset: 3px; + } +} diff --git a/frontend/src/styles/pages/events.css b/frontend/src/styles/pages/events.css deleted file mode 100644 index 2ea33ad..0000000 --- a/frontend/src/styles/pages/events.css +++ /dev/null @@ -1,48 +0,0 @@ -:root{--i:#edf3ff;--m:#aab9d8;--l:#2b3d68}*{box-sizing:border-box}body{margin:0;min-height:100vh;padding:2rem;color:var(--i);font-family:system-ui;background:radial-gradient(circle at 8% 0,#263a76,transparent 31rem),#090e1d}.shell{width:min(100%,70rem);margin:auto}.top{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:3rem}.brand,a{color:inherit}.brand{text-decoration:none;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.top a:not(.brand){padding:.6rem .8rem;border:1px solid var(--l);border-radius:.6rem;text-decoration:none}.eyebrow{color:#bcd4ff;font-size:.76rem;letter-spacing:.15em;text-transform:uppercase;font-weight:800}h1{font-size:clamp(2.5rem,6vw,4.5rem);letter-spacing:-.06em;margin:.4rem 0}.lede{color:var(--m);max-width:38rem;line-height:1.6}.grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1rem;margin-top:2rem}.panel{border:1px solid var(--l);border-radius:1rem;padding:1rem;background:#111a31d9}.event{width:100%;display:flex;justify-content:space-between;gap:.6rem;text-align:left;margin:.6rem 0;padding:.85rem;border:1px solid #374e7e;border-radius:.7rem;color:var(--i);background:#15223f;cursor:pointer}.event:hover{background:#20345f}.event--manual{border-color:#e2934a;background:linear-gradient(90deg,#70401e,#15223f)}.event small,.empty{color:var(--m)}.badge{color:#ffd08a}.detail h2{margin-top:0}.prediction{display:flex;justify-content:space-between;gap:1rem;padding:.65rem;margin:.45rem 0;border-left:3px solid #78a4f0;background:#111c34}.prediction--firework{border-color:#f5aa44}.prediction--speech{border-color:#fb7185}.meta{color:var(--m);font-size:.9rem}@media(max-width:42rem){body{padding:1rem}.grid{grid-template-columns:1fr}} - -/* Event source styles keep manual reports and sensor classifications recognisable. */ -.event__content { display: grid; gap: .16rem; } -.event__source { color: #bcd4ff; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; } -.event--sensor { border-color: #5478b7; background: linear-gradient(90deg, #1b355f, #15223f 72%); } -.event--sensor .badge { color: #a9ccff; } -.event--manual .event__source { color: #ffd08a; } -.event--sensor:hover { background: linear-gradient(90deg, #25497e, #20345f 72%); } -.event-nav { display: flex; gap: .3rem; padding: .25rem; border: 1px solid var(--l); border-radius: .75rem; background: #111a31d9; box-shadow: 0 .5rem 1.5rem #03071440; } -.top .event-nav a { padding: .5rem .75rem; border: 0; border-radius: .5rem; color: var(--m); font-size: .86rem; font-weight: 750; text-decoration: none; } -.top .event-nav a:hover { color: var(--i); background: #20345f; } -.top .event-nav a[aria-current="page"] { color: var(--i); background: #2a3b67; } - -:root[data-theme="light"] .event-nav { - border-color: #cbd9ed; - background: #edf4ff; - box-shadow: 0 .45rem 1.25rem rgba(34, 68, 117, .12); -} -:root[data-theme="light"] .top .event-nav a { color: #47617f; } -:root[data-theme="light"] .top .event-nav a:hover { color: #234a7b; background: #dceaff; } -:root[data-theme="light"] .top .event-nav a[aria-current="page"] { - color: #173d6a; - background: #cfe3ff; - box-shadow: inset 0 0 0 1px #9cc0ed; -} -:root[data-theme="light"] .event { - color: #1d2d46; - border-color: #cfdaea; - background: #f7faff; - box-shadow: 0 .35rem .9rem rgba(38, 62, 101, .06); -} -:root[data-theme="light"] .event:hover { background: #edf4ff; } -:root[data-theme="light"] .event small { color: #61718a; } -:root[data-theme="light"] .event__source { color: #426b9f; } -:root[data-theme="light"] .event--sensor { - border-color: #8eafd9; - background: linear-gradient(90deg, #edf6ff, #e1edff 76%); -} -:root[data-theme="light"] .event--sensor:hover { background: linear-gradient(90deg, #e2f0ff, #d4e6ff 76%); } -:root[data-theme="light"] .event--sensor .badge { color: #245b95; } -:root[data-theme="light"] .event--manual { - border-color: #e4a35c; - background: linear-gradient(90deg, #fff8ee, #ffe3bf 76%); -} -:root[data-theme="light"] .event--manual:hover { background: linear-gradient(90deg, #fff1df, #ffd7a3 76%); } -:root[data-theme="light"] .event--manual .event__source, -:root[data-theme="light"] .event--manual .badge { color: #9a4b13; } diff --git a/frontend/src/styles/pages/events.scss b/frontend/src/styles/pages/events.scss new file mode 100644 index 0000000..1f97046 --- /dev/null +++ b/frontend/src/styles/pages/events.scss @@ -0,0 +1,267 @@ +:root { + --i: #edf3ff; + --m: #aab9d8; + --l: #2b3d68; +} + +* { + box-sizing: border-box; +} + +body { + margin: 0; + min-height: 100vh; + padding: 2rem; + color: var(--i); + font-family: system-ui; + background: radial-gradient(circle at 8% 0,#263a76,transparent 31rem),#090e1d; +} + +.shell { + width: min(100%,70rem); + margin: auto; +} + +.top { + display: flex; + justify-content: space-between; + gap: 1rem; + align-items: center; + margin-bottom: 3rem; +} + +.brand,a { + color: inherit; +} + +.brand { + text-decoration: none; + font-weight: 900; + letter-spacing: .1em; + text-transform: uppercase; +} + +.top a:not(.brand) { + padding: .6rem .8rem; + border: 1px solid var(--l); + border-radius: .6rem; + text-decoration: none; +} + +.eyebrow { + color: #bcd4ff; + font-size: .76rem; + letter-spacing: .15em; + text-transform: uppercase; + font-weight: 800; +} + +h1 { + font-size: clamp(2.5rem,6vw,4.5rem); + letter-spacing: -.06em; + margin: .4rem 0; +} + +.lede { + color: var(--m); + max-width: 38rem; + line-height: 1.6; +} + +.grid { + display: grid; + grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); + gap: 1rem; + margin-top: 2rem; +} + +.panel { + border: 1px solid var(--l); + border-radius: 1rem; + padding: 1rem; + background: #111a31d9; +} + +.event { + width: 100%; + display: flex; + justify-content: space-between; + gap: .6rem; + text-align: left; + margin: .6rem 0; + padding: .85rem; + border: 1px solid #374e7e; + border-radius: .7rem; + color: var(--i); + background: #15223f; + cursor: pointer; + &:hover { + background: #20345f; + } +} + +.event--manual { + border-color: #e2934a; + background: linear-gradient(90deg,#70401e,#15223f); +} + +.event small,.empty { + color: var(--m); +} + +.badge { + color: #ffd08a; +} + +.detail h2 { + margin-top: 0; +} + +.prediction { + display: flex; + justify-content: space-between; + gap: 1rem; + padding: .65rem; + margin: .45rem 0; + border-left: 3px solid #78a4f0; + background: #111c34; +} + +.prediction--firework { + border-color: #f5aa44; +} + +.prediction--speech { + border-color: #fb7185; +} + +.meta { + color: var(--m); + font-size: .9rem; +} + +@media (max-width:42rem) { + body { + padding: 1rem; + } + .grid { + grid-template-columns: 1fr; + } +} + +/*Event source styles keep manual reports and sensor classifications recognisable.*/ + +.event__content { + display: grid; + gap: .16rem; +} + +.event__source { + color: #bcd4ff; + font-size: .67rem; + font-weight: 850; + letter-spacing: .1em; + text-transform: uppercase; +} + +.event--sensor { + border-color: #5478b7; + background: linear-gradient(90deg, #1b355f, #15223f 72%); + .badge { + color: #a9ccff; + } +} + +.event--manual .event__source { + color: #ffd08a; +} + +.event--sensor:hover { + background: linear-gradient(90deg, #25497e, #20345f 72%); +} + +.event-nav { + display: flex; + gap: .3rem; + padding: .25rem; + border: 1px solid var(--l); + border-radius: .75rem; + background: #111a31d9; + box-shadow: 0 .5rem 1.5rem #03071440; +} + +.top .event-nav a { + padding: .5rem .75rem; + border: 0; + border-radius: .5rem; + color: var(--m); + font-size: .86rem; + font-weight: 750; + text-decoration: none; + &:hover { + color: var(--i); + background: #20345f; + } + &[aria-current="page"] { + color: var(--i); + background: #2a3b67; + } +} + +:root[data-theme="light"] .event-nav { + border-color: #cbd9ed; + background: #edf4ff; + box-shadow: 0 .45rem 1.25rem rgba(34, 68, 117, .12); +} + +:root[data-theme="light"] .top .event-nav a { + color: #47617f; + &:hover { + color: #234a7b; + background: #dceaff; + } + &[aria-current="page"] { + color: #173d6a; + background: #cfe3ff; + box-shadow: inset 0 0 0 1px #9cc0ed; + } +} + +:root[data-theme="light"] .event { + color: #1d2d46; + border-color: #cfdaea; + background: #f7faff; + box-shadow: 0 .35rem .9rem rgba(38, 62, 101, .06); + &:hover { + background: #edf4ff; + } + small { + color: #61718a; + } +} + +:root[data-theme="light"] .event__source { + color: #426b9f; +} + +:root[data-theme="light"] .event--sensor { + border-color: #8eafd9; + background: linear-gradient(90deg, #edf6ff, #e1edff 76%); + &:hover { + background: linear-gradient(90deg, #e2f0ff, #d4e6ff 76%); + } + .badge { + color: #245b95; + } +} + +:root[data-theme="light"] .event--manual { + border-color: #e4a35c; + background: linear-gradient(90deg, #fff8ee, #ffe3bf 76%); + &:hover { + background: linear-gradient(90deg, #fff1df, #ffd7a3 76%); + } + .event__source, .badge { + color: #9a4b13; + } +} diff --git a/frontend/src/styles/pages/fireworks-home.css b/frontend/src/styles/pages/fireworks-home.css deleted file mode 100644 index 52a593c..0000000 --- a/frontend/src/styles/pages/fireworks-home.css +++ /dev/null @@ -1,522 +0,0 @@ - - :root { - --ink: #eaf0ff; - --muted: #9caed1; - --surface: #111a31; - --surface-2: #17223e; - --line: #2a3a61; - --blue: #6aa8ff; - --violet: #a78bfa; - --fire: #ffb454; - --danger: #ff727c; - --success: #6ee7b7; - } - - * { - box-sizing: border-box; - } - - body { - min-width: 320px; - min-height: 100vh; - margin: 0; - color: var(--ink); - font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; - background: radial-gradient(circle at 10% 0%, #263a76 0, transparent 30rem), radial-gradient(circle at 90% 20%, #4d236c 0, transparent 28rem), #090e1d; - } - - .shell { - width: min(100% - 2.5rem, 70rem); - margin: 0 auto; - padding: clamp(2rem, 6vw, 5rem) 0; - } - - .brand { - display: flex; - align-items: center; - gap: .75rem; - /* margin-bottom: clamp(2.5rem, 6vw, 5rem); */ - font-size: .9rem; - font-weight: 800; - letter-spacing: .11em; - text-transform: uppercase; - } - - .brand-mark { - display: grid; - width: 2.25rem; - aspect-ratio: 1; - place-items: center; - border-radius: .75rem; - color: #141022; - background: linear-gradient(135deg, #fcd34d, #fb7185); - box-shadow: 0 .5rem 1.5rem #fb718550; - } - - .intro { - max-width: 45rem; - } - - .kicker { - margin: 0 0 .8rem; - color: #bfdbfe; - font-size: .78rem; - font-weight: 800; - letter-spacing: .15em; - text-transform: uppercase; - } - - h1 { - max-width: 12ch; - margin: 0; - font-size: clamp(2.6rem, 7vw, 5.75rem); - line-height: .96; - letter-spacing: -.065em; - } - - .lede { - max-width: 38rem; - margin: 1.5rem 0 2.5rem; - color: var(--muted); - font-size: clamp(1rem, 2vw, 1.18rem); - line-height: 1.65; - } - - .upload-card, - .results-card { - border: 1px solid var(--line); - border-radius: 1.5rem; - background: linear-gradient(145deg, #162240d9, #0e162bdd); - box-shadow: 0 1.5rem 4rem #02061680; - backdrop-filter: blur(16px); - } - - .upload-card { - padding: clamp(1rem, 3vw, 1.5rem); - } - - .drop-zone { - display: grid; - min-height: 16rem; - place-items: center; - padding: 2rem; - border: 1.5px dashed #5d75aa; - border-radius: 1rem; - cursor: pointer; - text-align: center; - background: linear-gradient(135deg, #1b2a4e80, #291c4b66); - transition: .2s ease; - } - - .drop-zone:hover, - .drop-zone.dragging { - border-color: var(--blue); - transform: translateY(-2px); - background: #203360a8; - } - - .drop-zone:focus-within { - outline: 3px solid #6aa8ff66; - outline-offset: 3px; - } - - .file-input { - width: .1px; - height: .1px; - position: absolute; - opacity: 0; - overflow: hidden; - } - - .drop-zone .upload-icon { - display: grid; - width: 4rem; - aspect-ratio: 1; - place-items: center; - margin: 0 auto 1rem; - border-radius: 50%; - color: #dbeafe; - font-size: 1.8rem; - background: #4777c94d; - } - - .drop-zone .upload-icon__content { position: relative; z-index: 1; margin: 0; color: inherit; font-size: inherit; font-weight: 850; } - .audio-upload--uploading .upload-icon, - .audio-upload--processing .upload-icon, - .audio-upload--success .upload-icon, - .audio-upload--error .upload-icon { position: relative; width: 5.5rem; margin-bottom: .25rem; color: #fff; font-size: 1.25rem; box-shadow: 0 0 0 .35rem #334e8d70, 0 .6rem 2rem #101a3fa6; } - .audio-upload--uploading .upload-icon { background: conic-gradient(#91baff var(--upload-progress, 0%), #334b82 0); } - .audio-upload--processing .upload-icon { background: #405caa; } - .audio-upload--processing .upload-icon::after { content: ""; position: absolute; inset: -.42rem; border: 3px solid #9fc5ff; border-right-color: transparent; border-radius: 50%; animation: spin 1.5s linear infinite; } - .audio-upload--success .upload-icon { background: #147d6c; } - .audio-upload--error .upload-icon { background: #9d385b; } - .audio-upload--uploading .drop-zone, - .audio-upload--processing .drop-zone { border-color: #7296d5; background: linear-gradient(135deg, #18284c, #242046); } - .audio-upload--uploading .drop-zone strong, - .audio-upload--processing .drop-zone strong, - .audio-upload--uploading .drop-zone > span > span:not(.upload-icon), - .audio-upload--processing .drop-zone > span > span:not(.upload-icon), - .audio-upload--uploading .file-name, - .audio-upload--processing .file-name { opacity: .35; } - .audio-upload--uploading .drop-zone, - .audio-upload--processing .drop-zone { cursor: default; } - .audio-upload--uploading .drop-zone:hover, - .audio-upload--processing .drop-zone:hover { transform: none; } - .upload-cancel[hidden] { display: none; } - #classification-results { scroll-margin-top: 1.5rem; } - @media (prefers-reduced-motion: reduce) { - .audio-upload--processing .upload-icon::after { animation: none; } - .audio-upload--uploading .drop-zone, - .audio-upload--processing .drop-zone, - .audio-upload--uploading .upload-icon, - .audio-upload--processing .upload-icon { transition: none; } - } - - .drop-zone strong { - display: block; - font-size: 1.15rem; - } - - .drop-zone span { - display: block; - margin-top: .4rem; - color: var(--muted); - font-size: .92rem; - } - - .file-name { - min-height: 1.3rem; - margin: 1rem 0 0; - color: #c7d2fe; - font-size: .9rem; - overflow-wrap: anywhere; - } - - .form-footer { - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; - padding: .9rem .25rem 0; - } - - .file-note { - margin: 0; - color: var(--muted); - font-size: .8rem; - } - - button, - .button { - text-decoration: none; - display: inline-flex; - align-items: center; - justify-content: center; - gap: .6rem; - border: 0; - border-radius: .8rem; - padding: .85rem 1.15rem; - cursor: pointer; - color: #10172c; - font: inherit; - font-weight: 800; - background: linear-gradient(135deg, #93c5fd, #c4b5fd); - box-shadow: 0 .5rem 1.25rem #8b5cf640; - transition: transform .2s ease, filter .2s ease; - } - - button:hover, - .button:hover { - transform: translateY(-1px); - filter: brightness(1.08); - } - - button:disabled { - cursor: wait; - filter: saturate(.4); - transform: none; - } - - .spinner { - width: 1rem; - height: 1rem; - border: 2px solid #263253; - border-top-color: currentColor; - border-radius: 50%; - animation: spin .75s linear infinite; - } - - .htmx-indicator { - display: none; - } - - .htmx-request.htmx-indicator { - display: inline-block; - } - - .upload-form.htmx-request button { - pointer-events: none; - } - - #upload-status { - min-height: 1.4rem; - margin: 1rem .25rem 0; - color: #c7d2fe; - font-size: .9rem; - } - - .upload-form.htmx-request+#upload-status { - color: #fcd34d; - } - - #classification-results { - margin-top: 1.5rem; - } - - .results-card { - padding: clamp(1.25rem, 3vw, 2rem); - animation: reveal .35s ease-out; - } - - .result-heading { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 1rem; - } - - .result-heading h2 { - margin: 0; - font-size: clamp(1.4rem, 3vw, 2rem); - letter-spacing: -.04em; - } - - .result-heading p { - margin: .3rem 0 0; - color: var(--muted); - } - - .result-status { - padding: .4rem .65rem; - border-radius: 999px; - color: #a7f3d0; - font-size: .75rem; - font-weight: 800; - white-space: nowrap; - background: #065f464d; - } - - .meta { - display: flex; - flex-wrap: wrap; - gap: .6rem; - margin: 1.5rem 0; - } - - .meta span, - .legend span { - padding: .4rem .65rem; - border: 1px solid var(--line); - border-radius: 999px; - color: #bdc9e5; - font-size: .8rem; - background: #101a31; - } - - .legend { - display: flex; - flex-wrap: wrap; - gap: .5rem; - margin: 0 0 1.25rem; - } - - .legend .firework { - color: #ffd18c; - border-color: #c7721e80; - } - - .legend .speech { - color: #ffadb4; - border-color: #d5485880; - } - .topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:3.5rem; }.brand { display:flex; align-items:center; gap:.7rem; color:var(--ink); font-size:.9rem; font-weight:800; letter-spacing:.1em; text-decoration:none; text-transform:uppercase; }.brand-mark { display:grid; width:2.25rem; aspect-ratio:1; place-items:center; border-radius:.75rem; color:#141022; background:linear-gradient(135deg,#fcd34d,#fb7185); box-shadow:0 .5rem 1.5rem #fb718550; }.nav { display:flex; gap:.35rem; padding:.25rem; border:1px solid var(--line); border-radius:.75rem; background:#111a31a6; }.nav a { padding:.5rem .75rem; border-radius:.5rem; color:var(--muted); font-size:.86rem; font-weight:700; text-decoration:none; }.nav a[aria-current="page"] { color:var(--ink); background:#2a3b67; } - - .result-grid { - display: grid; - grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); - gap: 1.25rem; - } - - .result-group { - padding: 1.1rem; - border: 1px solid var(--line); - border-radius: 1rem; - background: #0b1225a8; - } - - .result-group h3 { - margin: 0 0 1rem; - font-size: 1rem; - } - - .prediction-list { - display: grid; - gap: .75rem; - margin: 0; - padding: 0; - list-style: none; - } - - .prediction { - --accent-color: #7799dd; - position: relative; - display: grid; - grid-template-columns: minmax(0, 1fr) auto; - gap: .45rem .75rem; - align-items: center; - padding: .7rem .75rem; - overflow: hidden; - border: 1px solid #26365b; - border-left: 3px solid var(--accent-color); - border-radius: .7rem; - background: #121c34; - } - - .prediction--firework { - --accent-color: var(--fire); - background: linear-gradient(90deg, #7a421d55, #121c34); - } - - .prediction--speech { - --accent-color: var(--danger); - background: linear-gradient(90deg, #6c213055, #121c34); - } - - .prediction-label { - min-width: 0; - font-weight: 700; - overflow-wrap: anywhere; - } - - .prediction-score { - color: #c4d1ed; - font-size: .85rem; - font-variant-numeric: tabular-nums; - } - - .score-bar { - grid-column: 1/-1; - height: .3rem; - overflow: hidden; - border-radius: 999px; - background: #263657; - } - - .score-bar i { - display: block; - width: calc(var(--score) * 1%); - height: 100%; - border-radius: inherit; - background: var(--accent-color); - } - - .peak-list { - display: grid; - gap: .7rem; - } - - .peak-item { - padding-bottom: .7rem; - border-bottom: 1px solid #253453; - } - - .peak-item:last-child { - padding-bottom: 0; - border-bottom: 0; - } - - .peak-time { - color: #a9bce0; - font-size: .78rem; - } - - .peak-item .prediction { - margin-top: .35rem; - } - - .empty { - margin: 0; - color: var(--muted); - } - - .error-card { - border-color: #a43d4d; - background: linear-gradient(135deg, #4b1724dd, #1a1427dd); - } - - .error-card h2 { - color: #fecdd3; - } - - .error-card p { - color: #fecdd3; - } - - @keyframes spin { - to { - transform: rotate(360deg); - } - } - - @keyframes reveal { - from { - opacity: 0; - transform: translateY(.75rem); - } - } - - @media (max-width:42rem) { - .shell { - width: min(100% - 1.25rem, 70rem); - } - - .form-footer, - .result-heading { - align-items: stretch; - flex-direction: column; - } - - .form-footer button { - width: 100%; - } - - .result-grid { - grid-template-columns: 1fr; - } - - .result-status { - align-self: flex-start; - } - } - - @media (prefers-reduced-motion:reduce) { - - *, - ::before, - ::after { - scroll-behavior: auto !important; - animation-duration: .01ms !important; - transition-duration: .01ms !important; - } - } - -.browser-gate { margin: 1rem 0; padding: 1rem; border: 1px solid #e5bb7a; border-radius: .75rem; background: #4d392950; } -.browser-gate[hidden] { display: none; } -.browser-gate p { margin: .45rem 0 1rem; } -.browser-gate-actions { display: flex; gap: .65rem; flex-wrap: wrap; } -.browser-gate-actions button { cursor: pointer; } - -.browser-mode { margin: 1rem 0; } -.browser-mode__label { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; cursor: pointer; } -.browser-mode__label input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: #91baff; } -.browser-mode p { margin: .35rem 0 0 1.65rem; font-size: .9rem; opacity: .85; } diff --git a/frontend/src/styles/pages/fireworks-home.scss b/frontend/src/styles/pages/fireworks-home.scss new file mode 100644 index 0000000..8befc36 --- /dev/null +++ b/frontend/src/styles/pages/fireworks-home.scss @@ -0,0 +1,650 @@ +:root { + --ink: #eaf0ff; + --muted: #9caed1; + --surface: #111a31; + --surface-2: #17223e; + --line: #2a3a61; + --blue: #6aa8ff; + --violet: #a78bfa; + --fire: #ffb454; + --danger: #ff727c; + --success: #6ee7b7; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + margin: 0; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 10% 0%, #263a76 0, transparent 30rem), radial-gradient(circle at 90% 20%, #4d236c 0, transparent 28rem), #090e1d; +} + +.shell { + width: min(100% - 2.5rem, 70rem); + margin: 0 auto; + padding: clamp(2rem, 6vw, 5rem) 0; +} + +.brand { + display: flex; + align-items: center; + gap: .75rem; + /*margin-bottom: clamp(2.5rem, 6vw, 5rem);*/ + font-size: .9rem; + font-weight: 800; + letter-spacing: .11em; + text-transform: uppercase; +} + +.brand-mark { + display: grid; + width: 2.25rem; + aspect-ratio: 1; + place-items: center; + border-radius: .75rem; + color: #141022; + background: linear-gradient(135deg, #fcd34d, #fb7185); + box-shadow: 0 .5rem 1.5rem #fb718550; +} + +.intro { + max-width: 45rem; +} + +.kicker { + margin: 0 0 .8rem; + color: #bfdbfe; + font-size: .78rem; + font-weight: 800; + letter-spacing: .15em; + text-transform: uppercase; +} + +h1 { + max-width: 12ch; + margin: 0; + font-size: clamp(2.6rem, 7vw, 5.75rem); + line-height: .96; + letter-spacing: -.065em; +} + +.lede { + max-width: 38rem; + margin: 1.5rem 0 2.5rem; + color: var(--muted); + font-size: clamp(1rem, 2vw, 1.18rem); + line-height: 1.65; +} + +.upload-card, + .results-card { + border: 1px solid var(--line); + border-radius: 1.5rem; + background: linear-gradient(145deg, #162240d9, #0e162bdd); + box-shadow: 0 1.5rem 4rem #02061680; + backdrop-filter: blur(16px); +} + +.upload-card { + padding: clamp(1rem, 3vw, 1.5rem); +} + +.drop-zone { + display: grid; + min-height: 16rem; + place-items: center; + padding: 2rem; + border: 1.5px dashed #5d75aa; + border-radius: 1rem; + cursor: pointer; + text-align: center; + background: linear-gradient(135deg, #1b2a4e80, #291c4b66); + transition: .2s ease; + &:hover, &.dragging { + border-color: var(--blue); + transform: translateY(-2px); + background: #203360a8; + } + &:focus-within { + outline: 3px solid #6aa8ff66; + outline-offset: 3px; + } +} + +.file-input { + width: .1px; + height: .1px; + position: absolute; + opacity: 0; + overflow: hidden; +} + +.drop-zone .upload-icon { + display: grid; + width: 4rem; + aspect-ratio: 1; + place-items: center; + margin: 0 auto 1rem; + border-radius: 50%; + color: #dbeafe; + font-size: 1.8rem; + background: #4777c94d; +} + +.drop-zone .upload-icon__content { + position: relative; + z-index: 1; + margin: 0; + color: inherit; + font-size: inherit; + font-weight: 850; +} + +.audio-upload--uploading .upload-icon, + .audio-upload--processing .upload-icon, + .audio-upload--success .upload-icon, + .audio-upload--error .upload-icon { + position: relative; + width: 5.5rem; + margin-bottom: .25rem; + color: #fff; + font-size: 1.25rem; + box-shadow: 0 0 0 .35rem #334e8d70, 0 .6rem 2rem #101a3fa6; +} + +.audio-upload--uploading .upload-icon { + background: conic-gradient(#91baff var(--upload-progress, 0%), #334b82 0); +} + +.audio-upload--processing .upload-icon { + background: #405caa; + &::after { + content: ""; + position: absolute; + inset: -.42rem; + border: 3px solid #9fc5ff; + border-right-color: transparent; + border-radius: 50%; + animation: spin 1.5s linear infinite; + } +} + +.audio-upload--success .upload-icon { + background: #147d6c; +} + +.audio-upload--error .upload-icon { + background: #9d385b; +} + +.audio-upload--uploading .drop-zone, + .audio-upload--processing .drop-zone { + border-color: #7296d5; + background: linear-gradient(135deg, #18284c, #242046); +} + +.audio-upload--uploading .drop-zone strong, + .audio-upload--processing .drop-zone strong, + .audio-upload--uploading .drop-zone > span > span:not(.upload-icon), + .audio-upload--processing .drop-zone > span > span:not(.upload-icon), + .audio-upload--uploading .file-name, + .audio-upload--processing .file-name { + opacity: .35; +} + +.audio-upload--uploading .drop-zone, + .audio-upload--processing .drop-zone { + cursor: default; +} + +.audio-upload--uploading .drop-zone:hover, + .audio-upload--processing .drop-zone:hover { + transform: none; +} + +.upload-cancel[hidden] { + display: none; +} + +#classification-results { + scroll-margin-top: 1.5rem; +} + +@media (prefers-reduced-motion: reduce) { + .audio-upload--processing .upload-icon::after { + animation: none; + } + .audio-upload--uploading .drop-zone, + .audio-upload--processing .drop-zone, + .audio-upload--uploading .upload-icon, + .audio-upload--processing .upload-icon { + transition: none; + } +} + +.drop-zone strong { + display: block; + font-size: 1.15rem; +} + +.drop-zone span { + display: block; + margin-top: .4rem; + color: var(--muted); + font-size: .92rem; +} + +.file-name { + min-height: 1.3rem; + margin: 1rem 0 0; + color: #c7d2fe; + font-size: .9rem; + overflow-wrap: anywhere; +} + +.form-footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + padding: .9rem .25rem 0; +} + +.file-note { + margin: 0; + color: var(--muted); + font-size: .8rem; +} + +button, + .button { + text-decoration: none; + display: inline-flex; + align-items: center; + justify-content: center; + gap: .6rem; + border: 0; + border-radius: .8rem; + padding: .85rem 1.15rem; + cursor: pointer; + color: #10172c; + font: inherit; + font-weight: 800; + background: linear-gradient(135deg, #93c5fd, #c4b5fd); + box-shadow: 0 .5rem 1.25rem #8b5cf640; + transition: transform .2s ease, filter .2s ease; +} + +button:hover, + .button:hover { + transform: translateY(-1px); + filter: brightness(1.08); +} + +button:disabled { + cursor: wait; + filter: saturate(.4); + transform: none; +} + +.spinner { + width: 1rem; + height: 1rem; + border: 2px solid #263253; + border-top-color: currentColor; + border-radius: 50%; + animation: spin .75s linear infinite; +} + +.htmx-indicator { + display: none; +} + +.htmx-request.htmx-indicator { + display: inline-block; +} + +.upload-form.htmx-request button { + pointer-events: none; +} + +#upload-status { + min-height: 1.4rem; + margin: 1rem .25rem 0; + color: #c7d2fe; + font-size: .9rem; +} + +.upload-form.htmx-request+#upload-status { + color: #fcd34d; +} + +#classification-results { + margin-top: 1.5rem; +} + +.results-card { + padding: clamp(1.25rem, 3vw, 2rem); + animation: reveal .35s ease-out; +} + +.result-heading { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 1rem; + h2 { + margin: 0; + font-size: clamp(1.4rem, 3vw, 2rem); + letter-spacing: -.04em; + } + p { + margin: .3rem 0 0; + color: var(--muted); + } +} + +.result-status { + padding: .4rem .65rem; + border-radius: 999px; + color: #a7f3d0; + font-size: .75rem; + font-weight: 800; + white-space: nowrap; + background: #065f464d; +} + +.meta { + display: flex; + flex-wrap: wrap; + gap: .6rem; + margin: 1.5rem 0; +} + +.meta span, + .legend span { + padding: .4rem .65rem; + border: 1px solid var(--line); + border-radius: 999px; + color: #bdc9e5; + font-size: .8rem; + background: #101a31; +} + +.legend { + display: flex; + flex-wrap: wrap; + gap: .5rem; + margin: 0 0 1.25rem; + .firework { + color: #ffd18c; + border-color: #c7721e80; + } + .speech { + color: #ffadb4; + border-color: #d5485880; + } +} + +.topbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + margin-bottom: 3.5rem; +} + +.brand { + display: flex; + align-items: center; + gap: .7rem; + color: var(--ink); + font-size: .9rem; + font-weight: 800; + letter-spacing: .1em; + text-decoration: none; + text-transform: uppercase; +} + +.brand-mark { + display: grid; + width: 2.25rem; + aspect-ratio: 1; + place-items: center; + border-radius: .75rem; + color: #141022; + background: linear-gradient(135deg,#fcd34d,#fb7185); + box-shadow: 0 .5rem 1.5rem #fb718550; +} + +.nav { + display: flex; + gap: .35rem; + padding: .25rem; + border: 1px solid var(--line); + border-radius: .75rem; + background: #111a31a6; + a { + padding: .5rem .75rem; + border-radius: .5rem; + color: var(--muted); + font-size: .86rem; + font-weight: 700; + text-decoration: none; + &[aria-current="page"] { + color: var(--ink); + background: #2a3b67; + } + } +} + +.result-grid { + display: grid; + grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); + gap: 1.25rem; +} + +.result-group { + padding: 1.1rem; + border: 1px solid var(--line); + border-radius: 1rem; + background: #0b1225a8; + h3 { + margin: 0 0 1rem; + font-size: 1rem; + } +} + +.prediction-list { + display: grid; + gap: .75rem; + margin: 0; + padding: 0; + list-style: none; +} + +.prediction { + --accent-color: #7799dd; + position: relative; + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + gap: .45rem .75rem; + align-items: center; + padding: .7rem .75rem; + overflow: hidden; + border: 1px solid #26365b; + border-left: 3px solid var(--accent-color); + border-radius: .7rem; + background: #121c34; +} + +.prediction--firework { + --accent-color: var(--fire); + background: linear-gradient(90deg, #7a421d55, #121c34); +} + +.prediction--speech { + --accent-color: var(--danger); + background: linear-gradient(90deg, #6c213055, #121c34); +} + +.prediction-label { + min-width: 0; + font-weight: 700; + overflow-wrap: anywhere; +} + +.prediction-score { + color: #c4d1ed; + font-size: .85rem; + font-variant-numeric: tabular-nums; +} + +.score-bar { + grid-column: 1/-1; + height: .3rem; + overflow: hidden; + border-radius: 999px; + background: #263657; + i { + display: block; + width: calc(var(--score) * 1%); + height: 100%; + border-radius: inherit; + background: var(--accent-color); + } +} + +.peak-list { + display: grid; + gap: .7rem; +} + +.peak-item { + padding-bottom: .7rem; + border-bottom: 1px solid #253453; + &:last-child { + padding-bottom: 0; + border-bottom: 0; + } +} + +.peak-time { + color: #a9bce0; + font-size: .78rem; +} + +.peak-item .prediction { + margin-top: .35rem; +} + +.empty { + margin: 0; + color: var(--muted); +} + +.error-card { + border-color: #a43d4d; + background: linear-gradient(135deg, #4b1724dd, #1a1427dd); + h2 { + color: #fecdd3; + } + p { + color: #fecdd3; + } +} + +@keyframes spin { + to { + transform: rotate(360deg); + } +} + +@keyframes reveal { + from { + opacity: 0; + transform: translateY(.75rem); + } +} + +@media (max-width:42rem) { + .shell { + width: min(100% - 1.25rem, 70rem); + } + .form-footer, + .result-heading { + align-items: stretch; + flex-direction: column; + } + .form-footer button { + width: 100%; + } + .result-grid { + grid-template-columns: 1fr; + } + .result-status { + align-self: flex-start; + } +} + +@media (prefers-reduced-motion:reduce) { + *, + ::before, + ::after { + scroll-behavior: auto !important; + animation-duration: .01ms !important; + transition-duration: .01ms !important; + } +} + +.browser-gate { + margin: 1rem 0; + padding: 1rem; + border: 1px solid #e5bb7a; + border-radius: .75rem; + background: #4d392950; + &[hidden] { + display: none; + } + p { + margin: .45rem 0 1rem; + } +} + +.browser-gate-actions { + display: flex; + gap: .65rem; + flex-wrap: wrap; + button { + cursor: pointer; + } +} + +.browser-mode { + margin: 1rem 0; +} + +.browser-mode__label { + display: inline-flex; + align-items: center; + gap: .55rem; + font-weight: 700; + cursor: pointer; + input { + width: 1.1rem; + height: 1.1rem; + margin: 0; + accent-color: #91baff; + } +} + +.browser-mode p { + margin: .35rem 0 0 1.65rem; + font-size: .9rem; + opacity: .85; +} diff --git a/frontend/src/styles/pages/home.css b/frontend/src/styles/pages/home.css deleted file mode 100644 index da98e01..0000000 --- a/frontend/src/styles/pages/home.css +++ /dev/null @@ -1,85 +0,0 @@ - - :root { --ink:#eef3ff; --muted:#aab9d8; --line:#2b3d68; --blue:#8abaff; --violet:#b69cff; --amber:#ffbd62; } - * { box-sizing:border-box; } - body { min-width:320px; min-height:100vh; display:grid; place-items:center; margin:0; padding:1.5rem; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d; } - .welcome-card { width:min(100%,44rem); position:relative; overflow:hidden; padding:clamp(2rem,7vw,4.75rem); border:1px solid var(--line); border-radius:1.5rem; background:linear-gradient(145deg,#172443e8,#10182ddd); box-shadow:0 1.75rem 5rem #01030c99; backdrop-filter:blur(16px); } - .welcome-card::before { content:""; width:15rem; height:15rem; position:absolute; top:-8rem; right:-6rem; border-radius:50%; background:linear-gradient(135deg,#609df177,#b27be266); filter:blur(1px); }.welcome-card::after { content:""; width:10rem; height:10rem; position:absolute; bottom:-6rem; left:-4rem; border-radius:50%; background:#f4a74225; } - .brand { display:flex; align-items:center; gap:.65rem; margin-bottom:clamp(2rem,5vw,4rem); color:#d9e5ff; font-size:.78rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }.brand-mark { display:grid; width:2.2rem; aspect-ratio:1; place-items:center; border-radius:.7rem; color:#17132b; font-size:1.1rem; background:linear-gradient(135deg,#fcd34d,#fb7185); box-shadow:0 .5rem 1.5rem #fb718550; } - .eyebrow { margin:0 0 .8rem; color:#bad3ff; font-size:.76rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }.eyebrow::before { content:""; display:inline-block; width:.55rem; height:.55rem; margin-right:.45rem; border-radius:50%; background:var(--amber); box-shadow:0 0 0 .25rem #fbbf2430; } - h1 { max-width:10ch; margin:0; font-size:clamp(2.8rem,8vw,5.75rem); line-height:.96; letter-spacing:-.065em; }.subject { max-width:33rem; margin:1.35rem 0 0; color:var(--muted); font-size:clamp(1rem,2vw,1.15rem); line-height:1.65; }.subject strong { color:#e8efff; }.sparkle { color:var(--violet); font-size:1.2em; } - .actions { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin-top:2.25rem; } - .profile-circle { display:grid; width:3rem; height:3rem; position:fixed; top:1.25rem; right:1.25rem; place-items:center; border:1px solid #d0c0ff; border-radius:50%; z-index:2; color:#17132b; font-weight:900; text-decoration:none; background:linear-gradient(135deg,#fcd34d,#c4a5fd); box-shadow:0 .5rem 1.5rem #01030c66; } - .profile-circle:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; } - .button { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; } - .button:hover { transform:translateY(-2px); filter:brightness(1.08); } - .button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; }.hint { color:#99add2; font-size:.82rem; } - @media (max-width:30rem) { .welcome-card { padding:2rem 1.5rem; }.actions { align-items:stretch; flex-direction:column; }.button { width:100%; }.hint { text-align:center; } } - @media (prefers-reduced-motion:reduce) { .button { transition:none; } } - - -.home-grid { width:min(100%,80rem); display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:1.25rem; align-items:stretch; } -.welcome-card { width:100%; } -.manual-report { position:relative; overflow:hidden; padding:clamp(2rem,6vw,4.75rem); border:2px solid #a85a1e; border-radius:1.5rem; background:linear-gradient(145deg,#4a2b16e8,#171225dd); box-shadow:0 1.75rem 5rem #01030c99; } -.manual-report__title { margin:.2rem 0 .75rem; font-size:clamp(2rem,4vw,3.1rem); line-height:1; letter-spacing:-.06em; } -.manual-report__intro { margin:0 0 1.5rem; color:#f3c8a3; line-height:1.55; } -.manual-report__label { display:block; margin-bottom:.5rem; font-weight:800; } -#manual-occurrences { width:100%; min-height:3.3rem; margin-bottom:1rem; padding:.75rem .9rem; border:1px solid #e2934a; border-radius:.75rem; color:#eef3ff; font:inherit; font-weight:800; background:#151b31; } -.manual-direction-panel { margin:0 0 1rem; padding:1rem; border:1px solid #8d5bb5; border-radius:.75rem; background:#241b38; } -.manual-direction-panel__heading { display:block; margin-bottom:.35rem; } -.manual-direction-panel__heading span { color:#c7b5eb; font-weight:600; } -.manual-direction-panel__copy { margin:0 0 .75rem; color:#d4c6ef; font-size:.88rem; line-height:1.45; } -.manual-direction-panel__button { min-height:2.75rem; padding:.65rem .9rem; border:1px solid #c3a5eb; border-radius:.65rem; color:#211234; font:inherit; font-weight:850; background:#d8c1fb; cursor:pointer; } -.manual-direction-panel__status { min-height:1.4rem; margin-top:.7rem; color:#e5dcf7; font-size:.9rem; } -.manual-report__submit { width:100%; min-height:6rem; border:0; border-radius:1rem; color:#281306; font:inherit; font-size:clamp(1.1rem,2vw,1.45rem); font-weight:900; background:linear-gradient(135deg,#ffd18c,#ff8f5b); box-shadow:0 .75rem 1.8rem #d664344d; cursor:pointer; } -.manual-report__submission { min-height:1.5rem; margin-top:1rem; color:#ffd18c; } - - -/* Homepage-specific light palette: the two cards intentionally retain distinct roles. */ -:root[data-theme="light"] .home-grid .welcome-card { - color: #17233b; - border-color: #d5e0f1 !important; - background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%) !important; - box-shadow: 0 1.4rem 3.4rem rgba(38, 65, 111, .16) !important; -} -:root[data-theme="light"] .home-grid .welcome-card::before { - background: linear-gradient(135deg, #a9c9fb99, #d4b8f299); -} -:root[data-theme="light"] .home-grid .welcome-card::after { background: #ffd49a66; } -:root[data-theme="light"] .home-grid .welcome-card .brand { color: #365b97; } -:root[data-theme="light"] .home-grid .welcome-card .eyebrow { color: #4269a5; } -:root[data-theme="light"] .home-grid .welcome-card .subject strong { color: #182b50; } -:root[data-theme="light"] .home-grid .welcome-card .hint { color: #5d7191; } - -:root[data-theme="light"] .home-grid .manual-report { - color: #42210f; - border-color: #eca851 !important; - background: linear-gradient(145deg, #fff8ef 0%, #ffe0bb 100%) !important; - box-shadow: 0 1.4rem 3.4rem rgba(116, 69, 25, .18) !important; -} -:root[data-theme="light"] .home-grid .manual-report .eyebrow { color: #9f4d16; } -:root[data-theme="light"] .home-grid .manual-report__title { color: #4a2510; } -:root[data-theme="light"] .home-grid .manual-report__intro { color: #70411d; } -:root[data-theme="light"] .home-grid .manual-report__label { color: #54311b; } -:root[data-theme="light"] .home-grid #manual-occurrences { - border-color: #dfaa68; - color: #322014; - background: #fffdfa; -} -:root[data-theme="light"] .home-grid .manual-direction-panel { - border-color: #d9b4d8; - background: #fff5fc; -} -:root[data-theme="light"] .home-grid .manual-direction-panel__heading { color: #492846; } -:root[data-theme="light"] .home-grid .manual-direction-panel__heading span { color: #70466d; } -:root[data-theme="light"] .home-grid .manual-direction-panel__copy { color: #694b68; } -:root[data-theme="light"] .home-grid .manual-direction-panel__button { - border-color: #b68bb5; - color: #321a34; - background: #ead2eb; -} -:root[data-theme="light"] .home-grid .manual-direction-panel__status { color: #6b4267; } -:root[data-theme="light"] .home-grid .manual-report__submit { - color: #281306; - box-shadow: 0 .75rem 1.8rem rgba(190, 90, 34, .27); -} -:root[data-theme="light"] .home-grid .manual-report__submission { color: #87421b; } diff --git a/frontend/src/styles/pages/home.scss b/frontend/src/styles/pages/home.scss new file mode 100644 index 0000000..3d5dc9f --- /dev/null +++ b/frontend/src/styles/pages/home.scss @@ -0,0 +1,415 @@ +:root { + --ink: #eef3ff; + --muted: #aab9d8; + --line: #2b3d68; + --blue: #8abaff; + --violet: #b69cff; + --amber: #ffbd62; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + display: grid; + place-items: center; + margin: 0; + padding: 1.5rem; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d; +} + +.welcome-card { + width: min(100%,44rem); + position: relative; + overflow: hidden; + padding: clamp(2rem,7vw,4.75rem); + border: 1px solid var(--line); + border-radius: 1.5rem; + background: linear-gradient(145deg,#172443e8,#10182ddd); + box-shadow: 0 1.75rem 5rem #01030c99; + backdrop-filter: blur(16px); + &::before { + content: ""; + width: 15rem; + height: 15rem; + position: absolute; + top: -8rem; + right: -6rem; + border-radius: 50%; + background: linear-gradient(135deg,#609df177,#b27be266); + filter: blur(1px); + } + &::after { + content: ""; + width: 10rem; + height: 10rem; + position: absolute; + bottom: -6rem; + left: -4rem; + border-radius: 50%; + background: #f4a74225; + } +} + +.brand { + display: flex; + align-items: center; + gap: .65rem; + margin-bottom: clamp(2rem,5vw,4rem); + color: #d9e5ff; + font-size: .78rem; + font-weight: 900; + letter-spacing: .14em; + text-transform: uppercase; +} + +.brand-mark { + display: grid; + width: 2.2rem; + aspect-ratio: 1; + place-items: center; + border-radius: .7rem; + color: #17132b; + font-size: 1.1rem; + background: linear-gradient(135deg,#fcd34d,#fb7185); + box-shadow: 0 .5rem 1.5rem #fb718550; +} + +.eyebrow { + margin: 0 0 .8rem; + color: #bad3ff; + font-size: .76rem; + font-weight: 800; + letter-spacing: .14em; + text-transform: uppercase; + &::before { + content: ""; + display: inline-block; + width: .55rem; + height: .55rem; + margin-right: .45rem; + border-radius: 50%; + background: var(--amber); + box-shadow: 0 0 0 .25rem #fbbf2430; + } +} + +h1 { + max-width: 10ch; + margin: 0; + font-size: clamp(2.8rem,8vw,5.75rem); + line-height: .96; + letter-spacing: -.065em; +} + +.subject { + max-width: 33rem; + margin: 1.35rem 0 0; + color: var(--muted); + font-size: clamp(1rem,2vw,1.15rem); + line-height: 1.65; + strong { + color: #e8efff; + } +} + +.sparkle { + color: var(--violet); + font-size: 1.2em; +} + +.actions { + display: flex; + align-items: center; + gap: 1rem; + flex-wrap: wrap; + margin-top: 2.25rem; +} + +.profile-circle { + display: grid; + width: 3rem; + height: 3rem; + position: fixed; + top: 1.25rem; + right: 1.25rem; + place-items: center; + border: 1px solid #d0c0ff; + border-radius: 50%; + z-index: 2; + color: #17132b; + font-weight: 900; + text-decoration: none; + background: linear-gradient(135deg,#fcd34d,#c4a5fd); + box-shadow: 0 .5rem 1.5rem #01030c66; + &:focus-visible { + outline: 3px solid #a5c9ff80; + outline-offset: 3px; + } +} + +.button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: .6rem; + min-height: 2.9rem; + padding: .75rem 1.05rem; + border: 1px solid #b3c9ff; + border-radius: .8rem; + color: #121a34; + font: inherit; + font-size: .93rem; + font-weight: 850; + text-decoration: none; + background: linear-gradient(135deg,#99c8ff,#c6adff); + box-shadow: 0 .65rem 1.75rem #7058dd50; + transition: transform .2s ease,filter .2s ease; + &:hover { + transform: translateY(-2px); + filter: brightness(1.08); + } + &:focus-visible { + outline: 3px solid #a5c9ff80; + outline-offset: 3px; + } +} + +.hint { + color: #99add2; + font-size: .82rem; +} + +@media (max-width:30rem) { + .welcome-card { + padding: 2rem 1.5rem; + } + .actions { + align-items: stretch; + flex-direction: column; + } + .button { + width: 100%; + } + .hint { + text-align: center; + } +} + +@media (prefers-reduced-motion:reduce) { + .button { + transition: none; + } +} + +.home-grid { + width: min(100%,80rem); + display: grid; + grid-template-columns: repeat(auto-fit,minmax(min(100%,20rem),1fr)); + gap: 1.25rem; + align-items: stretch; +} + +.welcome-card { + width: 100%; +} + +.manual-report { + position: relative; + overflow: hidden; + padding: clamp(2rem,6vw,4.75rem); + border: 2px solid #a85a1e; + border-radius: 1.5rem; + background: linear-gradient(145deg,#4a2b16e8,#171225dd); + box-shadow: 0 1.75rem 5rem #01030c99; +} + +.manual-report__title { + margin: .2rem 0 .75rem; + font-size: clamp(2rem,4vw,3.1rem); + line-height: 1; + letter-spacing: -.06em; +} + +.manual-report__intro { + margin: 0 0 1.5rem; + color: #f3c8a3; + line-height: 1.55; +} + +.manual-report__label { + display: block; + margin-bottom: .5rem; + font-weight: 800; +} + +#manual-occurrences { + width: 100%; + min-height: 3.3rem; + margin-bottom: 1rem; + padding: .75rem .9rem; + border: 1px solid #e2934a; + border-radius: .75rem; + color: #eef3ff; + font: inherit; + font-weight: 800; + background: #151b31; +} + +.manual-direction-panel { + margin: 0 0 1rem; + padding: 1rem; + border: 1px solid #8d5bb5; + border-radius: .75rem; + background: #241b38; +} + +.manual-direction-panel__heading { + display: block; + margin-bottom: .35rem; + span { + color: #c7b5eb; + font-weight: 600; + } +} + +.manual-direction-panel__copy { + margin: 0 0 .75rem; + color: #d4c6ef; + font-size: .88rem; + line-height: 1.45; +} + +.manual-direction-panel__button { + min-height: 2.75rem; + padding: .65rem .9rem; + border: 1px solid #c3a5eb; + border-radius: .65rem; + color: #211234; + font: inherit; + font-weight: 850; + background: #d8c1fb; + cursor: pointer; +} + +.manual-direction-panel__status { + min-height: 1.4rem; + margin-top: .7rem; + color: #e5dcf7; + font-size: .9rem; +} + +.manual-report__submit { + width: 100%; + min-height: 6rem; + border: 0; + border-radius: 1rem; + color: #281306; + font: inherit; + font-size: clamp(1.1rem,2vw,1.45rem); + font-weight: 900; + background: linear-gradient(135deg,#ffd18c,#ff8f5b); + box-shadow: 0 .75rem 1.8rem #d664344d; + cursor: pointer; +} + +.manual-report__submission { + min-height: 1.5rem; + margin-top: 1rem; + color: #ffd18c; +} + +/*Homepage-specific light palette: the two cards intentionally retain distinct roles.*/ + +:root[data-theme="light"] .home-grid .welcome-card { + color: #17233b; + border-color: #d5e0f1 !important; + background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 100%) !important; + box-shadow: 0 1.4rem 3.4rem rgba(38, 65, 111, .16) !important; + &::before { + background: linear-gradient(135deg, #a9c9fb99, #d4b8f299); + } + &::after { + background: #ffd49a66; + } + .brand { + color: #365b97; + } + .eyebrow { + color: #4269a5; + } + .subject strong { + color: #182b50; + } + .hint { + color: #5d7191; + } +} + +:root[data-theme="light"] .home-grid .manual-report { + color: #42210f; + border-color: #eca851 !important; + background: linear-gradient(145deg, #fff8ef 0%, #ffe0bb 100%) !important; + box-shadow: 0 1.4rem 3.4rem rgba(116, 69, 25, .18) !important; + .eyebrow { + color: #9f4d16; + } +} + +:root[data-theme="light"] .home-grid .manual-report__title { + color: #4a2510; +} + +:root[data-theme="light"] .home-grid .manual-report__intro { + color: #70411d; +} + +:root[data-theme="light"] .home-grid .manual-report__label { + color: #54311b; +} + +:root[data-theme="light"] .home-grid #manual-occurrences { + border-color: #dfaa68; + color: #322014; + background: #fffdfa; +} + +:root[data-theme="light"] .home-grid .manual-direction-panel { + border-color: #d9b4d8; + background: #fff5fc; +} + +:root[data-theme="light"] .home-grid .manual-direction-panel__heading { + color: #492846; + span { + color: #70466d; + } +} + +:root[data-theme="light"] .home-grid .manual-direction-panel__copy { + color: #694b68; +} + +:root[data-theme="light"] .home-grid .manual-direction-panel__button { + border-color: #b68bb5; + color: #321a34; + background: #ead2eb; +} + +:root[data-theme="light"] .home-grid .manual-direction-panel__status { + color: #6b4267; +} + +:root[data-theme="light"] .home-grid .manual-report__submit { + color: #281306; + box-shadow: 0 .75rem 1.8rem rgba(190, 90, 34, .27); +} + +:root[data-theme="light"] .home-grid .manual-report__submission { + color: #87421b; +} diff --git a/frontend/src/styles/pages/legacy-fireworks-home.css b/frontend/src/styles/pages/legacy-fireworks-home.css deleted file mode 100644 index 8e02f4e..0000000 --- a/frontend/src/styles/pages/legacy-fireworks-home.css +++ /dev/null @@ -1,38 +0,0 @@ - - :root { --ink:#eaf0ff; --muted:#9caed1; --surface:#111a31; --surface-2:#17223e; --line:#2a3a61; --blue:#6aa8ff; --violet:#a78bfa; --fire:#ffb454; --danger:#ff727c; --success:#6ee7b7; } - * { box-sizing:border-box; } - body { min-width:320px; min-height:100vh; margin:0; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:radial-gradient(circle at 10% 0%,#263a76 0,transparent 30rem),radial-gradient(circle at 90% 20%,#4d236c 0,transparent 28rem),#090e1d; } - .shell { width:min(100% - 2.5rem,70rem); margin:0 auto; padding:clamp(2rem,6vw,5rem) 0; } - .brand { display:flex; align-items:center; gap:.75rem; margin-bottom:clamp(2.5rem,6vw,5rem); font-size:.9rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; } - .brand-mark { display:grid; width:2.25rem; aspect-ratio:1; place-items:center; border-radius:.75rem; color:#141022; background:linear-gradient(135deg,#fcd34d,#fb7185); box-shadow:0 .5rem 1.5rem #fb718550; } - .intro { max-width:45rem; } - .kicker { margin:0 0 .8rem; color:#bfdbfe; font-size:.78rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; } - h1 { max-width:12ch; margin:0; font-size:clamp(2.6rem,7vw,5.75rem); line-height:.96; letter-spacing:-.065em; } - .lede { max-width:38rem; margin:1.5rem 0 2.5rem; color:var(--muted); font-size:clamp(1rem,2vw,1.18rem); line-height:1.65; } - .upload-card,.results-card { border:1px solid var(--line); border-radius:1.5rem; background:linear-gradient(145deg,#162240d9,#0e162bdd); box-shadow:0 1.5rem 4rem #02061680; backdrop-filter:blur(16px); } - .upload-card { padding:clamp(1rem,3vw,1.5rem); } - .drop-zone { display:grid; min-height:16rem; place-items:center; padding:2rem; border:1.5px dashed #5d75aa; border-radius:1rem; cursor:pointer; text-align:center; background:linear-gradient(135deg,#1b2a4e80,#291c4b66); transition:.2s ease; } - .drop-zone:hover,.drop-zone.dragging { border-color:var(--blue); transform:translateY(-2px); background:#203360a8; } - .drop-zone:focus-within { outline:3px solid #6aa8ff66; outline-offset:3px; } - .file-input { width:.1px; height:.1px; position:absolute; opacity:0; overflow:hidden; } - .upload-icon { display:grid; width:4rem; aspect-ratio:1; place-items:center; margin:0 auto 1rem; border-radius:50%; color:#dbeafe; font-size:1.8rem; background:#4777c94d; } - .drop-zone strong { display:block; font-size:1.15rem; } - .drop-zone span { display:block; margin-top:.4rem; color:var(--muted); font-size:.92rem; } - .file-name { min-height:1.3rem; margin:1rem 0 0; color:#c7d2fe; font-size:.9rem; overflow-wrap:anywhere; } - .form-footer { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem .25rem 0; } - .file-note { margin:0; color:var(--muted); font-size:.8rem; } - button { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; border:0; border-radius:.8rem; padding:.85rem 1.15rem; cursor:pointer; color:#10172c; font:inherit; font-weight:800; background:linear-gradient(135deg,#93c5fd,#c4b5fd); box-shadow:0 .5rem 1.25rem #8b5cf640; transition:transform .2s ease,filter .2s ease; } - button:hover { transform:translateY(-1px); filter:brightness(1.08); } button:disabled { cursor:wait; filter:saturate(.4); transform:none; } - .spinner { width:1rem; height:1rem; border:2px solid #263253; border-top-color:currentColor; border-radius:50%; animation:spin .75s linear infinite; } - .htmx-indicator { display:none; }.htmx-request.htmx-indicator { display:inline-block; }.upload-form.htmx-request button { pointer-events:none; } - #upload-status { min-height:1.4rem; margin:1rem .25rem 0; color:#c7d2fe; font-size:.9rem; } .upload-form.htmx-request + #upload-status { color:#fcd34d; } - #classification-results { margin-top:1.5rem; } - .results-card { padding:clamp(1.25rem,3vw,2rem); animation:reveal .35s ease-out; } - .result-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; } .result-heading h2 { margin:0; font-size:clamp(1.4rem,3vw,2rem); letter-spacing:-.04em; }.result-heading p { margin:.3rem 0 0; color:var(--muted); } - .result-status { padding:.4rem .65rem; border-radius:999px; color:#a7f3d0; font-size:.75rem; font-weight:800; white-space:nowrap; background:#065f464d; } - .meta { display:flex; flex-wrap:wrap; gap:.6rem; margin:1.5rem 0; }.meta span,.legend span { padding:.4rem .65rem; border:1px solid var(--line); border-radius:999px; color:#bdc9e5; font-size:.8rem; background:#101a31; }.legend { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 1.25rem; }.legend .firework { color:#ffd18c; border-color:#c7721e80; }.legend .speech { color:#ffadb4; border-color:#d5485880; } - .result-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(18rem,.75fr); gap:1.25rem; }.result-group { padding:1.1rem; border:1px solid var(--line); border-radius:1rem; background:#0b1225a8; }.result-group h3 { margin:0 0 1rem; font-size:1rem; }.prediction-list { display:grid; gap:.75rem; margin:0; padding:0; list-style:none; }.prediction { --accent-color:#7799dd; position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.45rem .75rem; align-items:center; padding:.7rem .75rem; overflow:hidden; border:1px solid #26365b; border-left:3px solid var(--accent-color); border-radius:.7rem; background:#121c34; }.prediction--firework { --accent-color:var(--fire); background:linear-gradient(90deg,#7a421d55,#121c34); }.prediction--speech { --accent-color:var(--danger); background:linear-gradient(90deg,#6c213055,#121c34); }.prediction-label { min-width:0; font-weight:700; overflow-wrap:anywhere; }.prediction-score { color:#c4d1ed; font-size:.85rem; font-variant-numeric:tabular-nums; }.score-bar { grid-column:1/-1; height:.3rem; overflow:hidden; border-radius:999px; background:#263657; }.score-bar i { display:block; width:calc(var(--score) * 1%); height:100%; border-radius:inherit; background:var(--accent-color); }.peak-list { display:grid; gap:.7rem; }.peak-item { padding-bottom:.7rem; border-bottom:1px solid #253453; }.peak-item:last-child { padding-bottom:0; border-bottom:0; }.peak-time { color:#a9bce0; font-size:.78rem; }.peak-item .prediction { margin-top:.35rem; }.empty { margin:0; color:var(--muted); }.error-card { border-color:#a43d4d; background:linear-gradient(135deg,#4b1724dd,#1a1427dd); }.error-card h2 { color:#fecdd3; }.error-card p { color:#fecdd3; } - @keyframes spin { to { transform:rotate(360deg); } } @keyframes reveal { from { opacity:0; transform:translateY(.75rem); } } - @media (max-width:42rem) { .shell { width:min(100% - 1.25rem,70rem); }.form-footer,.result-heading { align-items:stretch; flex-direction:column; }.form-footer button { width:100%; }.result-grid { grid-template-columns:1fr; }.result-status { align-self:flex-start; } } - @media (prefers-reduced-motion:reduce) { *,::before,::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } } - \ No newline at end of file diff --git a/frontend/src/styles/pages/legacy-fireworks-home.scss b/frontend/src/styles/pages/legacy-fireworks-home.scss new file mode 100644 index 0000000..0f694fe --- /dev/null +++ b/frontend/src/styles/pages/legacy-fireworks-home.scss @@ -0,0 +1,450 @@ +:root { + --ink: #eaf0ff; + --muted: #9caed1; + --surface: #111a31; + --surface-2: #17223e; + --line: #2a3a61; + --blue: #6aa8ff; + --violet: #a78bfa; + --fire: #ffb454; + --danger: #ff727c; + --success: #6ee7b7; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + margin: 0; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 10% 0%,#263a76 0,transparent 30rem),radial-gradient(circle at 90% 20%,#4d236c 0,transparent 28rem),#090e1d; +} + +.shell { + width: min(100% - 2.5rem,70rem); + margin: 0 auto; + padding: clamp(2rem,6vw,5rem) 0; +} + +.brand { + display: flex; + align-items: center; + gap: .75rem; + margin-bottom: clamp(2.5rem,6vw,5rem); + font-size: .9rem; + font-weight: 800; + letter-spacing: .11em; + text-transform: uppercase; +} + +.brand-mark { + display: grid; + width: 2.25rem; + aspect-ratio: 1; + place-items: center; + border-radius: .75rem; + color: #141022; + background: linear-gradient(135deg,#fcd34d,#fb7185); + box-shadow: 0 .5rem 1.5rem #fb718550; +} + +.intro { + max-width: 45rem; +} + +.kicker { + margin: 0 0 .8rem; + color: #bfdbfe; + font-size: .78rem; + font-weight: 800; + letter-spacing: .15em; + text-transform: uppercase; +} + +h1 { + max-width: 12ch; + margin: 0; + font-size: clamp(2.6rem,7vw,5.75rem); + line-height: .96; + letter-spacing: -.065em; +} + +.lede { + max-width: 38rem; + margin: 1.5rem 0 2.5rem; + color: var(--muted); + font-size: clamp(1rem,2vw,1.18rem); + line-height: 1.65; +} + +.upload-card,.results-card { + border: 1px solid var(--line); + border-radius: 1.5rem; + background: linear-gradient(145deg,#162240d9,#0e162bdd); + box-shadow: 0 1.5rem 4rem #02061680; + backdrop-filter: blur(16px); +} + +.upload-card { + padding: clamp(1rem,3vw,1.5rem); +} + +.drop-zone { + display: grid; + min-height: 16rem; + place-items: center; + padding: 2rem; + border: 1.5px dashed #5d75aa; + border-radius: 1rem; + cursor: pointer; + text-align: center; + background: linear-gradient(135deg,#1b2a4e80,#291c4b66); + transition: .2s ease; + &:hover, &.dragging { + border-color: var(--blue); + transform: translateY(-2px); + background: #203360a8; + } + &:focus-within { + outline: 3px solid #6aa8ff66; + outline-offset: 3px; + } +} + +.file-input { + width: .1px; + height: .1px; + position: absolute; + opacity: 0; + overflow: hidden; +} + +.upload-icon { + display: grid; + width: 4rem; + aspect-ratio: 1; + place-items: center; + margin: 0 auto 1rem; + border-radius: 50%; + color: #dbeafe; + font-size: 1.8rem; + background: #4777c94d; +} + +.drop-zone strong { + display: block; + font-size: 1.15rem; +} + +.drop-zone span { + display: block; + margin-top: .4rem; + color: var(--muted); + font-size: .92rem; +} + +.file-name { + min-height: 1.3rem; + margin: 1rem 0 0; + color: #c7d2fe; + font-size: .9rem; + overflow-wrap: anywhere; +} + +.form-footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + padding: .9rem .25rem 0; +} + +.file-note { + margin: 0; + color: var(--muted); + font-size: .8rem; +} + +button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: .6rem; + border: 0; + border-radius: .8rem; + padding: .85rem 1.15rem; + cursor: pointer; + color: #10172c; + font: inherit; + font-weight: 800; + background: linear-gradient(135deg,#93c5fd,#c4b5fd); + box-shadow: 0 .5rem 1.25rem #8b5cf640; + transition: transform .2s ease,filter .2s ease; + &:hover { + transform: translateY(-1px); + filter: brightness(1.08); + } + &:disabled { + cursor: wait; + filter: saturate(.4); + transform: none; + } +} + +.spinner { + width: 1rem; + height: 1rem; + border: 2px solid #263253; + border-top-color: currentColor; + border-radius: 50%; + animation: spin .75s linear infinite; +} + +.htmx-indicator { + display: none; +} + +.htmx-request.htmx-indicator { + display: inline-block; +} + +.upload-form.htmx-request button { + pointer-events: none; +} + +#upload-status { + min-height: 1.4rem; + margin: 1rem .25rem 0; + color: #c7d2fe; + font-size: .9rem; +} + +.upload-form.htmx-request + #upload-status { + color: #fcd34d; +} + +#classification-results { + margin-top: 1.5rem; +} + +.results-card { + padding: clamp(1.25rem,3vw,2rem); + animation: reveal .35s ease-out; +} + +.result-heading { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 1rem; + h2 { + margin: 0; + font-size: clamp(1.4rem,3vw,2rem); + letter-spacing: -.04em; + } + p { + margin: .3rem 0 0; + color: var(--muted); + } +} + +.result-status { + padding: .4rem .65rem; + border-radius: 999px; + color: #a7f3d0; + font-size: .75rem; + font-weight: 800; + white-space: nowrap; + background: #065f464d; +} + +.meta { + display: flex; + flex-wrap: wrap; + gap: .6rem; + margin: 1.5rem 0; +} + +.meta span,.legend span { + padding: .4rem .65rem; + border: 1px solid var(--line); + border-radius: 999px; + color: #bdc9e5; + font-size: .8rem; + background: #101a31; +} + +.legend { + display: flex; + flex-wrap: wrap; + gap: .5rem; + margin: 0 0 1.25rem; + .firework { + color: #ffd18c; + border-color: #c7721e80; + } + .speech { + color: #ffadb4; + border-color: #d5485880; + } +} + +.result-grid { + display: grid; + grid-template-columns: minmax(0,1.25fr) minmax(18rem,.75fr); + gap: 1.25rem; +} + +.result-group { + padding: 1.1rem; + border: 1px solid var(--line); + border-radius: 1rem; + background: #0b1225a8; + h3 { + margin: 0 0 1rem; + font-size: 1rem; + } +} + +.prediction-list { + display: grid; + gap: .75rem; + margin: 0; + padding: 0; + list-style: none; +} + +.prediction { + --accent-color: #7799dd; + position: relative; + display: grid; + grid-template-columns: minmax(0,1fr) auto; + gap: .45rem .75rem; + align-items: center; + padding: .7rem .75rem; + overflow: hidden; + border: 1px solid #26365b; + border-left: 3px solid var(--accent-color); + border-radius: .7rem; + background: #121c34; +} + +.prediction--firework { + --accent-color: var(--fire); + background: linear-gradient(90deg,#7a421d55,#121c34); +} + +.prediction--speech { + --accent-color: var(--danger); + background: linear-gradient(90deg,#6c213055,#121c34); +} + +.prediction-label { + min-width: 0; + font-weight: 700; + overflow-wrap: anywhere; +} + +.prediction-score { + color: #c4d1ed; + font-size: .85rem; + font-variant-numeric: tabular-nums; +} + +.score-bar { + grid-column: 1/-1; + height: .3rem; + overflow: hidden; + border-radius: 999px; + background: #263657; + i { + display: block; + width: calc(var(--score) * 1%); + height: 100%; + border-radius: inherit; + background: var(--accent-color); + } +} + +.peak-list { + display: grid; + gap: .7rem; +} + +.peak-item { + padding-bottom: .7rem; + border-bottom: 1px solid #253453; + &:last-child { + padding-bottom: 0; + border-bottom: 0; + } +} + +.peak-time { + color: #a9bce0; + font-size: .78rem; +} + +.peak-item .prediction { + margin-top: .35rem; +} + +.empty { + margin: 0; + color: var(--muted); +} + +.error-card { + border-color: #a43d4d; + background: linear-gradient(135deg,#4b1724dd,#1a1427dd); + h2 { + color: #fecdd3; + } + p { + color: #fecdd3; + } +} + +@keyframes spin { + to { + transform: rotate(360deg); + } +} + +@keyframes reveal { + from { + opacity: 0; + transform: translateY(.75rem); + } +} + +@media (max-width:42rem) { + .shell { + width: min(100% - 1.25rem,70rem); + } + .form-footer,.result-heading { + align-items: stretch; + flex-direction: column; + } + .form-footer button { + width: 100%; + } + .result-grid { + grid-template-columns: 1fr; + } + .result-status { + align-self: flex-start; + } +} + +@media (prefers-reduced-motion:reduce) { + *,::before,::after { + scroll-behavior: auto !important; + animation-duration: .01ms !important; + transition-duration: .01ms !important; + } +} diff --git a/frontend/src/styles/pages/login.css b/frontend/src/styles/pages/login.css deleted file mode 100644 index 3bff17c..0000000 --- a/frontend/src/styles/pages/login.css +++ /dev/null @@ -1 +0,0 @@ -body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:#eef3ff;font-family:Inter,system-ui,sans-serif;background:radial-gradient(circle at 8% 0,#263a76,transparent 31rem),#090e1d}.card{width:min(100%,27rem);padding:2rem;border:1px solid #2b3d68;border-radius:1.25rem;background:#172443;box-shadow:0 1.75rem 5rem #01030c99}h1{margin:.5rem 0}.intro{color:#aab9d8;line-height:1.5}.error{margin:1rem 0;padding:.75rem;border-radius:.6rem;color:#fee2e2;background:#7f1d1d}label{display:block;margin:1rem 0 .35rem;font-weight:700}input{width:100%;min-height:2.8rem;padding:.65rem;border:1px solid #526b9f;border-radius:.55rem;color:#eef3ff;font:inherit;background:#0a1123}button{width:100%;min-height:2.9rem;margin-top:1.5rem;border:0;border-radius:.65rem;color:#17132b;font:inherit;font-weight:850;background:linear-gradient(135deg,#99c8ff,#c6adff);cursor:pointer} \ No newline at end of file diff --git a/frontend/src/styles/pages/login.scss b/frontend/src/styles/pages/login.scss new file mode 100644 index 0000000..63e88e9 --- /dev/null +++ b/frontend/src/styles/pages/login.scss @@ -0,0 +1,67 @@ +body { + min-width: 320px; + min-height: 100vh; + display: grid; + place-items: center; + margin: 0; + padding: 1.5rem; + color: #eef3ff; + font-family: var(--font-ui); + background: radial-gradient(circle at 8% 0,#263a76,transparent 31rem),#090e1d; +} + +.card { + width: min(100%,27rem); + padding: 2rem; + border: 1px solid #2b3d68; + border-radius: 1.25rem; + background: #172443; + box-shadow: 0 1.75rem 5rem #01030c99; +} + +h1 { + margin: .5rem 0; +} + +.intro { + color: #aab9d8; + line-height: 1.5; +} + +.error { + margin: 1rem 0; + padding: .75rem; + border-radius: .6rem; + color: #fee2e2; + background: #7f1d1d; +} + +label { + display: block; + margin: 1rem 0 .35rem; + font-weight: 700; +} + +input { + width: 100%; + min-height: 2.8rem; + padding: .65rem; + border: 1px solid #526b9f; + border-radius: .55rem; + color: #eef3ff; + font: inherit; + background: #0a1123; +} + +button { + width: 100%; + min-height: 2.9rem; + margin-top: 1.5rem; + border: 0; + border-radius: .65rem; + color: #17132b; + font: inherit; + font-weight: 850; + background: linear-gradient(135deg,#99c8ff,#c6adff); + cursor: pointer; +} diff --git a/frontend/src/styles/pages/map.css b/frontend/src/styles/pages/map.css deleted file mode 100644 index 5dfe6b0..0000000 --- a/frontend/src/styles/pages/map.css +++ /dev/null @@ -1,17 +0,0 @@ - - :root { --ink:#eef3ff; --muted:#a9b9d8; --surface:#111a31; --line:#2a3a61; --blue:#83b7ff; --violet:#b69cff; --amber:#ffbc61; --green:#6ee7b7; } - * { box-sizing:border-box; } - body { min-width:320px; min-height:100vh; margin:0; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 32rem),radial-gradient(circle at 95% 0%,#492064 0,transparent 27rem),#090e1d; } - .shell { - width: min(100% - 2.5rem, 70rem); - margin: 0 auto; - padding: clamp(2rem, 6vw, 5rem) 0; - } - .topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:3.5rem; }.brand { display:flex; align-items:center; gap:.7rem; color:var(--ink); font-size:.9rem; font-weight:800; letter-spacing:.1em; text-decoration:none; text-transform:uppercase; }.brand-mark { display:grid; width:2.25rem; aspect-ratio:1; place-items:center; border-radius:.75rem; color:#141022; background:linear-gradient(135deg,#fcd34d,#fb7185); box-shadow:0 .5rem 1.5rem #fb718550; }.nav { display:flex; gap:.35rem; padding:.25rem; border:1px solid var(--line); border-radius:.75rem; background:#111a31a6; }.nav a { padding:.5rem .75rem; border-radius:.5rem; color:var(--muted); font-size:.86rem; font-weight:700; text-decoration:none; }.nav a[aria-current="page"] { color:var(--ink); background:#2a3b67; } - .kicker { margin:0 0 .65rem; color:#bfdbfe; font-size:.76rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }.headline { display:flex; align-items:end; justify-content:space-between; gap:2rem; margin-bottom:2rem; }.headline h1 { margin:0; font-size:clamp(2.3rem,5vw,4.5rem); line-height:.98; letter-spacing:-.06em; }.headline p { max-width:30rem; margin:0; color:var(--muted); line-height:1.6; } - .filters { display:grid; grid-template-columns:repeat(5,minmax(8rem,1fr)) auto auto; gap:.75rem; align-items:end; margin-bottom:1rem; padding:1rem; border:1px solid var(--line); border-radius:1.1rem; background:#121d37d9; box-shadow:0 1rem 3rem #03071466; }.filter { display:grid; gap:.35rem; }.filter label { color:#9fb1d5; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }.filter select,.filter input { width:100%; min-height:2.65rem; border:1px solid #354a77; border-radius:.65rem; padding:0 .75rem; color:var(--ink); font:inherit; background:#0c1428; }.filter select:focus,.filter input:focus { outline:2px solid #82b5ff; outline-offset:2px; }.filter-submit { min-height:2.65rem; border:1px solid #8ab7ff; border-radius:.65rem; padding:0 1rem; color:#101a31; font:inherit; font-weight:800; background:#b9d6ff; cursor:pointer; }.map-tag { align-self:center; padding:.46rem .65rem; border:1px solid #4a5f8e; border-radius:999px; color:#c9d8f6; font-size:.75rem; font-weight:700; white-space:nowrap; background:#1d2b4e; } - .map-panel { overflow:hidden; border:1px solid var(--line); border-radius:1.25rem; background:var(--surface); box-shadow:0 1.5rem 4rem #0206168a; }.map-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.2rem; border-bottom:1px solid var(--line); }.map-header strong { font-size:.95rem; }.live { display:flex; align-items:center; gap:.45rem; color:#a7f3d0; font-size:.8rem; }.live i { width:.5rem; height:.5rem; border-radius:50%; background:var(--green); box-shadow:0 0 0 .25rem #34d3992e; }.map-wrap { position:relative; }.map { height:clamp(30rem,65vh,45rem); background:#dce4cf; }.legend { position:absolute; z-index:600; right:1rem; bottom:1rem; width:min(15rem,calc(100% - 2rem)); padding:.85rem; border:1px solid #344973; border-radius:.8rem; color:#dce7fe; font-size:.78rem; background:#101a31e8; box-shadow:0 .75rem 2rem #05091480; backdrop-filter:blur(10px); }.legend h2 { margin:0 0 .6rem; font-size:.82rem; }.legend div { display:flex; align-items:center; gap:.5rem; margin-top:.4rem; }.legend-dot { width:.7rem; height:.7rem; border:2px solid #f2c56b; border-radius:50%; background:#ed8e2e88; }.legend-ring { width:.85rem; height:.85rem; border:2px solid #a98af7; border-radius:50%; background:#8b5cf633; }.legend-line { width:1.1rem; border-top:2px dashed #644b9c; }.report-icon { display:grid; width:2.3rem; height:2.3rem; place-items:center; border:2px solid #fff3d5; border-radius:50%; color:#452000; font-size:1rem; font-weight:900; background:#f7a52f; box-shadow:0 .3rem 1rem #a84f2670; }.source-icon { display:grid; width:2.45rem; height:2.45rem; place-items:center; border:2px solid #fff3d5; border-radius:50% 50% 50% 0; color:#452000; font-size:1.15rem; background:#f7a52f; box-shadow:0 .3rem 1rem #a84f2670; transform:rotate(-45deg); }.source-icon span { transform:rotate(45deg); }.direction-marker { display:grid; width:3.5rem; height:3.5rem; place-items:center; border:3px solid #fff7e6; border-radius:50%; color:#fff; background:#6d45a0; box-shadow:0 .3rem 1rem #281642b3; }.direction-marker span { display:block; font-size:2.45rem; font-weight:950; line-height:1; text-shadow:0 .1rem .25rem #1e1136; transform-origin:center; } - .map-compass { position:relative; width:5rem; height:5rem; border:2px solid #eaf1ff; border-radius:50%; color:#f7fbff; font-size:.72rem; font-weight:900; background:#111a31e8; box-shadow:0 .5rem 1.5rem #05091480; backdrop-filter:blur(8px); }.map-compass span { position:absolute; display:grid; place-items:center; }.map-compass .compass-n { top:.35rem; left:50%; transform:translateX(-50%); color:#ffd18c; }.map-compass .compass-e { top:50%; right:.45rem; transform:translateY(-50%); }.map-compass .compass-s { bottom:.35rem; left:50%; transform:translateX(-50%); }.map-compass .compass-w { top:50%; left:.45rem; transform:translateY(-50%); }.map-compass .compass-needle { top:1.3rem; left:50%; color:#ffd18c; font-size:2rem; line-height:1; transform:translateX(-50%); text-shadow:0 .1rem .35rem #3b1b48; }.leaflet-control-zoom a { color:#243456!important; }.leaflet-popup-content-wrapper,.leaflet-popup-tip { color:#e9f1ff; background:#14203a; }.leaflet-popup-content { margin:.75rem .9rem; font-family:inherit; }.popup-title { display:block; margin-bottom:.2rem; font-weight:800; }.popup-meta { color:#a9b9d8; font-size:.78rem; } - @media (max-width:52rem) { .shell { width:min(100% - 1.25rem,80rem); }.topbar { margin-bottom:2.5rem; }.headline { align-items:start; flex-direction:column; gap:1rem; }.filters { grid-template-columns:1fr 1fr; }.filters .filter:first-child { grid-column:1/-1; }.map { height:32rem; } } - @media (max-width:30rem) { .nav a { padding:.5rem; }.filters { grid-template-columns:1fr; }.filters .filter:first-child { grid-column:auto; } } - \ No newline at end of file diff --git a/frontend/src/styles/pages/map.scss b/frontend/src/styles/pages/map.scss new file mode 100644 index 0000000..1fcf0f7 --- /dev/null +++ b/frontend/src/styles/pages/map.scss @@ -0,0 +1,424 @@ +:root { + --ink: #eef3ff; + --muted: #a9b9d8; + --surface: #111a31; + --line: #2a3a61; + --blue: #83b7ff; + --violet: #b69cff; + --amber: #ffbc61; + --green: #6ee7b7; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + margin: 0; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 8% 0%,#263a76 0,transparent 32rem),radial-gradient(circle at 95% 0%,#492064 0,transparent 27rem),#090e1d; +} + +.shell { + width: min(100% - 2.5rem, 70rem); + margin: 0 auto; + padding: clamp(2rem, 6vw, 5rem) 0; +} + +.topbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + margin-bottom: 3.5rem; +} + +.brand { + display: flex; + align-items: center; + gap: .7rem; + color: var(--ink); + font-size: .9rem; + font-weight: 800; + letter-spacing: .1em; + text-decoration: none; + text-transform: uppercase; +} + +.brand-mark { + display: grid; + width: 2.25rem; + aspect-ratio: 1; + place-items: center; + border-radius: .75rem; + color: #141022; + background: linear-gradient(135deg,#fcd34d,#fb7185); + box-shadow: 0 .5rem 1.5rem #fb718550; +} + +.nav { + display: flex; + gap: .35rem; + padding: .25rem; + border: 1px solid var(--line); + border-radius: .75rem; + background: #111a31a6; + a { + padding: .5rem .75rem; + border-radius: .5rem; + color: var(--muted); + font-size: .86rem; + font-weight: 700; + text-decoration: none; + &[aria-current="page"] { + color: var(--ink); + background: #2a3b67; + } + } +} + +.kicker { + margin: 0 0 .65rem; + color: #bfdbfe; + font-size: .76rem; + font-weight: 800; + letter-spacing: .14em; + text-transform: uppercase; +} + +.headline { + display: flex; + align-items: end; + justify-content: space-between; + gap: 2rem; + margin-bottom: 2rem; + h1 { + margin: 0; + font-size: clamp(2.3rem,5vw,4.5rem); + line-height: .98; + letter-spacing: -.06em; + } + p { + max-width: 30rem; + margin: 0; + color: var(--muted); + line-height: 1.6; + } +} + +.filters { + display: grid; + grid-template-columns: repeat(5,minmax(8rem,1fr)) auto auto; + gap: .75rem; + align-items: end; + margin-bottom: 1rem; + padding: 1rem; + border: 1px solid var(--line); + border-radius: 1.1rem; + background: #121d37d9; + box-shadow: 0 1rem 3rem #03071466; +} + +.filter { + display: grid; + gap: .35rem; + label { + color: #9fb1d5; + font-size: .7rem; + font-weight: 800; + letter-spacing: .08em; + text-transform: uppercase; + } + select, input { + width: 100%; + min-height: 2.65rem; + border: 1px solid #354a77; + border-radius: .65rem; + padding: 0 .75rem; + color: var(--ink); + font: inherit; + background: #0c1428; + } + select:focus, input:focus { + outline: 2px solid #82b5ff; + outline-offset: 2px; + } +} + +.filter-submit { + min-height: 2.65rem; + border: 1px solid #8ab7ff; + border-radius: .65rem; + padding: 0 1rem; + color: #101a31; + font: inherit; + font-weight: 800; + background: #b9d6ff; + cursor: pointer; +} + +.map-tag { + align-self: center; + padding: .46rem .65rem; + border: 1px solid #4a5f8e; + border-radius: 999px; + color: #c9d8f6; + font-size: .75rem; + font-weight: 700; + white-space: nowrap; + background: #1d2b4e; +} + +.map-panel { + overflow: hidden; + border: 1px solid var(--line); + border-radius: 1.25rem; + background: var(--surface); + box-shadow: 0 1.5rem 4rem #0206168a; +} + +.map-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + padding: 1rem 1.2rem; + border-bottom: 1px solid var(--line); + strong { + font-size: .95rem; + } +} + +.live { + display: flex; + align-items: center; + gap: .45rem; + color: #a7f3d0; + font-size: .8rem; + i { + width: .5rem; + height: .5rem; + border-radius: 50%; + background: var(--green); + box-shadow: 0 0 0 .25rem #34d3992e; + } +} + +.map-wrap { + position: relative; +} + +.map { + height: clamp(30rem,65vh,45rem); + background: #dce4cf; +} + +.legend { + position: absolute; + z-index: 600; + right: 1rem; + bottom: 1rem; + width: min(15rem,calc(100% - 2rem)); + padding: .85rem; + border: 1px solid #344973; + border-radius: .8rem; + color: #dce7fe; + font-size: .78rem; + background: #101a31e8; + box-shadow: 0 .75rem 2rem #05091480; + backdrop-filter: blur(10px); + h2 { + margin: 0 0 .6rem; + font-size: .82rem; + } + div { + display: flex; + align-items: center; + gap: .5rem; + margin-top: .4rem; + } +} + +.legend-dot { + width: .7rem; + height: .7rem; + border: 2px solid #f2c56b; + border-radius: 50%; + background: #ed8e2e88; +} + +.legend-ring { + width: .85rem; + height: .85rem; + border: 2px solid #a98af7; + border-radius: 50%; + background: #8b5cf633; +} + +.legend-line { + width: 1.1rem; + border-top: 2px dashed #644b9c; +} + +.report-icon { + display: grid; + width: 2.3rem; + height: 2.3rem; + place-items: center; + border: 2px solid #fff3d5; + border-radius: 50%; + color: #452000; + font-size: 1rem; + font-weight: 900; + background: #f7a52f; + box-shadow: 0 .3rem 1rem #a84f2670; +} + +.source-icon { + display: grid; + width: 2.45rem; + height: 2.45rem; + place-items: center; + border: 2px solid #fff3d5; + border-radius: 50% 50% 50% 0; + color: #452000; + font-size: 1.15rem; + background: #f7a52f; + box-shadow: 0 .3rem 1rem #a84f2670; + transform: rotate(-45deg); + span { + transform: rotate(45deg); + } +} + +.direction-marker { + display: grid; + width: 3.5rem; + height: 3.5rem; + place-items: center; + border: 3px solid #fff7e6; + border-radius: 50%; + color: #fff; + background: #6d45a0; + box-shadow: 0 .3rem 1rem #281642b3; + span { + display: block; + font-size: 2.45rem; + font-weight: 950; + line-height: 1; + text-shadow: 0 .1rem .25rem #1e1136; + transform-origin: center; + } +} + +.map-compass { + position: relative; + width: 5rem; + height: 5rem; + border: 2px solid #eaf1ff; + border-radius: 50%; + color: #f7fbff; + font-size: .72rem; + font-weight: 900; + background: #111a31e8; + box-shadow: 0 .5rem 1.5rem #05091480; + backdrop-filter: blur(8px); + span { + position: absolute; + display: grid; + place-items: center; + } + .compass-n { + top: .35rem; + left: 50%; + transform: translateX(-50%); + color: #ffd18c; + } + .compass-e { + top: 50%; + right: .45rem; + transform: translateY(-50%); + } + .compass-s { + bottom: .35rem; + left: 50%; + transform: translateX(-50%); + } + .compass-w { + top: 50%; + left: .45rem; + transform: translateY(-50%); + } + .compass-needle { + top: 1.3rem; + left: 50%; + color: #ffd18c; + font-size: 2rem; + line-height: 1; + transform: translateX(-50%); + text-shadow: 0 .1rem .35rem #3b1b48; + } +} + +.leaflet-control-zoom a { + color: #243456 !important; +} + +.leaflet-popup-content-wrapper,.leaflet-popup-tip { + color: #e9f1ff; + background: #14203a; +} + +.leaflet-popup-content { + margin: .75rem .9rem; + font-family: inherit; +} + +.popup-title { + display: block; + margin-bottom: .2rem; + font-weight: 800; +} + +.popup-meta { + color: #a9b9d8; + font-size: .78rem; +} + +@media (max-width:52rem) { + .shell { + width: min(100% - 1.25rem,80rem); + } + .topbar { + margin-bottom: 2.5rem; + } + .headline { + align-items: start; + flex-direction: column; + gap: 1rem; + } + .filters { + grid-template-columns: 1fr 1fr; + .filter:first-child { + grid-column: 1/-1; + } + } + .map { + height: 32rem; + } +} + +@media (max-width:30rem) { + .nav a { + padding: .5rem; + } + .filters { + grid-template-columns: 1fr; + .filter:first-child { + grid-column: auto; + } + } +} diff --git a/frontend/src/styles/pages/member-form.css b/frontend/src/styles/pages/member-form.css deleted file mode 100644 index 52da288..0000000 --- a/frontend/src/styles/pages/member-form.css +++ /dev/null @@ -1,129 +0,0 @@ - - :root { - --ink: #172033; - --muted: #667085; - --card: rgba(255, 255, 255, .92); - --line: #d7ddea; - --primary: #6255e7; - --success-bg: #eafaf1; - --success-ink: #176b42; - } - - * { box-sizing: border-box; } - - body { - min-width: 320px; - min-height: 100vh; - display: grid; - place-items: center; - margin: 0; - padding: 1.5rem; - color: var(--ink); - font-family: Inter, ui-sans-serif, system-ui, -apple-system, - BlinkMacSystemFont, "Segoe UI", sans-serif; - background: - radial-gradient(circle at 12% 15%, #cfe1ff 0, transparent 28rem), - radial-gradient(circle at 88% 88%, #e6d8ff 0, transparent 26rem), - #f6f7fb; - } - - .card { - width: min(100%, 31rem); - padding: clamp(1.75rem, 7vw, 3rem); - border: 1px solid rgba(255, 255, 255, .85); - border-radius: 1.5rem; - background: var(--card); - box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .16); - } - - .eyebrow { - display: inline-flex; - align-items: center; - gap: .5rem; - margin: 0 0 1rem; - color: var(--primary); - font-size: .78rem; - font-weight: 800; - letter-spacing: .11em; - text-transform: uppercase; - } - - .sparkle { - display: grid; - width: 1.65rem; - aspect-ratio: 1; - place-items: center; - border-radius: .55rem; - color: white; - font-size: .95rem; - background: linear-gradient(135deg, #7668ff, #a75ff4); - } - - h1 { - margin: 0; - font-size: clamp(2rem, 7vw, 3rem); - letter-spacing: -.055em; - line-height: 1.05; - } - - .intro { - margin: 1rem 0 2rem; - color: var(--muted); - line-height: 1.6; - } - - label { - display: block; - margin-bottom: .55rem; - font-size: .92rem; - font-weight: 700; - } - - input { - width: 100%; - min-height: 3.15rem; - padding: .75rem 1rem; - border: 1px solid var(--line); - border-radius: .75rem; - outline: none; - color: var(--ink); - font: inherit; - background: white; - } - - input:focus { - border-color: var(--primary); - box-shadow: 0 0 0 .25rem rgba(98, 85, 231, .15); - } - - button { - width: 100%; - min-height: 3.15rem; - margin-top: 1rem; - border: 0; - border-radius: .75rem; - cursor: pointer; - color: white; - font: inherit; - font-weight: 750; - background: linear-gradient(135deg, var(--primary), #8a5ce5); - box-shadow: 0 .65rem 1.3rem rgba(98, 85, 231, .24); - } - - button:hover { - transform: translateY(-1px); - } - - .result { - margin: 1.5rem 0 0; - padding: .9rem 1rem; - border-radius: .75rem; - color: var(--success-ink); - line-height: 1.45; - background: var(--success-bg); - } - .button { width: 100%;display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; } - .button:hover { transform:translateY(-2px); filter:brightness(1.08); } - .button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; } - - \ No newline at end of file diff --git a/frontend/src/styles/pages/member-form.scss b/frontend/src/styles/pages/member-form.scss new file mode 100644 index 0000000..aead6d1 --- /dev/null +++ b/frontend/src/styles/pages/member-form.scss @@ -0,0 +1,149 @@ +:root { + --ink: #172033; + --muted: #667085; + --card: rgba(255, 255, 255, .92); + --line: #d7ddea; + --primary: #6255e7; + --success-bg: #eafaf1; + --success-ink: #176b42; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + display: grid; + place-items: center; + margin: 0; + padding: 1.5rem; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 12% 15%, #cfe1ff 0, transparent 28rem), + radial-gradient(circle at 88% 88%, #e6d8ff 0, transparent 26rem), + #f6f7fb; +} + +.card { + width: min(100%, 31rem); + padding: clamp(1.75rem, 7vw, 3rem); + border: 1px solid rgba(255, 255, 255, .85); + border-radius: 1.5rem; + background: var(--card); + box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .16); +} + +.eyebrow { + display: inline-flex; + align-items: center; + gap: .5rem; + margin: 0 0 1rem; + color: var(--primary); + font-size: .78rem; + font-weight: 800; + letter-spacing: .11em; + text-transform: uppercase; +} + +.sparkle { + display: grid; + width: 1.65rem; + aspect-ratio: 1; + place-items: center; + border-radius: .55rem; + color: white; + font-size: .95rem; + background: linear-gradient(135deg, #7668ff, #a75ff4); +} + +h1 { + margin: 0; + font-size: clamp(2rem, 7vw, 3rem); + letter-spacing: -.055em; + line-height: 1.05; +} + +.intro { + margin: 1rem 0 2rem; + color: var(--muted); + line-height: 1.6; +} + +label { + display: block; + margin-bottom: .55rem; + font-size: .92rem; + font-weight: 700; +} + +input { + width: 100%; + min-height: 3.15rem; + padding: .75rem 1rem; + border: 1px solid var(--line); + border-radius: .75rem; + outline: none; + color: var(--ink); + font: inherit; + background: white; + &:focus { + border-color: var(--primary); + box-shadow: 0 0 0 .25rem rgba(98, 85, 231, .15); + } +} + +button { + width: 100%; + min-height: 3.15rem; + margin-top: 1rem; + border: 0; + border-radius: .75rem; + cursor: pointer; + color: white; + font: inherit; + font-weight: 750; + background: linear-gradient(135deg, var(--primary), #8a5ce5); + box-shadow: 0 .65rem 1.3rem rgba(98, 85, 231, .24); + &:hover { + transform: translateY(-1px); + } +} + +.result { + margin: 1.5rem 0 0; + padding: .9rem 1rem; + border-radius: .75rem; + color: var(--success-ink); + line-height: 1.45; + background: var(--success-bg); +} + +.button { + width: 100%; + display: inline-flex; + align-items: center; + justify-content: center; + gap: .6rem; + min-height: 2.9rem; + padding: .75rem 1.05rem; + border: 1px solid #b3c9ff; + border-radius: .8rem; + color: #121a34; + font: inherit; + font-size: .93rem; + font-weight: 850; + text-decoration: none; + background: linear-gradient(135deg,#99c8ff,#c6adff); + box-shadow: 0 .65rem 1.75rem #7058dd50; + transition: transform .2s ease,filter .2s ease; + &:hover { + transform: translateY(-2px); + filter: brightness(1.08); + } + &:focus-visible { + outline: 3px solid #a5c9ff80; + outline-offset: 3px; + } +} diff --git a/frontend/src/styles/pages/member-list.css b/frontend/src/styles/pages/member-list.css deleted file mode 100644 index 7b8482e..0000000 --- a/frontend/src/styles/pages/member-list.css +++ /dev/null @@ -1,209 +0,0 @@ - - :root { - --ink: #172033; - --muted: #667085; - --card: rgba(255, 255, 255, .94); - --line: #e1e6ef; - --primary: #6255e7; - --primary-soft: #f0eeff; - --empty-bg: #f7f8fc; - } - - * { - box-sizing: border-box; - } - - body { - min-width: 320px; - min-height: 100vh; - margin: 0; - padding: clamp(1.25rem, 5vw, 4rem); - color: var(--ink); - font-family: Inter, ui-sans-serif, system-ui, -apple-system, - BlinkMacSystemFont, "Segoe UI", sans-serif; - background: - radial-gradient(circle at 8% 8%, #d9e7ff 0, transparent 30rem), - radial-gradient(circle at 92% 90%, #eadcff 0, transparent 30rem), - #f6f7fb; - } - - .page { - width: min(100%, 70rem); - margin: 0 auto; - } - - .card { - overflow: hidden; - border: 1px solid rgba(255, 255, 255, .9); - border-radius: 1.5rem; - background: var(--card); - box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .14); - } - - .header { - display: flex; - align-items: end; - justify-content: space-between; - gap: 1.5rem; - padding: clamp(1.5rem, 5vw, 3rem); - border-bottom: 1px solid var(--line); - } - - .eyebrow { - display: inline-flex; - align-items: center; - gap: .5rem; - margin: 0 0 .85rem; - color: var(--primary); - font-size: .78rem; - font-weight: 800; - letter-spacing: .11em; - text-transform: uppercase; - } - - .sparkle { - display: grid; - width: 1.65rem; - aspect-ratio: 1; - place-items: center; - border-radius: .55rem; - color: white; - font-size: .95rem; - background: linear-gradient(135deg, #7668ff, #a75ff4); - } - - h1 { - margin: 0; - font-size: clamp(2rem, 5vw, 3.25rem); - letter-spacing: -.06em; - line-height: 1.05; - } - - .intro { - max-width: 38rem; - margin: .85rem 0 0; - color: var(--muted); - line-height: 1.6; - } - - .count { - flex: 0 0 auto; - margin: 0; - padding: .6rem .85rem; - border-radius: 999px; - color: var(--primary); - font-size: .88rem; - font-weight: 750; - white-space: nowrap; - background: var(--primary-soft); - } - - .table-wrap { - overflow-x: auto; - } - - table { - width: 100%; - min-width: 38rem; - border-collapse: collapse; - text-align: left; - } - - th { - padding: 1rem clamp(1.25rem, 3vw, 2rem); - color: var(--muted); - font-size: .75rem; - font-weight: 800; - letter-spacing: .08em; - text-transform: uppercase; - background: #fafbfe; - } - - td { - padding: 1.15rem clamp(1.25rem, 3vw, 2rem); - border-top: 1px solid var(--line); - vertical-align: middle; - } - - tbody tr { - transition: background .18s ease; - } - - tbody tr:hover { - background: #faf9ff; - } - - .member { - display: flex; - align-items: center; - gap: .85rem; - font-weight: 750; - } - - .avatar { - display: grid; - width: 2.45rem; - aspect-ratio: 1; - flex: 0 0 auto; - place-items: center; - border-radius: 50%; - color: var(--primary); - font-size: .82rem; - font-weight: 850; - background: var(--primary-soft); - } - - .phone { - color: var(--muted); - font-variant-numeric: tabular-nums; - } - - .date { - color: var(--muted); - white-space: nowrap; - } - - .empty { - padding: clamp(3rem, 10vw, 6rem) 1.5rem; - text-align: center; - background: var(--empty-bg); - } - - .empty-icon { - display: grid; - width: 3.5rem; - aspect-ratio: 1; - place-items: center; - margin: 0 auto 1rem; - border-radius: 1rem; - color: var(--primary); - font-size: 1.4rem; - background: var(--primary-soft); - } - - .empty h2 { - margin: 0; - font-size: 1.2rem; - letter-spacing: -.03em; - } - - .empty p { - margin: .5rem 0 0; - color: var(--muted); - } - - @media (max-width: 40rem) { - .header { - align-items: start; - flex-direction: column; - } - - .count { - align-self: start; - } - } - .button { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; } - .button:hover { transform:translateY(-2px); filter:brightness(1.08); } - .button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; } - - \ No newline at end of file diff --git a/frontend/src/styles/pages/member-list.scss b/frontend/src/styles/pages/member-list.scss new file mode 100644 index 0000000..5a48689 --- /dev/null +++ b/frontend/src/styles/pages/member-list.scss @@ -0,0 +1,226 @@ +:root { + --ink: #172033; + --muted: #667085; + --card: rgba(255, 255, 255, .94); + --line: #e1e6ef; + --primary: #6255e7; + --primary-soft: #f0eeff; + --empty-bg: #f7f8fc; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + margin: 0; + padding: clamp(1.25rem, 5vw, 4rem); + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 8% 8%, #d9e7ff 0, transparent 30rem), + radial-gradient(circle at 92% 90%, #eadcff 0, transparent 30rem), + #f6f7fb; +} + +.page { + width: min(100%, 70rem); + margin: 0 auto; +} + +.card { + overflow: hidden; + border: 1px solid rgba(255, 255, 255, .9); + border-radius: 1.5rem; + background: var(--card); + box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .14); +} + +.header { + display: flex; + align-items: end; + justify-content: space-between; + gap: 1.5rem; + padding: clamp(1.5rem, 5vw, 3rem); + border-bottom: 1px solid var(--line); +} + +.eyebrow { + display: inline-flex; + align-items: center; + gap: .5rem; + margin: 0 0 .85rem; + color: var(--primary); + font-size: .78rem; + font-weight: 800; + letter-spacing: .11em; + text-transform: uppercase; +} + +.sparkle { + display: grid; + width: 1.65rem; + aspect-ratio: 1; + place-items: center; + border-radius: .55rem; + color: white; + font-size: .95rem; + background: linear-gradient(135deg, #7668ff, #a75ff4); +} + +h1 { + margin: 0; + font-size: clamp(2rem, 5vw, 3.25rem); + letter-spacing: -.06em; + line-height: 1.05; +} + +.intro { + max-width: 38rem; + margin: .85rem 0 0; + color: var(--muted); + line-height: 1.6; +} + +.count { + flex: 0 0 auto; + margin: 0; + padding: .6rem .85rem; + border-radius: 999px; + color: var(--primary); + font-size: .88rem; + font-weight: 750; + white-space: nowrap; + background: var(--primary-soft); +} + +.table-wrap { + overflow-x: auto; +} + +table { + width: 100%; + min-width: 38rem; + border-collapse: collapse; + text-align: left; +} + +th { + padding: 1rem clamp(1.25rem, 3vw, 2rem); + color: var(--muted); + font-size: .75rem; + font-weight: 800; + letter-spacing: .08em; + text-transform: uppercase; + background: #fafbfe; +} + +td { + padding: 1.15rem clamp(1.25rem, 3vw, 2rem); + border-top: 1px solid var(--line); + vertical-align: middle; +} + +tbody tr { + transition: background .18s ease; + &:hover { + background: #faf9ff; + } +} + +.member { + display: flex; + align-items: center; + gap: .85rem; + font-weight: 750; +} + +.avatar { + display: grid; + width: 2.45rem; + aspect-ratio: 1; + flex: 0 0 auto; + place-items: center; + border-radius: 50%; + color: var(--primary); + font-size: .82rem; + font-weight: 850; + background: var(--primary-soft); +} + +.phone { + color: var(--muted); + font-variant-numeric: tabular-nums; +} + +.date { + color: var(--muted); + white-space: nowrap; +} + +.empty { + padding: clamp(3rem, 10vw, 6rem) 1.5rem; + text-align: center; + background: var(--empty-bg); +} + +.empty-icon { + display: grid; + width: 3.5rem; + aspect-ratio: 1; + place-items: center; + margin: 0 auto 1rem; + border-radius: 1rem; + color: var(--primary); + font-size: 1.4rem; + background: var(--primary-soft); +} + +.empty h2 { + margin: 0; + font-size: 1.2rem; + letter-spacing: -.03em; +} + +.empty p { + margin: .5rem 0 0; + color: var(--muted); +} + +@media (max-width: 40rem) { + .header { + align-items: start; + flex-direction: column; + } + .count { + align-self: start; + } +} + +.button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: .6rem; + min-height: 2.9rem; + padding: .75rem 1.05rem; + border: 1px solid #b3c9ff; + border-radius: .8rem; + color: #121a34; + font: inherit; + font-size: .93rem; + font-weight: 850; + text-decoration: none; + background: linear-gradient(135deg,#99c8ff,#c6adff); + box-shadow: 0 .65rem 1.75rem #7058dd50; + transition: transform .2s ease,filter .2s ease; + &:hover { + transform: translateY(-2px); + filter: brightness(1.08); + } + &:focus-visible { + outline: 3px solid #a5c9ff80; + outline-offset: 3px; + } +} diff --git a/frontend/src/styles/pages/member-success.css b/frontend/src/styles/pages/member-success.css deleted file mode 100644 index 4188c49..0000000 --- a/frontend/src/styles/pages/member-success.css +++ /dev/null @@ -1,127 +0,0 @@ - - :root { - --ink: #172033; - --muted: #667085; - --card: rgba(255, 255, 255, .92); - --line: #d7ddea; - --primary: #6255e7; - --success-bg: #eafaf1; - --success-ink: #176b42; - } - - * { box-sizing: border-box; } - - body { - min-width: 320px; - min-height: 100vh; - display: grid; - place-items: center; - margin: 0; - padding: 1.5rem; - color: var(--ink); - font-family: Inter, ui-sans-serif, system-ui, -apple-system, - BlinkMacSystemFont, "Segoe UI", sans-serif; - background: - radial-gradient(circle at 12% 15%, #cfe1ff 0, transparent 28rem), - radial-gradient(circle at 88% 88%, #e6d8ff 0, transparent 26rem), - #f6f7fb; - } - - .card { - width: min(100%, 31rem); - padding: clamp(1.75rem, 7vw, 3rem); - border: 1px solid rgba(255, 255, 255, .85); - border-radius: 1.5rem; - background: var(--card); - box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .16); - } - - .eyebrow { - display: inline-flex; - align-items: center; - gap: .5rem; - margin: 0 0 1rem; - color: var(--primary); - font-size: .78rem; - font-weight: 800; - letter-spacing: .11em; - text-transform: uppercase; - } - - .sparkle { - display: grid; - width: 1.65rem; - aspect-ratio: 1; - place-items: center; - border-radius: .55rem; - color: white; - font-size: .95rem; - background: linear-gradient(135deg, #7668ff, #a75ff4); - } - .button { display:inline-flex; align-items:center; justify-content:center; gap:.6rem; min-height:2.9rem; padding:.75rem 1.05rem; border:1px solid #b3c9ff; border-radius:.8rem; color:#121a34; font:inherit; font-size:.93rem; font-weight:850; text-decoration:none; background:linear-gradient(135deg,#99c8ff,#c6adff); box-shadow:0 .65rem 1.75rem #7058dd50; transition:transform .2s ease,filter .2s ease; } - .button:hover { transform:translateY(-2px); filter:brightness(1.08); } - .button:focus-visible { outline:3px solid #a5c9ff80; outline-offset:3px; } - h1 { - margin: 0; - font-size: clamp(2rem, 7vw, 3rem); - letter-spacing: -.055em; - line-height: 1.05; - } - - .intro { - margin: 1rem 0 2rem; - color: var(--muted); - line-height: 1.6; - } - - label { - display: block; - margin-bottom: .55rem; - font-size: .92rem; - font-weight: 700; - } - - input { - width: 100%; - min-height: 3.15rem; - padding: .75rem 1rem; - border: 1px solid var(--line); - border-radius: .75rem; - outline: none; - color: var(--ink); - font: inherit; - background: white; - } - - input:focus { - border-color: var(--primary); - box-shadow: 0 0 0 .25rem rgba(98, 85, 231, .15); - } - - button { - width: 100%; - min-height: 3.15rem; - margin-top: 1rem; - border: 0; - border-radius: .75rem; - cursor: pointer; - color: white; - font: inherit; - font-weight: 750; - background: linear-gradient(135deg, var(--primary), #8a5ce5); - box-shadow: 0 .65rem 1.3rem rgba(98, 85, 231, .24); - } - - button:hover { - transform: translateY(-1px); - } - - .result { - margin: 1.5rem 0 0; - padding: .9rem 1rem; - border-radius: .75rem; - color: var(--success-ink); - line-height: 1.45; - background: var(--success-bg); - } - \ No newline at end of file diff --git a/frontend/src/styles/pages/member-success.scss b/frontend/src/styles/pages/member-success.scss new file mode 100644 index 0000000..f20c812 --- /dev/null +++ b/frontend/src/styles/pages/member-success.scss @@ -0,0 +1,148 @@ +:root { + --ink: #172033; + --muted: #667085; + --card: rgba(255, 255, 255, .92); + --line: #d7ddea; + --primary: #6255e7; + --success-bg: #eafaf1; + --success-ink: #176b42; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + display: grid; + place-items: center; + margin: 0; + padding: 1.5rem; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 12% 15%, #cfe1ff 0, transparent 28rem), + radial-gradient(circle at 88% 88%, #e6d8ff 0, transparent 26rem), + #f6f7fb; +} + +.card { + width: min(100%, 31rem); + padding: clamp(1.75rem, 7vw, 3rem); + border: 1px solid rgba(255, 255, 255, .85); + border-radius: 1.5rem; + background: var(--card); + box-shadow: 0 1.5rem 4rem rgba(53, 56, 105, .16); +} + +.eyebrow { + display: inline-flex; + align-items: center; + gap: .5rem; + margin: 0 0 1rem; + color: var(--primary); + font-size: .78rem; + font-weight: 800; + letter-spacing: .11em; + text-transform: uppercase; +} + +.sparkle { + display: grid; + width: 1.65rem; + aspect-ratio: 1; + place-items: center; + border-radius: .55rem; + color: white; + font-size: .95rem; + background: linear-gradient(135deg, #7668ff, #a75ff4); +} + +.button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: .6rem; + min-height: 2.9rem; + padding: .75rem 1.05rem; + border: 1px solid #b3c9ff; + border-radius: .8rem; + color: #121a34; + font: inherit; + font-size: .93rem; + font-weight: 850; + text-decoration: none; + background: linear-gradient(135deg,#99c8ff,#c6adff); + box-shadow: 0 .65rem 1.75rem #7058dd50; + transition: transform .2s ease,filter .2s ease; + &:hover { + transform: translateY(-2px); + filter: brightness(1.08); + } + &:focus-visible { + outline: 3px solid #a5c9ff80; + outline-offset: 3px; + } +} + +h1 { + margin: 0; + font-size: clamp(2rem, 7vw, 3rem); + letter-spacing: -.055em; + line-height: 1.05; +} + +.intro { + margin: 1rem 0 2rem; + color: var(--muted); + line-height: 1.6; +} + +label { + display: block; + margin-bottom: .55rem; + font-size: .92rem; + font-weight: 700; +} + +input { + width: 100%; + min-height: 3.15rem; + padding: .75rem 1rem; + border: 1px solid var(--line); + border-radius: .75rem; + outline: none; + color: var(--ink); + font: inherit; + background: white; + &:focus { + border-color: var(--primary); + box-shadow: 0 0 0 .25rem rgba(98, 85, 231, .15); + } +} + +button { + width: 100%; + min-height: 3.15rem; + margin-top: 1rem; + border: 0; + border-radius: .75rem; + cursor: pointer; + color: white; + font: inherit; + font-weight: 750; + background: linear-gradient(135deg, var(--primary), #8a5ce5); + box-shadow: 0 .65rem 1.3rem rgba(98, 85, 231, .24); + &:hover { + transform: translateY(-1px); + } +} + +.result { + margin: 1.5rem 0 0; + padding: .9rem 1rem; + border-radius: .75rem; + color: var(--success-ink); + line-height: 1.45; + background: var(--success-bg); +} diff --git a/frontend/src/styles/pages/not-found.css b/frontend/src/styles/pages/not-found.css deleted file mode 100644 index 0c678e6..0000000 --- a/frontend/src/styles/pages/not-found.css +++ /dev/null @@ -1,8 +0,0 @@ - - :root { --ink:#eef3ff; --muted:#aab9d8; --line:#2b3d68; --violet:#b69cff; --blue:#8abaff; } - * { box-sizing:border-box; } - body { min-width:320px; min-height:100vh; display:grid; place-items:center; margin:0; padding:1.5rem; color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d; } - .card { width:min(100%,42rem); position:relative; overflow:hidden; padding:clamp(2rem,7vw,4.75rem); border:1px solid var(--line); border-radius:1.5rem; text-align:center; background:linear-gradient(145deg,#172443e8,#10182ddd); box-shadow:0 1.75rem 5rem #01030c99; backdrop-filter:blur(16px); }.card::before,.card::after { content:""; position:absolute; border-radius:50%; filter:blur(1px); pointer-events:none; }.card::before { width:14rem; height:14rem; top:-8rem; left:-5rem; background:#5888e536; }.card::after { width:11rem; height:11rem; right:-5rem; bottom:-5rem; background:#b069e73d; } - .mark { display:grid; width:4.25rem; aspect-ratio:1; place-items:center; margin:0 auto 1.75rem; border:1px solid #a7c7ff66; border-radius:1.1rem; color:#141c39; font-size:1.7rem; background:linear-gradient(135deg,#a8ceff,#c5b3ff); box-shadow:0 .65rem 1.75rem #735ee150; transform:rotate(8deg); }.mark span { transform:rotate(-8deg); }.code { margin:0; color:#bfcfff; font-size:.78rem; font-weight:900; letter-spacing:.2em; text-transform:uppercase; }.code strong { color:#f2d07f; }.title { max-width:10ch; margin:.75rem auto 1rem; font-size:clamp(2.5rem,8vw,5rem); line-height:.96; letter-spacing:-.065em; }.message { max-width:31rem; margin:0 auto; color:var(--muted); line-height:1.65; }.path { display:inline-block; max-width:100%; margin-top:1.1rem; padding:.45rem .7rem; overflow-wrap:anywhere; border:1px solid #354b7a; border-radius:.55rem; color:#c6d5f3; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.78rem; background:#0a1123; }.actions { display:flex; justify-content:center; gap:.75rem; flex-wrap:wrap; margin-top:2rem; }.button { display:inline-flex; align-items:center; justify-content:center; min-height:2.8rem; padding:.7rem 1rem; border:1px solid #455d92; border-radius:.75rem; color:#dce7ff; font-size:.92rem; font-weight:800; text-decoration:none; background:#1b2949; transition:transform .2s ease,background .2s ease; }.button:hover { transform:translateY(-2px); background:#263b69; }.button-primary { border-color:#b2c8ff; color:#121a34; background:linear-gradient(135deg,#97c5ff,#c2adff); }.button-primary:hover { background:linear-gradient(135deg,#b0d4ff,#d1c2ff); } - @media (prefers-reduced-motion:reduce) { .button { transition:none; } } - \ No newline at end of file diff --git a/frontend/src/styles/pages/not-found.scss b/frontend/src/styles/pages/not-found.scss new file mode 100644 index 0000000..40073ed --- /dev/null +++ b/frontend/src/styles/pages/not-found.scss @@ -0,0 +1,159 @@ +:root { + --ink: #eef3ff; + --muted: #aab9d8; + --line: #2b3d68; + --violet: #b69cff; + --blue: #8abaff; +} + +* { + box-sizing: border-box; +} + +body { + min-width: 320px; + min-height: 100vh; + display: grid; + place-items: center; + margin: 0; + padding: 1.5rem; + color: var(--ink); + font-family: var(--font-ui); + background: radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d; +} + +.card { + width: min(100%,42rem); + position: relative; + overflow: hidden; + padding: clamp(2rem,7vw,4.75rem); + border: 1px solid var(--line); + border-radius: 1.5rem; + text-align: center; + background: linear-gradient(145deg,#172443e8,#10182ddd); + box-shadow: 0 1.75rem 5rem #01030c99; + backdrop-filter: blur(16px); + &::before, &::after { + content: ""; + position: absolute; + border-radius: 50%; + filter: blur(1px); + pointer-events: none; + } + &::before { + width: 14rem; + height: 14rem; + top: -8rem; + left: -5rem; + background: #5888e536; + } + &::after { + width: 11rem; + height: 11rem; + right: -5rem; + bottom: -5rem; + background: #b069e73d; + } +} + +.mark { + display: grid; + width: 4.25rem; + aspect-ratio: 1; + place-items: center; + margin: 0 auto 1.75rem; + border: 1px solid #a7c7ff66; + border-radius: 1.1rem; + color: #141c39; + font-size: 1.7rem; + background: linear-gradient(135deg,#a8ceff,#c5b3ff); + box-shadow: 0 .65rem 1.75rem #735ee150; + transform: rotate(8deg); + span { + transform: rotate(-8deg); + } +} + +.code { + margin: 0; + color: #bfcfff; + font-size: .78rem; + font-weight: 900; + letter-spacing: .2em; + text-transform: uppercase; + strong { + color: #f2d07f; + } +} + +.title { + max-width: 10ch; + margin: .75rem auto 1rem; + font-size: clamp(2.5rem,8vw,5rem); + line-height: .96; + letter-spacing: -.065em; +} + +.message { + max-width: 31rem; + margin: 0 auto; + color: var(--muted); + line-height: 1.65; +} + +.path { + display: inline-block; + max-width: 100%; + margin-top: 1.1rem; + padding: .45rem .7rem; + overflow-wrap: anywhere; + border: 1px solid #354b7a; + border-radius: .55rem; + color: #c6d5f3; + font-family: ui-monospace,SFMono-Regular,Menlo,monospace; + font-size: .78rem; + background: #0a1123; +} + +.actions { + display: flex; + justify-content: center; + gap: .75rem; + flex-wrap: wrap; + margin-top: 2rem; +} + +.button { + display: inline-flex; + align-items: center; + justify-content: center; + min-height: 2.8rem; + padding: .7rem 1rem; + border: 1px solid #455d92; + border-radius: .75rem; + color: #dce7ff; + font-size: .92rem; + font-weight: 800; + text-decoration: none; + background: #1b2949; + transition: transform .2s ease,background .2s ease; + &:hover { + transform: translateY(-2px); + background: #263b69; + } +} + +.button-primary { + border-color: #b2c8ff; + color: #121a34; + background: linear-gradient(135deg,#97c5ff,#c2adff); + &:hover { + background: linear-gradient(135deg,#b0d4ff,#d1c2ff); + } +} + +@media (prefers-reduced-motion:reduce) { + .button { + transition: none; + } +} diff --git a/frontend/src/styles/pages/settings.css b/frontend/src/styles/pages/settings.css deleted file mode 100644 index c24a633..0000000 --- a/frontend/src/styles/pages/settings.css +++ /dev/null @@ -1,51 +0,0 @@ -/* Settings cards follow the shared blue and violet theme. */ -*{box-sizing:border-box} -body{min-height:100vh;padding:0;color:var(--theme-ink);background:var(--theme-bg)} -.settings-shell{width:min(100% - 3.5rem,73.75rem);margin:auto;padding:4rem 0 5rem} -.settings-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.25rem 2rem;width:100%} -.settings-heading,.messages{grid-column:1/-1} -.settings-heading{margin-bottom:0} -.eyebrow{margin:0 0 .7rem;color:#9fc5ff;font-size:.74rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase} -h1,h2{font-family:Georgia,ui-serif,serif;font-weight:700} -h1{margin:0;font-size:clamp(2.3rem,4vw,3.5rem);letter-spacing:-.045em;line-height:1.12} -h2{margin:0 0 .45rem;font-size:1.5rem;letter-spacing:-.02em} -.intro,.help{margin:.45rem 0 0;color:var(--theme-muted);line-height:1.55} -.card{min-width:0;width:100%;margin:0;padding:1.75rem;border:1px solid var(--theme-line);border-radius:1.125rem;background:var(--theme-surface);box-shadow:0 1.125rem 2.8rem #02071429} -.settings-form{display:flex;flex-direction:column;gap:1rem}.settings-form h2+.field{margin-top:.4rem} -.settings-form>.button[type=submit]{margin-top:auto} -.field label{display:block;margin:0 0 .375rem;font-size:.85rem;font-weight:700} -.field input,.field select{display:block;width:100%;min-height:2.625rem;padding:.55rem .625rem;border:1px solid var(--theme-line);border-radius:.56rem;color:var(--theme-ink);background:var(--theme-input);font:inherit} -.field input:focus-visible,.field select:focus-visible,.button:focus-visible,.switch-control input:focus-visible+.switch-track{outline:3px solid #80b6ff;outline-offset:3px} -.errorlist{margin:.5rem 0 0;padding:.7rem .9rem;border-radius:.55rem;color:#fee2e2;background:#7f1d1d} -.button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:2.875rem;margin:0;padding:.65rem 1.2rem;border:1px solid transparent;border-radius:999px;color:#111c30;background:#a6ccff;font:inherit;font-size:.9rem;font-weight:800;text-align:center;text-decoration:none;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease} -.button:hover{transform:translateY(-1px);background:#c0ddff;box-shadow:0 .45rem 1rem #5899f733} -.button--secondary{border-color:#6386bd;color:#d7e8ff;background:#223755}.button--secondary:hover{color:#111c30;background:#a6ccff} -.switch-row{display:flex;align-items:center;justify-content:space-between;gap:1.125rem;min-height:4.375rem;padding:.8rem 1rem;border:1px solid #3d5879;border-radius:.94rem;background:#1a2a43;cursor:pointer} -.switch-row:hover{border-color:#739ad0;background:#203554}.switch-copy{display:grid;gap:.2rem;min-width:0}.switch-copy strong{font-size:.92rem}.switch-copy small{color:var(--theme-muted);font-size:.77rem;line-height:1.35} -.switch-control{position:relative;display:block;flex:0 0 3.1875rem;width:3.1875rem;height:1.9375rem}.switch-control input{position:absolute;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.switch-track{display:block;width:100%;height:100%;border-radius:999px;background:#62758b;pointer-events:none;transition:background .16s ease} -.switch-track::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0004;transition:transform .16s ease}.switch-control input:checked+.switch-track{background:#34c76a}.switch-control input:checked+.switch-track::after{transform:translateX(20px)} -.messages{margin:0;padding:0;list-style:none}.alert{margin:.5rem 0 0;padding:.75rem 1rem;border-radius:.65rem;line-height:1.45}#ntfy-test-result:empty{display:none} -.sensor-list__intro{padding-bottom:1.25rem;border-bottom:1px solid var(--theme-line)}.sensor-list__intro .eyebrow{margin-bottom:.35rem} -.sensor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.sensor-card{display:flex;flex-direction:column;min-width:0;margin:0;padding:1.3rem;border:1px solid var(--theme-line);border-radius:1rem;background:var(--theme-surface-raised)} -.sensor-card__heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem 1rem}.sensor-card__heading h3{margin:0;font-family:Georgia,ui-serif,serif;font-size:1.25rem;overflow-wrap:anywhere}.sensor-card .sensor-status{display:inline-flex;padding:.32rem .65rem;border-radius:999px;background:var(--theme-input);font-size:.78rem;white-space:nowrap} -.sensor-status{color:var(--theme-muted);font-weight:700}.sensor-status--online{color:#64dca0}.sensor-status--delayed{color:#f5c46b}.sensor-status--offline{color:#f49aa7} -.sensor-access{align-self:flex-start;margin-top:.7rem;padding:.25rem .55rem;border:1px solid #3d806b;border-radius:999px;color:#8be0b9;font-size:.72rem;font-weight:800}.sensor-access--off{border-color:#806b75;color:#d4b9c5} -.sensor-card__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1rem;margin:1.3rem 0}.sensor-card__facts div{min-width:0}.sensor-card__facts dt{margin-bottom:.25rem;color:var(--theme-muted);font-size:.75rem;font-weight:700}.sensor-card__facts dd{margin:0;font-size:.88rem;font-weight:600;overflow-wrap:anywhere}.sensor-card__facts code{font:inherit}.sensor-card__facts div:last-child{grid-column:1/-1} -.sensor-card .button{margin-top:auto}.sensor-empty{grid-column:1/-1;margin:0;padding:1.5rem;border:1px dashed var(--theme-line);border-radius:1rem;color:var(--theme-muted);text-align:center;line-height:1.5} -.sensor-form{margin-top:1.5rem;padding:1.3rem;border:1px dashed #6386bd;border-radius:1rem;background:var(--theme-surface-raised)}.sensor-form h3{margin:0;font-family:Georgia,ui-serif,serif;font-size:1.2rem}.sensor-form .help{margin-top:.3rem}.sensor-form__controls{display:grid;grid-template-columns:minmax(0,1fr) 11rem;align-items:end;gap:1rem} -.settings-content>#sensor-card{grid-column:1/-1} -.sensor-detail__header{display:flex;align-items:start;justify-content:space-between;gap:1rem;padding-bottom:1.2rem;border-bottom:1px solid var(--theme-line)}.sensor-detail__header .eyebrow{margin-bottom:.35rem}.sensor-detail__header h2{margin:0;font-size:clamp(1.6rem,3vw,2rem);overflow-wrap:anywhere}.sensor-close{display:inline-flex;align-items:center;gap:.35rem;flex:none;padding:.45rem .85rem;border:1px solid var(--theme-line);border-radius:999px;color:var(--theme-ink);background:var(--theme-surface-raised);font-size:.85rem;font-weight:700;text-decoration:none}.sensor-close:hover{border-color:#86ade0;background:#2b4266}.sensor-close:focus-visible{outline:3px solid #80b6ff;outline-offset:3px} -.sensor-detail__overview{margin:1.25rem 0 1.5rem;padding:1.2rem;border:1px solid var(--theme-line);border-radius:1rem;background:var(--theme-surface-raised)}.sensor-detail__overview>.sensor-status{display:inline-flex;margin:0 0 1rem;padding:.35rem .7rem;border-radius:999px;background:var(--theme-input);font-size:.85rem} -.sensor-detail__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.5rem;margin:0}.sensor-detail__facts div{min-width:0}.sensor-detail__facts dt{margin:0 0 .3rem;color:var(--theme-muted);font-size:.78rem;font-weight:700}.sensor-detail__facts dd{margin:0;overflow-wrap:anywhere;font-size:.92rem;font-weight:600}.sensor-detail__facts code{font:inherit} -.sensor-detail__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.sensor-detail__section{display:flex;flex-direction:column;min-width:0;padding:1.2rem;border:1px solid var(--theme-line);border-radius:1rem;background:var(--theme-surface-raised)}.sensor-detail__section h3{margin:0 0 .35rem;font-family:Georgia,ui-serif,serif;font-size:1.15rem}.sensor-detail__section>.help{margin:0}.sensor-detail__section form{display:flex;flex:1;flex-direction:column;gap:.8rem;margin-top:1rem}.sensor-detail__section form .button{margin-top:auto}.sensor-detail__section .field{width:100%}.sensor-detail__section:last-child{border-color:#945f68;background:#392432}.sensor-detail__section:last-child .button--danger{border-color:#dc7b89;color:#fff;background:#a43c50}.sensor-detail__section:last-child .button--danger:hover{background:#bd4a60} -.sensor-confirm{display:flex;align-items:start;gap:.6rem;line-height:1.4;font-size:.82rem;cursor:pointer}.sensor-confirm input{flex:none;width:1.1rem;height:1.1rem;margin:.15rem 0 0;accent-color:#84baff}.sensor-confirm input:focus-visible{outline:3px solid #80b6ff;outline-offset:3px} -.sensor-messages{margin-top:1rem}.token-once{margin:1.25rem 0;padding:1rem;border:1px solid #e4ad55;border-radius:.8rem;background:var(--theme-surface-raised)}.token-once code{display:block;margin:.75rem 0;padding:.7rem;border-radius:.5rem;background:var(--theme-input);overflow-wrap:anywhere;user-select:all} -.button--danger{color:#fff;background:#991b1b}.button--danger:hover{color:#fff;background:#b91c1c} -:root[data-theme=light] .eyebrow{color:#23578d}:root[data-theme=light] .card{box-shadow:0 1.125rem 2.8rem #20365c1a}:root[data-theme=light] .button:not(.button--secondary):not(.button--danger){color:#fff;background:#245b96}:root[data-theme=light] .button:not(.button--secondary):not(.button--danger):hover{background:#174877}:root[data-theme=light] .button--secondary{border-color:#9cc0ed;color:#245b96;background:#edf4ff}:root[data-theme=light] .button--secondary:hover{color:#fff;background:#245b96}:root[data-theme=light] .switch-row{border-color:#d4e0ef;background:#f2f7fe}:root[data-theme=light] .switch-row:hover{border-color:#9cc0ed;background:#eaf3ff}:root[data-theme=light] .switch-track{background:#c1cbd8}:root[data-theme=light] .switch-control input:checked+.switch-track{background:#34c76a} -:root[data-theme=light] .sensor-close:hover{background:#e4efff}:root[data-theme=light] .sensor-detail__section:last-child{border-color:#ecc6cb;background:#fff5f6}:root[data-theme=light] .sensor-detail__section:last-child .button--danger{color:#fff;background:#a43c50} -:root[data-theme=light] .sensor-access{border-color:#b8dfca;color:#256147;background:#ecf8f0}:root[data-theme=light] .sensor-access--off{border-color:#dbcbd3;color:#80556a;background:#fbf4f7}:root[data-theme=light] .sensor-form{border-color:#9cc0ed} -@media(max-width:48rem){.settings-content{grid-template-columns:minmax(0,1fr)}.settings-shell{width:min(100% - 2.25rem,73.75rem);padding:2.5rem 0 3rem}} -@media(max-width:48rem){.sensor-detail__actions,.sensor-list{grid-template-columns:minmax(0,1fr)}} -@media(max-width:30rem){.sensor-detail__facts{grid-template-columns:minmax(0,1fr)}.sensor-detail__header{align-items:start}.sensor-close span{display:none}} -@media(max-width:35rem){.card{padding:1.25rem}.sensor-form__controls{grid-template-columns:minmax(0,1fr)}} -@media(prefers-reduced-motion:reduce){.button,.switch-track,.switch-track::after{transition:none}.button:hover{transform:none}} diff --git a/frontend/src/styles/pages/settings.scss b/frontend/src/styles/pages/settings.scss new file mode 100644 index 0000000..08b7e5e --- /dev/null +++ b/frontend/src/styles/pages/settings.scss @@ -0,0 +1,700 @@ +/*Settings cards follow the shared blue and violet theme.*/ + +* { + box-sizing: border-box; +} + +body { + min-height: 100vh; + padding: 0; + color: var(--theme-ink); + background: var(--theme-bg); +} + +.settings-shell { + width: min(100% - 3.5rem,73.75rem); + margin: auto; + padding: 4rem 0 5rem; +} + +.settings-content { + display: grid; + grid-template-columns: repeat(2,minmax(0,1fr)); + gap: 2.25rem 2rem; + width: 100%; +} + +.settings-heading,.messages { + grid-column: 1/-1; +} + +.settings-heading { + margin-bottom: 0; +} + +.eyebrow { + margin: 0 0 .7rem; + color: #9fc5ff; + font-size: .74rem; + font-weight: 800; + letter-spacing: .1em; + text-transform: uppercase; +} + +h1,h2 { + font-family: Georgia,ui-serif,serif; + font-weight: 700; +} + +h1 { + margin: 0; + font-size: clamp(2.3rem,4vw,3.5rem); + letter-spacing: -.045em; + line-height: 1.12; +} + +h2 { + margin: 0 0 .45rem; + font-size: 1.5rem; + letter-spacing: -.02em; +} + +.intro,.help { + margin: .45rem 0 0; + color: var(--theme-muted); + line-height: 1.55; +} + +.card { + min-width: 0; + width: 100%; + margin: 0; + padding: 1.75rem; + border: 1px solid var(--theme-line); + border-radius: 1.125rem; + background: var(--theme-surface); + box-shadow: 0 1.125rem 2.8rem #02071429; +} + +.settings-form { + display: flex; + flex-direction: column; + gap: 1rem; + h2+.field { + margin-top: .4rem; + } + &>.button[type=submit] { + margin-top: auto; + } +} + +.field label { + display: block; + margin: 0 0 .375rem; + font-size: .85rem; + font-weight: 700; +} + +.field input,.field select { + display: block; + width: 100%; + min-height: 2.625rem; + padding: .55rem .625rem; + border: 1px solid var(--theme-line); + border-radius: .56rem; + color: var(--theme-ink); + background: var(--theme-input); + font: inherit; +} + +.field input:focus-visible,.field select:focus-visible,.button:focus-visible,.switch-control input:focus-visible+.switch-track { + outline: 3px solid #80b6ff; + outline-offset: 3px; +} + +.errorlist { + margin: .5rem 0 0; + padding: .7rem .9rem; + border-radius: .55rem; + color: #fee2e2; + background: #7f1d1d; +} + +.button { + display: inline-flex; + align-items: center; + justify-content: center; + width: 100%; + min-height: 2.875rem; + margin: 0; + padding: .65rem 1.2rem; + border: 1px solid transparent; + border-radius: 999px; + color: #111c30; + background: #a6ccff; + font: inherit; + font-size: .9rem; + font-weight: 800; + text-align: center; + text-decoration: none; + cursor: pointer; + transition: transform .16s ease,box-shadow .16s ease,background .16s ease; + &:hover { + transform: translateY(-1px); + background: #c0ddff; + box-shadow: 0 .45rem 1rem #5899f733; + } +} + +.button--secondary { + border-color: #6386bd; + color: #d7e8ff; + background: #223755; + &:hover { + color: #111c30; + background: #a6ccff; + } +} + +.switch-row { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1.125rem; + min-height: 4.375rem; + padding: .8rem 1rem; + border: 1px solid #3d5879; + border-radius: .94rem; + background: #1a2a43; + cursor: pointer; + &:hover { + border-color: #739ad0; + background: #203554; + } +} + +.switch-copy { + display: grid; + gap: .2rem; + min-width: 0; + strong { + font-size: .92rem; + } + small { + color: var(--theme-muted); + font-size: .77rem; + line-height: 1.35; + } +} + +.switch-control { + position: relative; + display: block; + flex: 0 0 3.1875rem; + width: 3.1875rem; + height: 1.9375rem; + input { + position: absolute; + width: 100%; + height: 100%; + margin: 0; + opacity: 0; + cursor: pointer; + } +} + +.switch-track { + display: block; + width: 100%; + height: 100%; + border-radius: 999px; + background: #62758b; + pointer-events: none; + transition: background .16s ease; + &::after { + content: ""; + position: absolute; + top: 2px; + left: 2px; + width: 27px; + height: 27px; + border-radius: 50%; + background: #fff; + box-shadow: 0 1px 4px #0004; + transition: transform .16s ease; + } +} + +.switch-control input:checked+.switch-track { + background: #34c76a; + &::after { + transform: translateX(20px); + } +} + +.messages { + margin: 0; + padding: 0; + list-style: none; +} + +.alert { + margin: .5rem 0 0; + padding: .75rem 1rem; + border-radius: .65rem; + line-height: 1.45; +} + +#ntfy-test-result:empty { + display: none; +} + +.sensor-list__intro { + padding-bottom: 1.25rem; + border-bottom: 1px solid var(--theme-line); + .eyebrow { + margin-bottom: .35rem; + } +} + +.sensor-list { + display: grid; + grid-template-columns: repeat(2,minmax(0,1fr)); + gap: 1rem; + margin: 1.5rem 0; +} + +.sensor-card { + display: flex; + flex-direction: column; + min-width: 0; + margin: 0; + padding: 1.3rem; + border: 1px solid var(--theme-line); + border-radius: 1rem; + background: var(--theme-surface-raised); +} + +.sensor-card__heading { + display: flex; + align-items: center; + justify-content: space-between; + flex-wrap: wrap; + gap: .5rem 1rem; + h3 { + margin: 0; + font-family: Georgia,ui-serif,serif; + font-size: 1.25rem; + overflow-wrap: anywhere; + } +} + +.sensor-card .sensor-status { + display: inline-flex; + padding: .32rem .65rem; + border-radius: 999px; + background: var(--theme-input); + font-size: .78rem; + white-space: nowrap; +} + +.sensor-status { + color: var(--theme-muted); + font-weight: 700; +} + +.sensor-status--online { + color: #64dca0; +} + +.sensor-status--delayed { + color: #f5c46b; +} + +.sensor-status--offline { + color: #f49aa7; +} + +.sensor-access { + align-self: flex-start; + margin-top: .7rem; + padding: .25rem .55rem; + border: 1px solid #3d806b; + border-radius: 999px; + color: #8be0b9; + font-size: .72rem; + font-weight: 800; +} + +.sensor-access--off { + border-color: #806b75; + color: #d4b9c5; +} + +.sensor-card__facts { + display: grid; + grid-template-columns: repeat(2,minmax(0,1fr)); + gap: .8rem 1rem; + margin: 1.3rem 0; + div { + min-width: 0; + } + dt { + margin-bottom: .25rem; + color: var(--theme-muted); + font-size: .75rem; + font-weight: 700; + } + dd { + margin: 0; + font-size: .88rem; + font-weight: 600; + overflow-wrap: anywhere; + } + code { + font: inherit; + } + div:last-child { + grid-column: 1/-1; + } +} + +.sensor-card .button { + margin-top: auto; +} + +.sensor-empty { + grid-column: 1/-1; + margin: 0; + padding: 1.5rem; + border: 1px dashed var(--theme-line); + border-radius: 1rem; + color: var(--theme-muted); + text-align: center; + line-height: 1.5; +} + +.sensor-form { + margin-top: 1.5rem; + padding: 1.3rem; + border: 1px dashed #6386bd; + border-radius: 1rem; + background: var(--theme-surface-raised); + h3 { + margin: 0; + font-family: Georgia,ui-serif,serif; + font-size: 1.2rem; + } + .help { + margin-top: .3rem; + } +} + +.sensor-form__controls { + display: grid; + grid-template-columns: minmax(0,1fr) 11rem; + align-items: end; + gap: 1rem; +} + +.settings-content>#sensor-card { + grid-column: 1/-1; +} + +.sensor-detail__header { + display: flex; + align-items: start; + justify-content: space-between; + gap: 1rem; + padding-bottom: 1.2rem; + border-bottom: 1px solid var(--theme-line); + .eyebrow { + margin-bottom: .35rem; + } + h2 { + margin: 0; + font-size: clamp(1.6rem,3vw,2rem); + overflow-wrap: anywhere; + } +} + +.sensor-close { + display: inline-flex; + align-items: center; + gap: .35rem; + flex: none; + padding: .45rem .85rem; + border: 1px solid var(--theme-line); + border-radius: 999px; + color: var(--theme-ink); + background: var(--theme-surface-raised); + font-size: .85rem; + font-weight: 700; + text-decoration: none; + &:hover { + border-color: #86ade0; + background: #2b4266; + } + &:focus-visible { + outline: 3px solid #80b6ff; + outline-offset: 3px; + } +} + +.sensor-detail__overview { + margin: 1.25rem 0 1.5rem; + padding: 1.2rem; + border: 1px solid var(--theme-line); + border-radius: 1rem; + background: var(--theme-surface-raised); + &>.sensor-status { + display: inline-flex; + margin: 0 0 1rem; + padding: .35rem .7rem; + border-radius: 999px; + background: var(--theme-input); + font-size: .85rem; + } +} + +.sensor-detail__facts { + display: grid; + grid-template-columns: repeat(2,minmax(0,1fr)); + gap: 1rem 1.5rem; + margin: 0; + div { + min-width: 0; + } + dt { + margin: 0 0 .3rem; + color: var(--theme-muted); + font-size: .78rem; + font-weight: 700; + } + dd { + margin: 0; + overflow-wrap: anywhere; + font-size: .92rem; + font-weight: 600; + } + code { + font: inherit; + } +} + +.sensor-detail__actions { + display: grid; + grid-template-columns: repeat(2,minmax(0,1fr)); + gap: 1rem; +} + +.sensor-detail__section { + display: flex; + flex-direction: column; + min-width: 0; + padding: 1.2rem; + border: 1px solid var(--theme-line); + border-radius: 1rem; + background: var(--theme-surface-raised); + h3 { + margin: 0 0 .35rem; + font-family: Georgia,ui-serif,serif; + font-size: 1.15rem; + } + &>.help { + margin: 0; + } + form { + display: flex; + flex: 1; + flex-direction: column; + gap: .8rem; + margin-top: 1rem; + .button { + margin-top: auto; + } + } + .field { + width: 100%; + } + &:last-child { + border-color: #945f68; + background: #392432; + .button--danger { + border-color: #dc7b89; + color: #fff; + background: #a43c50; + &:hover { + background: #bd4a60; + } + } + } +} + +.sensor-confirm { + display: flex; + align-items: start; + gap: .6rem; + line-height: 1.4; + font-size: .82rem; + cursor: pointer; + input { + flex: none; + width: 1.1rem; + height: 1.1rem; + margin: .15rem 0 0; + accent-color: #84baff; + &:focus-visible { + outline: 3px solid #80b6ff; + outline-offset: 3px; + } + } +} + +.sensor-messages { + margin-top: 1rem; +} + +.token-once { + margin: 1.25rem 0; + padding: 1rem; + border: 1px solid #e4ad55; + border-radius: .8rem; + background: var(--theme-surface-raised); + code { + display: block; + margin: .75rem 0; + padding: .7rem; + border-radius: .5rem; + background: var(--theme-input); + overflow-wrap: anywhere; + user-select: all; + } +} + +.button--danger { + color: #fff; + background: #991b1b; + &:hover { + color: #fff; + background: #b91c1c; + } +} + +:root[data-theme=light] .eyebrow { + color: #23578d; +} + +:root[data-theme=light] .card { + box-shadow: 0 1.125rem 2.8rem #20365c1a; +} + +:root[data-theme=light] .button:not(.button--secondary):not(.button--danger) { + color: #fff; + background: #245b96; + &:hover { + background: #174877; + } +} + +:root[data-theme=light] .button--secondary { + border-color: #9cc0ed; + color: #245b96; + background: #edf4ff; + &:hover { + color: #fff; + background: #245b96; + } +} + +:root[data-theme=light] .switch-row { + border-color: #d4e0ef; + background: #f2f7fe; + &:hover { + border-color: #9cc0ed; + background: #eaf3ff; + } +} + +:root[data-theme=light] .switch-track { + background: #c1cbd8; +} + +:root[data-theme=light] .switch-control input:checked+.switch-track { + background: #34c76a; +} + +:root[data-theme=light] .sensor-close:hover { + background: #e4efff; +} + +:root[data-theme=light] .sensor-detail__section:last-child { + border-color: #ecc6cb; + background: #fff5f6; + .button--danger { + color: #fff; + background: #a43c50; + } +} + +:root[data-theme=light] .sensor-access { + border-color: #b8dfca; + color: #256147; + background: #ecf8f0; +} + +:root[data-theme=light] .sensor-access--off { + border-color: #dbcbd3; + color: #80556a; + background: #fbf4f7; +} + +:root[data-theme=light] .sensor-form { + border-color: #9cc0ed; +} + +@media (max-width:48rem) { + .settings-content { + grid-template-columns: minmax(0,1fr); + } + .settings-shell { + width: min(100% - 2.25rem,73.75rem); + padding: 2.5rem 0 3rem; + } +} + +@media (max-width:48rem) { + .sensor-detail__actions,.sensor-list { + grid-template-columns: minmax(0,1fr); + } +} + +@media (max-width:30rem) { + .sensor-detail__facts { + grid-template-columns: minmax(0,1fr); + } + .sensor-detail__header { + align-items: start; + } + .sensor-close span { + display: none; + } +} + +@media (max-width:35rem) { + .card { + padding: 1.25rem; + } + .sensor-form__controls { + grid-template-columns: minmax(0,1fr); + } +} + +@media (prefers-reduced-motion:reduce) { + .button,.switch-track,.switch-track::after { + transition: none; + } + .button:hover { + transform: none; + } +} diff --git a/frontend/src/styles/static/hello.scss b/frontend/src/styles/static/hello.scss new file mode 100644 index 0000000..1aa0393 --- /dev/null +++ b/frontend/src/styles/static/hello.scss @@ -0,0 +1,129 @@ +:root { + color-scheme: light; + --ink: #172554; + --muted: #64748b; + --card: rgba(255, 255, 255, 0.88); + --accent: #7c3aed; + --accent-light: #ddd6fe; +} + +* { + box-sizing: border-box; +} + +body { + min-height: 100vh; + margin: 0; + display: grid; + place-items: center; + padding: 2rem; + font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + color: var(--ink); + background: radial-gradient(circle at top left, #bfdbfe 0, transparent 32rem), + radial-gradient(circle at bottom right, #ddd6fe 0, transparent 30rem), + #f8fafc; +} + +.welcome-card { + width: min(100%, 42rem); + position: relative; + overflow: hidden; + padding: clamp(2rem, 7vw, 4.5rem); + border: 1px solid rgba(255, 255, 255, 0.8); + border-radius: 1.5rem; + background: var(--card); + box-shadow: 0 1.5rem 4rem rgba(30, 41, 59, 0.16); + backdrop-filter: blur(12px); + &::before { + content: ""; + width: 11rem; + height: 11rem; + position: absolute; + top: -5.5rem; + right: -4rem; + border-radius: 50%; + background: linear-gradient(135deg, var(--accent-light), #93c5fd); + opacity: 0.75; + } +} + +.eyebrow { + margin: 0 0 0.75rem; + color: var(--accent); + font-size: 0.8rem; + font-weight: 800; + letter-spacing: 0.12em; + text-transform: uppercase; +} + +h1 { + max-width: 26rem; + margin: 0; + font-size: clamp(2.25rem, 7vw, 4.25rem); + line-height: 1.05; + letter-spacing: -0.055em; +} + +.subject { + display: inline-flex; + align-items: center; + gap: 0.55rem; + margin: 1.5rem 0 0; + padding: 0.8rem 1rem; + border-radius: 0.85rem; + color: var(--muted); + font-size: 1.1rem; + background: #f8fafc; + strong { + color: var(--ink); + } +} + +.sparkle { + color: var(--accent); + font-size: 1.25rem; +} + +.button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.5rem; + padding: 0.8rem 1.25rem; + border: 1px solid transparent; + border-radius: 12px; + background: #7c3aed; + color: #fff; + font: inherit; + font-weight: 600; + line-height: 1; + text-decoration: none; + cursor: pointer; + box-shadow: 0 4px 10px rgba(124, 58, 237, 0.18), + 0 1px 2px rgba(15, 23, 42, 0.08); + transition: background-color 150ms ease, + box-shadow 150ms ease, + transform 150ms ease; + &:hover { + background: #6d28d9; + color: #fff; + box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24), + 0 2px 4px rgba(15, 23, 42, 0.08); + transform: translateY(-1px); + } + &:active { + background: #5b21b6; + transform: translateY(0); + box-shadow: 0 2px 6px rgba(124, 58, 237, 0.18); + } + &:focus-visible { + outline: 3px solid rgba(124, 58, 237, 0.25); + outline-offset: 3px; + } + &:disabled, &[aria-disabled="true"] { + opacity: 0.5; + cursor: not-allowed; + transform: none; + box-shadow: none; + } +} diff --git a/frontend/src/styles/static/project-admin.scss b/frontend/src/styles/static/project-admin.scss new file mode 100644 index 0000000..74f5946 --- /dev/null +++ b/frontend/src/styles/static/project-admin.scss @@ -0,0 +1,175 @@ +:root { + --primary: #8abaff; + --secondary: #263a76; + --accent: #b69cff; + --primary-fg: #10182d; + --body-fg: #edf3ff; + --body-bg: #090e1d; + --body-quiet-color: #aab9d8; + --body-loud-color: #fff; + --header-color: #edf3ff; + --header-branding-color: #edf3ff; + --header-bg: #111a31; + --header-link-color: #dbe8ff; + --breadcrumbs-fg: #c8d7f5; + --breadcrumbs-link-fg: #fff; + --breadcrumbs-bg: #192848; + --link-fg: #9ec8ff; + --link-hover-color: #d1bdff; + --link-selected-fg: #fff; + --hairline-color: #2b3d68; + --border-color: #30446f; + --error-fg: #ff9ea8; + --message-success-bg: #104a40; + --message-warning-bg: #5a431c; + --darkened-bg: #13203b; + --selected-bg: #283c68; + --selected-row: #1a2b4e; + --button-fg: #121a34; + --button-bg: #9ac8ff; + --button-hover-bg: #c6adff; +} + +body { + background: radial-gradient(circle at 8% 0,#263a76 0,transparent 31rem),#090e1d; +} + +#header { + padding: 18px 32px; + background: linear-gradient(135deg,#172443,#10182d); + border-bottom: 1px solid #2b3d68; +} + +#site-name a { + font-weight: 900; + letter-spacing: .06em; +} + +#site-name span { + margin-left: .45rem; + color: #aab9d8; + font-size: .58em; + font-weight: 600; + letter-spacing: .08em; + text-transform: uppercase; +} + +.module,div.breadcrumbs,#changelist-filter,.inline-group,.submit-row { + border-color: #2b3d68 !important; + background: #111a31 !important; + box-shadow: 0 1rem 3rem #01030c55; +} + +.module caption,.module h2,#changelist-filter h2 { + background: #1a2b4e !important; + color: #edf3ff !important; +} + +#content { + padding: 28px 32px; +} + +input,textarea,select { + color: #edf3ff !important; + border-color: #3d5487 !important; + background: #0a1123 !important; +} + +input:focus,textarea:focus,select:focus { + border-color: #9ac8ff !important; + box-shadow: 0 0 0 2px #9ac8ff55 !important; +} + +.button,button,input[type=submit],input[type=button],.submit-row input { + border-radius: 7px !important; + background: linear-gradient(135deg,#99c8ff,#c6adff) !important; + color: #121a34 !important; + font-weight: 800 !important; +} + +#changelist table thead th { + background: #172443; +} + +#changelist table tbody tr:nth-child(odd) { + background: #101a31; +} + +#changelist table tbody tr:nth-child(even) { + background: #14203a; +} + +.messagelist li { + border-radius: 8px; +} + +a:link,a:visited { + color: #9ec8ff; +} + +a:hover { + color: #d1bdff; +} + +.classification-preview { + margin: 24px 0; + padding: 20px; + border: 1px solid #2b3d68; + border-radius: 10px; + background: #101a31; + h2 { + margin-top: 0; + } +} + +.preview-meta { + color: #aab9d8; +} + +.preview-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 18px; +} + +.preview-row { + display: flex; + justify-content: space-between; + gap: 12px; + margin: 8px 0; + padding: 10px; + border-left: 3px solid #78a4f0; + background: #162441; +} + +.preview-row--firework { + border-color: #f5aa44; +} + +.preview-row--speech { + border-color: #fb7185; +} + +.raw-json { + margin-top: 18px; + border-top: 1px solid #2b3d68; + padding-top: 14px; + summary { + cursor: pointer; + color: #9ec8ff; + font-weight: 800; + } + pre { + overflow: auto; + max-height: 28rem; + padding: 12px; + color: #dce7ff; + background: #090f20; + } +} + +@media (max-width:700px) { + .preview-grid { + grid-template-columns: 1fr; + } +} diff --git a/frontend/src/styles/theme.css b/frontend/src/styles/theme.css deleted file mode 100644 index 3b2c4f8..0000000 --- a/frontend/src/styles/theme.css +++ /dev/null @@ -1,117 +0,0 @@ -:root { - color-scheme: dark; - --theme-bg: #090e1d; - --theme-ink: #eef3ff; - --theme-muted: #aab9d8; - --theme-surface: #172443; - --theme-surface-raised: #111a31; - --theme-line: #2b3d68; - --theme-input: #0a1123; -} - -:root[data-theme="light"] { - color-scheme: light; - --ink: #172033; - --i: #172033; - --muted: #536174; - --m: #536174; - --line: #c4cede; - --l: #c4cede; - --surface: #ffffff; - --surface-2: #f2f6fc; - --card: rgba(255, 255, 255, .94); - --theme-bg: #f4f7fc; - --theme-ink: #172033; - --theme-muted: #536174; - --theme-surface: #ffffff; - --theme-surface-raised: #f2f6fc; - --theme-line: #c4cede; - --theme-input: #ffffff; -} - -:root[data-theme="light"] body { - color: var(--theme-ink) !important; - background: radial-gradient(circle at 8% 0%, #dbeaff 0, transparent 31rem), radial-gradient(circle at 96% 100%, #eee2ff 0, transparent 29rem), var(--theme-bg) !important; -} - -:root[data-theme="light"] .card, -:root[data-theme="light"] .welcome-card, -:root[data-theme="light"] .upload-card, -:root[data-theme="light"] .results-card, -:root[data-theme="light"] .panel, -:root[data-theme="light"] .map-panel { - border-color: var(--theme-line) !important; - background: var(--theme-surface) !important; - box-shadow: 0 1rem 3rem rgba(32, 54, 92, .14) !important; -} - -:root[data-theme="light"] .topbar, -:root[data-theme="light"] .map-header, -:root[data-theme="light"] .nav, -:root[data-theme="light"] .filters, -:root[data-theme="light"] .result-group, -:root[data-theme="light"] .prediction, -:root[data-theme="light"] .event, -:root[data-theme="light"] .drop-zone { - border-color: var(--theme-line) !important; - color: var(--theme-ink); - background: var(--theme-surface-raised) !important; -} - -:root[data-theme="light"] .audio-upload--uploading .drop-zone, -:root[data-theme="light"] .audio-upload--processing .drop-zone { - border-color: #7296d5 !important; - background: #e4ebff !important; -} - -:root[data-theme="light"] input, -:root[data-theme="light"] select, -:root[data-theme="light"] textarea, -:root[data-theme="light"] .path { - border-color: var(--theme-line) !important; - color: var(--theme-ink) !important; - background: var(--theme-input) !important; -} - -:root[data-theme="light"] .intro, -:root[data-theme="light"] .lede, -:root[data-theme="light"] .subject, -:root[data-theme="light"] .message, -:root[data-theme="light"] .help, -:root[data-theme="light"] .empty, -:root[data-theme="light"] .meta, -:root[data-theme="light"] .popup-meta { - color: var(--theme-muted) !important; -} - -.theme-toggle { - position: fixed; - top: 1rem; - left: 1rem; - z-index: 1200; - min-height: 2.5rem; - padding: .5rem .75rem; - border: 1px solid var(--theme-line); - border-radius: 999px; - color: var(--theme-ink); - font: 700 .82rem/1 Inter, ui-sans-serif, system-ui, sans-serif; - background: var(--theme-surface); - box-shadow: 0 .35rem 1.25rem rgba(1, 3, 12, .24); - cursor: pointer; -} - -.theme-toggle:hover { filter: brightness(1.08); } -.theme-toggle:focus-visible { outline: 3px solid #8abaff; outline-offset: 3px; } - -@media (prefers-reduced-motion: reduce) { - *, *::before, *::after { transition-duration: .01ms !important; } -} - - -/* Shared light-mode typography for the Fireworks pages. */ -:root[data-theme="light"] .shell h1 { color: #172b50 !important; } -:root[data-theme="light"] .shell h2 { color: #203b63 !important; } -:root[data-theme="light"] .shell h3 { color: #31527f !important; } -:root[data-theme="light"] .shell .kicker, -:root[data-theme="light"] .shell .eyebrow { color: #3f6fa9 !important; } -:root[data-theme="light"] .shell .map-header strong { color: #243e65 !important; } diff --git a/frontend/src/styles/theme.scss b/frontend/src/styles/theme.scss new file mode 100644 index 0000000..96b45e7 --- /dev/null +++ b/frontend/src/styles/theme.scss @@ -0,0 +1,109 @@ +@use "settings" as settings; + +:root { + color-scheme: dark; + --theme-bg: #{settings.$night-bg}; + --theme-ink: #{settings.$night-ink}; + --theme-muted: #{settings.$night-muted}; + --theme-surface: #{settings.$night-surface}; + --theme-surface-raised: #{settings.$night-surface-raised}; + --theme-line: #{settings.$night-line}; + --theme-input: #{settings.$night-input}; + &[data-theme="light"] { + color-scheme: light; + --ink: #172033; + --i: #172033; + --muted: #536174; + --m: #536174; + --line: #c4cede; + --l: #c4cede; + --surface: #ffffff; + --surface-2: #f2f6fc; + --card: rgba(255, 255, 255, .94); + --theme-bg: #{settings.$day-bg}; + --theme-ink: #{settings.$day-ink}; + --theme-muted: #{settings.$day-muted}; + --theme-surface: #{settings.$day-surface}; + --theme-surface-raised: #{settings.$day-surface-raised}; + --theme-line: #{settings.$day-line}; + --theme-input: #ffffff; + body { + color: var(--theme-ink) !important; + background: radial-gradient(circle at 8% 0%, #dbeaff 0, transparent 31rem), radial-gradient(circle at 96% 100%, #eee2ff 0, transparent 29rem), var(--theme-bg) !important; + } + } + &[data-theme="light"] .card, &[data-theme="light"] .welcome-card, &[data-theme="light"] .upload-card, &[data-theme="light"] .results-card, &[data-theme="light"] .panel, &[data-theme="light"] .map-panel { + border-color: var(--theme-line) !important; + background: var(--theme-surface) !important; + box-shadow: 0 1rem 3rem rgba(32, 54, 92, .14) !important; + } + &[data-theme="light"] .topbar, &[data-theme="light"] .map-header, &[data-theme="light"] .nav, &[data-theme="light"] .filters, &[data-theme="light"] .result-group, &[data-theme="light"] .prediction, &[data-theme="light"] .event, &[data-theme="light"] .drop-zone { + border-color: var(--theme-line) !important; + color: var(--theme-ink); + background: var(--theme-surface-raised) !important; + } + &[data-theme="light"] .audio-upload--uploading .drop-zone, &[data-theme="light"] .audio-upload--processing .drop-zone { + border-color: #7296d5 !important; + background: #e4ebff !important; + } + &[data-theme="light"] input, &[data-theme="light"] select, &[data-theme="light"] textarea, &[data-theme="light"] .path { + border-color: var(--theme-line) !important; + color: var(--theme-ink) !important; + background: var(--theme-input) !important; + } + &[data-theme="light"] .intro, &[data-theme="light"] .lede, &[data-theme="light"] .subject, &[data-theme="light"] .message, &[data-theme="light"] .help, &[data-theme="light"] .empty, &[data-theme="light"] .meta, &[data-theme="light"] .popup-meta { + color: var(--theme-muted) !important; + } +} + +.theme-toggle { + position: fixed; + top: 1rem; + left: 1rem; + z-index: 1200; + min-height: 2.5rem; + padding: .5rem .75rem; + border: 1px solid var(--theme-line); + border-radius: 999px; + color: var(--theme-ink); + font: 700 .82rem/1 Inter, ui-sans-serif, system-ui, sans-serif; + background: var(--theme-surface); + box-shadow: 0 .35rem 1.25rem rgba(1, 3, 12, .24); + cursor: pointer; + &:hover { + filter: brightness(1.08); + } + &:focus-visible { + outline: 3px solid #8abaff; + outline-offset: 3px; + } +} + +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + transition-duration: .01ms !important; + } +} + +/*Shared light-mode typography for the Fireworks pages.*/ + +:root[data-theme="light"] .shell h1 { + color: #172b50 !important; +} + +:root[data-theme="light"] .shell h2 { + color: #203b63 !important; +} + +:root[data-theme="light"] .shell h3 { + color: #31527f !important; +} + +:root[data-theme="light"] .shell .kicker, +:root[data-theme="light"] .shell .eyebrow { + color: #3f6fa9 !important; +} + +:root[data-theme="light"] .shell .map-header strong { + color: #243e65 !important; +} diff --git a/hello/static/hello/style.css b/hello/static/hello/style.css index 348626e..c45f40c 100644 --- a/hello/static/hello/style.css +++ b/hello/static/hello/style.css @@ -1,150 +1,123 @@ :root { - color-scheme: light; - --ink: #172554; - --muted: #64748b; - --card: rgba(255, 255, 255, 0.88); - --accent: #7c3aed; - --accent-light: #ddd6fe; + color-scheme: light; + --ink: #172554; + --muted: #64748b; + --card: rgba(255, 255, 255, 0.88); + --accent: #7c3aed; + --accent-light: #ddd6fe; } * { - box-sizing: border-box; + box-sizing: border-box; } body { - min-height: 100vh; - margin: 0; - display: grid; - place-items: center; - padding: 2rem; - font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; - color: var(--ink); - background: - radial-gradient(circle at top left, #bfdbfe 0, transparent 32rem), - radial-gradient(circle at bottom right, #ddd6fe 0, transparent 30rem), - #f8fafc; + min-height: 100vh; + margin: 0; + display: grid; + place-items: center; + padding: 2rem; + font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + color: var(--ink); + background: radial-gradient(circle at top left, #bfdbfe 0, transparent 32rem), radial-gradient(circle at bottom right, #ddd6fe 0, transparent 30rem), #f8fafc; } .welcome-card { - width: min(100%, 42rem); - position: relative; - overflow: hidden; - padding: clamp(2rem, 7vw, 4.5rem); - border: 1px solid rgba(255, 255, 255, 0.8); - border-radius: 1.5rem; - background: var(--card); - box-shadow: 0 1.5rem 4rem rgba(30, 41, 59, 0.16); - backdrop-filter: blur(12px); + width: min(100%, 42rem); + position: relative; + overflow: hidden; + padding: clamp(2rem, 7vw, 4.5rem); + border: 1px solid rgba(255, 255, 255, 0.8); + border-radius: 1.5rem; + background: var(--card); + box-shadow: 0 1.5rem 4rem rgba(30, 41, 59, 0.16); + backdrop-filter: blur(12px); } - .welcome-card::before { - content: ""; - width: 11rem; - height: 11rem; - position: absolute; - top: -5.5rem; - right: -4rem; - border-radius: 50%; - background: linear-gradient(135deg, var(--accent-light), #93c5fd); - opacity: 0.75; + content: ""; + width: 11rem; + height: 11rem; + position: absolute; + top: -5.5rem; + right: -4rem; + border-radius: 50%; + background: linear-gradient(135deg, var(--accent-light), #93c5fd); + opacity: 0.75; } .eyebrow { - margin: 0 0 0.75rem; - color: var(--accent); - font-size: 0.8rem; - font-weight: 800; - letter-spacing: 0.12em; - text-transform: uppercase; + margin: 0 0 0.75rem; + color: var(--accent); + font-size: 0.8rem; + font-weight: 800; + letter-spacing: 0.12em; + text-transform: uppercase; } h1 { - max-width: 26rem; - margin: 0; - font-size: clamp(2.25rem, 7vw, 4.25rem); - line-height: 1.05; - letter-spacing: -0.055em; + max-width: 26rem; + margin: 0; + font-size: clamp(2.25rem, 7vw, 4.25rem); + line-height: 1.05; + letter-spacing: -0.055em; } .subject { - display: inline-flex; - align-items: center; - gap: 0.55rem; - margin: 1.5rem 0 0; - padding: 0.8rem 1rem; - border-radius: 0.85rem; - color: var(--muted); - font-size: 1.1rem; - background: #f8fafc; + display: inline-flex; + align-items: center; + gap: 0.55rem; + margin: 1.5rem 0 0; + padding: 0.8rem 1rem; + border-radius: 0.85rem; + color: var(--muted); + font-size: 1.1rem; + background: #f8fafc; } - .subject strong { - color: var(--ink); + color: var(--ink); } .sparkle { - color: var(--accent); - font-size: 1.25rem; + color: var(--accent); + font-size: 1.25rem; } + .button { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 0.5rem; - - padding: 0.8rem 1.25rem; - - border: 1px solid transparent; - border-radius: 12px; - - background: #7c3aed; - color: #fff; - - font: inherit; - font-weight: 600; - line-height: 1; - - text-decoration: none; - cursor: pointer; - - box-shadow: - 0 4px 10px rgba(124, 58, 237, 0.18), - 0 1px 2px rgba(15, 23, 42, 0.08); - - transition: - background-color 150ms ease, - box-shadow 150ms ease, - transform 150ms ease; + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.5rem; + padding: 0.8rem 1.25rem; + border: 1px solid transparent; + border-radius: 12px; + background: #7c3aed; + color: #fff; + font: inherit; + font-weight: 600; + line-height: 1; + text-decoration: none; + cursor: pointer; + box-shadow: 0 4px 10px rgba(124, 58, 237, 0.18), 0 1px 2px rgba(15, 23, 42, 0.08); + transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; } - .button:hover { - background: #6d28d9; - color: #fff; - - box-shadow: - 0 6px 16px rgba(124, 58, 237, 0.24), - 0 2px 4px rgba(15, 23, 42, 0.08); - - transform: translateY(-1px); + background: #6d28d9; + color: #fff; + box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24), 0 2px 4px rgba(15, 23, 42, 0.08); + transform: translateY(-1px); } - .button:active { - background: #5b21b6; - transform: translateY(0); - - box-shadow: - 0 2px 6px rgba(124, 58, 237, 0.18); + background: #5b21b6; + transform: translateY(0); + box-shadow: 0 2px 6px rgba(124, 58, 237, 0.18); } - .button:focus-visible { - outline: 3px solid rgba(124, 58, 237, 0.25); - outline-offset: 3px; + outline: 3px solid rgba(124, 58, 237, 0.25); + outline-offset: 3px; +} +.button:disabled, .button[aria-disabled=true] { + opacity: 0.5; + cursor: not-allowed; + transform: none; + box-shadow: none; } - -.button:disabled, -.button[aria-disabled="true"] { - opacity: 0.5; - cursor: not-allowed; - transform: none; - box-shadow: none; -} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ed021c8..7db78bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "devDependencies": { "concurrently": "^9.1.2", "jsdom": "^30.1.1", + "sass": "^1.105.1", "vite": "^6.2.0" } }, @@ -719,6 +720,294 @@ "node": "^22.20 || ^24.12 || >=25" } }, + "node_modules/@parcel/watcher": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.6.0.tgz", + "integrity": "sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.6.0", + "@parcel/watcher-darwin-arm64": "2.6.0", + "@parcel/watcher-darwin-x64": "2.6.0", + "@parcel/watcher-freebsd-x64": "2.6.0", + "@parcel/watcher-linux-arm-glibc": "2.6.0", + "@parcel/watcher-linux-arm-musl": "2.6.0", + "@parcel/watcher-linux-arm64-glibc": "2.6.0", + "@parcel/watcher-linux-arm64-musl": "2.6.0", + "@parcel/watcher-linux-x64-glibc": "2.6.0", + "@parcel/watcher-linux-x64-musl": "2.6.0", + "@parcel/watcher-win32-arm64": "2.6.0", + "@parcel/watcher-win32-x64": "2.6.0" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.6.0.tgz", + "integrity": "sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.6.0.tgz", + "integrity": "sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.6.0.tgz", + "integrity": "sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.6.0.tgz", + "integrity": "sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.6.0.tgz", + "integrity": "sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.6.0.tgz", + "integrity": "sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.6.0.tgz", + "integrity": "sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.6.0.tgz", + "integrity": "sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.6.0.tgz", + "integrity": "sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.6.0.tgz", + "integrity": "sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.6.0.tgz", + "integrity": "sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.6.0.tgz", + "integrity": "sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.63.5", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.5.tgz", @@ -1360,6 +1649,22 @@ "node": ">=8" } }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", @@ -1523,6 +1828,17 @@ "node": ">=0.4.0" } }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -1829,6 +2145,24 @@ "node": "^22.13.0 || >=24.0.0" } }, + "node_modules/immutable": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.9.tgz", + "integrity": "sha512-m8nVez3rwrgmWxtLMt1ZYXB2Lv7OKYn/disyxAlSDYAlKSlFoPPfIAmAM/M5xqL4m4C/wAPw7S2/CNaUii1Hxg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -1838,6 +2172,20 @@ "node": ">=8" } }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-potential-custom-element-name": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", @@ -1995,6 +2343,14 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT", + "optional": true + }, "node_modules/node-fetch": { "version": "2.6.13", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.13.tgz", @@ -2087,6 +2443,20 @@ "node": ">=6" } }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/regenerator-runtime": { "version": "0.13.11", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", @@ -2188,6 +2558,27 @@ ], "license": "MIT" }, + "node_modules/sass": { + "version": "1.105.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.105.1.tgz", + "integrity": "sha512-1CnAWPyrrnVQzXGB/DUep1vYCKCm1CIBr+YxjjiW6wk9qtzemnGP4qicH56T2F9S4Hjtv/Ne3jDz8JqfdDU4oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^5.0.0", + "immutable": "^5.1.5", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=20.19.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, "node_modules/saxes": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", diff --git a/package.json b/package.json index ebdf923..a8cefc6 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,17 @@ "type": "module", "scripts": { "test": "node --test frontend/tests/*.test.mjs", - "dev": "concurrently --kill-others-on-fail --names django,vite --prefix-colors blue,magenta \"npm:django\" \"npm:vite\"", + "dev": "concurrently --kill-others-on-fail --names django,vite,static-scss --prefix-colors blue,magenta,green \"npm:django\" \"npm:vite\" \"npm:styles:watch\"", "django": "node scripts/dev-django.mjs", "vite": "vite", - "build": "vite build && python manage.py collectstatic --noinput" + "build": "npm run styles:static && vite build && python manage.py collectstatic --noinput", + "styles:static": "sass --no-source-map --update frontend/src/styles/static/project-admin.scss:project_admin/static/project_admin/admin.css frontend/src/styles/static/hello.scss:hello/static/hello/style.css", + "styles:watch": "sass --no-source-map --watch frontend/src/styles/static/project-admin.scss:project_admin/static/project_admin/admin.css frontend/src/styles/static/hello.scss:hello/static/hello/style.css" }, "devDependencies": { "concurrently": "^9.1.2", "jsdom": "^30.1.1", + "sass": "^1.105.1", "vite": "^6.2.0" }, "dependencies": { diff --git a/project_admin/static/project_admin/admin.css b/project_admin/static/project_admin/admin.css index 8f0ecde..8e20620 100644 --- a/project_admin/static/project_admin/admin.css +++ b/project_admin/static/project_admin/admin.css @@ -1 +1,175 @@ -:root{--primary:#8abaff;--secondary:#263a76;--accent:#b69cff;--primary-fg:#10182d;--body-fg:#edf3ff;--body-bg:#090e1d;--body-quiet-color:#aab9d8;--body-loud-color:#fff;--header-color:#edf3ff;--header-branding-color:#edf3ff;--header-bg:#111a31;--header-link-color:#dbe8ff;--breadcrumbs-fg:#c8d7f5;--breadcrumbs-link-fg:#fff;--breadcrumbs-bg:#192848;--link-fg:#9ec8ff;--link-hover-color:#d1bdff;--link-selected-fg:#fff;--hairline-color:#2b3d68;--border-color:#30446f;--error-fg:#ff9ea8;--message-success-bg:#104a40;--message-warning-bg:#5a431c;--darkened-bg:#13203b;--selected-bg:#283c68;--selected-row:#1a2b4e;--button-fg:#121a34;--button-bg:#9ac8ff;--button-hover-bg:#c6adff}body{background:radial-gradient(circle at 8% 0,#263a76 0,transparent 31rem),#090e1d}#header{padding:18px 32px;background:linear-gradient(135deg,#172443,#10182d);border-bottom:1px solid #2b3d68}#site-name a{font-weight:900;letter-spacing:.06em}#site-name span{margin-left:.45rem;color:#aab9d8;font-size:.58em;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.module,div.breadcrumbs,#changelist-filter,.inline-group,.submit-row{border-color:#2b3d68!important;background:#111a31!important;box-shadow:0 1rem 3rem #01030c55}.module caption,.module h2,#changelist-filter h2{background:#1a2b4e!important;color:#edf3ff!important}#content{padding:28px 32px}input,textarea,select{color:#edf3ff!important;border-color:#3d5487!important;background:#0a1123!important}input:focus,textarea:focus,select:focus{border-color:#9ac8ff!important;box-shadow:0 0 0 2px #9ac8ff55!important}.button,button,input[type=submit],input[type=button],.submit-row input{border-radius:7px!important;background:linear-gradient(135deg,#99c8ff,#c6adff)!important;color:#121a34!important;font-weight:800!important}#changelist table thead th{background:#172443}#changelist table tbody tr:nth-child(odd){background:#101a31}#changelist table tbody tr:nth-child(even){background:#14203a}.messagelist li{border-radius:8px}a:link,a:visited{color:#9ec8ff}a:hover{color:#d1bdff}.classification-preview{margin:24px 0;padding:20px;border:1px solid #2b3d68;border-radius:10px;background:#101a31}.classification-preview h2{margin-top:0}.preview-meta{color:#aab9d8}.preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.preview-row{display:flex;justify-content:space-between;gap:12px;margin:8px 0;padding:10px;border-left:3px solid #78a4f0;background:#162441}.preview-row--firework{border-color:#f5aa44}.preview-row--speech{border-color:#fb7185}.raw-json{margin-top:18px;border-top:1px solid #2b3d68;padding-top:14px}.raw-json summary{cursor:pointer;color:#9ec8ff;font-weight:800}.raw-json pre{overflow:auto;max-height:28rem;padding:12px;color:#dce7ff;background:#090f20}@media(max-width:700px){.preview-grid{grid-template-columns:1fr}} +:root { + --primary: #8abaff; + --secondary: #263a76; + --accent: #b69cff; + --primary-fg: #10182d; + --body-fg: #edf3ff; + --body-bg: #090e1d; + --body-quiet-color: #aab9d8; + --body-loud-color: #fff; + --header-color: #edf3ff; + --header-branding-color: #edf3ff; + --header-bg: #111a31; + --header-link-color: #dbe8ff; + --breadcrumbs-fg: #c8d7f5; + --breadcrumbs-link-fg: #fff; + --breadcrumbs-bg: #192848; + --link-fg: #9ec8ff; + --link-hover-color: #d1bdff; + --link-selected-fg: #fff; + --hairline-color: #2b3d68; + --border-color: #30446f; + --error-fg: #ff9ea8; + --message-success-bg: #104a40; + --message-warning-bg: #5a431c; + --darkened-bg: #13203b; + --selected-bg: #283c68; + --selected-row: #1a2b4e; + --button-fg: #121a34; + --button-bg: #9ac8ff; + --button-hover-bg: #c6adff; +} + +body { + background: radial-gradient(circle at 8% 0, #263a76 0, transparent 31rem), #090e1d; +} + +#header { + padding: 18px 32px; + background: linear-gradient(135deg, #172443, #10182d); + border-bottom: 1px solid #2b3d68; +} + +#site-name a { + font-weight: 900; + letter-spacing: 0.06em; +} + +#site-name span { + margin-left: 0.45rem; + color: #aab9d8; + font-size: 0.58em; + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; +} + +.module, div.breadcrumbs, #changelist-filter, .inline-group, .submit-row { + border-color: #2b3d68 !important; + background: #111a31 !important; + box-shadow: 0 1rem 3rem rgba(1, 3, 12, 0.3333333333); +} + +.module caption, .module h2, #changelist-filter h2 { + background: #1a2b4e !important; + color: #edf3ff !important; +} + +#content { + padding: 28px 32px; +} + +input, textarea, select { + color: #edf3ff !important; + border-color: #3d5487 !important; + background: #0a1123 !important; +} + +input:focus, textarea:focus, select:focus { + border-color: #9ac8ff !important; + box-shadow: 0 0 0 2px rgba(154, 200, 255, 0.3333333333) !important; +} + +.button, button, input[type=submit], input[type=button], .submit-row input { + border-radius: 7px !important; + background: linear-gradient(135deg, #99c8ff, #c6adff) !important; + color: #121a34 !important; + font-weight: 800 !important; +} + +#changelist table thead th { + background: #172443; +} + +#changelist table tbody tr:nth-child(odd) { + background: #101a31; +} + +#changelist table tbody tr:nth-child(even) { + background: #14203a; +} + +.messagelist li { + border-radius: 8px; +} + +a:link, a:visited { + color: #9ec8ff; +} + +a:hover { + color: #d1bdff; +} + +.classification-preview { + margin: 24px 0; + padding: 20px; + border: 1px solid #2b3d68; + border-radius: 10px; + background: #101a31; +} +.classification-preview h2 { + margin-top: 0; +} + +.preview-meta { + color: #aab9d8; +} + +.preview-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 18px; +} + +.preview-row { + display: flex; + justify-content: space-between; + gap: 12px; + margin: 8px 0; + padding: 10px; + border-left: 3px solid #78a4f0; + background: #162441; +} + +.preview-row--firework { + border-color: #f5aa44; +} + +.preview-row--speech { + border-color: #fb7185; +} + +.raw-json { + margin-top: 18px; + border-top: 1px solid #2b3d68; + padding-top: 14px; +} +.raw-json summary { + cursor: pointer; + color: #9ec8ff; + font-weight: 800; +} +.raw-json pre { + overflow: auto; + max-height: 28rem; + padding: 12px; + color: #dce7ff; + background: #090f20; +} + +@media (max-width: 700px) { + .preview-grid { + grid-template-columns: 1fr; + } +} diff --git a/staticfiles/hello/style.css b/staticfiles/hello/style.css index 348626e..c45f40c 100644 --- a/staticfiles/hello/style.css +++ b/staticfiles/hello/style.css @@ -1,150 +1,123 @@ :root { - color-scheme: light; - --ink: #172554; - --muted: #64748b; - --card: rgba(255, 255, 255, 0.88); - --accent: #7c3aed; - --accent-light: #ddd6fe; + color-scheme: light; + --ink: #172554; + --muted: #64748b; + --card: rgba(255, 255, 255, 0.88); + --accent: #7c3aed; + --accent-light: #ddd6fe; } * { - box-sizing: border-box; + box-sizing: border-box; } body { - min-height: 100vh; - margin: 0; - display: grid; - place-items: center; - padding: 2rem; - font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; - color: var(--ink); - background: - radial-gradient(circle at top left, #bfdbfe 0, transparent 32rem), - radial-gradient(circle at bottom right, #ddd6fe 0, transparent 30rem), - #f8fafc; + min-height: 100vh; + margin: 0; + display: grid; + place-items: center; + padding: 2rem; + font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + color: var(--ink); + background: radial-gradient(circle at top left, #bfdbfe 0, transparent 32rem), radial-gradient(circle at bottom right, #ddd6fe 0, transparent 30rem), #f8fafc; } .welcome-card { - width: min(100%, 42rem); - position: relative; - overflow: hidden; - padding: clamp(2rem, 7vw, 4.5rem); - border: 1px solid rgba(255, 255, 255, 0.8); - border-radius: 1.5rem; - background: var(--card); - box-shadow: 0 1.5rem 4rem rgba(30, 41, 59, 0.16); - backdrop-filter: blur(12px); + width: min(100%, 42rem); + position: relative; + overflow: hidden; + padding: clamp(2rem, 7vw, 4.5rem); + border: 1px solid rgba(255, 255, 255, 0.8); + border-radius: 1.5rem; + background: var(--card); + box-shadow: 0 1.5rem 4rem rgba(30, 41, 59, 0.16); + backdrop-filter: blur(12px); } - .welcome-card::before { - content: ""; - width: 11rem; - height: 11rem; - position: absolute; - top: -5.5rem; - right: -4rem; - border-radius: 50%; - background: linear-gradient(135deg, var(--accent-light), #93c5fd); - opacity: 0.75; + content: ""; + width: 11rem; + height: 11rem; + position: absolute; + top: -5.5rem; + right: -4rem; + border-radius: 50%; + background: linear-gradient(135deg, var(--accent-light), #93c5fd); + opacity: 0.75; } .eyebrow { - margin: 0 0 0.75rem; - color: var(--accent); - font-size: 0.8rem; - font-weight: 800; - letter-spacing: 0.12em; - text-transform: uppercase; + margin: 0 0 0.75rem; + color: var(--accent); + font-size: 0.8rem; + font-weight: 800; + letter-spacing: 0.12em; + text-transform: uppercase; } h1 { - max-width: 26rem; - margin: 0; - font-size: clamp(2.25rem, 7vw, 4.25rem); - line-height: 1.05; - letter-spacing: -0.055em; + max-width: 26rem; + margin: 0; + font-size: clamp(2.25rem, 7vw, 4.25rem); + line-height: 1.05; + letter-spacing: -0.055em; } .subject { - display: inline-flex; - align-items: center; - gap: 0.55rem; - margin: 1.5rem 0 0; - padding: 0.8rem 1rem; - border-radius: 0.85rem; - color: var(--muted); - font-size: 1.1rem; - background: #f8fafc; + display: inline-flex; + align-items: center; + gap: 0.55rem; + margin: 1.5rem 0 0; + padding: 0.8rem 1rem; + border-radius: 0.85rem; + color: var(--muted); + font-size: 1.1rem; + background: #f8fafc; } - .subject strong { - color: var(--ink); + color: var(--ink); } .sparkle { - color: var(--accent); - font-size: 1.25rem; + color: var(--accent); + font-size: 1.25rem; } + .button { - display: inline-flex; - align-items: center; - justify-content: center; - gap: 0.5rem; - - padding: 0.8rem 1.25rem; - - border: 1px solid transparent; - border-radius: 12px; - - background: #7c3aed; - color: #fff; - - font: inherit; - font-weight: 600; - line-height: 1; - - text-decoration: none; - cursor: pointer; - - box-shadow: - 0 4px 10px rgba(124, 58, 237, 0.18), - 0 1px 2px rgba(15, 23, 42, 0.08); - - transition: - background-color 150ms ease, - box-shadow 150ms ease, - transform 150ms ease; + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.5rem; + padding: 0.8rem 1.25rem; + border: 1px solid transparent; + border-radius: 12px; + background: #7c3aed; + color: #fff; + font: inherit; + font-weight: 600; + line-height: 1; + text-decoration: none; + cursor: pointer; + box-shadow: 0 4px 10px rgba(124, 58, 237, 0.18), 0 1px 2px rgba(15, 23, 42, 0.08); + transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; } - .button:hover { - background: #6d28d9; - color: #fff; - - box-shadow: - 0 6px 16px rgba(124, 58, 237, 0.24), - 0 2px 4px rgba(15, 23, 42, 0.08); - - transform: translateY(-1px); + background: #6d28d9; + color: #fff; + box-shadow: 0 6px 16px rgba(124, 58, 237, 0.24), 0 2px 4px rgba(15, 23, 42, 0.08); + transform: translateY(-1px); } - .button:active { - background: #5b21b6; - transform: translateY(0); - - box-shadow: - 0 2px 6px rgba(124, 58, 237, 0.18); + background: #5b21b6; + transform: translateY(0); + box-shadow: 0 2px 6px rgba(124, 58, 237, 0.18); } - .button:focus-visible { - outline: 3px solid rgba(124, 58, 237, 0.25); - outline-offset: 3px; + outline: 3px solid rgba(124, 58, 237, 0.25); + outline-offset: 3px; +} +.button:disabled, .button[aria-disabled=true] { + opacity: 0.5; + cursor: not-allowed; + transform: none; + box-shadow: none; } - -.button:disabled, -.button[aria-disabled="true"] { - opacity: 0.5; - cursor: not-allowed; - transform: none; - box-shadow: none; -} \ No newline at end of file diff --git a/staticfiles/project_admin/admin.css b/staticfiles/project_admin/admin.css index 8f0ecde..8e20620 100644 --- a/staticfiles/project_admin/admin.css +++ b/staticfiles/project_admin/admin.css @@ -1 +1,175 @@ -:root{--primary:#8abaff;--secondary:#263a76;--accent:#b69cff;--primary-fg:#10182d;--body-fg:#edf3ff;--body-bg:#090e1d;--body-quiet-color:#aab9d8;--body-loud-color:#fff;--header-color:#edf3ff;--header-branding-color:#edf3ff;--header-bg:#111a31;--header-link-color:#dbe8ff;--breadcrumbs-fg:#c8d7f5;--breadcrumbs-link-fg:#fff;--breadcrumbs-bg:#192848;--link-fg:#9ec8ff;--link-hover-color:#d1bdff;--link-selected-fg:#fff;--hairline-color:#2b3d68;--border-color:#30446f;--error-fg:#ff9ea8;--message-success-bg:#104a40;--message-warning-bg:#5a431c;--darkened-bg:#13203b;--selected-bg:#283c68;--selected-row:#1a2b4e;--button-fg:#121a34;--button-bg:#9ac8ff;--button-hover-bg:#c6adff}body{background:radial-gradient(circle at 8% 0,#263a76 0,transparent 31rem),#090e1d}#header{padding:18px 32px;background:linear-gradient(135deg,#172443,#10182d);border-bottom:1px solid #2b3d68}#site-name a{font-weight:900;letter-spacing:.06em}#site-name span{margin-left:.45rem;color:#aab9d8;font-size:.58em;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.module,div.breadcrumbs,#changelist-filter,.inline-group,.submit-row{border-color:#2b3d68!important;background:#111a31!important;box-shadow:0 1rem 3rem #01030c55}.module caption,.module h2,#changelist-filter h2{background:#1a2b4e!important;color:#edf3ff!important}#content{padding:28px 32px}input,textarea,select{color:#edf3ff!important;border-color:#3d5487!important;background:#0a1123!important}input:focus,textarea:focus,select:focus{border-color:#9ac8ff!important;box-shadow:0 0 0 2px #9ac8ff55!important}.button,button,input[type=submit],input[type=button],.submit-row input{border-radius:7px!important;background:linear-gradient(135deg,#99c8ff,#c6adff)!important;color:#121a34!important;font-weight:800!important}#changelist table thead th{background:#172443}#changelist table tbody tr:nth-child(odd){background:#101a31}#changelist table tbody tr:nth-child(even){background:#14203a}.messagelist li{border-radius:8px}a:link,a:visited{color:#9ec8ff}a:hover{color:#d1bdff}.classification-preview{margin:24px 0;padding:20px;border:1px solid #2b3d68;border-radius:10px;background:#101a31}.classification-preview h2{margin-top:0}.preview-meta{color:#aab9d8}.preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.preview-row{display:flex;justify-content:space-between;gap:12px;margin:8px 0;padding:10px;border-left:3px solid #78a4f0;background:#162441}.preview-row--firework{border-color:#f5aa44}.preview-row--speech{border-color:#fb7185}.raw-json{margin-top:18px;border-top:1px solid #2b3d68;padding-top:14px}.raw-json summary{cursor:pointer;color:#9ec8ff;font-weight:800}.raw-json pre{overflow:auto;max-height:28rem;padding:12px;color:#dce7ff;background:#090f20}@media(max-width:700px){.preview-grid{grid-template-columns:1fr}} +:root { + --primary: #8abaff; + --secondary: #263a76; + --accent: #b69cff; + --primary-fg: #10182d; + --body-fg: #edf3ff; + --body-bg: #090e1d; + --body-quiet-color: #aab9d8; + --body-loud-color: #fff; + --header-color: #edf3ff; + --header-branding-color: #edf3ff; + --header-bg: #111a31; + --header-link-color: #dbe8ff; + --breadcrumbs-fg: #c8d7f5; + --breadcrumbs-link-fg: #fff; + --breadcrumbs-bg: #192848; + --link-fg: #9ec8ff; + --link-hover-color: #d1bdff; + --link-selected-fg: #fff; + --hairline-color: #2b3d68; + --border-color: #30446f; + --error-fg: #ff9ea8; + --message-success-bg: #104a40; + --message-warning-bg: #5a431c; + --darkened-bg: #13203b; + --selected-bg: #283c68; + --selected-row: #1a2b4e; + --button-fg: #121a34; + --button-bg: #9ac8ff; + --button-hover-bg: #c6adff; +} + +body { + background: radial-gradient(circle at 8% 0, #263a76 0, transparent 31rem), #090e1d; +} + +#header { + padding: 18px 32px; + background: linear-gradient(135deg, #172443, #10182d); + border-bottom: 1px solid #2b3d68; +} + +#site-name a { + font-weight: 900; + letter-spacing: 0.06em; +} + +#site-name span { + margin-left: 0.45rem; + color: #aab9d8; + font-size: 0.58em; + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; +} + +.module, div.breadcrumbs, #changelist-filter, .inline-group, .submit-row { + border-color: #2b3d68 !important; + background: #111a31 !important; + box-shadow: 0 1rem 3rem rgba(1, 3, 12, 0.3333333333); +} + +.module caption, .module h2, #changelist-filter h2 { + background: #1a2b4e !important; + color: #edf3ff !important; +} + +#content { + padding: 28px 32px; +} + +input, textarea, select { + color: #edf3ff !important; + border-color: #3d5487 !important; + background: #0a1123 !important; +} + +input:focus, textarea:focus, select:focus { + border-color: #9ac8ff !important; + box-shadow: 0 0 0 2px rgba(154, 200, 255, 0.3333333333) !important; +} + +.button, button, input[type=submit], input[type=button], .submit-row input { + border-radius: 7px !important; + background: linear-gradient(135deg, #99c8ff, #c6adff) !important; + color: #121a34 !important; + font-weight: 800 !important; +} + +#changelist table thead th { + background: #172443; +} + +#changelist table tbody tr:nth-child(odd) { + background: #101a31; +} + +#changelist table tbody tr:nth-child(even) { + background: #14203a; +} + +.messagelist li { + border-radius: 8px; +} + +a:link, a:visited { + color: #9ec8ff; +} + +a:hover { + color: #d1bdff; +} + +.classification-preview { + margin: 24px 0; + padding: 20px; + border: 1px solid #2b3d68; + border-radius: 10px; + background: #101a31; +} +.classification-preview h2 { + margin-top: 0; +} + +.preview-meta { + color: #aab9d8; +} + +.preview-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 18px; +} + +.preview-row { + display: flex; + justify-content: space-between; + gap: 12px; + margin: 8px 0; + padding: 10px; + border-left: 3px solid #78a4f0; + background: #162441; +} + +.preview-row--firework { + border-color: #f5aa44; +} + +.preview-row--speech { + border-color: #fb7185; +} + +.raw-json { + margin-top: 18px; + border-top: 1px solid #2b3d68; + padding-top: 14px; +} +.raw-json summary { + cursor: pointer; + color: #9ec8ff; + font-weight: 800; +} +.raw-json pre { + overflow: auto; + max-height: 28rem; + padding: 12px; + color: #dce7ff; + background: #090f20; +} + +@media (max-width: 700px) { + .preview-grid { + grid-template-columns: 1fr; + } +} diff --git a/staticfiles/vite/assets/admin-login-CJd637Ns.css b/staticfiles/vite/assets/admin-login-CJd637Ns.css new file mode 100644 index 0000000..1c80975 --- /dev/null +++ b/staticfiles/vite/assets/admin-login-CJd637Ns.css @@ -0,0 +1 @@ +:root{--ink: #edf3ff;--muted: #aab9d8;--line: #2b3d68;--danger: #ff9ea8}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 8% 0,#263a76,transparent 31rem),radial-gradient(circle at 96% 100%,#512363,transparent 29rem),#090e1d}.card{width:min(100%,27rem);position:relative;overflow:hidden;padding:clamp(2rem,7vw,3.5rem);border:1px solid var(--line);border-radius:1.4rem;background:linear-gradient(145deg,#172443e8,#10182ddd);box-shadow:0 1.75rem 5rem #01030c99;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.card:before{content:"";width:12rem;height:12rem;position:absolute;top:-7rem;right:-5rem;border-radius:50%;background:#78a8ef45}.brand{display:flex;align-items:center;gap:.65rem;margin-bottom:2.7rem;font-size:.78rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.mark{display:grid;width:2.25rem;aspect-ratio:1;place-items:center;border-radius:.72rem;color:#17132b;font-size:1.1rem;background:linear-gradient(135deg,#fcd34d,#fb7185);box-shadow:0 .5rem 1.5rem #fb718550}.eyebrow{margin:0;color:#bcd4ff;font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}h1{margin:.55rem 0 .75rem;font-size:clamp(2rem,7vw,3.2rem);line-height:1;letter-spacing:-.06em}.intro{margin:0 0 1.8rem;color:var(--muted);line-height:1.55}.error{margin:0 0 1rem;padding:.75rem;border:1px solid #994957;border-radius:.7rem;color:#ffd6da;font-size:.88rem;background:#551d2b70}label{display:block;margin:1rem 0 .4rem;color:#c7d6f4;font-size:.82rem;font-weight:800}input{width:100%;min-height:2.85rem;padding:.7rem .8rem;border:1px solid #3d5487;border-radius:.7rem;color:var(--ink);font:inherit;background:#0a1123}input:focus{outline:2px solid #9bc8ff;outline-offset:2px}button{width:100%;min-height:2.9rem;margin-top:1.5rem;border:1px solid #b3c9ff;border-radius:.75rem;color:#121a34;font:inherit;font-weight:850;background:linear-gradient(135deg,#99c8ff,#c6adff);box-shadow:0 .65rem 1.75rem #7058dd50;cursor:pointer;transition:transform .2s}button:hover{transform:translateY(-2px)}.foot{margin:1.5rem 0 0;color:#8498c1;font-size:.78rem;text-align:center}@media(prefers-reduced-motion:reduce){button{transition:none}} diff --git a/staticfiles/vite/assets/browser-submission-processor-YT5vt2-z.js b/staticfiles/vite/assets/browser-submission-processor-YT5vt2-z.js new file mode 100644 index 0000000..6d3ce39 --- /dev/null +++ b/staticfiles/vite/assets/browser-submission-processor-YT5vt2-z.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ffmpeg-video-extractor-KJPjcx9x.js","assets/frontend/src/entries/fireworks-home.js-CZsCTUTv.js","assets/theme-DXAi27ON.js","assets/theme-CHgv-U5K.css","assets/fireworks-home-ojbnZX65.css","assets/fonts-4o1Uz5dn.css","assets/fireworks-navigation-BViXwBBT.css","assets/browser-yamnet-classifier-ldF6zTfh.js"])))=>i.map(i=>d[i]); +import{_ as d}from"./frontend/src/entries/fireworks-home.js-CZsCTUTv.js";/* empty css *//* empty css */import"./theme-DXAi27ON.js";const n="[BoomCast][BrowserBeta]";function f(){const v=document.querySelector("#boomcast-browser-config");if(!v)return{browserProcessingBeta:!1};try{return JSON.parse(v.textContent)}catch(e){return console.error(`${n} Configuration unavailable:`,e),{browserProcessingBeta:!1}}}class b{constructor(e=f(),t=null,s={}){this.config=e,this.extractVideo=t,this.dependencies=s,this.userEnabled=!1,this.activeController=null}isAvailable(){return this.config.browserProcessingBeta===!0}isEnabled(){return this.isAvailable()&&this.userEnabled}setEnabled(e){e||this.cancel(),this.userEnabled=this.isAvailable()&&e===!0,console.log(`${n} ${this.userEnabled?"Browser processing enabled by user.":"Browser processing disabled by user; using existing server flow."}`)}cancel(){var e;(e=this.activeController)==null||e.abort(),this.activeController=null}async process(e,{signal:t,onState:s}={}){this.cancel();const o=new AbortController;this.activeController=o;const i=()=>o.abort();t==null||t.addEventListener("abort",i,{once:!0}),t!=null&&t.aborted&&o.abort();try{return await this.prepare(e,{signal:o.signal,onState:s})}finally{t==null||t.removeEventListener("abort",i),this.activeController===o&&(this.activeController=null)}}canProcess(e){return this.isEnabled()&&!!e&&(b.isAudio(e)||b.isVideo(e))}static isAudio(e){return!!e&&(e.type.startsWith("audio/")||!e.type&&/\.(aac|aif|aiff|flac|m4a|mp3|ogg|opus|wav|weba)$/i.test(e.name||""))}static isVideo(e){return!!e&&(e.type.startsWith("video/")||!e.type&&/\.(mp4|mov|m4v|webm|mkv|avi)$/i.test(e.name||""))}async prepare(e,{signal:t,onState:s=()=>{}}={}){if(!this.canProcess(e))return{file:e,metadata:null,gate:"unavailable"};console.log(`${n} Initialising beta submission pipeline.`),console.log(`${n} File selected:`,{type:(e==null?void 0:e.type)||"",size:(e==null?void 0:e.size)||0});const o=b.isVideo(e),i=new AbortController,h=()=>i.abort();t==null||t.addEventListener("abort",h,{once:!0});const y=setTimeout(()=>i.abort(),5e3);let a;try{const r=await fetch(this.config.policyUrl,{cache:"no-store",credentials:"same-origin",signal:i.signal});if(!r.ok)throw new Error(`Policy HTTP ${r.status}`);if(a=await r.json(),!a.browser_processing_beta_enabled||a.version!==this.config.policyVersion)return console.log(`${n} Browser beta disabled or policy changed; using legacy submission flow.`),{file:e,metadata:null,gate:"unavailable"}}catch(r){if(t!=null&&t.aborted||(console.error(`${n} Policy unavailable:`,r),o))throw r;return{file:e,metadata:null,gate:"unavailable"}}finally{clearTimeout(y),t==null||t.removeEventListener("abort",h)}if(t!=null&&t.aborted)throw new DOMException("Cancelled","AbortError");let l=e;o&&(l=await(this.extractVideo||(await d(async()=>{const{extractVideoAudio:u}=await import("./ffmpeg-video-extractor-KJPjcx9x.js");return{extractVideoAudio:u}},__vite__mapDeps([0,1,2,3,4,5,6]))).extractVideoAudio)(e,{signal:t,onState:s}));const c={browser_processing_used:o,browser_processing_version:a.version,browser_gate_result:"unavailable",browser_override:!1};try{s("checking");let u=await(this.dependencies.prepareAudio||(await d(async()=>{const{AudioPreprocessor:m}=await import("./audio-preprocessor-B6FBlKED.js");return{AudioPreprocessor:m}},[])).AudioPreprocessor.prepare)(l,{signal:t});if(t!=null&&t.aborted)throw new DOMException("Cancelled","AbortError");try{const _=await(this.dependencies.classify||(await d(async()=>{const{BrowserYamnetClassifier:w}=await import("./browser-yamnet-classifier-ldF6zTfh.js");return{BrowserYamnetClassifier:w}},__vite__mapDeps([7,1,2,3,4,5,6]))).BrowserYamnetClassifier.classify)(u,{modelUrl:a.model_url,classMapUrl:a.class_map_url,signal:t});if(t!=null&&t.aborted)throw new DOMException("Cancelled","AbortError");const p=(this.dependencies.evaluate||(await d(async()=>{const{BrowserSubmissionGate:w}=await import("./browser-submission-gate-D8pBYGfs.js");return{BrowserSubmissionGate:w}},[])).BrowserSubmissionGate.evaluate)(_,a);return c.browser_processing_used=!0,c.browser_gate_result=p.result,c.browser_speech_detected=p.speechDetected,{file:l,metadata:c,gate:p.result,predictions:_.slice(0,5)}}finally{u=null,console.log("[BoomCast][Cleanup] Releasing waveform buffers.")}}catch(r){if(t!=null&&t.aborted)throw r;return console.error("[BoomCast][YAMNet] Local classification unavailable:",r),console.log("[BoomCast][Gate] Falling back to server classification."),c.browser_gate_result="unavailable",{file:l,metadata:c,gate:"unavailable"}}}cleanup(){this.cancel(),console.log("[BoomCast][Cleanup] Browser beta resources released.")}}export{b as BrowserSubmissionProcessor,f as readBrowserProcessingConfig}; diff --git a/staticfiles/vite/assets/browser-yamnet-classifier-ldF6zTfh.js b/staticfiles/vite/assets/browser-yamnet-classifier-ldF6zTfh.js new file mode 100644 index 0000000..4a384c2 --- /dev/null +++ b/staticfiles/vite/assets/browser-yamnet-classifier-ldF6zTfh.js @@ -0,0 +1 @@ +import{_}from"./frontend/src/entries/fireworks-home.js-CZsCTUTv.js";/* empty css *//* empty css */import"./theme-DXAi27ON.js";const e="[BoomCast][YAMNet]";class F{static async classify(d,{modelUrl:b,classMapUrl:C,signal:o,loadTensorFlow:y}={}){let r,l,c,s;const M=performance.now();try{if(o!=null&&o.aborted)throw new DOMException("Cancelled","AbortError");if(console.log(`${e} Lazy-loading TensorFlow.js.`),r=y?await y():await _(()=>import("./index-jWGXPN38.js"),[]),o!=null&&o.aborted)throw new DOMException("Cancelled","AbortError");console.log(`${e} TensorFlow.js loaded.`),await r.ready(),console.log(`${e} Backend:`,r.getBackend()),console.log(`${e} Loading model.`);const[t,A]=await Promise.all([r.loadGraphModel(b),fetch(C,{cache:"force-cache",signal:o})]);if(l=t,!A.ok)throw new Error("YAMNet class map unavailable");const n=await A.json();if(!Array.isArray(n)||n.length!==521)throw new Error("Invalid YAMNet class map");if(o!=null&&o.aborted)throw new DOMException("Cancelled","AbortError");console.log(`${e} Model ready.`);const $=d.length<15600?Float32Array.from({length:15600},(a,i)=>d[i]||0):d;c=r.tensor1d($,"float32"),console.log(`${e} Starting inference.`);const m=await l.executeAsync(c);s=Array.isArray(m)?m:[m];const f=s.find(a=>a.shape.length===2&&a.shape[1]===n.length);if(!f)throw new Error("YAMNet score output unavailable");const g=await f.data();if(o!=null&&o.aborted)throw new DOMException("Cancelled","AbortError");const B=f.shape[0],w=n.map((a,i)=>{let h=-1,u=0;for(let p=0;ph&&(h=E,u=p)}return{class:a,score:h,frame:u,timeSeconds:Number((u*.48).toFixed(2))}});return w.sort((a,i)=>i.score-a.score),console.log(`${e} Inference completed in`,Math.round(performance.now()-M),"ms."),console.groupCollapsed(`${e} Top local predictions`),console.table(w.slice(0,10)),console.groupEnd(),w}catch(t){throw console.error(`${e} Local inference failed:`,t),t}finally{r&&console.log(`${e} TensorFlow memory before cleanup:`,r.memory()),console.log("[BoomCast][Cleanup] Disposing YAMNet tensors."),c==null||c.dispose(),s==null||s.forEach(t=>t==null?void 0:t.dispose()),console.log("[BoomCast][Cleanup] Disposing browser YAMNet model."),l==null||l.dispose(),console.log("[BoomCast][Cleanup] Releasing waveform buffers."),r&&console.log(`${e} TensorFlow memory after cleanup:`,r.memory()),console.log("[BoomCast][Cleanup] Browser classification cleanup complete.")}}}export{F as BrowserYamnetClassifier}; diff --git a/staticfiles/vite/assets/dashboard-C1NKhBy7.css b/staticfiles/vite/assets/dashboard-C1NKhBy7.css new file mode 100644 index 0000000..68a83e0 --- /dev/null +++ b/staticfiles/vite/assets/dashboard-C1NKhBy7.css @@ -0,0 +1 @@ +:root{--dashboard-ink: #edf3ff;--dashboard-muted: #aab9d8;--dashboard-line: #2b3d68;--dashboard-surface: #111a31;--dashboard-surface-raised: #172443}body.dashboard-page{display:block;min-width:320px;min-height:100vh;margin:0;color:var(--dashboard-ink);font-family:var(--font-ui);background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d}.dashboard-shell{width:min(100% - 2.5rem,70rem);margin:0 auto;padding:clamp(2rem,6vw,5rem) 0}.dashboard-intro{max-width:44rem;margin-bottom:2rem}.dashboard-kicker{margin:0 0 .8rem;color:#bfdbfe;font-size:.76rem;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.dashboard-intro h1{max-width:11ch;margin:0;color:var(--dashboard-ink);font-size:clamp(2.8rem,7vw,5.5rem);line-height:.94;letter-spacing:-.065em}.dashboard-intro p:last-child{max-width:42rem;margin:1.25rem 0 0;color:var(--dashboard-muted);font-size:clamp(1rem,2vw,1.16rem);line-height:1.65}.dashboard-section{margin-top:2.25rem}.dashboard-section__header{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:0 0 1rem}.dashboard-section__header h2{margin:.25rem 0 0;color:var(--dashboard-ink);font-size:clamp(1.65rem,4vw,2.3rem);letter-spacing:-.045em}.dashboard-section__header .dashboard-kicker{margin-bottom:.3rem}.dashboard-link{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.7rem 1rem;border:1px solid #789ed7;border-radius:.7rem;color:#dceaff;font-size:.9rem;font-weight:800;text-decoration:none;background:#1b2e52;transition:transform .2s ease,background .2s ease}.dashboard-link:hover{transform:translateY(-1px);background:#274574}.dashboard-report{position:relative;overflow:hidden;padding:clamp(1.35rem,4vw,2.4rem);border:1px solid #b86c2a;border-radius:1.35rem;background:linear-gradient(135deg,#4a2b16e8,#171225dd);box-shadow:0 1.5rem 4rem #02061680}.dashboard-report:after{content:"";position:absolute;width:17rem;height:17rem;right:-9rem;top:-10rem;border-radius:50%;background:#ffb4541f;pointer-events:none}.dashboard-report>*{position:relative}.dashboard-report .eyebrow{margin:0 0 .7rem;color:#ffd08a;font-size:.76rem;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.dashboard-report .eyebrow:before{content:"";display:inline-block;width:.5rem;height:.5rem;margin-right:.45rem;border-radius:50%;background:#ffbd62;box-shadow:0 0 0 .25rem #fbbf2430}.dashboard-report .manual-report__title{max-width:14ch;margin:0 0 .6rem;color:#fff6e7;font-size:clamp(2rem,5vw,3.4rem);line-height:.98;letter-spacing:-.06em}.dashboard-report .manual-report__intro{max-width:42rem;margin:0 0 1.35rem;color:#f3c8a3;line-height:1.55}.dashboard-report .manual-report__label{display:block;margin-bottom:.5rem;color:#fff2df;font-weight:800}.dashboard-report #manual-occurrences{width:min(100%,36rem);min-height:3.25rem;display:block;margin-bottom:1rem;padding:.75rem .9rem;border:1px solid #e2934a;border-radius:.75rem;color:#edf3ff;font:inherit;font-weight:800;background:#151b31}.dashboard-report .manual-direction-panel{width:min(100%,36rem);margin:0 0 1rem;padding:1rem;border:1px solid #8d5bb5;border-radius:.75rem;background:#241b38}.dashboard-report .manual-direction-panel__heading{display:block;margin-bottom:.35rem}.dashboard-report .manual-direction-panel__heading span{color:#c7b5eb;font-weight:600}.dashboard-report .manual-direction-panel__copy{margin:0 0 .75rem;color:#d4c6ef;font-size:.88rem;line-height:1.45}.dashboard-report .manual-direction-panel__button{min-height:2.75rem;padding:.65rem .9rem;border:1px solid #c3a5eb;border-radius:.65rem;color:#211234;font:inherit;font-weight:850;background:#d8c1fb;cursor:pointer}.dashboard-report .manual-direction-panel__status{min-height:1.4rem;margin-top:.7rem;color:#e5dcf7;font-size:.9rem}.dashboard-report .manual-report__submit{width:min(100%,36rem);min-height:4.5rem;border:0;border-radius:1rem;color:#281306;font:inherit;font-size:clamp(1.05rem,2vw,1.3rem);font-weight:900;background:linear-gradient(135deg,#ffd18c,#ff8f5b);box-shadow:0 .75rem 1.8rem #d664344d;cursor:pointer}.dashboard-report .manual-report__submission{min-height:1.5rem;margin-top:1rem;color:#ffd18c}.dashboard-map .map{height:clamp(22rem,48vh,34rem)}.dashboard-map .map-header{background:#121d37}.dashboard-map .legend{display:none}.dashboard-upload{padding:clamp(1rem,3vw,1.5rem)}.dashboard-upload .drop-zone{min-height:12rem}@media(max-width:42rem){.dashboard-shell{width:min(100% - 1.25rem,70rem)}.dashboard-section__header{align-items:flex-start;flex-direction:column}.dashboard-link{width:100%}.dashboard-map .map{height:23rem}}:root[data-theme=light] body.dashboard-page{--dashboard-ink: #172b50;--dashboard-muted: #596d88;--dashboard-line: #cbd9ed;--dashboard-surface: #fff;--dashboard-surface-raised: #f4f8ff;background:radial-gradient(circle at 8% 0%,#dbeaff 0,transparent 31rem),radial-gradient(circle at 96% 100%,#eee2ff 0,transparent 29rem),#f4f7fc}:root[data-theme=light] .dashboard-intro h1,:root[data-theme=light] .dashboard-section__header h2{color:#172b50!important}:root[data-theme=light] .dashboard-kicker{color:#3f6fa9!important}:root[data-theme=light] .dashboard-link{border-color:#9fc0e9;color:#234a7b;background:#e6f0ff}.dashboard-link:hover{background:#d8e8ff}:root[data-theme=light] .dashboard-report{border-color:#eca851;background:linear-gradient(145deg,#fff8ef,#ffe0bb);box-shadow:0 1.4rem 3.4rem #7445192e}:root[data-theme=light] .dashboard-report .eyebrow{color:#9f4d16!important}:root[data-theme=light] .dashboard-report .manual-report__title{color:#4a2510!important}:root[data-theme=light] .dashboard-report .manual-report__intro{color:#70411d!important}:root[data-theme=light] .dashboard-report .manual-report__label{color:#54311b}:root[data-theme=light] .dashboard-report #manual-occurrences{border-color:#dfaa68;color:#322014;background:#fffdfa}:root[data-theme=light] .dashboard-report .manual-direction-panel{border-color:#d9b4d8;background:#fff5fc}:root[data-theme=light] .dashboard-report .manual-direction-panel__heading{color:#492846}:root[data-theme=light] .dashboard-report .manual-direction-panel__heading span{color:#70466d}:root[data-theme=light] .dashboard-report .manual-direction-panel__copy{color:#694b68}:root[data-theme=light] .dashboard-report .manual-direction-panel__button{border-color:#b68bb5;color:#321a34;background:#ead2eb}:root[data-theme=light] .dashboard-report .manual-direction-panel__status{color:#6b4267}:root[data-theme=light] .dashboard-report .manual-report__submission{color:#87421b}:root[data-theme=light] .dashboard-map .map-header{background:#f2f6fc!important}.dashboard-page .profile-circle{display:grid;width:3rem;height:3rem;position:fixed;top:1.25rem;right:1.25rem;place-items:center;border:1px solid #d0c0ff;border-radius:50%;z-index:1201;color:#17132b;font-weight:900;text-decoration:none;background:linear-gradient(135deg,#fcd34d,#c4a5fd);box-shadow:0 .5rem 1.5rem #01030c66}.dashboard-page .profile-circle:focus-visible{outline:3px solid rgba(165,201,255,.5019607843);outline-offset:3px} diff --git a/staticfiles/vite/assets/events-eRxioTQd.css b/staticfiles/vite/assets/events-eRxioTQd.css new file mode 100644 index 0000000..477e94d --- /dev/null +++ b/staticfiles/vite/assets/events-eRxioTQd.css @@ -0,0 +1 @@ +:root{--i: #edf3ff;--m: #aab9d8;--l: #2b3d68}*{box-sizing:border-box}body{margin:0;min-height:100vh;padding:2rem;color:var(--i);font-family:system-ui;background:radial-gradient(circle at 8% 0,#263a76,transparent 31rem),#090e1d}.shell{width:min(100%,70rem);margin:auto}.top{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:3rem}.brand,a{color:inherit}.brand{text-decoration:none;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.top a:not(.brand){padding:.6rem .8rem;border:1px solid var(--l);border-radius:.6rem;text-decoration:none}.eyebrow{color:#bcd4ff;font-size:.76rem;letter-spacing:.15em;text-transform:uppercase;font-weight:800}h1{font-size:clamp(2.5rem,6vw,4.5rem);letter-spacing:-.06em;margin:.4rem 0}.lede{color:var(--m);max-width:38rem;line-height:1.6}.grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1rem;margin-top:2rem}.panel{border:1px solid var(--l);border-radius:1rem;padding:1rem;background:#111a31d9}.event{width:100%;display:flex;justify-content:space-between;gap:.6rem;text-align:left;margin:.6rem 0;padding:.85rem;border:1px solid #374e7e;border-radius:.7rem;color:var(--i);background:#15223f;cursor:pointer}.event:hover{background:#20345f}.event--manual{border-color:#e2934a;background:linear-gradient(90deg,#70401e,#15223f)}.event small,.empty{color:var(--m)}.badge{color:#ffd08a}.detail h2{margin-top:0}.prediction{display:flex;justify-content:space-between;gap:1rem;padding:.65rem;margin:.45rem 0;border-left:3px solid #78a4f0;background:#111c34}.prediction--firework{border-color:#f5aa44}.prediction--speech{border-color:#fb7185}.meta{color:var(--m);font-size:.9rem}@media(max-width:42rem){body{padding:1rem}.grid{grid-template-columns:1fr}}.event__content{display:grid;gap:.16rem}.event__source{color:#bcd4ff;font-size:.67rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.event--sensor{border-color:#5478b7;background:linear-gradient(90deg,#1b355f,#15223f 72%)}.event--sensor .badge{color:#a9ccff}.event--manual .event__source{color:#ffd08a}.event--sensor:hover{background:linear-gradient(90deg,#25497e,#20345f 72%)}.event-nav{display:flex;gap:.3rem;padding:.25rem;border:1px solid var(--l);border-radius:.75rem;background:#111a31d9;box-shadow:0 .5rem 1.5rem #03071440}.top .event-nav a{padding:.5rem .75rem;border:0;border-radius:.5rem;color:var(--m);font-size:.86rem;font-weight:750;text-decoration:none}.top .event-nav a:hover{color:var(--i);background:#20345f}.top .event-nav a[aria-current=page]{color:var(--i);background:#2a3b67}:root[data-theme=light] .event-nav{border-color:#cbd9ed;background:#edf4ff;box-shadow:0 .45rem 1.25rem #2244751f}:root[data-theme=light] .top .event-nav a{color:#47617f}:root[data-theme=light] .top .event-nav a:hover{color:#234a7b;background:#dceaff}:root[data-theme=light] .top .event-nav a[aria-current=page]{color:#173d6a;background:#cfe3ff;box-shadow:inset 0 0 0 1px #9cc0ed}:root[data-theme=light] .event{color:#1d2d46;border-color:#cfdaea;background:#f7faff;box-shadow:0 .35rem .9rem #263e650f}:root[data-theme=light] .event:hover{background:#edf4ff}:root[data-theme=light] .event small{color:#61718a}:root[data-theme=light] .event__source{color:#426b9f}:root[data-theme=light] .event--sensor{border-color:#8eafd9;background:linear-gradient(90deg,#edf6ff,#e1edff 76%)}:root[data-theme=light] .event--sensor:hover{background:linear-gradient(90deg,#e2f0ff,#d4e6ff 76%)}:root[data-theme=light] .event--sensor .badge{color:#245b95}:root[data-theme=light] .event--manual{border-color:#e4a35c;background:linear-gradient(90deg,#fff8ee,#ffe3bf 76%)}:root[data-theme=light] .event--manual:hover{background:linear-gradient(90deg,#fff1df,#ffd7a3 76%)}:root[data-theme=light] .event--manual .event__source,:root[data-theme=light] .event--manual .badge{color:#9a4b13} diff --git a/staticfiles/vite/assets/ffmpeg-video-extractor-KJPjcx9x.js b/staticfiles/vite/assets/ffmpeg-video-extractor-KJPjcx9x.js new file mode 100644 index 0000000..e97560e --- /dev/null +++ b/staticfiles/vite/assets/ffmpeg-video-extractor-KJPjcx9x.js @@ -0,0 +1 @@ +import{_ as p}from"./frontend/src/entries/fireworks-home.js-CZsCTUTv.js";/* empty css *//* empty css */import"./theme-DXAi27ON.js";const t="[BoomCast][FFmpeg]";class r extends Error{constructor(e,d){super(e,{cause:d}),this.name="VideoExtractionError",this.code=e}}async function U(i,{signal:e,onState:d=()=>{},createFFmpeg:v}={}){var y;let o,_=!1,f=!1,l="module_load_failed";const $=performance.now(),u="input",m="audio.wav",s=()=>o==null?void 0:o.terminate();e==null||e.addEventListener("abort",s,{once:!0}),console.log(`${t} Video input detected.`,{mimeType:i.type,sizeBytes:i.size});try{if(e!=null&&e.aborted)throw new r("cancelled");d("loading_ffmpeg"),console.log(`${t} Starting lazy import.`);const a=await(v||(async()=>{const[{FFmpeg:w},{default:E},{default:x}]=await Promise.all([p(()=>import("./index-Cr8NHl2n.js"),[]),p(()=>import("./ffmpeg-core-CTa1UqMt.js"),[]),p(()=>import("./ffmpeg-core-DJ3ydieg.js"),[])]);return console.log(`${t} ffmpeg.wasm module imported.`),{ffmpeg:new w,coreURL:E,wasmURL:x}}))();if(o=a.ffmpeg,e!=null&&e.aborted)throw new r("cancelled");if((y=o.on)==null||y.call(o,"log",({message:w})=>console.log(`${t}[core]`,w)),l="core_load_failed",console.log(`${t} Loading FFmpeg core.`),await o.load({coreURL:a.coreURL,wasmURL:a.wasmURL}),console.log(`${t} FFmpeg core ready.`),e!=null&&e.aborted)throw new r("cancelled");if(d("extracting_audio"),l="resource_failed",console.log(`${t} Writing input to virtual filesystem.`),_=!0,await o.writeFile(u,new Uint8Array(await i.arrayBuffer())),e!=null&&e.aborted)throw new r("cancelled");if(l="extraction_failed",console.log(`${t} Starting audio extraction: mono / 16kHz WAV.`),f=!0,await o.exec(["-i",u,"-vn","-ac","1","-ar","16000","-c:a","pcm_s16le",m])!==0)throw new r("invalid_media");if(e!=null&&e.aborted)throw new r("cancelled");const n=await o.readFile(m);if(!(n!=null&&n.byteLength))throw new r("invalid_media");if(n.byteLength>25*1024*1024)throw new r("output_too_large");const h=new File([n],`${i.name.replace(/\.[^.]+$/,"")||"recording"}.wav`,{type:"audio/wav"});return console.log(`${t} Audio extraction completed.`,{outputSizeBytes:h.size}),console.log(`${t} Extraction finished in ${Math.round(performance.now()-$)} ms.`),h}catch(c){const a=e!=null&&e.aborted?"cancelled":c instanceof r?c.code:c instanceof RangeError?"resource_failed":l;throw a==="invalid_media"&&console.warn(`${t} Unsupported or undecodable video.`),console.error(`${t} Audio extraction failed:`,c),new r(a,c)}finally{console.log(`${t} Removing temporary files.`),o!=null&&o.loaded&&(_&&await o.deleteFile(u).catch(()=>{}),f&&await o.deleteFile(m).catch(()=>{})),console.log(`${t} Terminating worker.`),o==null||o.terminate(),o=null,e==null||e.removeEventListener("abort",s),console.log(`${t} Cleanup complete.`)}}export{r as VideoExtractionError,U as extractVideoAudio}; diff --git a/staticfiles/vite/assets/fireworks-home-ojbnZX65.css b/staticfiles/vite/assets/fireworks-home-ojbnZX65.css new file mode 100644 index 0000000..a5453cc --- /dev/null +++ b/staticfiles/vite/assets/fireworks-home-ojbnZX65.css @@ -0,0 +1 @@ +:root{--ink: #eaf0ff;--muted: #9caed1;--surface: #111a31;--surface-2: #17223e;--line: #2a3a61;--blue: #6aa8ff;--violet: #a78bfa;--fire: #ffb454;--danger: #ff727c;--success: #6ee7b7}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 10% 0%,#263a76 0,transparent 30rem),radial-gradient(circle at 90% 20%,#4d236c 0,transparent 28rem),#090e1d}.shell{width:min(100% - 2.5rem,70rem);margin:0 auto;padding:clamp(2rem,6vw,5rem) 0}.brand{display:flex;align-items:center;gap:.75rem;font-size:.9rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.intro{max-width:45rem}.kicker{margin:0 0 .8rem;color:#bfdbfe;font-size:.78rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}h1{max-width:12ch;margin:0;font-size:clamp(2.6rem,7vw,5.75rem);line-height:.96;letter-spacing:-.065em}.lede{max-width:38rem;margin:1.5rem 0 2.5rem;color:var(--muted);font-size:clamp(1rem,2vw,1.18rem);line-height:1.65}.upload-card,.results-card{border:1px solid var(--line);border-radius:1.5rem;background:linear-gradient(145deg,#162240d9,#0e162bdd);box-shadow:0 1.5rem 4rem #02061680;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.upload-card{padding:clamp(1rem,3vw,1.5rem)}.drop-zone{display:grid;min-height:16rem;place-items:center;padding:2rem;border:1.5px dashed #5d75aa;border-radius:1rem;cursor:pointer;text-align:center;background:linear-gradient(135deg,#1b2a4e80,#291c4b66);transition:.2s ease}.drop-zone:hover,.drop-zone.dragging{border-color:var(--blue);transform:translateY(-2px);background:#203360a8}.drop-zone:focus-within{outline:3px solid rgba(106,168,255,.4);outline-offset:3px}.file-input{width:.1px;height:.1px;position:absolute;opacity:0;overflow:hidden}.drop-zone .upload-icon{display:grid;width:4rem;aspect-ratio:1;place-items:center;margin:0 auto 1rem;border-radius:50%;color:#dbeafe;font-size:1.8rem;background:#4777c94d}.drop-zone .upload-icon__content{position:relative;z-index:1;margin:0;color:inherit;font-size:inherit;font-weight:850}.audio-upload--uploading .upload-icon,.audio-upload--processing .upload-icon,.audio-upload--success .upload-icon,.audio-upload--error .upload-icon{position:relative;width:5.5rem;margin-bottom:.25rem;color:#fff;font-size:1.25rem;box-shadow:0 0 0 .35rem #334e8d70,0 .6rem 2rem #101a3fa6}.audio-upload--uploading .upload-icon{background:conic-gradient(#91baff var(--upload-progress, 0%),#334b82 0)}.audio-upload--processing .upload-icon{background:#405caa}.audio-upload--processing .upload-icon:after{content:"";position:absolute;top:-.42rem;right:-.42rem;bottom:-.42rem;left:-.42rem;border:3px solid #9fc5ff;border-right-color:transparent;border-radius:50%;animation:spin 1.5s linear infinite}.audio-upload--success .upload-icon{background:#147d6c}.audio-upload--error .upload-icon{background:#9d385b}.audio-upload--uploading .drop-zone,.audio-upload--processing .drop-zone{border-color:#7296d5;background:linear-gradient(135deg,#18284c,#242046)}.audio-upload--uploading .drop-zone strong,.audio-upload--processing .drop-zone strong,.audio-upload--uploading .drop-zone>span>span:not(.upload-icon),.audio-upload--processing .drop-zone>span>span:not(.upload-icon),.audio-upload--uploading .file-name,.audio-upload--processing .file-name{opacity:.35}.audio-upload--uploading .drop-zone,.audio-upload--processing .drop-zone{cursor:default}.audio-upload--uploading .drop-zone:hover,.audio-upload--processing .drop-zone:hover{transform:none}.upload-cancel[hidden]{display:none}#classification-results{scroll-margin-top:1.5rem}@media(prefers-reduced-motion:reduce){.audio-upload--processing .upload-icon:after{animation:none}.audio-upload--uploading .drop-zone,.audio-upload--processing .drop-zone,.audio-upload--uploading .upload-icon,.audio-upload--processing .upload-icon{transition:none}}.drop-zone strong{display:block;font-size:1.15rem}.drop-zone span{display:block;margin-top:.4rem;color:var(--muted);font-size:.92rem}.file-name{min-height:1.3rem;margin:1rem 0 0;color:#c7d2fe;font-size:.9rem;overflow-wrap:anywhere}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem .25rem 0}.file-note{margin:0;color:var(--muted);font-size:.8rem}button,.button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;border:0;border-radius:.8rem;padding:.85rem 1.15rem;cursor:pointer;color:#10172c;font:inherit;font-weight:800;background:linear-gradient(135deg,#93c5fd,#c4b5fd);box-shadow:0 .5rem 1.25rem #8b5cf640;transition:transform .2s ease,filter .2s ease}button:hover,.button:hover{transform:translateY(-1px);filter:brightness(1.08)}button:disabled{cursor:wait;filter:saturate(.4);transform:none}.spinner{width:1rem;height:1rem;border:2px solid #263253;border-top-color:currentColor;border-radius:50%;animation:spin .75s linear infinite}.htmx-indicator{display:none}.htmx-request.htmx-indicator{display:inline-block}.upload-form.htmx-request button{pointer-events:none}#upload-status{min-height:1.4rem;margin:1rem .25rem 0;color:#c7d2fe;font-size:.9rem}.upload-form.htmx-request+#upload-status{color:#fcd34d}#classification-results{margin-top:1.5rem}.results-card{padding:clamp(1.25rem,3vw,2rem);animation:reveal .35s ease-out}.result-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.result-heading h2{margin:0;font-size:clamp(1.4rem,3vw,2rem);letter-spacing:-.04em}.result-heading p{margin:.3rem 0 0;color:var(--muted)}.result-status{padding:.4rem .65rem;border-radius:999px;color:#a7f3d0;font-size:.75rem;font-weight:800;white-space:nowrap;background:#065f464d}.meta{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0}.meta span,.legend span{padding:.4rem .65rem;border:1px solid var(--line);border-radius:999px;color:#bdc9e5;font-size:.8rem;background:#101a31}.legend{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.25rem}.legend .firework{color:#ffd18c;border-color:#c7721e80}.legend .speech{color:#ffadb4;border-color:#d5485880}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:3.5rem}.brand{display:flex;align-items:center;gap:.7rem;color:var(--ink);font-size:.9rem;font-weight:800;letter-spacing:.1em;text-decoration:none;text-transform:uppercase}.brand-mark{display:grid;width:2.25rem;aspect-ratio:1;place-items:center;border-radius:.75rem;color:#141022;background:linear-gradient(135deg,#fcd34d,#fb7185);box-shadow:0 .5rem 1.5rem #fb718550}.nav{display:flex;gap:.35rem;padding:.25rem;border:1px solid var(--line);border-radius:.75rem;background:#111a31a6}.nav a{padding:.5rem .75rem;border-radius:.5rem;color:var(--muted);font-size:.86rem;font-weight:700;text-decoration:none}.nav a[aria-current=page]{color:var(--ink);background:#2a3b67}.result-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(18rem,.75fr);gap:1.25rem}.result-group{padding:1.1rem;border:1px solid var(--line);border-radius:1rem;background:#0b1225a8}.result-group h3{margin:0 0 1rem;font-size:1rem}.prediction-list{display:grid;gap:.75rem;margin:0;padding:0;list-style:none}.prediction{--accent-color: #7799dd;position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem .75rem;align-items:center;padding:.7rem .75rem;overflow:hidden;border:1px solid #26365b;border-left:3px solid var(--accent-color);border-radius:.7rem;background:#121c34}.prediction--firework{--accent-color: var(--fire);background:linear-gradient(90deg,#7a421d55,#121c34)}.prediction--speech{--accent-color: var(--danger);background:linear-gradient(90deg,#6c213055,#121c34)}.prediction-label{min-width:0;font-weight:700;overflow-wrap:anywhere}.prediction-score{color:#c4d1ed;font-size:.85rem;font-variant-numeric:tabular-nums}.score-bar{grid-column:1/-1;height:.3rem;overflow:hidden;border-radius:999px;background:#263657}.score-bar i{display:block;width:calc(var(--score) * 1%);height:100%;border-radius:inherit;background:var(--accent-color)}.peak-list{display:grid;gap:.7rem}.peak-item{padding-bottom:.7rem;border-bottom:1px solid #253453}.peak-item:last-child{padding-bottom:0;border-bottom:0}.peak-time{color:#a9bce0;font-size:.78rem}.peak-item .prediction{margin-top:.35rem}.empty{margin:0;color:var(--muted)}.error-card{border-color:#a43d4d;background:linear-gradient(135deg,#4b1724dd,#1a1427dd)}.error-card h2,.error-card p{color:#fecdd3}@keyframes spin{to{transform:rotate(360deg)}}@keyframes reveal{0%{opacity:0;transform:translateY(.75rem)}}@media(max-width:42rem){.shell{width:min(100% - 1.25rem,70rem)}.form-footer,.result-heading{align-items:stretch;flex-direction:column}.form-footer button{width:100%}.result-grid{grid-template-columns:1fr}.result-status{align-self:flex-start}}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}.browser-gate{margin:1rem 0;padding:1rem;border:1px solid #e5bb7a;border-radius:.75rem;background:#4d392950}.browser-gate[hidden]{display:none}.browser-gate p{margin:.45rem 0 1rem}.browser-gate-actions{display:flex;gap:.65rem;flex-wrap:wrap}.browser-gate-actions button{cursor:pointer}.browser-mode{margin:1rem 0}.browser-mode__label{display:inline-flex;align-items:center;gap:.55rem;font-weight:700;cursor:pointer}.browser-mode__label input{width:1.1rem;height:1.1rem;margin:0;accent-color:#91baff}.browser-mode p{margin:.35rem 0 0 1.65rem;font-size:.9rem;opacity:.85} diff --git a/staticfiles/vite/assets/fonts-4o1Uz5dn.css b/staticfiles/vite/assets/fonts-4o1Uz5dn.css new file mode 100644 index 0000000..5c65c90 --- /dev/null +++ b/staticfiles/vite/assets/fonts-4o1Uz5dn.css @@ -0,0 +1 @@ +:root{--font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif} diff --git a/staticfiles/vite/assets/frontend/src/entries/admin-audio-preview.js-vLZXVaMY.js b/staticfiles/vite/assets/frontend/src/entries/admin-audio-preview.js-vLZXVaMY.js new file mode 100644 index 0000000..df5242f --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/admin-audio-preview.js-vLZXVaMY.js @@ -0,0 +1 @@ +/* empty css */const t=window.BOOMCAST_I18N||{};document.querySelectorAll(".audio-preview").forEach(function(o){var n=o.querySelector(".audio-play"),e=o.querySelector("audio"),a=o.querySelector(".audio-play__label"),i=o.querySelector(".audio-status");n.addEventListener("click",function(){e.src||(e.src=n.dataset.audioUrl,n.classList.add("is-loading"),i.textContent=t.loadingRecording||"Loading recording…"),e.paused?e.play().catch(function(){n.classList.remove("is-loading"),i.textContent=t.couldNotPlay||"Could not play this recording."}):e.pause()}),e.addEventListener("playing",function(){n.classList.remove("is-loading"),a.textContent=t.pauseRecording||"Pause recording",i.textContent=t.playingNow||"Playing now"}),e.addEventListener("pause",function(){e.ended||(a.textContent=t.resumeRecording||"Resume recording",i.textContent=t.paused||"Paused")}),e.addEventListener("ended",function(){a.textContent=t.replayRecording||"Replay recording",i.textContent=t.finished||"Finished"}),e.addEventListener("waiting",function(){n.classList.add("is-loading"),i.textContent=t.buffering||"Buffering…"}),e.addEventListener("canplay",function(){n.classList.remove("is-loading")}),e.addEventListener("error",function(){n.classList.remove("is-loading"),i.textContent=t.couldNotLoad||"Could not load this recording."})}); diff --git a/staticfiles/vite/assets/frontend/src/entries/admin-login.js-Bh9Fp4Fr.js b/staticfiles/vite/assets/frontend/src/entries/admin-login.js-Bh9Fp4Fr.js new file mode 100644 index 0000000..d67525f --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/admin-login.js-Bh9Fp4Fr.js @@ -0,0 +1 @@ +/* empty css */ diff --git a/staticfiles/vite/assets/frontend/src/entries/dashboard.js-CKvNQKct.js b/staticfiles/vite/assets/frontend/src/entries/dashboard.js-CKvNQKct.js new file mode 100644 index 0000000..c789d89 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/dashboard.js-CKvNQKct.js @@ -0,0 +1 @@ +/* empty css *//* empty css */import"./fireworks-home.js-CZsCTUTv.js";import"./map.js-Du7o3-in.js";import"../../../manual-report-D8qXoYte.js";import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/events.js-DloTmZtv.js b/staticfiles/vite/assets/frontend/src/entries/events.js-DloTmZtv.js new file mode 100644 index 0000000..c205a39 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/events.js-DloTmZtv.js @@ -0,0 +1 @@ +/* empty css *//* empty css */import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/fireworks-home.js-CZsCTUTv.js b/staticfiles/vite/assets/frontend/src/entries/fireworks-home.js-CZsCTUTv.js new file mode 100644 index 0000000..52b14f6 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/fireworks-home.js-CZsCTUTv.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/browser-submission-processor-YT5vt2-z.js","assets/theme-DXAi27ON.js","assets/theme-CHgv-U5K.css","assets/fonts-4o1Uz5dn.css","assets/fireworks-navigation-BViXwBBT.css"])))=>i.map(i=>d[i]); +/* empty css *//* empty css */import"../../../theme-DXAi27ON.js";const te="modulepreload",oe=function(o){return"/static/vite/"+o},W={},ae=function(k,r,V){let s=Promise.resolve();if(r&&r.length>0){let c=function(u){return Promise.all(u.map(x=>Promise.resolve(x).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),w=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=c(r.map(u=>{if(u=oe(u),u in W)return;W[u]=!0;const x=u.endsWith(".css"),T=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${T}`))return;const y=document.createElement("link");if(y.rel=x?"stylesheet":te,x||(y.as="script"),y.crossOrigin="",y.href=u,w&&y.setAttribute("nonce",w),document.head.appendChild(y),x)return new Promise((M,m)=>{y.addEventListener("load",M),y.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function U(c){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=c,window.dispatchEvent(i),!i.defaultPrevented)throw c}return s.then(c=>{for(const i of c||[])i.status==="rejected"&&U(i.reason);return k().catch(U)})},n=document.querySelector(".upload-form");if(n){let E=function(e,{progress:a=null,message:p=""}={}){for(const d of K)n.classList.toggle(`audio-upload--${d}`,d===e);const t=e==="uploading"||e==="processing";C=t,c.disabled=t,r.disabled=t,g&&(g.disabled=t),i.hidden=!t,t?n.setAttribute("aria-busy","true"):n.removeAttribute("aria-busy"),e==="uploading"?(s.setAttribute("role","progressbar"),s.setAttribute("aria-label",o.uploadingAudio||"Uploading audio"),s.setAttribute("aria-valuemin","0"),s.setAttribute("aria-valuemax","100"),a===null?(s.removeAttribute("aria-valuenow"),s.setAttribute("aria-valuetext",o.uploadingAudio||"Uploading audio"),U.textContent="↑"):(s.setAttribute("aria-valuenow",String(a)),s.setAttribute("aria-valuetext",`${o.uploadingAudio||"Uploading audio"}: ${a}%`),s.style.setProperty("--upload-progress",`${a}%`),U.textContent=`${a}%`),m.textContent=a===null?o.uploadingAudio||"Uploading audio…":""):(s.removeAttribute("role"),s.removeAttribute("aria-label"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuenow"),s.removeAttribute("aria-valuetext"),U.textContent=e==="processing"?"◉":e==="success"?"✓":e==="error"?"!":"↑",m.textContent=p||{processing:o.uploadCompleteAnalysing||"Upload complete. Analysing audio…",success:o.analysisComplete||"Analysis complete.",cancelled:o.uploadCancelled||"Upload cancelled."}[e]||"")},H=function(e){V.textContent=e?e.name:o.noFile||"No file selected",C||E(e?"file-selected":"idle"),e&&console.log("[boomcast-upload] file selected",{size:e.size,type:e.type})},R=function(e,a){clearTimeout(O),console.error("[boomcast-upload] upload failed",a),E("error",{message:e}),v=null},J=function(e){_||(_=!0,console.log("[boomcast-upload] upload complete, awaiting classifier"),O=window.setTimeout(()=>{v===e&&C&&E("processing")},120))},Q=function(e){var t,d;clearTimeout(O),v=null;let a;try{a=new DOMParser().parseFromString(e.responseText,"text/html")}catch(L){R(o.analysisFailed||"Analysis could not be completed.",L);return}const p=a.querySelector(".results-card");if(!p){R(o.analysisFailed||"Analysis could not be completed.",`Unexpected response (HTTP ${e.status})`);return}if(w.replaceChildren(document.importNode(p,!0)),(t=window.htmx)==null||t.process(w),e.status>=400||p.classList.contains("error-card")){const L=((d=p.querySelector("p"))==null?void 0:d.textContent)||o.analysisFailed||"Analysis could not be completed.";console.error("[boomcast-upload] classification failed",{status:e.status,message:L}),E("error",{message:L});return}console.log("[boomcast-upload] classification response received",e.status),E("success"),n.dataset.scrollToResults==="true"&&w.scrollIntoView({behavior:Y.matches?"instant":"smooth",block:"start"})},$=function(e){if(A+=1,f==null||f.abort(),l==null||l.cancel(),f=null,h=null,B=!1,S=!1,F=!1,u.hidden=!0,C||w.replaceChildren(),H(e),C||(c.disabled=!1,i.hidden=!0),!e)return;if(console.log("[BoomCast][BrowserBeta] File selected.",{mimeType:e.type,sizeBytes:e.size}),!q()){console.log("[BoomCast][BrowserBeta] Server mode selected."),P(e)&&(S=!0,c.disabled=!0,m.textContent=o.serverAudioOnly||"Server processing currently accepts audio recordings. Choose an audio file or enable browser processing.");return}console.log("[BoomCast][BrowserBeta] Browser mode selected.");const a=A,p=new AbortController;f=p,B=!0,c.disabled=!0,i.hidden=!1,m.textContent=P(e)?o.extractingAudio||"Extracting audio from video…":o.preparingRecording||"Preparing recording…",Z().then(t=>a!==A||p.signal.aborted||!q()?null:(t.setEnabled(!0),t.process(e,{signal:p.signal,onState:d=>{a===A&&(m.textContent=d==="checking"?o.checkingRecording||"Checking recording…":o.extractingAudio||"Extracting audio from video…")}}))).then(t=>{if(!(!t||a!==A||p.signal.aborted||!q())){if(B=!1,i.hidden=!0,P(e)&&t.file===e){S=!0,c.disabled=!0,m.textContent=o.videoExtractionFailed||"Could not extract audio from this video. Please choose an audio recording.";return}h=t,F=t.gate==="speech_only"||t.gate==="no_match",F?(x.textContent=t.gate==="speech_only"?o.speechGateTitle||"This recording appears to contain speech, but no relevant sound was detected.":o.irrelevantGateTitle||"No relevant sound was detected.",T.textContent=t.gate==="speech_only"?o.speechGateMessage||"To protect people’s privacy, this recording will not be uploaded automatically. You can still submit it for manual review.":o.irrelevantGateMessage||"BoomCast could not identify a sound this service currently looks for. You can still submit it for manual review.",u.hidden=!1,c.disabled=!0,m.textContent=o.gateChooseMessage||"Recording checked. Choose another recording or submit for manual review."):(c.disabled=!1,m.textContent=t.gate==="unavailable"?o.localUnavailable||"Local checking was unavailable. BoomCast will use normal server processing.":P(e)?o.videoAudioOnly||"Video processed on this device. Only extracted audio will be sent if you submit.":o.readyToSubmit||"Ready to submit.")}}).catch(t=>{a!==A||!q()||(console.error("[BoomCast][BrowserBeta] Unexpected browser pipeline error:",t),B=!1,i.hidden=!0,P(e)?(S=!0,c.disabled=!0,m.textContent=o.videoExtractionFailed||"Could not extract audio from this video. Please choose an audio recording."):(console.warn("[BoomCast][BrowserBeta] Browser pipeline unavailable; falling back to server."),h={file:e,metadata:null,gate:"unavailable"},c.disabled=!1,m.textContent=o.localUnavailable||"Local checking was unavailable. BoomCast will use normal server processing."))})},ee=function(){if(!(!b||r.files[0]===b))try{const e=new DataTransfer;e.items.add(b),r.files=e.files}catch(e){console.error("[BoomCast][Cleanup] Could not restore original selection:",e),r.value="",b=null}},D=function(e,a=null){if(r.files[0]!==e)try{const d=new DataTransfer;if(d.items.add(e),r.files=d.files,r.files[0]!==e)throw new Error("Prepared audio could not replace video in form")}catch(d){console.error("[BoomCast][BrowserBeta] Could not secure native form upload:",d),S=!0,c.disabled=!0,m.textContent=o.secureVideoFailed||"Could not prepare this video for upload. Please choose an audio recording.";return}const p=new FormData(n);p.set("audio",e),a&&p.set("browser_processing_metadata",JSON.stringify(a));const t=new XMLHttpRequest;v=t,_=!1,w.replaceChildren(),E("uploading"),console.log("[boomcast-upload] upload started",{size:e.size,type:e.type}),t.open("POST",n.action),t.upload.addEventListener("progress",d=>{if(_||!d.lengthComputable||d.total<=0)return;const L=Math.min(100,Math.round(d.loaded/d.total*100));L!==Number(s.getAttribute("aria-valuenow"))&&(E("uploading",{progress:L}),console.log("[boomcast-upload] upload progress",L)),d.loaded>=d.total&&!_&&J(t)}),t.upload.addEventListener("load",()=>{J(t)}),t.addEventListener("load",()=>Q(t)),t.addEventListener("error",()=>R(o.uploadFailed||"Upload failed. Check your connection and try again.","Network error")),t.addEventListener("timeout",()=>R(o.uploadFailed||"Upload failed. Check your connection and try again.","Request timed out")),t.addEventListener("abort",()=>{clearTimeout(O),v=null,E("cancelled"),console.log("[boomcast-upload] upload cancelled")}),t.send(p)};const o=window.BOOMCAST_I18N||{},k=n.querySelector("#drop-zone"),r=n.querySelector("#audio-file"),V=n.querySelector("#file-name"),s=n.querySelector("#upload-progress-circle"),U=n.querySelector("#upload-icon-content"),c=n.querySelector('button[type="submit"]'),i=n.querySelector(".upload-cancel"),w=n.querySelector("#classification-results"),u=n.querySelector("#browser-gate"),x=n.querySelector("#browser-gate-title"),T=n.querySelector("#browser-gate-message"),y=n.querySelector("#browser-gate-choose"),M=n.querySelector("#browser-gate-override"),m=document.querySelector("#upload-status"),Y=window.matchMedia("(prefers-reduced-motion: reduce)"),g=n.querySelector("#browser-processing-toggle"),N=document.querySelector("#boomcast-browser-config");let z={browserProcessingBeta:!1};try{z=JSON.parse((N==null?void 0:N.textContent)||"{}")}catch(e){console.error("[BoomCast][BrowserBeta] Configuration unavailable:",e)}const j=z.browserProcessingBeta===!0&&!!g;g&&(g.checked=!1);const G=r.accept,X=",video/*,.mp4,.mov,.m4v,.webm,.mkv,.avi",q=()=>j&&g.checked,P=e=>!!e&&(e.type.startsWith("video/")||!e.type&&/\.(mp4|mov|m4v|webm|mkv|avi)$/i.test(e.name||""));let l=null,I=null,b=null;async function Z(){return l||(I||(I=ae(async()=>{const{BrowserSubmissionProcessor:e}=await import("../../../browser-submission-processor-YT5vt2-z.js");return{BrowserSubmissionProcessor:e}},__vite__mapDeps([0,1,2,3,4])).then(({BrowserSubmissionProcessor:e})=>(l=new e(z),console.log("[BoomCast][BrowserBeta] Coordinator initialised."),l)).catch(e=>{throw I=null,e})),I)}const K=["idle","file-selected","uploading","processing","success","error","cancelled"];let v=null,C=!1,_=!1,O=null,A=0,f=null,h=null,B=!1,S=!1,F=!1;console.log(j?"[BoomCast][BrowserBeta] Browser processing disabled by user; using existing server flow.":"[BoomCast][BrowserBeta] Feature disabled globally; using existing server flow."),g==null||g.addEventListener("change",()=>{q()?(console.log("[BoomCast][BrowserBeta] Browser processing enabled by user."),r.accept=G+X,$(b||r.files[0])):(console.log("[BoomCast][BrowserBeta] Switching to server processing."),console.log("[BoomCast][Cleanup] Cancelling active browser processing job."),f==null||f.abort(),l==null||l.setEnabled(!1),l==null||l.cleanup(),r.accept=G,ee(),$(b||r.files[0]))}),r.addEventListener("change",()=>{b=r.files[0]||null,$(b)}),["dragenter","dragover"].forEach(e=>k.addEventListener(e,a=>{a.preventDefault(),C||k.classList.add("dragging")})),["dragleave","drop"].forEach(e=>k.addEventListener(e,a=>{a.preventDefault(),k.classList.remove("dragging")})),k.addEventListener("drop",e=>{C||!e.dataTransfer.files.length||(r.files=e.dataTransfer.files,b=r.files[0]||null,$(b))}),n.addEventListener("submit",e=>{if(e.preventDefault(),e.stopImmediatePropagation(),C||B||S||F||!n.reportValidity())return;const a=r.files[0];if(a){if(!q()){D(a);return}if(h){D(h.file,h.metadata);return}D(a)}},!0),y.addEventListener("click",()=>r.click()),M.addEventListener("click",()=>{if(!q()||!F||!h||C||B)return;console.warn("[BoomCast][Gate] User explicitly overrode local gate."),console.log("[BoomCast][Gate] Submission will enter manual review.");const e={...h.metadata,browser_override:!0};h.metadata=e,F=!1,u.hidden=!0,D(h.file,e)}),i.addEventListener("click",()=>{B?(f==null||f.abort(),l==null||l.cancel(),A+=1,B=!1,S=!0,c.disabled=!0,i.hidden=!0,m.textContent=o.extractionCancelled||o.preparationCancelled||"Preparation cancelled. Choose a recording to continue."):v==null||v.abort()}),window.addEventListener("pageshow",e=>{e.persisted&&(v==null||v.abort(),f==null||f.abort(),l==null||l.cancel(),A+=1,h=null,b=null,g&&(g.checked=!1,r.accept=G),l==null||l.setEnabled(!1),B=!1,S=!1,F=!1,u.hidden=!0,c.disabled=!1,r.value="",w.replaceChildren(),H())})}export{ae as _}; diff --git a/staticfiles/vite/assets/frontend/src/entries/home.js-c2ypdtO0.js b/staticfiles/vite/assets/frontend/src/entries/home.js-c2ypdtO0.js new file mode 100644 index 0000000..a2f89c9 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/home.js-c2ypdtO0.js @@ -0,0 +1 @@ +/* empty css */import"../../../manual-report-D8qXoYte.js";import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/legacy-fireworks-home.js-Cod9E8XY.js b/staticfiles/vite/assets/frontend/src/entries/legacy-fireworks-home.js-Cod9E8XY.js new file mode 100644 index 0000000..aa7c2ea --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/legacy-fireworks-home.js-Cod9E8XY.js @@ -0,0 +1 @@ +/* empty css */import"../../../theme-DXAi27ON.js";const r=document.querySelector(".upload-form"),n=document.querySelector("#drop-zone"),o=document.querySelector("#audio-file"),d=document.querySelector("#file-name"),a=document.querySelector("#upload-status"),s=e=>{d.textContent=e?e.name:"No file selected"};o.addEventListener("change",()=>s(o.files[0]));["dragenter","dragover"].forEach(e=>n.addEventListener(e,t=>{t.preventDefault(),n.classList.add("dragging")}));["dragleave","drop"].forEach(e=>n.addEventListener(e,t=>{t.preventDefault(),n.classList.remove("dragging")}));n.addEventListener("drop",e=>{const[t]=e.dataTransfer.files;t&&(o.files=e.dataTransfer.files,s(t))});r.addEventListener("htmx:beforeRequest",()=>{a.textContent="Analysing your recording…",r.setAttribute("aria-busy","true")});r.addEventListener("htmx:afterRequest",()=>{a.textContent="",r.removeAttribute("aria-busy")});r.addEventListener("htmx:responseError",()=>{a.textContent="Analysis could not be completed."}); diff --git a/staticfiles/vite/assets/frontend/src/entries/login.js-PEW1GjqV.js b/staticfiles/vite/assets/frontend/src/entries/login.js-PEW1GjqV.js new file mode 100644 index 0000000..b3dfc57 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/login.js-PEW1GjqV.js @@ -0,0 +1 @@ +/* empty css */import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/map.js-Du7o3-in.js b/staticfiles/vite/assets/frontend/src/entries/map.js-Du7o3-in.js new file mode 100644 index 0000000..95c1b4f --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/map.js-Du7o3-in.js @@ -0,0 +1 @@ +/* empty css *//* empty css */import"../../../theme-DXAi27ON.js";const e=window.BOOMCAST_I18N||{},u=document.getElementById("event-map"),f=u.dataset.h3Resolution,t=L.map(u,{zoomControl:!1,scrollWheelZoom:!1}).setView([52.1326,5.2913],7);L.control.zoom({position:"bottomleft"}).addTo(t);const m=L.control({position:"topright"});m.onAdd=()=>{const o=L.DomUtil.create("div","map-compass");return o.setAttribute("role","img"),o.setAttribute("aria-label",e.mapCompass||"Map compass: north is up"),o.innerHTML='NESW↑',L.DomEvent.disableClickPropagation(o),o};m.addTo(t);L.tileLayer("https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png",{maxZoom:18,attribution:"© OpenStreetMap contributors"}).addTo(t);const y=JSON.parse(document.getElementById("h3-cells-data").textContent),M=JSON.parse(document.getElementById("map-events-data").textContent),d=L.latLngBounds([]);y.forEach(o=>{L.polygon(o.boundary,{color:"#f59e0b",weight:2,fillColor:"#f59e0b",fillOpacity:.25}).addTo(t).bindPopup('H3 '+o.cell+''+o.reports+" "+(o.reports===1?e.report||"report":e.reports||"reports")+" · "+o.occurrences+" "+(o.occurrences===1?e.occurrence||"occurrence":e.occurrences||"occurrences")+" · "+(e.resolution||"resolution")+" "+f+""),d.extend(L.latLngBounds(o.boundary))});function b(o){return["N","NE","E","SE","S","SW","W","NW"][Math.floor((o+22.5)%360/45)]}function v(o,n,s){const c=n*Math.PI/180,i=o[0]*Math.PI/180,h=o[1]*Math.PI/180,r=s/6378137,l=Math.asin(Math.sin(i)*Math.cos(r)+Math.cos(i)*Math.sin(r)*Math.cos(c)),g=h+Math.atan2(Math.sin(c)*Math.sin(r)*Math.cos(i),Math.cos(r)-Math.sin(i)*Math.sin(l));return[l*180/Math.PI,g*180/Math.PI]}const E=L.divIcon({className:"",html:'
✦
',iconSize:[37,37],iconAnchor:[19,19]});M.forEach(o=>{const n=o.visually_confirmed?e.visuallyConfirmed||"Visually confirmed":e.notVisuallyConfirmed||"Not visually confirmed";let s=o.occurrences+" "+(o.occurrences===1?e.occurrence||"occurrence":e.occurrences||"occurrences")+" · "+n+"
"+(e.reported||"Reported")+" "+o.reported_on;if(o.direction_degrees!==null&&(s+="
"+(e.compassDirection||"Compass direction")+" "+Math.round(o.direction_degrees)+"° ("+b(o.direction_degrees)+")",o.direction_accuracy_degrees!==null&&(s+=" (±"+Math.round(o.direction_accuracy_degrees)+"°)")),L.marker(o.center,{icon:E}).addTo(t).bindPopup(''+(e.manualReport||"Manual report")+" · H3 "+o.cell+''+s+""),o.direction_degrees!==null){const a=v(o.center,o.direction_degrees,900);L.polyline([o.center,a],{color:"#fff7e6",weight:9,opacity:.8}).addTo(t),L.polyline([o.center,a],{color:"#6d45a0",weight:5,opacity:1}).addTo(t);const c=L.divIcon({className:"",html:'
↑
',iconSize:[56,56],iconAnchor:[28,28]});L.marker(a,{icon:c,interactive:!1}).addTo(t)}});d.isValid()&&t.fitBounds(d.pad(.18));const p=document.getElementById("range");p&&document.querySelectorAll("#from-date, #to-date").forEach(o=>{o.addEventListener("change",()=>{p.value="custom"})}); diff --git a/staticfiles/vite/assets/frontend/src/entries/member-form.js-Di4vmLCq.js b/staticfiles/vite/assets/frontend/src/entries/member-form.js-Di4vmLCq.js new file mode 100644 index 0000000..b3dfc57 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/member-form.js-Di4vmLCq.js @@ -0,0 +1 @@ +/* empty css */import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/member-list.js-Buj1pYaw.js b/staticfiles/vite/assets/frontend/src/entries/member-list.js-Buj1pYaw.js new file mode 100644 index 0000000..b3dfc57 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/member-list.js-Buj1pYaw.js @@ -0,0 +1 @@ +/* empty css */import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/member-success.js-By5Mf6TX.js b/staticfiles/vite/assets/frontend/src/entries/member-success.js-By5Mf6TX.js new file mode 100644 index 0000000..b3dfc57 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/member-success.js-By5Mf6TX.js @@ -0,0 +1 @@ +/* empty css */import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/not-found.js-BtTrR72f.js b/staticfiles/vite/assets/frontend/src/entries/not-found.js-BtTrR72f.js new file mode 100644 index 0000000..b3dfc57 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/not-found.js-BtTrR72f.js @@ -0,0 +1 @@ +/* empty css */import"../../../theme-DXAi27ON.js"; diff --git a/staticfiles/vite/assets/frontend/src/entries/settings.js-s58FgvNQ.js b/staticfiles/vite/assets/frontend/src/entries/settings.js-s58FgvNQ.js new file mode 100644 index 0000000..e8f7da1 --- /dev/null +++ b/staticfiles/vite/assets/frontend/src/entries/settings.js-s58FgvNQ.js @@ -0,0 +1 @@ +/* empty css *//* empty css */import"../../../theme-DXAi27ON.js";var o;(o=document.querySelector("#ntfy-url"))==null||o.addEventListener("input",()=>{var t;(t=document.querySelector("#ntfy-test-result"))==null||t.replaceChildren()});document.addEventListener("click",async t=>{var n;if(!t.target.closest("[data-copy-sensor-token]"))return;const e=(n=document.querySelector("#sensor-token"))==null?void 0:n.textContent;e&&await navigator.clipboard.writeText(e)}); diff --git a/staticfiles/vite/assets/home-BZbCv9Mm.css b/staticfiles/vite/assets/home-BZbCv9Mm.css new file mode 100644 index 0000000..0b3338d --- /dev/null +++ b/staticfiles/vite/assets/home-BZbCv9Mm.css @@ -0,0 +1 @@ +:root{--ink: #eef3ff;--muted: #aab9d8;--line: #2b3d68;--blue: #8abaff;--violet: #b69cff;--amber: #ffbd62}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d}.welcome-card{width:min(100%,44rem);position:relative;overflow:hidden;padding:clamp(2rem,7vw,4.75rem);border:1px solid var(--line);border-radius:1.5rem;background:linear-gradient(145deg,#172443e8,#10182ddd);box-shadow:0 1.75rem 5rem #01030c99;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.welcome-card:before{content:"";width:15rem;height:15rem;position:absolute;top:-8rem;right:-6rem;border-radius:50%;background:linear-gradient(135deg,#609df177,#b27be266);filter:blur(1px)}.welcome-card:after{content:"";width:10rem;height:10rem;position:absolute;bottom:-6rem;left:-4rem;border-radius:50%;background:#f4a74225}.brand{display:flex;align-items:center;gap:.65rem;margin-bottom:clamp(2rem,5vw,4rem);color:#d9e5ff;font-size:.78rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.brand-mark{display:grid;width:2.2rem;aspect-ratio:1;place-items:center;border-radius:.7rem;color:#17132b;font-size:1.1rem;background:linear-gradient(135deg,#fcd34d,#fb7185);box-shadow:0 .5rem 1.5rem #fb718550}.eyebrow{margin:0 0 .8rem;color:#bad3ff;font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.eyebrow:before{content:"";display:inline-block;width:.55rem;height:.55rem;margin-right:.45rem;border-radius:50%;background:var(--amber);box-shadow:0 0 0 .25rem #fbbf2430}h1{max-width:10ch;margin:0;font-size:clamp(2.8rem,8vw,5.75rem);line-height:.96;letter-spacing:-.065em}.subject{max-width:33rem;margin:1.35rem 0 0;color:var(--muted);font-size:clamp(1rem,2vw,1.15rem);line-height:1.65}.subject strong{color:#e8efff}.sparkle{color:var(--violet);font-size:1.2em}.actions{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:2.25rem}.profile-circle{display:grid;width:3rem;height:3rem;position:fixed;top:1.25rem;right:1.25rem;place-items:center;border:1px solid #d0c0ff;border-radius:50%;z-index:2;color:#17132b;font-weight:900;text-decoration:none;background:linear-gradient(135deg,#fcd34d,#c4a5fd);box-shadow:0 .5rem 1.5rem #01030c66}.profile-circle:focus-visible{outline:3px solid rgba(165,201,255,.5019607843);outline-offset:3px}.button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:2.9rem;padding:.75rem 1.05rem;border:1px solid #b3c9ff;border-radius:.8rem;color:#121a34;font:inherit;font-size:.93rem;font-weight:850;text-decoration:none;background:linear-gradient(135deg,#99c8ff,#c6adff);box-shadow:0 .65rem 1.75rem #7058dd50;transition:transform .2s ease,filter .2s ease}.button:hover{transform:translateY(-2px);filter:brightness(1.08)}.button:focus-visible{outline:3px solid rgba(165,201,255,.5019607843);outline-offset:3px}.hint{color:#99add2;font-size:.82rem}@media(max-width:30rem){.welcome-card{padding:2rem 1.5rem}.actions{align-items:stretch;flex-direction:column}.button{width:100%}.hint{text-align:center}}@media(prefers-reduced-motion:reduce){.button{transition:none}}.home-grid{width:min(100%,80rem);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:1.25rem;align-items:stretch}.welcome-card{width:100%}.manual-report{position:relative;overflow:hidden;padding:clamp(2rem,6vw,4.75rem);border:2px solid #a85a1e;border-radius:1.5rem;background:linear-gradient(145deg,#4a2b16e8,#171225dd);box-shadow:0 1.75rem 5rem #01030c99}.manual-report__title{margin:.2rem 0 .75rem;font-size:clamp(2rem,4vw,3.1rem);line-height:1;letter-spacing:-.06em}.manual-report__intro{margin:0 0 1.5rem;color:#f3c8a3;line-height:1.55}.manual-report__label{display:block;margin-bottom:.5rem;font-weight:800}#manual-occurrences{width:100%;min-height:3.3rem;margin-bottom:1rem;padding:.75rem .9rem;border:1px solid #e2934a;border-radius:.75rem;color:#eef3ff;font:inherit;font-weight:800;background:#151b31}.manual-direction-panel{margin:0 0 1rem;padding:1rem;border:1px solid #8d5bb5;border-radius:.75rem;background:#241b38}.manual-direction-panel__heading{display:block;margin-bottom:.35rem}.manual-direction-panel__heading span{color:#c7b5eb;font-weight:600}.manual-direction-panel__copy{margin:0 0 .75rem;color:#d4c6ef;font-size:.88rem;line-height:1.45}.manual-direction-panel__button{min-height:2.75rem;padding:.65rem .9rem;border:1px solid #c3a5eb;border-radius:.65rem;color:#211234;font:inherit;font-weight:850;background:#d8c1fb;cursor:pointer}.manual-direction-panel__status{min-height:1.4rem;margin-top:.7rem;color:#e5dcf7;font-size:.9rem}.manual-report__submit{width:100%;min-height:6rem;border:0;border-radius:1rem;color:#281306;font:inherit;font-size:clamp(1.1rem,2vw,1.45rem);font-weight:900;background:linear-gradient(135deg,#ffd18c,#ff8f5b);box-shadow:0 .75rem 1.8rem #d664344d;cursor:pointer}.manual-report__submission{min-height:1.5rem;margin-top:1rem;color:#ffd18c}:root[data-theme=light] .home-grid .welcome-card{color:#17233b;border-color:#d5e0f1!important;background:linear-gradient(145deg,#fff,#f4f8ff)!important;box-shadow:0 1.4rem 3.4rem #26416f29!important}:root[data-theme=light] .home-grid .welcome-card:before{background:linear-gradient(135deg,#a9c9fb99,#d4b8f299)}:root[data-theme=light] .home-grid .welcome-card:after{background:#ffd49a66}:root[data-theme=light] .home-grid .welcome-card .brand{color:#365b97}:root[data-theme=light] .home-grid .welcome-card .eyebrow{color:#4269a5}:root[data-theme=light] .home-grid .welcome-card .subject strong{color:#182b50}:root[data-theme=light] .home-grid .welcome-card .hint{color:#5d7191}:root[data-theme=light] .home-grid .manual-report{color:#42210f;border-color:#eca851!important;background:linear-gradient(145deg,#fff8ef,#ffe0bb)!important;box-shadow:0 1.4rem 3.4rem #7445192e!important}:root[data-theme=light] .home-grid .manual-report .eyebrow{color:#9f4d16}:root[data-theme=light] .home-grid .manual-report__title{color:#4a2510}:root[data-theme=light] .home-grid .manual-report__intro{color:#70411d}:root[data-theme=light] .home-grid .manual-report__label{color:#54311b}:root[data-theme=light] .home-grid #manual-occurrences{border-color:#dfaa68;color:#322014;background:#fffdfa}:root[data-theme=light] .home-grid .manual-direction-panel{border-color:#d9b4d8;background:#fff5fc}:root[data-theme=light] .home-grid .manual-direction-panel__heading{color:#492846}:root[data-theme=light] .home-grid .manual-direction-panel__heading span{color:#70466d}:root[data-theme=light] .home-grid .manual-direction-panel__copy{color:#694b68}:root[data-theme=light] .home-grid .manual-direction-panel__button{border-color:#b68bb5;color:#321a34;background:#ead2eb}:root[data-theme=light] .home-grid .manual-direction-panel__status{color:#6b4267}:root[data-theme=light] .home-grid .manual-report__submit{color:#281306;box-shadow:0 .75rem 1.8rem #be5a2245}:root[data-theme=light] .home-grid .manual-report__submission{color:#87421b} diff --git a/staticfiles/vite/assets/legacy-fireworks-home-C1-s3aRT.css b/staticfiles/vite/assets/legacy-fireworks-home-C1-s3aRT.css new file mode 100644 index 0000000..327973b --- /dev/null +++ b/staticfiles/vite/assets/legacy-fireworks-home-C1-s3aRT.css @@ -0,0 +1 @@ +:root{--ink: #eaf0ff;--muted: #9caed1;--surface: #111a31;--surface-2: #17223e;--line: #2a3a61;--blue: #6aa8ff;--violet: #a78bfa;--fire: #ffb454;--danger: #ff727c;--success: #6ee7b7}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 10% 0%,#263a76 0,transparent 30rem),radial-gradient(circle at 90% 20%,#4d236c 0,transparent 28rem),#090e1d}.shell{width:min(100% - 2.5rem,70rem);margin:0 auto;padding:clamp(2rem,6vw,5rem) 0}.brand{display:flex;align-items:center;gap:.75rem;margin-bottom:clamp(2.5rem,6vw,5rem);font-size:.9rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.brand-mark{display:grid;width:2.25rem;aspect-ratio:1;place-items:center;border-radius:.75rem;color:#141022;background:linear-gradient(135deg,#fcd34d,#fb7185);box-shadow:0 .5rem 1.5rem #fb718550}.intro{max-width:45rem}.kicker{margin:0 0 .8rem;color:#bfdbfe;font-size:.78rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}h1{max-width:12ch;margin:0;font-size:clamp(2.6rem,7vw,5.75rem);line-height:.96;letter-spacing:-.065em}.lede{max-width:38rem;margin:1.5rem 0 2.5rem;color:var(--muted);font-size:clamp(1rem,2vw,1.18rem);line-height:1.65}.upload-card,.results-card{border:1px solid var(--line);border-radius:1.5rem;background:linear-gradient(145deg,#162240d9,#0e162bdd);box-shadow:0 1.5rem 4rem #02061680;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.upload-card{padding:clamp(1rem,3vw,1.5rem)}.drop-zone{display:grid;min-height:16rem;place-items:center;padding:2rem;border:1.5px dashed #5d75aa;border-radius:1rem;cursor:pointer;text-align:center;background:linear-gradient(135deg,#1b2a4e80,#291c4b66);transition:.2s ease}.drop-zone:hover,.drop-zone.dragging{border-color:var(--blue);transform:translateY(-2px);background:#203360a8}.drop-zone:focus-within{outline:3px solid rgba(106,168,255,.4);outline-offset:3px}.file-input{width:.1px;height:.1px;position:absolute;opacity:0;overflow:hidden}.upload-icon{display:grid;width:4rem;aspect-ratio:1;place-items:center;margin:0 auto 1rem;border-radius:50%;color:#dbeafe;font-size:1.8rem;background:#4777c94d}.drop-zone strong{display:block;font-size:1.15rem}.drop-zone span{display:block;margin-top:.4rem;color:var(--muted);font-size:.92rem}.file-name{min-height:1.3rem;margin:1rem 0 0;color:#c7d2fe;font-size:.9rem;overflow-wrap:anywhere}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem .25rem 0}.file-note{margin:0;color:var(--muted);font-size:.8rem}button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;border:0;border-radius:.8rem;padding:.85rem 1.15rem;cursor:pointer;color:#10172c;font:inherit;font-weight:800;background:linear-gradient(135deg,#93c5fd,#c4b5fd);box-shadow:0 .5rem 1.25rem #8b5cf640;transition:transform .2s ease,filter .2s ease}button:hover{transform:translateY(-1px);filter:brightness(1.08)}button:disabled{cursor:wait;filter:saturate(.4);transform:none}.spinner{width:1rem;height:1rem;border:2px solid #263253;border-top-color:currentColor;border-radius:50%;animation:spin .75s linear infinite}.htmx-indicator{display:none}.htmx-request.htmx-indicator{display:inline-block}.upload-form.htmx-request button{pointer-events:none}#upload-status{min-height:1.4rem;margin:1rem .25rem 0;color:#c7d2fe;font-size:.9rem}.upload-form.htmx-request+#upload-status{color:#fcd34d}#classification-results{margin-top:1.5rem}.results-card{padding:clamp(1.25rem,3vw,2rem);animation:reveal .35s ease-out}.result-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.result-heading h2{margin:0;font-size:clamp(1.4rem,3vw,2rem);letter-spacing:-.04em}.result-heading p{margin:.3rem 0 0;color:var(--muted)}.result-status{padding:.4rem .65rem;border-radius:999px;color:#a7f3d0;font-size:.75rem;font-weight:800;white-space:nowrap;background:#065f464d}.meta{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0}.meta span,.legend span{padding:.4rem .65rem;border:1px solid var(--line);border-radius:999px;color:#bdc9e5;font-size:.8rem;background:#101a31}.legend{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.25rem}.legend .firework{color:#ffd18c;border-color:#c7721e80}.legend .speech{color:#ffadb4;border-color:#d5485880}.result-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(18rem,.75fr);gap:1.25rem}.result-group{padding:1.1rem;border:1px solid var(--line);border-radius:1rem;background:#0b1225a8}.result-group h3{margin:0 0 1rem;font-size:1rem}.prediction-list{display:grid;gap:.75rem;margin:0;padding:0;list-style:none}.prediction{--accent-color: #7799dd;position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.45rem .75rem;align-items:center;padding:.7rem .75rem;overflow:hidden;border:1px solid #26365b;border-left:3px solid var(--accent-color);border-radius:.7rem;background:#121c34}.prediction--firework{--accent-color: var(--fire);background:linear-gradient(90deg,#7a421d55,#121c34)}.prediction--speech{--accent-color: var(--danger);background:linear-gradient(90deg,#6c213055,#121c34)}.prediction-label{min-width:0;font-weight:700;overflow-wrap:anywhere}.prediction-score{color:#c4d1ed;font-size:.85rem;font-variant-numeric:tabular-nums}.score-bar{grid-column:1/-1;height:.3rem;overflow:hidden;border-radius:999px;background:#263657}.score-bar i{display:block;width:calc(var(--score) * 1%);height:100%;border-radius:inherit;background:var(--accent-color)}.peak-list{display:grid;gap:.7rem}.peak-item{padding-bottom:.7rem;border-bottom:1px solid #253453}.peak-item:last-child{padding-bottom:0;border-bottom:0}.peak-time{color:#a9bce0;font-size:.78rem}.peak-item .prediction{margin-top:.35rem}.empty{margin:0;color:var(--muted)}.error-card{border-color:#a43d4d;background:linear-gradient(135deg,#4b1724dd,#1a1427dd)}.error-card h2,.error-card p{color:#fecdd3}@keyframes spin{to{transform:rotate(360deg)}}@keyframes reveal{0%{opacity:0;transform:translateY(.75rem)}}@media(max-width:42rem){.shell{width:min(100% - 1.25rem,70rem)}.form-footer,.result-heading{align-items:stretch;flex-direction:column}.form-footer button{width:100%}.result-grid{grid-template-columns:1fr}.result-status{align-self:flex-start}}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}} diff --git a/staticfiles/vite/assets/login-CxDTcyYu.css b/staticfiles/vite/assets/login-CxDTcyYu.css new file mode 100644 index 0000000..057a99b --- /dev/null +++ b/staticfiles/vite/assets/login-CxDTcyYu.css @@ -0,0 +1 @@ +body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:#eef3ff;font-family:var(--font-ui);background:radial-gradient(circle at 8% 0,#263a76,transparent 31rem),#090e1d}.card{width:min(100%,27rem);padding:2rem;border:1px solid #2b3d68;border-radius:1.25rem;background:#172443;box-shadow:0 1.75rem 5rem #01030c99}h1{margin:.5rem 0}.intro{color:#aab9d8;line-height:1.5}.error{margin:1rem 0;padding:.75rem;border-radius:.6rem;color:#fee2e2;background:#7f1d1d}label{display:block;margin:1rem 0 .35rem;font-weight:700}input{width:100%;min-height:2.8rem;padding:.65rem;border:1px solid #526b9f;border-radius:.55rem;color:#eef3ff;font:inherit;background:#0a1123}button{width:100%;min-height:2.9rem;margin-top:1.5rem;border:0;border-radius:.65rem;color:#17132b;font:inherit;font-weight:850;background:linear-gradient(135deg,#99c8ff,#c6adff);cursor:pointer} diff --git a/staticfiles/vite/assets/manual-report-D8qXoYte.js b/staticfiles/vite/assets/manual-report-D8qXoYte.js new file mode 100644 index 0000000..d70837f --- /dev/null +++ b/staticfiles/vite/assets/manual-report-D8qXoYte.js @@ -0,0 +1 @@ +const pe=document.querySelector("#manual-report-form"),g=window.BOOMCAST_I18N||{};function be(){if(!pe)return null;const e=document.querySelector("#burst-start"),t=e.closest(".burst-listener"),n=e.closest(".manual-report__supporting"),i=document.querySelector("#burst-state"),C=document.querySelector("#burst-panel"),y=document.querySelector("#burst-heading"),L=document.querySelector("#burst-detail"),w=document.querySelector("#burst-waveform"),Z=document.querySelector("#burst-preview"),ie=document.querySelector("#burst-resume"),se=document.querySelector("#burst-discard"),Ce=document.querySelector("#burst-stop"),_=document.querySelector("#burst-error"),I=new Float32Array(300);let f=0,G="off",M,d,X,c,S,N,k,v;function $(){const o=w.getContext("2d");o.clearRect(0,0,w.width,w.height),o.fillStyle="#ffbd62";const l=w.width/I.length,m=Math.max(.003,...I);for(let s=0;s{for(let V=0;V{if(l.type==="level"&&(G==="listening"||G==="tail"))I[f]=l.value,f=(f+1)%I.length,$();else if(l.type==="trigger"&&G==="listening")x("tail");else if(l.type==="clip"){const m=new File([Ie(l.samples,l.sampleRate)],Ae(),{type:"audio/wav"});v?(v(m),v=null):G==="tail"&&(ee(),k=m,N=URL.createObjectURL(m),Z.src=N,Z.hidden=!1,x("captured"))}},X.connect(c),c.connect(S).connect(d.destination),await d.resume(),I.fill(0),f=0,$(),x("listening")}catch(l){await P(),t&&(t.dataset.state="error"),n&&(n.dataset.state="error"),i&&(i.textContent=g.microphoneUnavailable||"Microphone unavailable"),_.textContent=l.name==="NotAllowedError"?g.microphoneDenied||"Microphone permission was denied. Manual reporting is still available.":g.microphoneFailed||"Microphone capture failed.",_.hidden=!1}finally{e.disabled=!1}}async function P(){v&&(v(null),v=null),ee(),c==null||c.disconnect(),X==null||X.disconnect(),S==null||S.disconnect(),M==null||M.getTracks().forEach(o=>o.stop()),await(d==null?void 0:d.close()),M=d=X=c=S=null,I.fill(0),f=0,x("off")}function te(){ee(),I.fill(0),f=0,$(),c==null||c.port.postMessage("reset"),c&&x("listening")}return e.addEventListener("click",me),Ce.addEventListener("click",P),se.addEventListener("click",te),ie.addEventListener("click",te),window.addEventListener("pagehide",P),document.addEventListener("visibilitychange",()=>{document.hidden&&P()}),{get active(){return G!=="off"},async clipForSubmission(){return k||(G==="off"||!c?null:new Promise(o=>{v=o,c.port.postMessage("snapshot")}))},submissionSucceeded:te}}const a=window.BOOMCAST_I18N||{},A=document.querySelector("#manual-report-form"),K=document.querySelector("#manual-submit"),F=document.querySelector("#manual-submit-label"),b=document.querySelector("#manual-occurrences"),le=document.querySelector("#manual-decrease"),ge=document.querySelector("#manual-increase"),he=document.querySelector("#manual-latitude"),ye=document.querySelector("#manual-longitude"),O=document.querySelector("#manual-direction-degrees"),we=document.querySelector("#manual-direction-accuracy"),j=()=>document.querySelector("#manual-capture-direction"),u=()=>document.querySelector("#manual-direction-status"),r=()=>document.querySelector("#manual-direction-panel"),H=document.querySelector("#manual-compass"),J=document.querySelector("#manual-compass-home"),z=document.querySelector("#manual-compass-rose"),fe=document.querySelector("#manual-compass-heading"),E=document.querySelector("#manual-report-time"),re=document.querySelector("#report-clock-hours"),ce=document.querySelector("#report-clock-minutes");let B,T,R=null;const Y=be(),ne=e=>Number.isFinite(e),ae=e=>[a.north||"North",a.northeast||"Northeast",a.east||"East",a.southeast||"Southeast",a.south||"South",a.southwest||"Southwest",a.west||"West",a.northwest||"Northwest"][Math.floor((e+22.5)%360/45)],Q=e=>Number(e.toFixed(1)).toString(),ue=()=>{var C,y;if(!E)return;const e=new Date;E.dateTime=e.toISOString();const t=new Intl.DateTimeFormat(document.documentElement.lang||void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(e),n=(C=t.find(L=>L.type==="hour"))==null?void 0:C.value,i=(y=t.find(L=>L.type==="minute"))==null?void 0:y.value;!n||!i||!re||!ce||(re.textContent=n,ce.textContent=i,E.setAttribute("aria-label",`${n}:${i}`))};ue();E&&window.setInterval(ue,6e4);const Ge=(F==null?void 0:F.textContent)||"I heard fireworks",h=(e,t="")=>{if(A.dataset.state=e,K.disabled=e==="submitting",F&&(F.textContent=e==="submitting"?a.sendingReport||"Sending…":Ge),t){const n=document.querySelector("#manual-submission");n.className="manual-report__submission",n.textContent=t}},de=(e,t)=>{const n=new DOMParser().parseFromString(e,"text/html").querySelector("#manual-submission");return n?(document.querySelector("#manual-submission").replaceWith(n),h(t?"submitted":"error"),t):(h("error",a.reportFailed||"Could not send the report. Please try again."),!1)},q=e=>{const t=Number.parseInt(e,10);b.value=String(Math.min(1e3,Math.max(1,Number.isFinite(t)?t:1))),le.disabled=b.value==="1",ge.disabled=b.value==="1000"};q(b.value);le.addEventListener("click",()=>q(Number(b.value)-1));ge.addEventListener("click",()=>q(Number(b.value)+1));b.addEventListener("change",()=>q(b.value));const U=()=>{B&&window.removeEventListener("deviceorientation",B),window.clearTimeout(T),B=null,T=null,H.hidden=!0,R=null},Se=e=>{const t=-e;if(R===null)R=t,z.style.transition="none",z.style.transform=`rotate(${R}deg)`,z.offsetWidth,z.style.transition="";else{const n=(t-R+540)%360-180;R+=n,z.style.transform=`rotate(${R}deg)`}fe.textContent=`${Q(e)}° · ${ae(e)}`,H.setAttribute("aria-label",`${a.compassDirection||"Compass direction"} ${Q(e)}° ${ae(e)}`),H.hidden=!1},ve=(e,t)=>{const n=u();if(n)if(n.classList.toggle("manual-direction-panel__status--accuracy",t!==null),t===null)n.textContent=a.accuracyUnavailable||"Accuracy unavailable";else{const C=document.createElement("span");C.textContent=a.accuracy||"Accuracy";const y=document.createElement("strong");y.textContent=`±${Q(t)}°`,n.replaceChildren(C,y)}const i=j();i&&(i.textContent=a.stopCapture||"Stop measuring direction")},Re=()=>{u()&&(U(),r()&&(r().dataset.state="measuring"),u().textContent=a.pointPhone||"Point the top of your phone toward the sound — direction will update live.",B=e=>{const t="webkitCompassHeading"in e,n=ne(e.webkitCompassHeading)?e.webkitCompassHeading:!t&&e.absolute&&ne(e.alpha)?(360-e.alpha)%360:null;if(n===null||n<0||n>=360)return;const i=ne(e.webkitCompassAccuracy)&&e.webkitCompassAccuracy>=0?e.webkitCompassAccuracy:null;O.value=n,we.value=i===null?"":i,ve(n,i),Se(n),window.clearTimeout(T)},window.addEventListener("deviceorientation",B),T=window.setTimeout(()=>{U();const e=j(),t=u();e&&(e.textContent=a.captureDirection||"Start measuring direction"),t&&(t.textContent=a.compassUnavailable||"Compass unavailable on this device."),r()&&(r().dataset.state="unavailable")},15e3))},Ze=async()=>{var e;if(B){U(),j().textContent=a.captureAgain||"Measure again",r()&&(r().dataset.state=O.value?"captured":"ready");return}if((e=u())==null||e.classList.remove("manual-direction-panel__status--accuracy"),!window.isSecureContext){u().textContent=a.secureCompass||"Compass capture requires a secure HTTPS connection.",r()&&(r().dataset.state="unavailable");return}if(typeof window.DeviceOrientationEvent>"u"){u().textContent=a.compassUnavailable||"Compass unavailable on this device.",r()&&(r().dataset.state="unavailable");return}if(typeof DeviceOrientationEvent.requestPermission=="function"){u().textContent=a.compassPermission||"Requesting compass permission…";try{if(await DeviceOrientationEvent.requestPermission(!0)!=="granted"){u()&&(u().textContent=a.compassDenied||"Compass permission denied."),r()&&(r().dataset.state="unavailable");return}}catch{u()&&(u().textContent=a.compassDenied||"Compass permission denied."),r()&&(r().dataset.state="unavailable");return}}Re()},oe=async()=>{if(q(b.value),U(),h("submitting",a.sendingReport||"Sending…"),Y!=null&&Y.active){try{const e=await Y.clipForSubmission(),t=new FormData(A);e&&t.append("audio",e);const n=await fetch(A.action,{method:"POST",body:t,credentials:"same-origin"}),i=await n.text();de(i,n.ok)&&Y.submissionSucceeded()}catch{h("error",a.reportFailed||"Could not send the report. Please try again.")}return}if(window.htmx)try{htmx.ajax("POST",A.action,{source:A,target:"#manual-submission",swap:"outerHTML"})}catch{h("error",a.reportFailed||"Could not send the report. Please try again.")}else A.submit()};A.addEventListener("click",e=>{e.target.closest("#manual-capture-direction")&&Ze(),e.target.closest(".manual-direction-panel__close")&&(U(),J&&J.append(H))});document.body.addEventListener("htmx:beforeSwap",e=>{var t;((t=e.detail.target)==null?void 0:t.id)==="manual-direction-panel"&&J&&J.append(H)});document.body.addEventListener("htmx:afterSwap",e=>{var n,i;if(((n=e.detail.target)==null?void 0:n.id)!=="manual-direction-panel")return;j()&&((i=r().querySelector(".manual-direction-panel__copy"))==null||i.after(H));const t=document.querySelector("#manual-direction-summary");if(t&&O.value!==""){const C=Number(O.value);t.textContent=`${ae(C)} · ${Q(C)}°`,r().dataset.state="captured"}});K.addEventListener("click",()=>{if(!K.disabled){if(h("submitting",a.requestingLocation||"Requesting your optional location…"),!navigator.geolocation){oe();return}navigator.geolocation.getCurrentPosition(e=>{he.value=e.coords.latitude,ye.value=e.coords.longitude,oe()},()=>oe(),{enableHighAccuracy:!1,maximumAge:3e5,timeout:1e4})}});A.addEventListener("submit",e=>{e.preventDefault(),K.disabled||K.click()});document.body.addEventListener("htmx:afterRequest",e=>{if(e.detail.elt!==A)return;const t=e.detail.xhr;t?t.status>=400?de(t.responseText,!1):h("submitted"):h("error",a.reportFailed||"Could not send the report. Please try again.")});document.body.addEventListener("htmx:sendError",e=>{e.detail.elt===A&&h("error",a.reportFailed||"Could not send the report. Please try again.")}); diff --git a/staticfiles/vite/assets/manual-report-DFvFa_Hm.css b/staticfiles/vite/assets/manual-report-DFvFa_Hm.css new file mode 100644 index 0000000..d9d978f --- /dev/null +++ b/staticfiles/vite/assets/manual-report-DFvFa_Hm.css @@ -0,0 +1 @@ +.manual-report__supporting{padding:1rem;border:1px solid #514282;border-radius:1rem;background:#11152c}.manual-report__supporting-header{display:flex;align-items:center;gap:.7rem}.manual-report__microphone{display:grid;width:2.5rem;height:2.5rem;flex:none;place-items:center;border-radius:.7rem;background:#2a2051;font-size:1.3rem}.burst-listener__state{display:block;margin-top:.15rem;color:#b9addb;font-size:.84rem}.manual-report__supporting[data-state=listening] .burst-listener__state{color:#8fe5cc}.manual-report__supporting[data-state=error] .burst-listener__state{color:#ffbd9d}.burst-listener{width:100%;margin-top:.85rem}.burst-listener__button,.burst-listener__actions button{min-height:2.75rem;padding:.65rem 1rem;border:1px solid #8d77d2;border-radius:.7rem;color:#e8dcff;font:inherit;font-weight:750;background:#292148;cursor:pointer}.burst-listener__button{width:100%}.burst-listener__panel{color:#f0eaff}.burst-listener__panel strong{font-size:.92rem}.burst-listener__panel canvas{display:block;width:100%;height:4rem;margin:.7rem 0 .35rem;border-radius:.5rem;background:linear-gradient(90deg,#191738,#241b44)}.burst-listener__panel p{margin:.35rem 0 .75rem;color:#b9addb;font-size:.82rem}.burst-listener__panel audio{width:100%;margin-bottom:.75rem}.burst-listener__actions{display:flex;flex-wrap:wrap;gap:.5rem}.burst-listener__actions button{flex:1 1 10rem}.burst-listener__actions #burst-stop{border-color:#fb9b72;color:#ffd8c4;background:#2e1b31}.burst-listener [hidden]{display:none!important}.burst-listener [role=alert]{margin:.65rem 0 0;color:#ffd1b6}.burst-listener button:focus-visible{outline:3px solid #c9b4ff;outline-offset:3px}:root[data-theme=light] .manual-report__supporting{border-color:#d9b4d8;background:#fff8fb}:root[data-theme=light] .manual-report__microphone{background:#ead2eb}:root[data-theme=light] .burst-listener__state,:root[data-theme=light] .burst-listener__panel p{color:#694b68}:root[data-theme=light] .burst-listener__panel{color:#321d42}:root[data-theme=light] .burst-listener__button,:root[data-theme=light] .burst-listener__actions button{border-color:#b68bb5;color:#321d42;background:#ead2eb}:root[data-theme=light] .burst-listener__actions #burst-stop{border-color:#cf7957;color:#71331d;background:#ffe9de}.manual-compass{display:grid;justify-items:center;width:7rem;margin:.6rem 0 0 auto;color:#fff3d7;font-size:.78rem;font-weight:850;font-variant-numeric:tabular-nums}.manual-compass[hidden]{display:none}.manual-compass__dial{position:relative;width:5.75rem;aspect-ratio:1;border:2px solid #f2d7a8;border-radius:50%;background:radial-gradient(circle,#342441 0,#342441 28%,#211a32 75%);box-shadow:0 .35rem 1rem #09061566,inset 0 0 0 .25rem #ffffff12}.manual-compass__rose{position:absolute;top:0;right:0;bottom:0;left:0;transition:transform .12s ease-out}.manual-compass__rose span{position:absolute;line-height:1}.manual-compass__north{top:.38rem;left:50%;color:#ff9e78;transform:translate(-50%)}.manual-compass__east{right:.47rem;top:50%;transform:translateY(-50%)}.manual-compass__south{bottom:.38rem;left:50%;transform:translate(-50%)}.manual-compass__west{left:.47rem;top:50%;transform:translateY(-50%)}.manual-compass__pointer{position:absolute;top:-.55rem;left:50%;width:0;height:0;border-right:.37rem solid transparent;border-bottom:.65rem solid #ffbd62;border-left:.37rem solid transparent;transform:translate(-50%);filter:drop-shadow(0 .1rem .15rem #160d1b)}.manual-compass__center{position:absolute;top:50%;left:50%;width:.5rem;aspect-ratio:1;border-radius:50%;background:#ffbd62;transform:translate(-50%,-50%)}.manual-compass__heading{margin-top:.5rem;white-space:nowrap}:root[data-theme=light] .manual-compass{color:#43243d}:root[data-theme=light] .manual-compass__dial{border-color:#996a9b;background:radial-gradient(circle,#f8ebf8 0,#f8ebf8 28%,#e8d7e9 75%)}:root[data-theme=light] .manual-compass__east,:root[data-theme=light] .manual-compass__south,:root[data-theme=light] .manual-compass__west{color:#43243d}@media(prefers-reduced-motion:reduce){.manual-compass__rose{transition:none}}.manual-report__header{max-width:42rem}.manual-report{--manual-report-section-gap: 1rem}.manual-report__primary{display:grid;gap:var(--manual-report-section-gap);max-width:36rem}.manual-report__quantity{padding:1rem;border:1px solid #584891;border-radius:1rem;background:#151932}.manual-report .manual-report__quantity #manual-occurrences{width:100%;min-width:0;min-height:3.75rem;margin:0;padding:0;border:0;color:#f5f0ff;font-size:clamp(2.25rem,8vw,3.5rem);font-weight:850;text-align:center;background:transparent;-webkit-appearance:textfield;appearance:textfield;-moz-appearance:textfield}.manual-report__quantity #manual-occurrences::-webkit-inner-spin-button,.manual-report__quantity #manual-occurrences::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.manual-report__stepper{display:grid;grid-template-columns:3.5rem minmax(0,1fr) 3.5rem;align-items:center;gap:.5rem}.manual-report__stepper button{display:grid;place-items:center;width:3.5rem;height:3.5rem;min-height:0;padding:0;border:1px solid #6d54ac;border-radius:50%;color:#f5f0ff;font:inherit;font-size:2rem;line-height:1;background:#302553;cursor:pointer}.manual-report__stepper button:disabled{opacity:.4;cursor:default}.manual-report .manual-report__primary .manual-direction-panel{width:100%;margin:0;border-radius:1rem;background:#1a1739}.manual-direction-panel[data-state=measuring]{border-color:#a27cff}.manual-direction-panel[data-state=captured]{border-color:#68dba1}.manual-direction-panel[data-state=unavailable]{border-color:#d38b7a}.manual-direction-panel__topline{display:flex;align-items:center;justify-content:space-between;gap:1rem}.manual-direction-panel__summary{margin:.35rem 0 .8rem;color:#f5f0ff;font-weight:700}.manual-report .manual-direction-panel__status--accuracy{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:.75rem 0;padding:.55rem .75rem;border:1px solid #5d4d92;border-radius:.7rem;color:#d9cfee;background:#191630;font-size:.85rem}.manual-direction-panel__status--accuracy strong{color:#f5edff;font-size:1rem;font-variant-numeric:tabular-nums;white-space:nowrap}.manual-direction-panel__open,.manual-direction-panel__close{min-height:2.75rem;border:1px solid #8d77d2;border-radius:.7rem;color:#e8dcff;font:inherit;font-weight:750;background:#302553;cursor:pointer}.manual-direction-panel__open{padding:.5rem .85rem}.manual-direction-panel__close{min-width:2.75rem;font-size:1.4rem}.manual-report #manual-submit{width:100%;max-width:36rem;min-height:4.5rem;margin-top:var(--manual-report-section-gap)}.manual-report__submit:disabled{cursor:wait;opacity:.72}.manual-submission{display:grid;justify-items:center;gap:.5rem;max-width:36rem;margin-top:1rem;padding:1.3rem;border:1px solid #4caa82;border-radius:1rem;color:#eafff2;text-align:center;background:#10352e}.manual-submission__icon{display:grid;width:3.5rem;height:3.5rem;place-items:center;border:2px solid #6ce4a8;border-radius:50%;color:#eafff2;font-size:2rem;background:#226c51}.manual-submission strong{font-size:1.35rem}.manual-submission p{margin:0;line-height:1.45}.manual-submission__summary{margin-top:.35rem!important;color:#b2e8cf;font-size:.9rem}.manual-submission--error{border-color:#d37c6a;color:#fff0e8;background:#3a1c2b}.manual-submission--error .manual-submission__icon{border-color:#ffac8c;background:#9b493a}.manual-report__submission:empty{display:none}.manual-report button:focus-visible,.manual-report input:focus-visible{outline:3px solid #c9b4ff;outline-offset:3px}.manual-report__supporting{max-width:36rem;margin-top:var(--manual-report-section-gap);padding-top:1.25rem;border-top:1px solid #584891}.manual-report__supporting h3{margin:0;color:#d8cffd;font-size:1rem}.manual-report__supporting .burst-listener{width:100%}:root[data-theme=light] .manual-report__quantity{border-color:#d9b4d8;background:#fff8fb}:root[data-theme=light] .manual-report__quantity #manual-occurrences{border:0!important;color:#321d42!important;background:transparent!important}:root[data-theme=light] .manual-report__stepper button,:root[data-theme=light] .manual-direction-panel__open,:root[data-theme=light] .manual-direction-panel__close{color:#321d42;border-color:#b68bb5;background:#ead2eb}:root[data-theme=light] .manual-direction-panel__summary{color:#321d42}:root[data-theme=light] .manual-report .manual-direction-panel__status--accuracy{border-color:#cfaad1;color:#694b68;background:#fff8fb}:root[data-theme=light] .manual-direction-panel__status--accuracy strong{color:#321d42}:root[data-theme=light] .manual-submission{border-color:#54a67b;color:#164d34;background:#e8fff2}:root[data-theme=light] .manual-submission__icon{color:#fff}:root[data-theme=light] .manual-submission__summary{color:#2b6b48}:root[data-theme=light] .manual-submission--error{border-color:#ca7d65;color:#743520;background:#fff0e8}:root[data-theme=light] .manual-report__supporting{border-color:#d9b4d8}:root[data-theme=light] .manual-report__supporting h3{color:#492846}@media(max-width:42rem){.home-grid{grid-template-columns:minmax(0,1fr)}body:not(.dashboard-page){padding:max(1rem,env(safe-area-inset-top,0px)) max(.5rem,env(safe-area-inset-right,0px)) max(1rem,env(safe-area-inset-bottom,0px)) max(.5rem,env(safe-area-inset-left,0px))}.home-grid .manual-report,.dashboard-report,.dashboard-report .manual-report{overflow:visible}.manual-report{padding:1.25rem}.dashboard-report .manual-report{padding:0}.manual-report__header{padding-right:2.5rem}.manual-report form{padding-bottom:calc(5rem + env(safe-area-inset-bottom,0px))}.manual-report #manual-submit{position:sticky;bottom:calc(.5rem + env(safe-area-inset-bottom,0px));z-index:10;box-shadow:0 .7rem 1.6rem #070a18b3}body:has(#manual-occurrences:focus) .manual-report #manual-submit{position:static}.dashboard-intro{margin-bottom:1rem}.dashboard-intro h1{font-size:clamp(2rem,8vw,2.8rem)}.dashboard-intro p:last-child{margin-top:.75rem;font-size:.95rem;line-height:1.4}.dashboard-section{margin-top:1rem}.dashboard-shell{padding-bottom:calc(2rem + env(safe-area-inset-bottom,0px))}.manual-report__stepper{grid-template-columns:3.5rem minmax(0,1fr) 3.5rem}}@media(max-width:23.5rem){.manual-report{padding:1rem}.manual-report__quantity{padding:.75rem}.manual-report__stepper{grid-template-columns:3rem minmax(0,1fr) 3rem;gap:.25rem}.manual-report__stepper button{width:3rem;height:3rem}}.manual-report__heading-row{display:flex;align-items:center;gap:.7rem}.manual-report__fire{flex:none;font-size:clamp(1.8rem,5vw,2.5rem);filter:drop-shadow(0 .2rem .65rem rgba(255,112,59,.5333333333))}.manual-report__intro,.dashboard-report .manual-report__intro{margin-bottom:.85rem}.report-clock{box-sizing:border-box;width:100%;max-width:36rem;margin:0 0 1rem;padding:.65rem .95rem .7rem;border:1px solid #69539d;border-radius:.85rem;background:linear-gradient(115deg,#17162d,#10182c);box-shadow:inset 0 1px #ffffff0a}.report-clock__label{color:#cbbce5;font-size:.66rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase}.report-clock__display{display:flex;align-items:end;justify-content:space-between;gap:.75rem}.report-clock__time{display:inline-flex;align-items:center;color:#ffbf72;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(2rem,9vw,2.45rem);font-weight:700;line-height:1.1;letter-spacing:0;font-variant-numeric:tabular-nums;text-shadow:0 0 .7rem rgba(255,150,59,.3333333333);white-space:nowrap}.report-clock__time span{display:inline-block}.report-clock__time #report-clock-hours,.report-clock__time #report-clock-minutes{width:2ch}.report-clock__colon{width:1ch;flex:none;margin-inline:-.08em;line-height:1;text-align:center;transform:translateY(-.06em);animation:report-clock-blink 2s steps(1,end) infinite}.report-clock__now{display:inline-flex;align-items:center;gap:.4rem;flex:none;padding:.2rem .45rem;border:1px solid #93634d;border-radius:999px;color:#ffd2a2;font-size:.7rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.report-clock__dot{width:.4rem;height:.4rem;border-radius:50%;background:#ffab5d}@keyframes report-clock-blink{50%{opacity:0}}.manual-direction-panel__open{width:100%;text-align:left}.manual-direction-panel--open .manual-compass{width:100%;margin:.5rem auto 1rem}.manual-direction-panel--open .manual-compass__dial{width:min(100%,12rem);border-color:#8b67d4;background:radial-gradient(circle,#302054 0,#302054 20%,#17132d 70%);box-shadow:0 0 0 .35rem #6640a228,0 0 2rem #ac6aff35}.manual-direction-panel--open .manual-compass__pointer{border-bottom-color:#ff925f}.manual-direction-panel--open .manual-compass__heading{font-size:1.1rem}.manual-report__stepper button,.manual-direction-panel__open,.manual-direction-panel__close,.manual-report__submit{transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}.manual-report__stepper button:not(:disabled):active,.manual-direction-panel__open:active,.manual-report__submit:not(:disabled):active{transform:scale(.97)}.manual-report__submit:not(:disabled):hover{filter:brightness(1.05)}.manual-submission--success .manual-submission__icon{animation:manual-confirm .35s ease-out both}@keyframes manual-confirm{0%{transform:scale(.75);opacity:.3}to{transform:scale(1);opacity:1}}:root[data-theme=dark] .home-grid .manual-report,:root[data-theme=dark] .dashboard-report{border-color:#7256ab;background:radial-gradient(circle at 88% 5%,rgba(88,37,74,.3333333333),transparent 13rem),linear-gradient(155deg,#151326,#0d1022 72%);box-shadow:0 1rem 3rem #02041399}:root[data-theme=dark] .manual-report__title{color:#fff8f3}:root[data-theme=dark] .manual-report__intro{color:#d6cce4}:root[data-theme=dark] .manual-report__quantity{border-color:#514896;background:linear-gradient(145deg,#19183a,#121834);box-shadow:inset 0 0 0 1px #ffffff08}:root[data-theme=dark] .home-grid .manual-direction-panel,:root[data-theme=dark] .dashboard-report .manual-direction-panel{border-color:#59499b;background:linear-gradient(145deg,#211945,#151835)}:root[data-theme=dark] .manual-report__supporting{border-color:#493d7d;background:linear-gradient(145deg,#15142f,#10162d)}:root[data-theme=dark] .manual-report__stepper button{box-shadow:0 .25rem .7rem #07041655}:root[data-theme=dark] .manual-report__submit{background:linear-gradient(110deg,#ffc276,#ff7654);box-shadow:0 .55rem 1.35rem #e2633a4d}:root[data-theme=dark] .manual-direction-panel[data-state=measuring]{border-color:#a27cff}:root[data-theme=dark] .manual-direction-panel[data-state=captured]{border-color:#68dba1}:root[data-theme=dark] .manual-direction-panel[data-state=unavailable]{border-color:#d38b7a}:root[data-theme=light] .report-clock{border-color:#8b6bab;background:linear-gradient(115deg,#221b37,#182039)}:root[data-theme=light] .manual-direction-panel--open .manual-compass__dial{background:radial-gradient(circle,#f8ebf8 0,#f8ebf8 25%,#e8d7e9 75%)}@media(prefers-reduced-motion:reduce){.manual-report__stepper button,.manual-direction-panel__open,.manual-direction-panel__close,.manual-report__submit{transition:none}.manual-submission--success .manual-submission__icon{animation:none}.report-clock__colon{animation:none;opacity:1}} diff --git a/staticfiles/vite/assets/map-ipEW9d4A.css b/staticfiles/vite/assets/map-ipEW9d4A.css new file mode 100644 index 0000000..2cf4619 --- /dev/null +++ b/staticfiles/vite/assets/map-ipEW9d4A.css @@ -0,0 +1 @@ +:root{--ink: #eef3ff;--muted: #a9b9d8;--surface: #111a31;--line: #2a3a61;--blue: #83b7ff;--violet: #b69cff;--amber: #ffbc61;--green: #6ee7b7}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 32rem),radial-gradient(circle at 95% 0%,#492064 0,transparent 27rem),#090e1d}.shell{width:min(100% - 2.5rem,70rem);margin:0 auto;padding:clamp(2rem,6vw,5rem) 0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:3.5rem}.brand{display:flex;align-items:center;gap:.7rem;color:var(--ink);font-size:.9rem;font-weight:800;letter-spacing:.1em;text-decoration:none;text-transform:uppercase}.brand-mark{display:grid;width:2.25rem;aspect-ratio:1;place-items:center;border-radius:.75rem;color:#141022;background:linear-gradient(135deg,#fcd34d,#fb7185);box-shadow:0 .5rem 1.5rem #fb718550}.nav{display:flex;gap:.35rem;padding:.25rem;border:1px solid var(--line);border-radius:.75rem;background:#111a31a6}.nav a{padding:.5rem .75rem;border-radius:.5rem;color:var(--muted);font-size:.86rem;font-weight:700;text-decoration:none}.nav a[aria-current=page]{color:var(--ink);background:#2a3b67}.kicker{margin:0 0 .65rem;color:#bfdbfe;font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.headline{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2rem}.headline h1{margin:0;font-size:clamp(2.3rem,5vw,4.5rem);line-height:.98;letter-spacing:-.06em}.headline p{max-width:30rem;margin:0;color:var(--muted);line-height:1.6}.filters{display:grid;grid-template-columns:repeat(5,minmax(8rem,1fr)) auto auto;gap:.75rem;align-items:end;margin-bottom:1rem;padding:1rem;border:1px solid var(--line);border-radius:1.1rem;background:#121d37d9;box-shadow:0 1rem 3rem #03071466}.filter{display:grid;gap:.35rem}.filter label{color:#9fb1d5;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.filter select,.filter input{width:100%;min-height:2.65rem;border:1px solid #354a77;border-radius:.65rem;padding:0 .75rem;color:var(--ink);font:inherit;background:#0c1428}.filter select:focus,.filter input:focus{outline:2px solid #82b5ff;outline-offset:2px}.filter-submit{min-height:2.65rem;border:1px solid #8ab7ff;border-radius:.65rem;padding:0 1rem;color:#101a31;font:inherit;font-weight:800;background:#b9d6ff;cursor:pointer}.map-tag{align-self:center;padding:.46rem .65rem;border:1px solid #4a5f8e;border-radius:999px;color:#c9d8f6;font-size:.75rem;font-weight:700;white-space:nowrap;background:#1d2b4e}.map-panel{overflow:hidden;border:1px solid var(--line);border-radius:1.25rem;background:var(--surface);box-shadow:0 1.5rem 4rem #0206168a}.map-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid var(--line)}.map-header strong{font-size:.95rem}.live{display:flex;align-items:center;gap:.45rem;color:#a7f3d0;font-size:.8rem}.live i{width:.5rem;height:.5rem;border-radius:50%;background:var(--green);box-shadow:0 0 0 .25rem #34d3992e}.map-wrap{position:relative}.map{height:clamp(30rem,65vh,45rem);background:#dce4cf}.legend{position:absolute;z-index:600;right:1rem;bottom:1rem;width:min(15rem,100% - 2rem);padding:.85rem;border:1px solid #344973;border-radius:.8rem;color:#dce7fe;font-size:.78rem;background:#101a31e8;box-shadow:0 .75rem 2rem #05091480;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.legend h2{margin:0 0 .6rem;font-size:.82rem}.legend div{display:flex;align-items:center;gap:.5rem;margin-top:.4rem}.legend-dot{width:.7rem;height:.7rem;border:2px solid #f2c56b;border-radius:50%;background:#ed8e2e88}.legend-ring{width:.85rem;height:.85rem;border:2px solid #a98af7;border-radius:50%;background:#8b5cf633}.legend-line{width:1.1rem;border-top:2px dashed #644b9c}.report-icon{display:grid;width:2.3rem;height:2.3rem;place-items:center;border:2px solid #fff3d5;border-radius:50%;color:#452000;font-size:1rem;font-weight:900;background:#f7a52f;box-shadow:0 .3rem 1rem #a84f2670}.source-icon{display:grid;width:2.45rem;height:2.45rem;place-items:center;border:2px solid #fff3d5;border-radius:50% 50% 50% 0;color:#452000;font-size:1.15rem;background:#f7a52f;box-shadow:0 .3rem 1rem #a84f2670;transform:rotate(-45deg)}.source-icon span{transform:rotate(45deg)}.direction-marker{display:grid;width:3.5rem;height:3.5rem;place-items:center;border:3px solid #fff7e6;border-radius:50%;color:#fff;background:#6d45a0;box-shadow:0 .3rem 1rem #281642b3}.direction-marker span{display:block;font-size:2.45rem;font-weight:950;line-height:1;text-shadow:0 .1rem .25rem #1e1136;transform-origin:center}.map-compass{position:relative;width:5rem;height:5rem;border:2px solid #eaf1ff;border-radius:50%;color:#f7fbff;font-size:.72rem;font-weight:900;background:#111a31e8;box-shadow:0 .5rem 1.5rem #05091480;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.map-compass span{position:absolute;display:grid;place-items:center}.map-compass .compass-n{top:.35rem;left:50%;transform:translate(-50%);color:#ffd18c}.map-compass .compass-e{top:50%;right:.45rem;transform:translateY(-50%)}.map-compass .compass-s{bottom:.35rem;left:50%;transform:translate(-50%)}.map-compass .compass-w{top:50%;left:.45rem;transform:translateY(-50%)}.map-compass .compass-needle{top:1.3rem;left:50%;color:#ffd18c;font-size:2rem;line-height:1;transform:translate(-50%);text-shadow:0 .1rem .35rem #3b1b48}.leaflet-control-zoom a{color:#243456!important}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#e9f1ff;background:#14203a}.leaflet-popup-content{margin:.75rem .9rem;font-family:inherit}.popup-title{display:block;margin-bottom:.2rem;font-weight:800}.popup-meta{color:#a9b9d8;font-size:.78rem}@media(max-width:52rem){.shell{width:min(100% - 1.25rem,80rem)}.topbar{margin-bottom:2.5rem}.headline{align-items:start;flex-direction:column;gap:1rem}.filters{grid-template-columns:1fr 1fr}.filters .filter:first-child{grid-column:1/-1}.map{height:32rem}}@media(max-width:30rem){.nav a{padding:.5rem}.filters{grid-template-columns:1fr}.filters .filter:first-child{grid-column:auto}} diff --git a/staticfiles/vite/assets/member-form-CvIJ0BOZ.css b/staticfiles/vite/assets/member-form-CvIJ0BOZ.css new file mode 100644 index 0000000..579ea8c --- /dev/null +++ b/staticfiles/vite/assets/member-form-CvIJ0BOZ.css @@ -0,0 +1 @@ +:root{--ink: #172033;--muted: #667085;--card: rgba(255, 255, 255, .92);--line: #d7ddea;--primary: #6255e7;--success-bg: #eafaf1;--success-ink: #176b42}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 12% 15%,#cfe1ff 0,transparent 28rem),radial-gradient(circle at 88% 88%,#e6d8ff 0,transparent 26rem),#f6f7fb}.card{width:min(100%,31rem);padding:clamp(1.75rem,7vw,3rem);border:1px solid rgba(255,255,255,.85);border-radius:1.5rem;background:var(--card);box-shadow:0 1.5rem 4rem #35386929}.eyebrow{display:inline-flex;align-items:center;gap:.5rem;margin:0 0 1rem;color:var(--primary);font-size:.78rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.sparkle{display:grid;width:1.65rem;aspect-ratio:1;place-items:center;border-radius:.55rem;color:#fff;font-size:.95rem;background:linear-gradient(135deg,#7668ff,#a75ff4)}h1{margin:0;font-size:clamp(2rem,7vw,3rem);letter-spacing:-.055em;line-height:1.05}.intro{margin:1rem 0 2rem;color:var(--muted);line-height:1.6}label{display:block;margin-bottom:.55rem;font-size:.92rem;font-weight:700}input{width:100%;min-height:3.15rem;padding:.75rem 1rem;border:1px solid var(--line);border-radius:.75rem;outline:none;color:var(--ink);font:inherit;background:#fff}input:focus{border-color:var(--primary);box-shadow:0 0 0 .25rem #6255e726}button{width:100%;min-height:3.15rem;margin-top:1rem;border:0;border-radius:.75rem;cursor:pointer;color:#fff;font:inherit;font-weight:750;background:linear-gradient(135deg,var(--primary),#8a5ce5);box-shadow:0 .65rem 1.3rem #6255e73d}button:hover{transform:translateY(-1px)}.result{margin:1.5rem 0 0;padding:.9rem 1rem;border-radius:.75rem;color:var(--success-ink);line-height:1.45;background:var(--success-bg)}.button{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:2.9rem;padding:.75rem 1.05rem;border:1px solid #b3c9ff;border-radius:.8rem;color:#121a34;font:inherit;font-size:.93rem;font-weight:850;text-decoration:none;background:linear-gradient(135deg,#99c8ff,#c6adff);box-shadow:0 .65rem 1.75rem #7058dd50;transition:transform .2s ease,filter .2s ease}.button:hover{transform:translateY(-2px);filter:brightness(1.08)}.button:focus-visible{outline:3px solid rgba(165,201,255,.5019607843);outline-offset:3px} diff --git a/staticfiles/vite/assets/member-list-DxFGu1JS.css b/staticfiles/vite/assets/member-list-DxFGu1JS.css new file mode 100644 index 0000000..8946104 --- /dev/null +++ b/staticfiles/vite/assets/member-list-DxFGu1JS.css @@ -0,0 +1 @@ +:root{--ink: #172033;--muted: #667085;--card: rgba(255, 255, 255, .94);--line: #e1e6ef;--primary: #6255e7;--primary-soft: #f0eeff;--empty-bg: #f7f8fc}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;padding:clamp(1.25rem,5vw,4rem);color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 8% 8%,#d9e7ff 0,transparent 30rem),radial-gradient(circle at 92% 90%,#eadcff 0,transparent 30rem),#f6f7fb}.page{width:min(100%,70rem);margin:0 auto}.card{overflow:hidden;border:1px solid rgba(255,255,255,.9);border-radius:1.5rem;background:var(--card);box-shadow:0 1.5rem 4rem #35386924}.header{display:flex;align-items:end;justify-content:space-between;gap:1.5rem;padding:clamp(1.5rem,5vw,3rem);border-bottom:1px solid var(--line)}.eyebrow{display:inline-flex;align-items:center;gap:.5rem;margin:0 0 .85rem;color:var(--primary);font-size:.78rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.sparkle{display:grid;width:1.65rem;aspect-ratio:1;place-items:center;border-radius:.55rem;color:#fff;font-size:.95rem;background:linear-gradient(135deg,#7668ff,#a75ff4)}h1{margin:0;font-size:clamp(2rem,5vw,3.25rem);letter-spacing:-.06em;line-height:1.05}.intro{max-width:38rem;margin:.85rem 0 0;color:var(--muted);line-height:1.6}.count{flex:0 0 auto;margin:0;padding:.6rem .85rem;border-radius:999px;color:var(--primary);font-size:.88rem;font-weight:750;white-space:nowrap;background:var(--primary-soft)}.table-wrap{overflow-x:auto}table{width:100%;min-width:38rem;border-collapse:collapse;text-align:left}th{padding:1rem clamp(1.25rem,3vw,2rem);color:var(--muted);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:#fafbfe}td{padding:1.15rem clamp(1.25rem,3vw,2rem);border-top:1px solid var(--line);vertical-align:middle}tbody tr{transition:background .18s ease}tbody tr:hover{background:#faf9ff}.member{display:flex;align-items:center;gap:.85rem;font-weight:750}.avatar{display:grid;width:2.45rem;aspect-ratio:1;flex:0 0 auto;place-items:center;border-radius:50%;color:var(--primary);font-size:.82rem;font-weight:850;background:var(--primary-soft)}.phone{color:var(--muted);font-variant-numeric:tabular-nums}.date{color:var(--muted);white-space:nowrap}.empty{padding:clamp(3rem,10vw,6rem) 1.5rem;text-align:center;background:var(--empty-bg)}.empty-icon{display:grid;width:3.5rem;aspect-ratio:1;place-items:center;margin:0 auto 1rem;border-radius:1rem;color:var(--primary);font-size:1.4rem;background:var(--primary-soft)}.empty h2{margin:0;font-size:1.2rem;letter-spacing:-.03em}.empty p{margin:.5rem 0 0;color:var(--muted)}@media(max-width:40rem){.header{align-items:start;flex-direction:column}.count{align-self:start}}.button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:2.9rem;padding:.75rem 1.05rem;border:1px solid #b3c9ff;border-radius:.8rem;color:#121a34;font:inherit;font-size:.93rem;font-weight:850;text-decoration:none;background:linear-gradient(135deg,#99c8ff,#c6adff);box-shadow:0 .65rem 1.75rem #7058dd50;transition:transform .2s ease,filter .2s ease}.button:hover{transform:translateY(-2px);filter:brightness(1.08)}.button:focus-visible{outline:3px solid rgba(165,201,255,.5019607843);outline-offset:3px} diff --git a/staticfiles/vite/assets/member-success-Ck85tFD-.css b/staticfiles/vite/assets/member-success-Ck85tFD-.css new file mode 100644 index 0000000..76bfcc6 --- /dev/null +++ b/staticfiles/vite/assets/member-success-Ck85tFD-.css @@ -0,0 +1 @@ +:root{--ink: #172033;--muted: #667085;--card: rgba(255, 255, 255, .92);--line: #d7ddea;--primary: #6255e7;--success-bg: #eafaf1;--success-ink: #176b42}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 12% 15%,#cfe1ff 0,transparent 28rem),radial-gradient(circle at 88% 88%,#e6d8ff 0,transparent 26rem),#f6f7fb}.card{width:min(100%,31rem);padding:clamp(1.75rem,7vw,3rem);border:1px solid rgba(255,255,255,.85);border-radius:1.5rem;background:var(--card);box-shadow:0 1.5rem 4rem #35386929}.eyebrow{display:inline-flex;align-items:center;gap:.5rem;margin:0 0 1rem;color:var(--primary);font-size:.78rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.sparkle{display:grid;width:1.65rem;aspect-ratio:1;place-items:center;border-radius:.55rem;color:#fff;font-size:.95rem;background:linear-gradient(135deg,#7668ff,#a75ff4)}.button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:2.9rem;padding:.75rem 1.05rem;border:1px solid #b3c9ff;border-radius:.8rem;color:#121a34;font:inherit;font-size:.93rem;font-weight:850;text-decoration:none;background:linear-gradient(135deg,#99c8ff,#c6adff);box-shadow:0 .65rem 1.75rem #7058dd50;transition:transform .2s ease,filter .2s ease}.button:hover{transform:translateY(-2px);filter:brightness(1.08)}.button:focus-visible{outline:3px solid rgba(165,201,255,.5019607843);outline-offset:3px}h1{margin:0;font-size:clamp(2rem,7vw,3rem);letter-spacing:-.055em;line-height:1.05}.intro{margin:1rem 0 2rem;color:var(--muted);line-height:1.6}label{display:block;margin-bottom:.55rem;font-size:.92rem;font-weight:700}input{width:100%;min-height:3.15rem;padding:.75rem 1rem;border:1px solid var(--line);border-radius:.75rem;outline:none;color:var(--ink);font:inherit;background:#fff}input:focus{border-color:var(--primary);box-shadow:0 0 0 .25rem #6255e726}button{width:100%;min-height:3.15rem;margin-top:1rem;border:0;border-radius:.75rem;cursor:pointer;color:#fff;font:inherit;font-weight:750;background:linear-gradient(135deg,var(--primary),#8a5ce5);box-shadow:0 .65rem 1.3rem #6255e73d}button:hover{transform:translateY(-1px)}.result{margin:1.5rem 0 0;padding:.9rem 1rem;border-radius:.75rem;color:var(--success-ink);line-height:1.45;background:var(--success-bg)} diff --git a/staticfiles/vite/assets/not-found-BuNpIK-z.css b/staticfiles/vite/assets/not-found-BuNpIK-z.css new file mode 100644 index 0000000..bb40bf9 --- /dev/null +++ b/staticfiles/vite/assets/not-found-BuNpIK-z.css @@ -0,0 +1 @@ +:root{--ink: #eef3ff;--muted: #aab9d8;--line: #2b3d68;--violet: #b69cff;--blue: #8abaff}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;display:grid;place-items:center;margin:0;padding:1.5rem;color:var(--ink);font-family:var(--font-ui);background:radial-gradient(circle at 8% 0%,#263a76 0,transparent 31rem),radial-gradient(circle at 96% 100%,#512363 0,transparent 29rem),#090e1d}.card{width:min(100%,42rem);position:relative;overflow:hidden;padding:clamp(2rem,7vw,4.75rem);border:1px solid var(--line);border-radius:1.5rem;text-align:center;background:linear-gradient(145deg,#172443e8,#10182ddd);box-shadow:0 1.75rem 5rem #01030c99;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.card:before,.card:after{content:"";position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none}.card:before{width:14rem;height:14rem;top:-8rem;left:-5rem;background:#5888e536}.card:after{width:11rem;height:11rem;right:-5rem;bottom:-5rem;background:#b069e73d}.mark{display:grid;width:4.25rem;aspect-ratio:1;place-items:center;margin:0 auto 1.75rem;border:1px solid rgba(167,199,255,.4);border-radius:1.1rem;color:#141c39;font-size:1.7rem;background:linear-gradient(135deg,#a8ceff,#c5b3ff);box-shadow:0 .65rem 1.75rem #735ee150;transform:rotate(8deg)}.mark span{transform:rotate(-8deg)}.code{margin:0;color:#bfcfff;font-size:.78rem;font-weight:900;letter-spacing:.2em;text-transform:uppercase}.code strong{color:#f2d07f}.title{max-width:10ch;margin:.75rem auto 1rem;font-size:clamp(2.5rem,8vw,5rem);line-height:.96;letter-spacing:-.065em}.message{max-width:31rem;margin:0 auto;color:var(--muted);line-height:1.65}.path{display:inline-block;max-width:100%;margin-top:1.1rem;padding:.45rem .7rem;overflow-wrap:anywhere;border:1px solid #354b7a;border-radius:.55rem;color:#c6d5f3;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem;background:#0a1123}.actions{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-top:2rem}.button{display:inline-flex;align-items:center;justify-content:center;min-height:2.8rem;padding:.7rem 1rem;border:1px solid #455d92;border-radius:.75rem;color:#dce7ff;font-size:.92rem;font-weight:800;text-decoration:none;background:#1b2949;transition:transform .2s ease,background .2s ease}.button:hover{transform:translateY(-2px);background:#263b69}.button-primary{border-color:#b2c8ff;color:#121a34;background:linear-gradient(135deg,#97c5ff,#c2adff)}.button-primary:hover{background:linear-gradient(135deg,#b0d4ff,#d1c2ff)}@media(prefers-reduced-motion:reduce){.button{transition:none}}