web mobile changes
This commit is contained in:
parent
6f6eea5529
commit
529bb6336e
@ -18,7 +18,7 @@ func TestReadUserHandler(t *testing.T) {
|
||||
code, _, body := ts.getWithToken(t, "/v1/users/1", token)
|
||||
|
||||
if code != 200 {
|
||||
t.Errorf("want %d; got %d", 200, code)
|
||||
t.Errorf("want %d; got %d", 403, code)
|
||||
}
|
||||
|
||||
if !bytes.Contains(body, []byte("An old silent pond...")) {
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<body>
|
||||
{{if .AuthenticatedUser}}
|
||||
<nav style="border-bottom:1px solid var(--border); background:var(--bg-card);">
|
||||
<div class="container" style="display:flex; align-items:center; gap:20px; padding:10px 0;">
|
||||
<div class="container" style="display:flex; align-items:center; gap:10px 20px; padding-top:10px; padding-bottom:10px; flex-wrap:wrap;">
|
||||
<a href="/" class="link">Start</a>
|
||||
<a href="/issues" class="link">Abstimmungen</a>
|
||||
<a href="/mps" class="link">Nationalrat</a>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
{{define "body"}}
|
||||
<div style="text-align:center; padding: 40px 0 24px;">
|
||||
<img src="/static/logo.svg" alt="DPÖ Logo" style="height: 600px; width: auto;">
|
||||
<img src="/static/logo.svg" alt="DPÖ Logo" style="height: auto; max-height: 600px; width: 100%; max-width: 600px;">
|
||||
</div>
|
||||
|
||||
<div class="page-header">
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
{{define "body"}}
|
||||
<div style="text-align:center; padding: 40px 0 24px;">
|
||||
<img src="/static/logo.svg" alt="DPÖ Logo" style="height: 600px; width: auto;">
|
||||
<img src="/static/logo.svg" alt="DPÖ Logo" style="height: auto; max-height: 600px; width: 100%; max-width: 600px;">
|
||||
</div>
|
||||
|
||||
<div class="hero">
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
{{.Name}}
|
||||
<span style="font-size: 13px; font-weight: 500; color: var(--text-muted); font-family: 'Source Sans 3', sans-serif;">{{len .Members}} Mandate</span>
|
||||
</h2>
|
||||
<div style="background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);">
|
||||
<div style="background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);" class="table-scroll">
|
||||
<table style="width: 100%; border-collapse: collapse; font-size: 14px;">
|
||||
<thead>
|
||||
<tr style="background: var(--bg); border-bottom: 1px solid var(--border);">
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
</div>
|
||||
|
||||
{{/* ── Two-column faction breakdown ─────────────────────────────────────── */}}
|
||||
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px;">
|
||||
<div class="faction-grid">
|
||||
|
||||
{{/* Yes column */}}
|
||||
<div>
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
<span>{{.Label}}</span>
|
||||
<span style="font-size: 12px; font-weight: 400; color: var(--text-muted);">{{len .Docs}}</span>
|
||||
</summary>
|
||||
<div style="border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: var(--bg-card);">
|
||||
<div style="border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); background: var(--bg-card);" class="table-scroll">
|
||||
<table style="width: 100%; border-collapse: collapse; font-size: 14px;">
|
||||
<thead>
|
||||
<tr style="background: var(--bg); border-bottom: 1px solid var(--border);">
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
{{end}}
|
||||
|
||||
<form method="POST" action="/register">
|
||||
<div style="display:grid; grid-template-columns:1fr 1fr; gap: 0 16px;">
|
||||
<div class="form-row-2">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="name">Vollständiger Name</label>
|
||||
<input class="form-input" type="text" id="name" name="name"
|
||||
@ -49,7 +49,7 @@
|
||||
placeholder="••••••••" required autocomplete="new-password">
|
||||
</div>
|
||||
|
||||
<div style="display:grid; grid-template-columns:1fr 1fr; gap: 0 16px;">
|
||||
<div class="form-row-2">
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="phone_number">Telefonnummer</label>
|
||||
<input class="form-input" type="tel" id="phone_number" name="phone_number"
|
||||
|
||||
@ -430,11 +430,40 @@ a:hover {
|
||||
color: rgba(255,255,255,0.2);
|
||||
}
|
||||
|
||||
/* ── Table scroll wrapper ── */
|
||||
|
||||
.table-scroll {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
/* ── 2-col form row ── */
|
||||
|
||||
.form-row-2 {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0 16px;
|
||||
}
|
||||
|
||||
/* ── Faction breakdown grid ── */
|
||||
|
||||
.faction-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/* ── Responsive ── */
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.brand-name { display: none; }
|
||||
.hero-title { font-size: 36px; }
|
||||
.hero { padding: 40px 0 32px; margin-bottom: 32px; }
|
||||
.auth-card { padding: 24px; }
|
||||
.card-grid { grid-template-columns: 1fr; }
|
||||
.form-row-2 { grid-template-columns: 1fr; }
|
||||
.faction-grid { grid-template-columns: 1fr; }
|
||||
.site-main { padding: 28px 0 40px; }
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user