-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT]: Add legal pages and all related data ⚡
- translation - data - display on footer
- Loading branch information
1 parent
446f47c
commit f9d6078
Showing
4 changed files
with
146 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,108 @@ | ||
import Link from 'next/link'; | ||
import useTranslation from 'next-translate/useTranslation'; | ||
|
||
import { SocialLink } from './SocialLink'; | ||
import GalsenDevLogo from './svg/GalsenDevLogo'; | ||
|
||
const Footer = () => ( | ||
<footer | ||
aria-label="Site Footer" | ||
className="max-w-screen-xl px-4 pt-16 pb-8 mx-auto sm:px-6 lg:px-8 lg:pt-24" | ||
> | ||
<div className="pt-8 mt-16 border-t border-gray-100 text-center sm:text-left"> | ||
<div className="mb-8 inline-flex items-center gap-4 sm:mb-0"> | ||
<GalsenDevLogo /> | ||
<h2 className="text-gray-900 text-3xl">Galsen DEV</h2> | ||
<Link | ||
className="inline-flex max-w-fit items-center gap-2 text-md hover:text-gray-600/75 text-gray-900" | ||
href="https://galsendev.openstatus.dev" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
↗ Status | ||
<span className="relative flex h-2 w-2"> | ||
<span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-75 duration-1000" /> | ||
<span className="relative inline-flex h-2 w-2 rounded-full bg-green-600" /> | ||
</span> | ||
</Link> | ||
</div> | ||
const Footer = () => { | ||
const { t } = useTranslation('common'); | ||
|
||
const links = [ | ||
{ name: t('navbar.policy'), path: '/policy' }, | ||
{ name: t('navbar.privacy'), path: '/privacy' }, | ||
{ name: t('navbar.terms'), path: '/terms' }, | ||
]; | ||
|
||
return ( | ||
<footer | ||
aria-label="Site Footer" | ||
className="max-w-screen-xl px-4 pt-4 pb-8 mx-auto sm:px-6 lg:px-8 lg:pt-16" | ||
> | ||
<div className="pt-4 mt-4 border-t border-gray-100 text-center sm:text-left"> | ||
<div className="mb-8 inline-flex items-center gap-4 sm:mb-0"> | ||
<GalsenDevLogo /> | ||
<h2 className="text-gray-900 text-3xl">Galsen DEV</h2> | ||
<Link | ||
className="inline-flex max-w-fit items-center gap-2 text-md hover:text-gray-600/75 text-gray-900" | ||
href="https://galsendev.openstatus.dev" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
↗ Status | ||
<span className="relative flex h-2 w-2"> | ||
<span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-75 duration-1000" /> | ||
<span className="relative inline-flex h-2 w-2 rounded-full bg-green-600" /> | ||
</span> | ||
</Link> | ||
</div> | ||
|
||
<div className="sm:mt-8 sm:flex sm:justify-between sm:items-center"> | ||
<ul className="mb-8 flex flex-wrap justify-center gap-6 sm:mb-0 sm:order-2 lg:justify-end"> | ||
<li> | ||
<SocialLink name="discord" src="https://discord.gg/CKZcKqf" /> | ||
</li> | ||
<li> | ||
<SocialLink name="telegram" src="https://t.me/s/galsendev221" /> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="whatsapp" | ||
src="https://chat.whatsapp.com/EzigxN1N2bZBdxooqaH2Gr" | ||
className="h-7 w-7" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink name="twitter" src="https://twitter.com/galsendev221" /> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="instagram" | ||
src="https://instagram.com/galsendev221" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="facebook" | ||
src="https://facebook.com/galsendev221" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="youtube" | ||
src="https://youtube.com/@GalsenDev221" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink name="github" src="https://github.com/GalsenDev221" /> | ||
</li> | ||
</ul> | ||
<div className="sm:mt-8 sm:flex sm:justify-between sm:items-center"> | ||
<ul className="mb-8 flex flex-wrap justify-center gap-6 sm:mb-0 sm:order-2 lg:justify-end"> | ||
<li> | ||
<SocialLink name="discord" src="https://discord.gg/CKZcKqf" /> | ||
</li> | ||
<li> | ||
<SocialLink name="telegram" src="https://t.me/s/galsendev221" /> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="whatsapp" | ||
src="https://chat.whatsapp.com/EzigxN1N2bZBdxooqaH2Gr" | ||
className="h-7 w-7" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="twitter" | ||
src="https://twitter.com/galsendev221" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="instagram" | ||
src="https://instagram.com/galsendev221" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="facebook" | ||
src="https://facebook.com/galsendev221" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink | ||
name="youtube" | ||
src="https://youtube.com/@GalsenDev221" | ||
/> | ||
</li> | ||
<li> | ||
<SocialLink name="github" src="https://github.com/GalsenDev221" /> | ||
</li> | ||
</ul> | ||
|
||
<span className="text-gray-400"> | ||
Copyright, {new Date().getFullYear()} | ||
</span> | ||
<span className="text-gray-400"> | ||
Copyright, 2023 - {new Date().getFullYear()} | ||
</span> | ||
|
||
<span className="text-gray-900"> | ||
<ul className="flex items-center gap-6 text-sm"> | ||
{links.map((item, index) => ( | ||
<li key={index}> | ||
<Link | ||
key={index} | ||
href={item.path} | ||
className="transition hover:text-gray-400" | ||
> | ||
{item.name} | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Header from '@/components/Header'; | ||
import useTranslation from 'next-translate/useTranslation'; | ||
|
||
import LegalPolicy from '@/components/legal/LegalPolicy'; | ||
|
||
export default function Gallery() { | ||
const { t, lang } = useTranslation('common'); | ||
return ( | ||
<> | ||
<Header header={t('policy.header')} /> | ||
<div className="px-4 mt-4 mx-auto max-w-lg md:max-w-3xl lg:max-w-screen-xl sm:px-6 lg:px-8"> | ||
<LegalPolicy /> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Header from '@/components/Header'; | ||
import useTranslation from 'next-translate/useTranslation'; | ||
|
||
import LegalPrivacy from '@/components/legal/LegalPrivacy'; | ||
|
||
export default function Gallery() { | ||
const { t, lang } = useTranslation('common'); | ||
return ( | ||
<> | ||
<Header header={t('privacy.header')} /> | ||
<div className="px-4 mt-4 mx-auto max-w-lg md:max-w-3xl lg:max-w-screen-xl sm:px-6 lg:px-8"> | ||
<LegalPrivacy /> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Header from '@/components/Header'; | ||
import useTranslation from 'next-translate/useTranslation'; | ||
|
||
import LegalTerms from '@/components/legal/LegalTerms'; | ||
|
||
export default function Gallery() { | ||
const { t, lang } = useTranslation('common'); | ||
return ( | ||
<> | ||
<Header header={t('terms.header')} /> | ||
<div className="px-4 mt-4 mx-auto max-w-lg md:max-w-3xl lg:max-w-screen-xl sm:px-6 lg:px-8"> | ||
<LegalTerms /> | ||
</div> | ||
</> | ||
); | ||
} |