From 735419662c66ed15fbd6fd2041d776c49b8986cc Mon Sep 17 00:00:00 2001 From: "Christoph K." Date: Thu, 9 Apr 2026 22:05:21 +0200 Subject: [PATCH] layout vereinfacht --- backend/internal/api/static/style.css | 10 ++-- backend/internal/api/templates/day.html | 54 ++++++-------------- backend/internal/api/templates/days.html | 11 ++-- backend/internal/api/templates/register.html | 2 +- 4 files changed, 23 insertions(+), 54 deletions(-) diff --git a/backend/internal/api/static/style.css b/backend/internal/api/static/style.css index 5fbe669..4825f99 100644 --- a/backend/internal/api/static/style.css +++ b/backend/internal/api/static/style.css @@ -16,7 +16,7 @@ h1 { font-size: 1.4rem; font-weight: normal; letter-spacing: .05em; } h2 { font-size: 1rem; font-weight: normal; letter-spacing: .05em; } -.err { color: #c00; } +.err, .error { color: #c00; } .source-gps { color: #060; } .source-manual { color: #888; } @@ -28,9 +28,8 @@ h2 { font-size: 1rem; font-weight: normal; letter-spacing: .05em; } .gps-row input { flex: 1; margin-bottom: 0; } .gps-row button { white-space: nowrap; margin-bottom: 0; } -/* Two-column form */ -.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } -@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } } +/* Narrow pages (login, register) */ +.narrow { max-width: 400px; margin-top: 4rem; } /* Image preview */ .image-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; } @@ -53,9 +52,6 @@ h2 { font-size: 1rem; font-weight: normal; letter-spacing: .05em; } /* Login */ .login-box { max-width: 360px; margin: 4rem auto; } -/* Error message */ -.error { color: #c44; } - /* Hashtags */ .hashtags { margin-top: .3rem; } .tag { font-size: .75rem; background: var(--pico-muted-background-color); padding: .1rem .4rem; border-radius: 999px; margin-right: .2rem; } diff --git a/backend/internal/api/templates/day.html b/backend/internal/api/templates/day.html index 19bdcb5..7171dff 100644 --- a/backend/internal/api/templates/day.html +++ b/backend/internal/api/templates/day.html @@ -5,45 +5,27 @@

{{.Date}}

-

Neuer Eintrag

-
+ -
-
- - -
-
- - -
+
+ +
-
-
- -
- - - -
- -
-
- - -
+ + +
+ + +
- - - - - + +
- +

Einträge ({{len .Entries}})

@@ -73,7 +55,6 @@

Aufenthalte ({{len .Stops}})

{{if .Stops}} -
@@ -87,14 +68,12 @@ {{end}}
VonBisDauerOrt
-
{{else}}

// Keine Aufenthalte

{{end}}
Trackpunkte ({{len .Points}}) -
@@ -110,7 +89,6 @@ {{end}}
ZeitLatLonQuelle
-
{{end}} diff --git a/backend/internal/api/templates/days.html b/backend/internal/api/templates/days.html index 888d931..0720b3f 100644 --- a/backend/internal/api/templates/days.html +++ b/backend/internal/api/templates/days.html @@ -9,15 +9,11 @@ [ Ausloggen ]
-
-
- - -
+ + +
-

Reisetage

-
@@ -33,7 +29,6 @@ {{end}}
DatumPunkteVonBis
-
{{end}} diff --git a/backend/internal/api/templates/register.html b/backend/internal/api/templates/register.html index 9e4b9e2..3a02bca 100644 --- a/backend/internal/api/templates/register.html +++ b/backend/internal/api/templates/register.html @@ -1,7 +1,7 @@ {{define "title"}}Registrieren — Journal{{end}} {{define "content"}} -
+

Konto erstellen

{{if .Error}}

{{.Error}}

{{end}}