34 lines
1.5 KiB
TypeScript
34 lines
1.5 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Sarabun } from "next/font/google";
|
|
|
|
import "./globals.css";
|
|
|
|
/** typography audit 2026-09-16 (Option B): Sarabun — ฟอนต์ตระกูลมาตรฐานเอกสาร
|
|
* ราชการไทย (TH Sarabun) เจ้าหน้าที่คุ้นเคยที่สุด / next/font self-host ตอน build:
|
|
* ไฟล์ฟอนต์ serve จาก origin เดียวกับแอป ไม่พึ่ง Google ตอนรัน จึงใช้ใน intranet
|
|
* ได้ (แต่เครื่อง build ต้องเห็นอินเทอร์เน็ต) — โหลดเฉพาะ 2 weights ตามแผน
|
|
* ~100-160KB แลกกับการแสดงผลเหมือนกันทุกอุปกรณ์ รวมกล่อง TEXTBOX ที่ผูก
|
|
* stack นี้ (T1-C: wrap ข้อความตรงกันข้ามอุปกรณ์จริง) */
|
|
const sarabun = Sarabun({
|
|
subsets: ["thai", "latin"],
|
|
weight: ["400", "600"],
|
|
display: "swap",
|
|
variable: "--font-sarabun",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Judge's Note",
|
|
description: "ระบบ PDF Annotation สำหรับ e-Court",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="th" className={sarabun.variable}>
|
|
<body className="bg-slate-100 text-slate-900 antialiased">{children}</body>
|
|
</html>
|
|
);
|
|
}
|