reboot alterflixhub
This commit is contained in:
commit
1e84023a44
188 files changed
+31629
No files matched your search
@@ -0,0 +1,55 @@
|
||||
import { Link } from "react-router";
|
||||
|
||||
import { Logo } from "@/components/site/Logo";
|
||||
import { footerIcon } from "@/components/site/footer-icons";
|
||||
import { useContent } from "@/lib/content-context";
|
||||
import { useI18n } from "@/lib/i18n";
|
||||
|
||||
/**
|
||||
* Footer ใช้คอนเทนเนอร์เดียวกับ <main> ของทุกหน้า (max-w-[1440px] + px เดียวกัน)
|
||||
* ขอบซ้าย/ขวาจึงตรงกับกริดการ์ดโรงหนังเป๊ะ ไม่ว่าหน้าจะแสดงการ์ดกี่ใบ
|
||||
*/
|
||||
export function SiteFooter() {
|
||||
const { site } = useContent();
|
||||
const { messages } = useI18n();
|
||||
|
||||
return (
|
||||
<footer className="relative z-10 mx-auto w-full max-w-[1440px] px-5 pb-6 md:px-[108px]">
|
||||
<div className="flex flex-col items-center gap-3 border-t border-white/10 pt-4 sm:flex-row sm:justify-between">
|
||||
<div className="flex items-center gap-4">
|
||||
<Logo size="sm" />
|
||||
<nav aria-label="เมนูล่าง" className="flex items-center gap-3 text-xs">
|
||||
<Link
|
||||
to="/about"
|
||||
className="text-[#B3B3B3] transition hover:text-white"
|
||||
>
|
||||
{messages.nav.about}
|
||||
</Link>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-wrap items-center justify-center gap-1.5">
|
||||
{site.footer.map((item) => {
|
||||
const Icon = footerIcon(item.icon_name);
|
||||
const isExternal = item.href.startsWith("http");
|
||||
return (
|
||||
<a
|
||||
key={item.id}
|
||||
href={item.href || "#"}
|
||||
aria-label={item.label}
|
||||
title={item.label}
|
||||
target={isExternal ? "_blank" : undefined}
|
||||
rel={isExternal ? "noreferrer" : undefined}
|
||||
className="flex size-8 items-center justify-center rounded-full bg-white/90 text-[#0D0D0D] transition hover:bg-white"
|
||||
>
|
||||
<Icon size={18} />
|
||||
</a>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
<p className="text-xs text-[#999]">Copyright © AlterFlixHub</p>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user