From 3d211e9121c758fd4cd631baf1c8fe0a6c7bb023 Mon Sep 17 00:00:00 2001 From: DEls Date: Sat, 12 Sep 2026 00:17:04 +0200 Subject: [PATCH] feat(clock): add /clock page with its own installable manifest --- public/clock.webmanifest | 17 +++++++++++++++++ src/app/clock/page.tsx | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 public/clock.webmanifest create mode 100644 src/app/clock/page.tsx diff --git a/public/clock.webmanifest b/public/clock.webmanifest new file mode 100644 index 0000000..6f5332b --- /dev/null +++ b/public/clock.webmanifest @@ -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" } + ] +} \ No newline at end of file diff --git a/src/app/clock/page.tsx b/src/app/clock/page.tsx new file mode 100644 index 0000000..8630136 --- /dev/null +++ b/src/app/clock/page.tsx @@ -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 ; +} \ No newline at end of file