svrjs-nextjs-website/components/shared/Footer.tsx

108 lines
3.7 KiB
TypeScript
Raw Normal View History

2024-06-15 20:04:12 +02:00
import Image from "next/image";
2024-06-15 20:37:01 +02:00
import Link from "next/link";
2024-06-15 18:41:36 +02:00
import React from "react";
2024-06-15 20:04:12 +02:00
import Iconss from "../ui/icons";
2024-06-15 20:37:01 +02:00
import { FOOTERLINKS } from "@/constants";
import Logo from "./Logo";
2024-06-15 18:41:36 +02:00
const Footer = () => {
2024-07-28 11:02:06 +02:00
const currentYear = new Date().getFullYear();
2024-06-25 20:47:24 +02:00
return (
<>
<footer className="flex flex-col w-full transition-all bg-zinc-100 text-black dark:bg-[#0308033b] border-t dark:text-white">
2024-07-28 11:59:38 +02:00
<div className="px-6 md:px-12 lg:px-24 py-10 w-full mx-auto max-w-screen-2xl">
2024-06-25 20:47:24 +02:00
<div className="flex flex-col lg:flex-row justify-between max-lg:items-start max-md:items-center items-center mb-6 ">
<div className="flex items-center mb-6 lg:mb-0">
<Logo width={200} height={80} />
2024-06-25 20:47:24 +02:00
</div>
2024-07-28 11:59:38 +02:00
<div className="flex flex-col items-center md:items-start md:flex-row justify-between w-full lg:w-auto space-y-6 md:space-y-0 md:space-x-6 xl:space-x-16">
2024-06-25 20:47:24 +02:00
<div className="flex flex-col items-center md:items-start">
<div className="text-2xl font-light text-primary">
2024-07-28 11:59:38 +02:00
Quick Links
2024-06-25 20:47:24 +02:00
</div>
{FOOTERLINKS.otherPages.map((link) => (
<span key={link.href}>
<Link
href={link.href}
className="text-base font-light dark:hover:text-green-100/70 hover:text-green-500 hover:underline"
>
{link.label}
</Link>
</span>
))}
</div>
2024-07-28 11:59:38 +02:00
2024-06-25 20:47:24 +02:00
<div className="flex flex-col items-center md:items-start">
<h1 className="text-2xl font-light text-primary">Resources</h1>
{FOOTERLINKS.plans.map((link) => (
<span key={link.href}>
<Link
href={link.href}
className="text-base font-light dark:hover:text-green-100/70 hover:text-green-500 hover:underline"
>
{link.label}
</Link>
</span>
))}
</div>
2024-07-28 11:59:38 +02:00
<div className="flex flex-col items-center md:items-start">
<div className="text-2xl font-light text-primary">
Additional
</div>
{FOOTERLINKS.additional.map((link) => (
<span key={link.href}>
<Link
href={link.href}
className="text-base font-light dark:hover:text-green-100/70 hover:text-green-500 hover:underline"
>
{link.label}
</Link>
</span>
))}
</div>
2024-06-25 20:47:24 +02:00
<div className="flex flex-col items-center md:items-start">
<div className="text-2xl font-light text-primary">Social</div>
<p className="text-base font-light">
{FOOTERLINKS.social.supportText}
</p>
<div className="flex space-x-1 py-3">
<Iconss />
</div>
</div>
</div>
</div>
<div className="border-t mb-6 border-gray-300 dark:border-white/30"></div>
<div className="flex flex-col lg:flex-row justify-between items-center space-y-4 lg:space-y-0 px-4">
<span className="text-sm font-light">
2024-07-28 11:02:06 +02:00
Copyright © 2023-{currentYear}{" "}
2024-06-25 20:47:24 +02:00
<Link
2024-07-28 09:50:52 +02:00
href={FOOTERLINKS.footerBottom.rightsReserved.href}
2024-06-25 20:47:24 +02:00
className="text-primary font-semibold"
>
2024-07-28 09:50:52 +02:00
{FOOTERLINKS.footerBottom.rightsReserved.label}
2024-06-25 20:47:24 +02:00
</Link>
</span>
<span className="text-sm font-light">
<Link
2024-07-28 09:50:52 +02:00
href={FOOTERLINKS.footerBottom.termsofService.href}
className="text-primary font-medium transition-all underline-offset-4 hover:underline"
2024-06-25 20:47:24 +02:00
>
2024-07-28 09:50:52 +02:00
{FOOTERLINKS.footerBottom.termsofService.label}{" "}
</Link>
2024-07-28 11:02:06 +02:00
|{" "}
2024-07-28 09:50:52 +02:00
<Link
href={FOOTERLINKS.footerBottom.privacyPolicy.href}
className="text-primary font-medium transition-all underline-offset-4 hover:underline"
>
{FOOTERLINKS.footerBottom.privacyPolicy.label}
2024-06-25 20:47:24 +02:00
</Link>
</span>
</div>
</div>
</footer>
</>
);
2024-06-15 18:41:36 +02:00
};
export default Footer;