forked from UKSOURCE/ipv6
feat: add partners carousel, update sponsor section, add Nasalization font
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import Link from "next/link";
|
||||
import { useLanguage } from "@/app/context/LanguageContext";
|
||||
|
||||
type SponsorHeroData = {
|
||||
eyebrow: string;
|
||||
@@ -9,7 +12,15 @@ type SponsorHeroData = {
|
||||
secondaryCta: { label: string; href: string };
|
||||
};
|
||||
|
||||
const PROSPECTUS_LINKS: Record<string, string> = {
|
||||
en: "https://drive.google.com/file/d/12uNVGFQ5ixuL2UwJpb6d-x-iuYjAt7Pc/view",
|
||||
vi: "https://drive.google.com/file/d/1YDpYwdWJHbxKa66u0Iq5PQ4aEaWgvkfI/view",
|
||||
};
|
||||
|
||||
export default function SponsorHero({ data }: { data: SponsorHeroData }) {
|
||||
const { lang } = useLanguage();
|
||||
const prospectusHref = PROSPECTUS_LINKS[lang] ?? PROSPECTUS_LINKS.en;
|
||||
|
||||
return (
|
||||
<section className="relative py-16 md:py-32 overflow-hidden text-center px-[var(--spacing-gutter)]">
|
||||
<div className="relative z-10 max-w-4xl mx-auto w-full">
|
||||
@@ -36,7 +47,9 @@ export default function SponsorHero({ data }: { data: SponsorHeroData }) {
|
||||
{/* CTAs */}
|
||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 md:gap-6">
|
||||
<Link
|
||||
href={data.primaryCta.href}
|
||||
href={prospectusHref}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="gold-gradient-bg text-on-primary px-10 py-4 rounded-xl font-bold uppercase tracking-widest text-xs md:text-sm shadow-xl shadow-primary/20 hover:shadow-primary/30 transition-all duration-300 active:scale-95 w-full sm:w-auto"
|
||||
>
|
||||
{data.primaryCta.label}
|
||||
|
||||
Reference in New Issue
Block a user