Files
web-at-transit/frontend/src/app/layout.tsx
T
phattaranun.a 9ba7113017 feat(ui): port design UI + static assets from web-at-transit-mock
- copy .image assets to frontend/public/images (logo, hero map,
  partner logos, route/stop photos, qrcode, landmarks)
- add K2D fonts (offline local woff2) in frontend/public/fonts
- add Lucide icon components (Icons.tsx); replace all emoji icons
- add lib/images.ts static asset resolver (route/stop/partner/logo)
- header/footer/home: minibus logo, hero map bg, partner marquee
- route detail: design car/hero photo; stop detail: design stop photo
- .gitignore: un-ignore frontend/public/images + app icons so the
  frontend Docker build ships the assets
2026-10-10 16:32:03 +07:00

39 lines
1.4 KiB
TypeScript

import "./globals.css";
import type { Metadata, Viewport } from "next";
import { Header } from "@/components/Header";
import { Footer } from "@/components/Footer";
export const metadata: Metadata = {
title: "Atroute — สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง",
description:
"ค้นหาเส้นทาง ตารางเดินรถ และจุดจอดในจังหวัดอ่างทองและจังหวัดใกล้เคียง",
icons: {
icon: [{ url: "/images/icons/minibus-512x512.png", sizes: "512x512", type: "image/png" }],
apple: [{ url: "/images/icons/minibus-192x192.png", sizes: "192x192", type: "image/png" }],
},
};
export const viewport: Viewport = {
themeColor: "#7a4cc0",
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="th">
<head>
{/* K2D (offline, local woff2 — ตรงกับ design) + Noto/Prompt fallback (CDN) */}
<link rel="stylesheet" href="/fonts/k2d.css" />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Prompt:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<Header />
{children}
<Footer />
</body>
</html>
);
}