feat: update PWA support and enhance responsive design
- Added PWA meta tags for improved iOS web app compatibility in index.html. - Updated app.css to refine responsive design, ensuring better layout handling on mobile devices. - Adjusted padding and height properties to accommodate safe area insets for a more polished user experience.
This commit is contained in:
parent
44f224e5d1
commit
6c87989863
|
|
@ -5,16 +5,21 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||||
<meta name="description" content="Shinkan Jinkendo - Trainer- und Vereinsplattform für Kampfsport-Trainingsplanung" />
|
<meta name="description" content="Shinkan Jinkendo - Trainer- und Vereinsplattform für Kampfsport-Trainingsplanung" />
|
||||||
|
|
||||||
<!-- PWA Meta Tags -->
|
<!-- PWA / iOS Web App -->
|
||||||
|
<meta name="theme-color" content="#1D9E75" media="(prefers-color-scheme: light)">
|
||||||
|
<meta name="theme-color" content="#181816" media="(prefers-color-scheme: dark)">
|
||||||
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
<!-- black-translucent: Inhalt bis unter die Statusleiste; passt zu viewport-fit=cover -->
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||||
<meta name="apple-mobile-web-app-title" content="Shinkan">
|
<meta name="apple-mobile-web-app-title" content="Shinkan">
|
||||||
<link rel="apple-touch-icon" href="/icon-192.png">
|
<link rel="manifest" href="/manifest.webmanifest" />
|
||||||
|
|
||||||
<!-- Icons -->
|
<!-- Icons (Dateien in public/) -->
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
|
||||||
<link rel="icon" type="image/png" sizes="192x192" href="/icon-192.png">
|
<link rel="icon" type="image/png" sizes="192x192" href="/icon-192.png">
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
<link rel="icon" type="image/png" sizes="512x512" href="/icon-512.png">
|
||||||
|
|
||||||
<title>Shinkan Jinkendo</title>
|
<title>Shinkan Jinkendo</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
BIN
frontend/public/apple-touch-icon.png
Normal file
BIN
frontend/public/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 611 B |
BIN
frontend/public/favicon-32.png
Normal file
BIN
frontend/public/favicon-32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 158 B |
BIN
frontend/public/icon-192.png
Normal file
BIN
frontend/public/icon-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 642 B |
BIN
frontend/public/icon-512.png
Normal file
BIN
frontend/public/icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
25
frontend/public/manifest.webmanifest
Normal file
25
frontend/public/manifest.webmanifest
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"name": "Shinkan Jinkendo",
|
||||||
|
"short_name": "Shinkan",
|
||||||
|
"description": "Trainer- und Vereinsplattform für Kampfsport-Trainingsplanung",
|
||||||
|
"start_url": "/",
|
||||||
|
"scope": "/",
|
||||||
|
"display": "standalone",
|
||||||
|
"background_color": "#f4f3ef",
|
||||||
|
"theme_color": "#1D9E75",
|
||||||
|
"lang": "de",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "/icon-192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "any maskable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/icon-512.png",
|
||||||
|
"sizes": "512x512",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "any maskable"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -33,18 +33,28 @@
|
||||||
html, body, #root { height: 100%; }
|
html, body, #root { height: 100%; }
|
||||||
body { font-family: var(--font); background: var(--bg); color: var(--text1); -webkit-text-size-adjust: 100%; }
|
body { font-family: var(--font); background: var(--bg); color: var(--text1); -webkit-text-size-adjust: 100%; }
|
||||||
|
|
||||||
.app-shell { display: flex; flex-direction: column; height: 100%; max-width: 600px; margin: 0 auto; }
|
.app-shell { display: flex; flex-direction: column; min-height: 100%; min-height: 100dvh; max-width: 600px; margin: 0 auto; }
|
||||||
.app-header {
|
.app-header {
|
||||||
height: var(--header-h); display: flex; align-items: center; padding: 0 16px;
|
height: var(--header-h); display: flex; align-items: center; padding: 0 16px;
|
||||||
background: var(--surface); border-bottom: 1px solid var(--border);
|
background: var(--surface); border-bottom: 1px solid var(--border);
|
||||||
position: sticky; top: 0; z-index: 10;
|
position: sticky; top: 0; z-index: 10;
|
||||||
}
|
}
|
||||||
|
/* iPhone: Web-App (standalone) / Safari mit viewport-fit=cover — Kopf unter Statusleiste ausrichten */
|
||||||
|
@media (max-width: 1023px) {
|
||||||
|
.app-header.app-header--mobile {
|
||||||
|
height: auto;
|
||||||
|
min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
|
||||||
|
padding-top: env(safe-area-inset-top, 0px);
|
||||||
|
padding-left: max(16px, env(safe-area-inset-left, 0px));
|
||||||
|
padding-right: max(16px, env(safe-area-inset-right, 0px));
|
||||||
|
}
|
||||||
|
}
|
||||||
.app-logo { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
|
.app-logo { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
|
||||||
/* unten: Tab-Leiste + Abstand nach oben zur Leiste + Home-Indicator (iPhone) */
|
/* unten: Tab-Leiste + Abstand nach oben zur Leiste + Home-Indicator (iPhone) */
|
||||||
.app-main {
|
.app-main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding: 16px 16px calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px) + 20px);
|
padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px) + 20px) max(16px, env(safe-area-inset-left, 0px));
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-nav {
|
.bottom-nav {
|
||||||
|
|
@ -66,7 +76,7 @@ body { font-family: var(--font); background: var(--bg); color: var(--text1); -we
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
padding: var(--nav-pad-top) 6px env(safe-area-inset-bottom, 0px);
|
padding: var(--nav-pad-top) max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
|
||||||
min-height: calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px));
|
min-height: calc(var(--nav-h) + var(--nav-pad-top) + env(safe-area-inset-bottom, 0px));
|
||||||
height: auto;
|
height: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
@ -2174,7 +2184,8 @@ a.analysis-split__nav-item {
|
||||||
.app-shell {
|
.app-shell {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
min-height: 100%;
|
||||||
|
min-height: 100dvh;
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user