Make site installable as PWA on iPhone

- Add manifest.webmanifest with standalone display, brand colors, icons
- Generate 180/192/512 PNG icons from kids.jpg via sips
- Add Apple PWA meta tags (apple-touch-icon, apple-mobile-web-app-*)
- Add viewport-fit=cover + safe-area insets for notch handling

On iPhone: open site in Safari → Share → Add to Home Screen.
Launches fullscreen (no browser chrome) with custom icon and title.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kuzbaeva 2026-05-22 13:21:15 +05:00
parent 2c978f48bd
commit ce4107cf80
5 changed files with 32 additions and 2 deletions

BIN
apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
icon-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

View File

@ -2,8 +2,17 @@
<html lang="ru">
<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>Семейный сайт Жанар</title>
<link rel="manifest" href="manifest.webmanifest" />
<meta name="theme-color" content="#0c1733" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="192x192" href="icon-192.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Наша семья" />
<meta name="format-detection" content="telephone=no" />
<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=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap" rel="stylesheet">
@ -50,7 +59,11 @@
main {
max-width: 780px;
margin: 0 auto;
padding: 32px 20px 96px;
padding:
calc(32px + env(safe-area-inset-top))
calc(20px + env(safe-area-inset-right))
calc(96px + env(safe-area-inset-bottom))
calc(20px + env(safe-area-inset-left));
}
.hidden { display: none !important; }
header {

17
manifest.webmanifest Normal file
View File

@ -0,0 +1,17 @@
{
"name": "Наша семья — портал Жанар",
"short_name": "Наша семья",
"description": "Семейный портал: обратный отсчёт до Батуми, чек-лист, гид, напоминания в WhatsApp",
"start_url": "./index.html",
"scope": "./",
"display": "standalone",
"orientation": "portrait",
"background_color": "#0c1733",
"theme_color": "#0c1733",
"lang": "ru",
"icons": [
{ "src": "icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
{ "src": "icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
{ "src": "icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
]
}