Skip to content

Commit

Permalink
feat(frontend): ✨ Add footer styling and content (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Thrane authored and GitHub committed Jan 29, 2024
1 parent 6b7e1ae commit 6ac01c5
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 3 deletions.
67 changes: 65 additions & 2 deletions frontend/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,70 @@
import Image from "next/image";

export default function Footer() {
return (
<footer className="bg-gray-200 p-4 dark:bg-gray-600">
<h1>Footer</h1>
<footer className="p-4 bg-slate-700 dark:bg-slate-500 text-white flex flex-col items-center">
<div className="flex flex-row items-center justify-between w-full">
<div className="flex-1 flex justify-start">
<Image
src={
"https://www.ntnu.edu/o/ntnu-theme/images/logo_ntnu_tag_english.svg"
}
alt={"NTNU"}
width={200}
height={50}
/>
</div>

<div className="flex-1 flex justify-center">
<div className="flex flex-col text-center">
<div className="flex flex-row gap-4">
<a href="#" className="hover:underline">
Twitter
</a>
<a href="#" className="hover:underline">
Facebook
</a>
<a href="#" className="hover:underline">
Instagram
</a>
<a href="#" className="hover:underline">
Youtube
</a>
</div>
<p>&copy; 2021 NTNU Small Satellite Lab</p>
</div>
</div>

<div className="flex-1 flex justify-end">
<div className="flex flex-col text-right">
<span className="text-white">
NTNU Small Satellite Lab
</span>
<span className="text-white">Trondheim, Norway</span>
</div>
</div>
</div>

<hr className="my-4 w-full" />

<div className="text-center">
<p>Norwegian University of Science and Technology</p>
</div>

<div className="mt-4 flex flex-col text-center">
<a href="#" className="hover:underline">
Use of cookies
</a>
<a href="#" className="hover:underline">
Accessibility statement (in Norwegian)
</a>
<a href="#" className="hover:underline">
Privacy policy
</a>
<a href="#" className="hover:underline">
Editorial responsibility
</a>
</div>
</footer>
);
}
2 changes: 1 addition & 1 deletion frontend/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function Navbar() {
const { setTheme } = useTheme();

return (
<nav className="flex items-center justify-between p-4 bg-slate-700 text-white w-full">
<nav className="flex items-center justify-between p-4 bg-slate-700 dark:bg-slate-500 text-white w-full">
<div>
<Link href="/">
<Button variant={getButtonVariant("/")}>Logo</Button>
Expand Down

0 comments on commit 6ac01c5

Please sign in to comment.