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:
1 parent
05487728a7
commit
e6c4ebff48
394 files changed
+3977
-37891
No files matched your search
@@ -1,40 +0,0 @@
|
||||
import { Link } from "react-router";
|
||||
|
||||
/**
|
||||
* ลิงก์เมนูใน header — ใช้ร่วมทั้งแถบเดสก์ท็อปและเมนูมือถือ
|
||||
* `variant` ต่างกันเพราะเดสก์ท็อปมีกรอบ/ไอคอนสถานะ active ส่วนเมนูมือถือเป็นรายการแนวตั้ง
|
||||
*/
|
||||
export function NavLink({
|
||||
to,
|
||||
label,
|
||||
isActive,
|
||||
variant,
|
||||
}: {
|
||||
to: string;
|
||||
label: string;
|
||||
isActive: boolean;
|
||||
variant: "bar" | "panel";
|
||||
}) {
|
||||
const className =
|
||||
variant === "bar"
|
||||
? `relative flex items-center rounded-lg border px-3 py-1.5 text-sm transition after:absolute after:-inset-y-2 after:-inset-x-0.5 after:content-[''] ${
|
||||
isActive
|
||||
? "border-[#A92626] bg-[#8F0808]/20 text-white"
|
||||
: "border-[#303030] text-[#B3B3B3] hover:border-[#A92626]/60 hover:text-white"
|
||||
}`
|
||||
: `flex min-h-11 items-center rounded-lg px-3 text-sm transition ${
|
||||
isActive
|
||||
? "bg-[#242424] text-white"
|
||||
: "text-[#B3B3B3] hover:bg-[#1B1B1B] hover:text-white"
|
||||
}`;
|
||||
|
||||
return (
|
||||
<Link
|
||||
to={to}
|
||||
aria-current={isActive ? "page" : undefined}
|
||||
className={className}
|
||||
>
|
||||
{label}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user