import type { ReactNode } from "react"; import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"; import type { Route } from "./+types/root"; import "./app.css"; export const links: Route.LinksFunction = () => [ { rel: "icon", href: "/favicon.svg", type: "image/svg+xml" }, // 본문 서체 프리로드 — 프리렌더된 첫 화면의 FOUT 최소화 { rel: "preload", href: "/fonts/PretendardVariable.woff2", as: "font", type: "font/woff2", crossOrigin: "anonymous" }, /* 영문 디스플레이 서체는 self-host 한다(latin 서브셋 39KB). 구글 폰트 CDN 을 쓰면 서드파티 요청이 LCP 를 흔들고 방문자 IP 가 외부로 나간다. preload 는 걸지 않는다 — 라벨 전용이라 폴드 위 렌더를 막을 이유가 없다. */ ]; export function Layout({ children }: { children: ReactNode }) { return (