Skip to content

Commit

Permalink
feat/add-footer
Browse files Browse the repository at this point in the history
Adds a footer component.
  • Loading branch information
rikhall1515 authored Apr 21, 2024
2 parents 49554e8 + c252b3c commit 1f642d0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { env } from "@/env/client";

export default function Footer() {
const year = new Date().getFullYear();
return (
<>
<footer className="relative flex min-h-[15rem] w-full justify-center py-6 text-white">
<div className="pxPage mx-auto w-full max-w-[103rem]">
<span className="mb-6 block text-2xl font-extrabold">
{env.NEXT_PUBLIC_SITE_NAME}
</span>
<div className="m:flex-row flex w-full flex-col items-start justify-between gap-6">
<div className="!w-[10rem] flex-shrink-0 text-sm text-black">
@ {year}{" "}
<a href="/" className="ml-1 hover:underline">
{env.NEXT_PUBLIC_SITE_NAME}
</a>
</div>
<ul className="flex flex-wrap text-sm text-black">
<li className="me-4 last:mr-0 md:mr-6">
<a href="/privacy">Privacy Policy</a>
</li>
<li className="me-4 last:mr-0 md:mr-6">
<a href="#">Customer Support</a>
</li>
<li className="me-4 last:mr-0 md:mr-6">
<a href="#">Privacy Settings</a>
</li>
<li className="me-4 last:mr-0 md:mr-6">
<a href="#">Terms</a>
</li>
</ul>
</div>
</div>
</footer>
</>
);
}

0 comments on commit 1f642d0

Please sign in to comment.