Skip to content

Commit

Permalink
Added a <Footer>
Browse files Browse the repository at this point in the history
  • Loading branch information
xannyxs committed Jan 25, 2024
1 parent 143cc36 commit ec249ca
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/app/app/(home)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import Image from 'next/image'
import HomePageNavbar from '@/components/Layout/HomePageNavbar'
import Footer from '@/components/Layout/Footer'

const Layout = async ({
children,
}: {
children: React.ReactNode
}) => {
return (
<div className="w-full ">
<div className="w-full">
<HomePageNavbar />
<div className="top-[74px] flex flex-col p-2 lg:p-4 overflow-scroll">
<div className="flex overflow-scroll flex-col p-2 lg:p-4 top-[74px]">
{children}
</div>
<Footer />
</div>
)
}
Expand Down
9 changes: 7 additions & 2 deletions packages/app/app/(vod)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import HomePageNavbar from '@/components/Layout/HomePageNavbar'
import Footer from '@/components/Layout/Footer'

const Layout = async ({
children,
}: {
children: React.ReactNode
}) => {
return (
<div className="w-screen h-screen max-w-screen-2xl mx-auto">
<div className="mx-auto w-screen max-w-screen-2xl h-screen">
<HomePageNavbar />
<div className=" flex flex-col p-2 lg:p-4 overflow-scroll">
<div className="flex overflow-scroll flex-col p-2 lg:p-4">
{children}
</div>
<div className="sticky mb-5 top-[100vh]">
<Footer />
</div>
</div>
)
}
Expand Down
54 changes: 54 additions & 0 deletions packages/app/components/Layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import Image from 'next/image'
import Link from 'next/link'

const items = {
about: {
item: 'About us',
href: 'https://info.streameth.org',
},
contact: {
item: 'Contact',
href: 'https://info.streameth.org/#team',
},
docs: {
item: 'Docs',
href: 'https://streameth.notion.site/a473a629420b4942904c851155a18c9b?v=4a29b97e7fd94bbbb38269cb808d3ac4',
},
privacy: {
item: 'Privacy',
href: '#',
},
terms: {
item: 'Terms',
href: 'https://streameth.notion.site/StreamETH-International-B-V-Terms-and-Conditions-4d6c7924134c4b2886bd171d2bad0966',
},
}

const Footer = () => {
const year = new Date().getFullYear()

return (
<footer className="flex justify-center items-center mb-5 z-[99999999]">
<Image
className="hidden lg:block"
src="/logo.png"
alt="Streameth logo"
width={30}
height={30}
/>
<div className="mx-2 text-sm text-black">
© {year} StreamETH International B.V.
</div>
{Object.entries(items).map(([key, { item, href }]) => (
<Link
key={key}
href={href}
className="mx-2 text-sm font-light text-black underline">
{item}
</Link>
))}
</footer>
)
}

export default Footer

0 comments on commit ec249ca

Please sign in to comment.