manual submission redesign phase E

This commit is contained in:
Joren de Graaf
2026-10-06 19:54:08 +02:00
parent a54494c6a1
commit 5820ea850a
9 changed files with 41 additions and 6 deletions
Binary file not shown.
@@ -3,7 +3,7 @@
<html lang="{{ request.LANGUAGE_CODE|default:'en' }}" data-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>{% trans "Report fireworks · Sound Signal" %}</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css">
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js"></script>
@@ -21,8 +21,8 @@
</div>
</div>
{% include "fireworks_detect/includes/manual_direction_panel.html" %}
<button id="manual-submit" class="manual-report__submit" type="button"><span aria-hidden="true">🔥</span> <span id="manual-submit-label">{% trans "I heard fireworks" %}</span></button>
</div>
<button id="manual-submit" class="manual-report__submit" type="button"><span aria-hidden="true">🔥</span> <span id="manual-submit-label">{% trans "I heard fireworks" %}</span></button>
<section class="manual-report__supporting" data-state="off" aria-labelledby="manual-listening-title">
<div class="manual-report__supporting-header">
<span class="manual-report__microphone" aria-hidden="true">🎙</span>
@@ -54,9 +54,11 @@
.manual-direction-panel__open { padding: .5rem .85rem; }
.manual-direction-panel__close { min-width: 2.75rem; font-size: 1.4rem; }
.manual-report__primary .manual-report__submit {
.manual-report #manual-submit {
width: 100%;
max-width: 36rem;
min-height: 4.5rem;
margin-top: 1rem;
}
.manual-report__submit:disabled { cursor: wait; opacity: .72; }
@@ -93,7 +95,7 @@
background: #fff8fb;
}
:root[data-theme="light"] .manual-report__quantity #manual-occurrences { color: #321d42; }
: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; }
@@ -110,3 +112,32 @@
: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(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); }
.home-grid .manual-report, .dashboard-report, .dashboard-report .manual-report { overflow: visible; }
.manual-report { padding: 1.25rem; }
.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; min-height: 3rem; }
}
+2 -2
View File
@@ -3,7 +3,7 @@
<html lang="{{ request.LANGUAGE_CODE|default:'en' }}" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>{% trans "Welcome · Sound Signal" %}</title>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.4/dist/htmx.min.js"></script>
{% vite_asset "frontend/src/entries/home.js" %}
@@ -11,6 +11,7 @@
<body>
{% if user.is_authenticated %}<a class="profile-circle" href="{% url 'user_settings' %}" aria-label="{% blocktrans with username=user.get_username %}Open settings for {{ username }}{% endblocktrans %}" title="{% trans "Settings" %}">{{ user.get_username|first|upper }}</a>{% endif %}
<div class="home-grid">
{% include "fireworks_detect/includes/manual_report_form.html" %}
<main class="welcome-card">
<div class="brand"><span class="brand-mark">✦</span> Sound Signal</div>
<p class="eyebrow">{% trans "Control room" %}</p>
@@ -24,7 +25,6 @@
<span class="hint">{% trans "Audio analysis · Sensor map" %}</span>
</div>
</main>
{% include "fireworks_detect/includes/manual_report_form.html" %}
</div>
</body>
</html>
@@ -0,0 +1 @@
/* empty css */import"./fireworks-home.js-BqdOneRR.js";import"./map.js-BLPiBo7S.js";import"../../../manual-report-B5e7rxM8.js";import"../../../theme-DXAi27ON.js";
@@ -0,0 +1 @@
import"../../../manual-report-B5e7rxM8.js";import"../../../theme-DXAi27ON.js";
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long