103 lines
4.1 KiB
TypeScript
103 lines
4.1 KiB
TypeScript
"use client";
|
|
import React from "react";
|
|
import Link from "next/link";
|
|
import { AiOutlineInstagram, AiOutlineFacebook } from "react-icons/ai";
|
|
import { FaTiktok } from "react-icons/fa";
|
|
import classnames from "classnames";
|
|
import { usePathname } from "next/navigation";
|
|
import Image from "next/image";
|
|
|
|
const Footer = () => {
|
|
const currentPath = usePathname();
|
|
const nav = [
|
|
{ label: "HOME", href: "/" },
|
|
{ label: "MENU", href: "/menu" },
|
|
{ label: "ABOUT", href: "/about-us" },
|
|
{ label: "CONTACT", href: "/contact" },
|
|
];
|
|
|
|
return (
|
|
<div className="bg-stone-900 w-full items-center justify-center md:h-[25vh] flex sm:h-[50svh] overflow-hidden">
|
|
<div className=" w-[60%] flex flex-col md:flex-row text-white justify-evenly leading-relaxed items-center text-center mx-auto relative h-full">
|
|
<div className="w-full h-full flex flex-col items-center justify-evenly relative">
|
|
<div className="h-1/2 w-full relative">
|
|
{/* logo */}
|
|
<Link href="/" className="">
|
|
<Image
|
|
src="/logo.svg"
|
|
fill
|
|
style={{ objectFit: "contain", objectPosition: "center" }}
|
|
alt="Logo"
|
|
quality={100}
|
|
/>
|
|
</Link>
|
|
</div>
|
|
<p className="flex flex-wrap w-[90%] relative items-center text-start justify-center text-base ">
|
|
Jefe's Mexican Cocina Y Cantina serves the best Mexican food in
|
|
Broken Arrow, OK.
|
|
</p>
|
|
</div>
|
|
|
|
<div className="flex-col w-full h-full items-center gap-4 relative top-4 md:flex hidden justify-center text-center">
|
|
<h2 className="text-xl font-semibold italic antialiased">Pages</h2>
|
|
<div className="bg-red-800 h-0.5 w-[20%]"></div>
|
|
<div className=" items-center justify-center h-full">
|
|
<ul className="flex flex-col text-base font-sans antialiased w-full leading-relaxed text-start pl-4">
|
|
{nav.map((link) => (
|
|
<Link
|
|
key={link.href}
|
|
// className={`${link.href === currentPath ? 'text-zinc-900' : 'text-zinc-500 hover:text-zinc-800'}`}
|
|
// replace with classnames object instead
|
|
className={classnames({
|
|
" text-white": link.href === currentPath,
|
|
"text-white": link.href !== currentPath,
|
|
"hover:text-red-800 hover:cursor-pointer": true,
|
|
})}
|
|
href={link.href}
|
|
>
|
|
{link.label}
|
|
</Link>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="flex flex-col w-full h-full items-center gap-4 top-4 relative ">
|
|
<h2 className="text-xl font-semibold italic antialiased">
|
|
Store Hours
|
|
</h2>
|
|
<div className="bg-red-800 h-0.5 w-[20%] "></div>
|
|
<div className="flex flex-col justify-center items-center text-white w-full text-start leading-relaxed text-sm">
|
|
<div className="flex flex-col pl-3 text-start">
|
|
<h3>Monday - Thursday:</h3>
|
|
<p>11:00am - 9:00pm</p>
|
|
</div>
|
|
<div className="flex flex-col text-start">
|
|
<h3>Friday - Saturday:</h3>
|
|
<p>11:00am - 9:30pm</p>
|
|
</div>
|
|
<div className="flex flex-col text-start">
|
|
<h3>Sunday:</h3>
|
|
<p>11:00am - 8:00pm</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="flex flex-col w-full h-full items-center gap-4 top-4 relative">
|
|
<h2 className="text-xl font-semibold italic antialiased">
|
|
Follow Us
|
|
</h2>
|
|
<div className="bg-red-800 h-0.5 w-[20%] "></div>
|
|
<div className="flex flex-row justify-evenly items-center text-white w-[60%] relative h-1/2">
|
|
<FaTiktok size={30} className="cursor-pointer" />
|
|
<AiOutlineInstagram size={30} className="cursor-pointer" />
|
|
<AiOutlineFacebook size={30} className="cursor-pointer" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Footer;
|