Skip to content

Commit

Permalink
adding footer
Browse files Browse the repository at this point in the history
  • Loading branch information
IslemMedjahdi committed Feb 4, 2023
1 parent 7e66190 commit 927ee79
Show file tree
Hide file tree
Showing 3 changed files with 144 additions and 2 deletions.
125 changes: 123 additions & 2 deletions src/components/layout/footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,126 @@
const Footer = () => {
return <div className="bg-gray-50 pt-10"></div>;
import Image from "next/image";
import Link from "next/link";
import React from "react";
import { ICONS } from "../../../constants/icons";
import { IMAGES } from "../../../constants/images";
import { INFO } from "../../../constants/info";
import { ROUTES } from "../../../constants/routes";

const Footer: React.FC = () => {
return (
<div className="mt-20 flex w-full justify-center bg-blue-dark">
<div className="container grid grid-cols-1 gap-x-4 gap-y-8 px-6 py-16 sm:grid-cols-2 lg:grid-cols-4">
<div className="flex flex-col gap-y-4">
<div className="flex h-16 items-center gap-x-4 text-white">
<Link
href={ROUTES.HOME.path}
className="flex cursor-pointer flex-wrap items-baseline gap-2"
>
<Image
src={IMAGES.Logo}
alt="logo"
width={50}
height={50}
className="brightness-0 invert"
/>
<h1 className="hidden whitespace-nowrap font-serif text-xl font-bold text-white md:flex">
{INFO.Title}
</h1>
</Link>
</div>
<div className="flex gap-x-4">
<ICONS.LOCATION className="text-2xl text-white" />
<p className="text-sm text-white">{INFO.adress}</p>
</div>
<div className="flex gap-x-4">
<ICONS.EMAIL className="text-lg text-white" />
<a href={`mailto:${INFO.email}`} className="text-sm text-white">
{INFO.email}
</a>
</div>
<div className="flex gap-x-4">
<ICONS.PHONE className="text-lg text-white" />
<a href={`tel:${INFO.phone_number}`} className="text-sm text-white">
{INFO.phone_number}
</a>
</div>
</div>
<div className="flex flex-col gap-y-4">
<div className="flex items-center md:h-16">
<p className="font-medium text-white">Useful Links</p>
</div>
<div className="flex flex-col gap-y-4">
<a
href="#"
className="relative w-fit text-sm text-white after:absolute after:left-0 after:top-full after:h-0.5 after:w-full after:scale-x-0 after:bg-white after:transition hover:after:scale-x-100"
>
Career
</a>
<a
className="relative w-fit text-sm text-white after:absolute after:left-0 after:top-full after:h-0.5 after:w-full after:scale-x-0 after:bg-white after:transition hover:after:scale-x-100"
href="#"
>
Terms & Conditions
</a>
<a
href="#contact-us"
className="relative w-fit text-sm text-white after:absolute after:left-0 after:top-full after:h-0.5 after:w-full after:scale-x-0 after:bg-white after:transition hover:after:scale-x-100"
>
Contact Us
</a>
<a
href="#"
className="relative w-fit text-sm text-white after:absolute after:left-0 after:top-full after:h-0.5 after:w-full after:scale-x-0 after:bg-white after:transition hover:after:scale-x-100"
>
CITC Regulations
</a>
<a
href="#"
className="relative w-fit text-sm text-white after:absolute after:left-0 after:top-full after:h-0.5 after:w-full after:scale-x-0 after:bg-white after:transition hover:after:scale-x-100"
>
Yalidine APIs
</a>
</div>
</div>

<div className="flex flex-col gap-y-4">
<div className="flex items-center md:h-16">
<p className="text-white">Follow us</p>
</div>
<div className="flex items-center gap-4 text-2xl text-white">
<a
href={INFO.social_media_links.facebook}
target={"_blank"}
rel="noreferrer"
>
<ICONS.FACEBOOK />
</a>
<a
href={INFO.social_media_links.instagram}
target={"_blank"}
rel="noreferrer"
>
<ICONS.INSTAGRAM />
</a>
<a
href={INFO.social_media_links.youtube}
target={"_blank"}
rel="noreferrer"
>
<ICONS.YOUTUBE />
</a>
<a
href={INFO.social_media_links.linkedin}
target={"_blank"}
rel="noreferrer"
>
<ICONS.LINKEDIN />
</a>
</div>
</div>
</div>
</div>
);
};

export default Footer;
12 changes: 12 additions & 0 deletions src/constants/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
BsCursorText,
BsDiagram3,
BsEnvelope,
BsEnvelopeFill,
BsEye,
BsFolder,
BsGear,
Expand All @@ -19,11 +20,14 @@ import {
BsPersonX,
BsPinMap,
BsSearch,
BsTelephoneFill,
BsTrash,
BsWindow,
} from "react-icons/bs";
import { FaFacebook, FaInstagram, FaLinkedin, FaYoutube } from "react-icons/fa";
import { FiMenu } from "react-icons/fi";
import { IoMdPricetag, IoMdSend } from "react-icons/io";
import { MdLocationPin } from "react-icons/md";

export const ICONS = {
MENU: FiMenu,
Expand Down Expand Up @@ -51,4 +55,12 @@ export const ICONS = {
Admin: BsWindow,
Scrap: BsDiagram3,
Users: BsPeopleFill,
EMAIL: BsEnvelopeFill,
LOCATION: MdLocationPin,
PHONE: BsTelephoneFill,

FACEBOOK: FaFacebook,
YOUTUBE: FaYoutube,
LINKEDIN: FaLinkedin,
INSTAGRAM: FaInstagram,
};
9 changes: 9 additions & 0 deletions src/constants/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ export const INFO = {
"Location",
"Location pour vacances",
] as Announcement.Category[],
adress: "Dar El-Baida, office 2, 10000, Algiers, Algeria",
email: "[email protected]",
phone_number: "+213 559 59 41 60",
social_media_links: {
facebook: "#",
instagram: "#",
linkedin: "#",
youtube: "#",
},
};

0 comments on commit 927ee79

Please sign in to comment.