feat(clock): add /clock page with its own installable manifest

This commit is contained in:
DEls 2026-09-12 00:17:04 +02:00
parent 3236ba32ac
commit 3d211e9121
2 changed files with 33 additions and 0 deletions

17
public/clock.webmanifest Normal file
View file

@ -0,0 +1,17 @@
{
"name": "MEGA Clock",
"short_name": "Clock",
"description": "Scan a worker's badge to clock in or out.",
"theme_color": "#fdb13c",
"background_color": "#e8ebed",
"display": "standalone",
"orientation": "portrait",
"scope": "/clock",
"start_url": "/clock",
"id": "/clock",
"icons": [
{ "src": "/icons/clock-icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
{ "src": "/icons/clock-icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
{ "src": "/icons/clock-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
]
}

16
src/app/clock/page.tsx Normal file
View file

@ -0,0 +1,16 @@
import type { Metadata } from "next";
import { ClockView } from "./clock-view";
export const metadata: Metadata = {
title: "Clock · MEGA INFRASTRUCTURE",
manifest: "/clock.webmanifest",
appleWebApp: {
capable: true,
title: "Clock",
statusBarStyle: "default",
},
};
export default function ClockPage() {
return <ClockView />;
}