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

87 lines
2.9 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";
2024-06-15 18:41:36 +02:00
const Footer = () => {
2024-06-15 20:04:12 +02:00
return (
2024-06-15 20:37:01 +02:00
<footer className="flex flex-col px-24 md:px-32 py-10 w-full bg-zinc-100 text-black dark:bg-[#00000738] dark:text-white border-t dark:border-none">
2024-06-15 20:04:12 +02:00
<div className="footop flex justify-around items-start mb-14">
<div className="flex items-center">
<Image
src="/logo.svg"
2024-06-15 20:37:01 +02:00
alt="logo"
2024-06-15 20:04:12 +02:00
width={200}
height={80}
className="dark:block hidden"
/>
<Image
src="/logodark.svg"
2024-06-15 20:37:01 +02:00
alt="logo"
2024-06-15 20:04:12 +02:00
width={200}
height={80}
className="dark:hidden block"
/>
</div>
<div className="footcolum1 flex flex-col items-start justify-center ">
<h1 className="foot-header font-[700] text-primary">Other Pages</h1>
2024-06-15 20:37:01 +02:00
{FOOTERLINKS.otherPages.map((link) => (
<h3 key={link.href}>
2024-06-15 20:42:44 +02:00
<Link
href={link.href}
className="dark:hover:text-green-100/70 hover:text-green-500"
>
2024-06-15 20:37:01 +02:00
{link.label}
</Link>
</h3>
))}
2024-06-15 20:04:12 +02:00
</div>
<div className="footcolum1 flex flex-col items-start justify-center">
<h1 className="foot-header text-primary">Plans</h1>
2024-06-15 20:37:01 +02:00
{FOOTERLINKS.plans.map((link) => (
<h3 key={link.href}>
2024-06-15 20:42:44 +02:00
<Link
href={link.href}
className="dark:hover:text-green-100/70 hover:text-green-500"
>
2024-06-15 20:37:01 +02:00
{link.label}
</Link>
</h3>
))}
2024-06-15 20:04:12 +02:00
</div>
<div className="footcolum1 flex flex-col items-start justify-center">
<h1 className="foot-header text-primary">Social</h1>
2024-06-15 20:37:01 +02:00
<p>{FOOTERLINKS.social.supportText}</p>
2024-06-15 20:04:12 +02:00
<div className="box-socials-foot flex py-5">
<Iconss />
</div>
</div>
</div>
2024-06-15 20:37:01 +02:00
<div className="line mb-6 border-t dark:border-white/30 border-gray-300"></div>
2024-06-15 20:04:12 +02:00
<div className="footbootom flex justify-between items-center">
<h4 className="text-sm max-md:hidden">
Designed and Developed by{" "}
2024-06-15 20:37:01 +02:00
<Link
href={FOOTERLINKS.footerBottom.designedBy.href}
className="text-primary font-semibold"
>
{FOOTERLINKS.footerBottom.designedBy.label}
</Link>
2024-06-15 20:04:12 +02:00
</h4>
<h4 className="text-sm">
All Rights Reserved{" "}
2024-06-15 20:37:01 +02:00
<Link
href={FOOTERLINKS.footerBottom.rightsReserved.href}
2024-06-15 20:04:12 +02:00
className="text-primary font-semibold"
>
2024-06-15 20:37:01 +02:00
{FOOTERLINKS.footerBottom.rightsReserved.label}
</Link>
2024-06-15 20:04:12 +02:00
</h4>
</div>
</footer>
);
2024-06-15 18:41:36 +02:00
};
export default Footer;