style: Download-Homepage an Admin-Bereich angleichen (#91)

- Farbpalette: dunkler Hintergrund (#16140F), warme Akzentfarben (#C1440E)
- Typografie: Share Tech Mono für Heading/Version, system-ui für Body
- Card-Style: #242119, border-left accent, 3px radius, dunkle Schatten
- Noise-Texture-Overlay wie im Admin-Bereich
- QR-Code-Farben an dunkles Theme angepasst (hell auf dunkel)
- Download-Button: uppercase, monospace, Admin-Primärfarbe
- Responsive Layout beibehalten
This commit is contained in:
Jens Reinemann 2026-05-17 16:12:06 +02:00
parent 47a2865b34
commit 077d16f056

View file

@ -36,42 +36,76 @@ private fun buildHomepageHtml(versionName: String, versionCode: Int, apkUrl: Str
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Krisenvorrat</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap" rel="stylesheet">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f5f5f5;
color: #333;
font-family: system-ui, sans-serif;
background: #16140F;
color: #E8D5B0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
position: relative;
}
body::before {
content: '';
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
opacity: 0.04;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
background-repeat: repeat;
background-size: 200px 200px;
}
body > * { position: relative; z-index: 1; }
.card {
background: white;
border-radius: 16px;
background: #242119;
border: 1px solid #4A3F2F;
border-left: 3px solid #8B3A0F;
border-radius: 3px;
padding: 48px;
box-shadow: 0 4px 24px rgba(0,0,0,0.1);
box-shadow: 0 2px 8px rgba(0,0,0,0.6);
text-align: center;
max-width: 400px;
max-width: 420px;
width: 90%;
}
h1 { font-size: 28px; margin-bottom: 8px; color: #1a1a1a; }
.version { color: #666; font-size: 14px; margin-bottom: 32px; }
h1 {
font-family: 'Share Tech Mono', 'Courier New', monospace;
font-size: 1.6rem;
margin-bottom: 8px;
color: #E8D5B0;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.version {
font-family: 'Share Tech Mono', 'Courier New', monospace;
color: #A89070;
font-size: 0.85rem;
margin-bottom: 32px;
text-transform: uppercase;
}
#qrcode { display: flex; justify-content: center; margin-bottom: 24px; }
#qrcode canvas { border-radius: 8px; }
#qrcode canvas { border-radius: 3px; }
.download-link {
display: inline-block;
background: #2196F3;
color: white;
background: #C1440E;
color: #E8D5B0;
text-decoration: none;
padding: 12px 24px;
border-radius: 8px;
font-weight: 500;
border-radius: 3px;
font-family: 'Share Tech Mono', 'Courier New', monospace;
font-size: 0.9rem;
text-transform: uppercase;
text-shadow: 0 1px 2px rgba(0,0,0,0.4);
transition: background 0.2s;
}
.download-link:hover { background: #1976D2; }
.hint { margin-top: 16px; font-size: 12px; color: #999; }
.download-link:hover { background: #D95A20; }
.hint { margin-top: 16px; font-size: 0.8rem; color: #6B5B3E; }
</style>
</head>
<body>
@ -88,6 +122,8 @@ private fun buildHomepageHtml(versionName: String, versionCode: Int, apkUrl: Str
text: ${quoteJsString(apkUrl)},
width: 200,
height: 200,
colorDark: "#E8D5B0",
colorLight: "#242119",
correctLevel: QRCode.CorrectLevel.M
});
</script>