added PWA capability

This commit is contained in:
2025-06-04 18:25:22 -07:00
parent 7067dae78a
commit 5f48c88106
5 changed files with 30 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
node_modules/ node_modules/
positions.db positions.db
.DS_Store

BIN
public/icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
public/icon-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

View File

@@ -5,6 +5,13 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"/> <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<title>Cuberoo</title> <title>Cuberoo</title>
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
<!-- Add manifest and icons for PWA support -->
<link rel="manifest" href="manifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="Cuberoo">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="icon-192.png">
<meta name="theme-color" content="#181818">
</head> </head>
<body> <body>
<header class="header"> <header class="header">

21
public/manifest.json Normal file
View File

@@ -0,0 +1,21 @@
{
"name": "Cuberoo",
"short_name": "Cuberoo",
"start_url": ".",
"display": "standalone",
"background_color": "#800080",
"theme_color": "#800080",
"description": "Cubes, but fun.",
"icons": [
{
"src": "icon-192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "icon-512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}