chore(publish): replace source tree with static export at repo root

Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.

Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
This commit is contained in:
Bkk1234 committed 2026-11-22 22:24:36 +07:00
1 parent 05487728a7
commit e6c4ebff48
394 files changed
+3977 -37891

No files matched your search

-75
View File
@@ -1,75 +0,0 @@
import { Link, useLocation } from "react-router";
import { LocaleSwitcher } from "@/components/site/LocaleSwitcher";
import { Logo } from "@/components/site/Logo";
import { NavLink } from "@/components/site/NavLink";
import { useI18n } from "@/lib/i18n";
/**
* Header: โลโก้ชิดซ้าย · ด้านขวาเป็น [เกี่ยวกับเรา] + [ปุ่มภาษา TH/EN]
* ไม่มีเมนู "หน้าแรก" — กลับหน้าแรกได้ด้วยการกดโลโก้
*/
export function SiteHeader() {
const { messages } = useI18n();
const { pathname } = useLocation();
// เมนูหลัก: หน้าเฉพาะกลุ่มมาก่อน แล้วปิดท้ายด้วย "เกี่ยวกับเรา"
const links: Array<{ to: string; label: string }> = [
{ to: "/for-film-lovers", label: messages.nav.forFilmLovers },
{ to: "/for-cinemas", label: messages.nav.forCinemas },
{ to: "/about", label: messages.nav.about },
];
return (
<header className="fx-drop relative z-10 mx-auto flex h-[68px] w-full max-w-[1440px] items-center justify-between gap-3 px-5 md:px-[108px]">
<Link
to="/"
aria-label={`AlterFlixHub — ${messages.nav.home}`}
className="shrink-0"
>
<Logo />
</Link>
<div className="flex items-center gap-1.5 sm:gap-2">
{/* มือถือ: เมนูพับ (ใช้ <details> เนทีฟ — คีย์บอร์ด/ปิดด้วย Esc ได้เอง) */}
<details className="group relative sm:hidden">
<summary className="flex min-h-10 cursor-pointer list-none items-center rounded-lg border border-[#303030] px-3 text-sm text-[#B3B3B3] transition hover:border-[#A92626]/60 hover:text-white [&::-webkit-details-marker]:hidden">
{messages.nav.menu}
</summary>
<nav
aria-label={messages.nav.menu}
className="absolute right-0 top-[calc(100%+8px)] z-20 flex w-[220px] flex-col gap-1 rounded-xl border border-[#303030] bg-[#141414] p-2 shadow-lg"
>
{links.map((link) => (
<NavLink
key={link.to}
to={link.to}
label={link.label}
isActive={pathname.startsWith(link.to)}
variant="panel"
/>
))}
</nav>
</details>
{/* เดสก์ท็อป: ลิงก์ตรงทั้งสามหน้า */}
<nav
aria-label={messages.nav.menu}
className="hidden items-center gap-2 sm:flex"
>
{links.map((link) => (
<NavLink
key={link.to}
to={link.to}
label={link.label}
isActive={pathname.startsWith(link.to)}
variant="bar"
/>
))}
</nav>
<LocaleSwitcher />
</div>
</header>
);
}