Skip to content

Commit

Permalink
feat: add frooter and imprint
Browse files Browse the repository at this point in the history
  • Loading branch information
dhommen committed Nov 13, 2023
1 parent e15630e commit e3effdb
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 1 deletion.
72 changes: 72 additions & 0 deletions src/app/components/footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
export default async function Footer() {
return (
<div>
<footer className="text-gray-800 w-4/5 mx-auto inter md:pt-24">
<div className="container px-5 py-24 mx-auto flex md:items-center lg:items-start md:flex-row md:flex-nowrap flex-wrap flex-col">
<div className="flex-grow flex flex-wrap -mb-10 md:mt-0 mt-10 md:text-left text-center">
<div className="lg:w-1/4 md:w-1/2 w-full px-4">
<h2 className="font-medium text-gray-900 text-base mb-3">
About
</h2>
<nav className="list-none mb-10 flex flex-col text-sm space-y-3 font-normal">
<li>
<a className="text-gray-600 hover:text-gray-800 cursor-pointer">
Me
</a>
</li>
</nav>
</div>
<div className="lg:w-1/4 md:w-1/2 w-full px-4">
<h2 className="font-medium text-gray-900 text-base mb-3">
Contact
</h2>
<nav className="list-none mb-10 flex flex-col space-y-3 text-sm font-normal">
<li>
<a className="text-gray-600 hover:text-gray-800 cursor-pointer">
Email
</a>
</li>
</nav>
</div>
<div className="lg:w-1/4 md:w-1/2 w-full px-4">
<h2 className="font-medium text-gray-900 text-base mb-3">
Legal
</h2>
<nav className="list-none mb-10 flex flex-col space-y-3 text-sm font-normal">
<li>
<a className="text-gray-600 hover:text-gray-800 cursor-pointer" href='/imprint'>
Imprint
</a>
</li>
<li>
<a className="text-gray-600 hover:text-gray-800 cursor-pointer">
Privacy
</a>
</li>
</nav>
</div>
</div>
</div>
</footer>
<div className="w-4/5 mx-auto py-2 md:mt-12 text-sm">
<hr className="h-px bg-gray-500 opacity-30 border-0 mb-4" />
<div className="flex items-center mx-auto text-gray-600 container justify-center md:justify-between py-2">
<div>
<span className="font-normal">
© Copyright 2023, All Rights Reserved{' '}
</span>
</div>
<a
className="items-center gap-2 hidden md:flex"
href="https://github.com/dhommen/dhommen.github.io"
rel="noopener noreferrer"
>
<span className="hover:underline focus-visible:underline">
Version: 1.0.0
</span>
</a>
</div>
</div>
</div>
)
}
27 changes: 27 additions & 0 deletions src/app/imprint/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export default function Imprint() {
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">
<section>
<h2>Website Owner</h2>
<p>Daniel Hommen</p>
<p>Email: [email protected]</p>
</section>

<section>
<h2>Responsible for Content</h2>
<p>Daniel Hommen</p>
<p>Email: [email protected]</p>
</section>

<section>
<h2>Disclaimer</h2>
<p>This website is for informational purposes only. The information is provided by Your Name and while we strive to keep the information up to date and correct, we make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, suitability, or availability with respect to the website or the information, products, services, or related graphics contained on the website for any purpose.</p>
</section>

<section>
<h2>Copyright Information</h2>
<p>&copy; 2023 Daniel Hommen - All Rights Reserved</p>
</section>
</main>
)
}
6 changes: 5 additions & 1 deletion src/app/layout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './globals.css'
import Footer from "@/app/components/footer"

export const metadata = {
title: 'Daniel Hommen',
Expand All @@ -8,7 +9,10 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>{children}</body>
<body>
{children}
<Footer />
</body>
</html>
)
}

0 comments on commit e3effdb

Please sign in to comment.