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

-61
View File
@@ -1,61 +0,0 @@
import { useState, type ReactNode } from "react";
import { Logo } from "@/components/site/Logo";
type PhotoImageProps = {
/** URL รูป — ว่าง/null = แสดง fallback ทันที */
src: string | null | undefined;
alt: string;
className?: string;
/** เนื้อหาที่แสดงแทนเมื่อไม่มีรูปหรือรูปโหลดไม่สำเร็จ (ค่าเริ่มต้น = โลโก้) */
fallback?: ReactNode;
/** ขนาดโลโก้ตอนใช้ fallback */
size?: "sm" | "md";
/** โหลดแบบ lazy (ปิดได้ถ้าเป็นรูป hero ที่ต้องเห็นทันที) */
lazy?: boolean;
};
/**
* รูปภาพที่มี fallback ในตัว
*
* ทำไมต้องมี: ข้อมูลโรงหนังอ้างรูปจากภายนอก (เช่น Google Maps) ซึ่งลิงก์หมดอายุได้
* และบางโฮสต์ตอบ **200 แต่ 0 ไบต์** → เบราว์เซอร์ขึ้นรูปแตก หน้าเว็บดูพัง
* คอมโพเนนต์นี้จะสลับไปใช้โลโก้แทนทันทีที่ `onError` ทำงาน (จำ src ที่พังไว้
* เพื่อให้เปลี่ยนรูปใหม่แล้วลองโหลดได้อีกครั้ง)
*/
export function PhotoImage({
src,
alt,
className = "",
fallback,
size = "md",
lazy = true,
}: PhotoImageProps) {
const [failedSrc, setFailedSrc] = useState<string | null>(null);
const usable =
typeof src === "string" && src.trim() !== "" && failedSrc !== src;
if (!usable) {
return (
<div
className={`flex items-center justify-center bg-[#242424] ${className}`}
role="img"
aria-label={alt}
>
{fallback ?? <Logo size={size} />}
</div>
);
}
return (
<img
src={src}
alt={alt}
className={`bg-[#242424] object-cover ${className}`}
loading={lazy ? "lazy" : "eager"}
decoding="async"
referrerPolicy="no-referrer"
onError={() => setFailedSrc(src)}
/>
);
}