Skip to content

Commit

Permalink
Merge pull request #57 from Vero-Ventures/feature/prettier-landing-page
Browse files Browse the repository at this point in the history
Separates footer component from web page for other use
  • Loading branch information
mai-vu authored May 17, 2024
2 parents 387ea56 + add5229 commit 56a4762
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 31 deletions.
33 changes: 2 additions & 31 deletions src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import React from 'react';
import { useUser } from '@auth0/nextjs-auth0/client';
import { redirect } from 'next/navigation';
import Navbar from '@/components/ui/navbar';
import Footer from '@/components/ui/footer';

export default function Component() {
const { user, error } = useUser();
Expand Down Expand Up @@ -108,37 +109,7 @@ export default function Component() {
</div>
</section>
</main>
<footer className="bg-gray-900 p-6 md:py-12 w-full text-gray-50">
<div className="container max-w-7xl grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-8 text-sm">
<div className="grid gap-1">
<h3 className="font-semibold">Company</h3>
<Link href="#">About Us</Link>
<Link href="#">Our Team</Link>
<Link href="#">Careers</Link>
<Link href="#">News</Link>
</div>
<div className="grid gap-1">
<h3 className="font-semibold">Job Sites</h3>
<Link href="#">Indigenous</Link>
<Link href="#">New Comers</Link>
<Link href="#">People with Disabilities</Link>
<Link href="#">Vulnerable Youth</Link>
<Link href="#">Asylum-Refugees</Link>
</div>
<div className="grid gap-1">
<h3 className="font-semibold">Legal</h3>
<Link href="#">Privacy Policy</Link>
<Link href="#">Terms of Service</Link>
<Link href="#">Cookie Policy</Link>
</div>
<div className="grid gap-1">
<h3 className="font-semibold">Contact</h3>
<Link href="#">Support</Link>
<Link href="#">Sales</Link>
<Link href="#">Partnerships</Link>
</div>
</div>
</footer>
<Footer />
</div>
);
}
40 changes: 40 additions & 0 deletions src/components/ui/footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from 'react';
import Link from 'next/link';

function Footer() {
return (
<footer className="bg-gray-900 p-6 md:py-12 w-full text-gray-50">
<div className="container max-w-7xl grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-8 text-sm">
<div className="grid gap-1">
<h3 className="font-semibold">Company</h3>
<Link href="#">About Us</Link>
<Link href="#">Our Team</Link>
<Link href="#">Careers</Link>
<Link href="#">News</Link>
</div>
<div className="grid gap-1">
<h3 className="font-semibold">Job Sites</h3>
<Link href="#">Indigenous</Link>
<Link href="#">New Comers</Link>
<Link href="#">People with Disabilities</Link>
<Link href="#">Vulnerable Youth</Link>
<Link href="#">Asylum-Refugees</Link>
</div>
<div className="grid gap-1">
<h3 className="font-semibold">Legal</h3>
<Link href="#">Privacy Policy</Link>
<Link href="#">Terms of Service</Link>
<Link href="#">Cookie Policy</Link>
</div>
<div className="grid gap-1">
<h3 className="font-semibold">Contact</h3>
<Link href="#">Support</Link>
<Link href="#">Sales</Link>
<Link href="#">Partnerships</Link>
</div>
</div>
</footer>
);
}

export default Footer;

0 comments on commit 56a4762

Please sign in to comment.