|
| 1 | +import Image from "next/image"; |
| 2 | +import Link from "next/link"; |
| 3 | +import { useRouter } from "next/router"; |
| 4 | +import * as React from "react"; |
| 5 | +import { FaFacebookF, FaInstagram } from "react-icons/fa"; |
| 6 | + |
| 7 | +export default function Footer() { |
| 8 | + const router = useRouter(); |
| 9 | + type NavLink = { |
| 10 | + label: string; |
| 11 | + href: string; |
| 12 | + }; |
| 13 | + const navlinks: NavLink[] = [ |
| 14 | + { label: "Home", href: "/" }, |
| 15 | + { label: "Schedule", href: "/schedule" }, |
| 16 | + { label: "Format & Rules", href: "/format-rules" }, |
| 17 | + { label: "Guests & Sponsors", href: "/guests-sponsors" }, |
| 18 | + { label: "Leaderboard", href: "/leaderboard" }, |
| 19 | + ]; |
| 20 | + return ( |
| 21 | + <footer className="bg-dark px-6 py-12 text-light"> |
| 22 | + <div className="mx-auto max-w-7xl"> |
| 23 | + {/* Main content with horizontal line */} |
| 24 | + <div className="stroke-3 grid w-full grid-cols-1 gap-y-8 border-b border-secondary pb-8 pr-5 sm:grid-cols-2 lg:grid-cols-[35%_20%_30%_15%]"> |
| 25 | + {/* Logo */} |
| 26 | + <div className="pr-10"> |
| 27 | + <h2 className="ft-subtitle mb-5">Event Organizers</h2> |
| 28 | + <Image |
| 29 | + className="mb-5 object-contain pr-8" |
| 30 | + src="/images/aicode_logo_HD.png" |
| 31 | + alt="AICODE Logo" |
| 32 | + width={282} |
| 33 | + height={55} |
| 34 | + /> |
| 35 | + <Image |
| 36 | + className="mb-5 object-contain pr-8" |
| 37 | + src="https://squadrone.com.au/wp-content/uploads/2024/11/squadrone-logo-01-scaled.webp" |
| 38 | + alt="Squadrone Logo" |
| 39 | + width={160} |
| 40 | + height={56} |
| 41 | + /> |
| 42 | + </div> |
| 43 | + |
| 44 | + {/* Pages */} |
| 45 | + <div className="pr-10"> |
| 46 | + <h3 className="ft-subtitle mb-3">Quick Links</h3> |
| 47 | + <ul className="ft-content mb-2 space-y-4"> |
| 48 | + {navlinks.map((link) => ( |
| 49 | + <li key={link.label}> |
| 50 | + <Link |
| 51 | + href={link.href} |
| 52 | + className={ |
| 53 | + router.pathname === link.href |
| 54 | + ? "nav-link-active" |
| 55 | + : "nav-link-footer" |
| 56 | + } |
| 57 | + > |
| 58 | + {link.label} |
| 59 | + </Link> |
| 60 | + </li> |
| 61 | + ))} |
| 62 | + </ul> |
| 63 | + </div> |
| 64 | + |
| 65 | + {/* Contact Info */} |
| 66 | + <div className="pr-10"> |
| 67 | + <h3 className="ft-subtitle mb-3">Contact Info</h3> |
| 68 | + <p className="ft-content mb-2 text-light"> |
| 69 | + Email: |
| 70 | + <br /> |
| 71 | + <a |
| 72 | + href="mailto:info@youthdronetournament.com.au" |
| 73 | + className="ft-content break-all underline hover:text-primary" |
| 74 | + > |
| 75 | + info@youthdronetournament.com.au |
| 76 | + </a> |
| 77 | + </p> |
| 78 | + <p className="ft-content mb-2"> |
| 79 | + Venue: |
| 80 | + <br /> |
| 81 | + Melbourne Convention Centre |
| 82 | + <br /> |
| 83 | + 1 Convention Centre Pl |
| 84 | + <br /> |
| 85 | + South Wharf VIC 3006 |
| 86 | + </p> |
| 87 | + </div> |
| 88 | + |
| 89 | + {/* Socials */} |
| 90 | + <div className="pr-5"> |
| 91 | + <h3 className="ft-subtitle mb-5">Follow Us</h3> |
| 92 | + <div className="mb-5 flex gap-4"> |
| 93 | + <a |
| 94 | + href="https://www.facebook.com/people/Squadrone/100094782254912/" |
| 95 | + className="flex h-10 w-10 items-center justify-center rounded-full border border-white text-white transition hover:border-primary hover:text-primary" |
| 96 | + > |
| 97 | + <FaFacebookF size={18} /> |
| 98 | + </a> |
| 99 | + <a |
| 100 | + href="https://www.instagram.com/au.Squadrone/#" |
| 101 | + className="flex h-10 w-10 items-center justify-center rounded-full border border-white text-white transition hover:border-primary hover:text-primary" |
| 102 | + > |
| 103 | + <FaInstagram size={18} /> |
| 104 | + </a> |
| 105 | + </div> |
| 106 | + <p className="ft-content text-sm text-light"> |
| 107 | + Stay updated with the latest news and highlights from the |
| 108 | + tournament |
| 109 | + </p> |
| 110 | + </div> |
| 111 | + </div> |
| 112 | + |
| 113 | + {/* Centered copyright below the line */} |
| 114 | + <p className="ft-content pt-2 text-center text-sm text-light"> |
| 115 | + Copyright © 2025 Australia Youth Drone Tournament. All Rights |
| 116 | + Reserved. |
| 117 | + </p> |
| 118 | + </div> |
| 119 | + </footer> |
| 120 | + ); |
| 121 | +} |
0 commit comments