Skip to content

Commit 6b1e63d

Browse files
authored
Update: Develop the new footer design (#137)
* Update: Develop the new footer design * add substack * fix padding
1 parent f8174fc commit 6b1e63d

File tree

1 file changed

+32
-29
lines changed

1 file changed

+32
-29
lines changed

app/[lang]/(hyperjump)/components/footer.tsx

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type FooterProps = { lang: SupportedLanguage };
1111

1212
export default function Footer({ lang }: FooterProps) {
1313
return (
14-
<footer className="relative overflow-hidden px-4 py-10 text-white md:px-20 md:py-14 xl:px-0">
14+
<footer className="relative overflow-hidden px-4 py-14 text-white md:px-20 md:py-10 xl:px-0">
1515
<div className="absolute inset-0 z-0">
1616
<Image
1717
src="/images/swatch.svg"
@@ -25,36 +25,39 @@ export default function Footer({ lang }: FooterProps) {
2525
/>
2626
</div>
2727

28-
<div className="relative z-20 container mx-auto px-4">
29-
<div className="flex flex-col space-y-6 md:items-center">
30-
<div className="flex items-center">
31-
<Link href={`/${lang}`}>
32-
<Image
33-
src="/images/hyperjump-white.png"
34-
alt="Hyperjump Logo"
35-
width={187}
36-
height={32}
37-
className="h-8 w-auto"
38-
/>
39-
</Link>
40-
</div>
41-
42-
<p className="max-w-md text-sm text-[#C7CDCD]">{mainFooter(lang)}</p>
28+
<div className="relative z-20 mx-auto md:max-w-5xl">
29+
<div className="flex flex-col space-y-6">
30+
<div className="flex flex-col items-start justify-between space-y-4 md:flex-row md:items-center md:space-y-0">
31+
<div className="flex flex-col space-y-6">
32+
<Link href={`/${lang}`}>
33+
<Image
34+
src="/images/hyperjump-white.png"
35+
alt="Hyperjump Logo"
36+
width={187}
37+
height={32}
38+
className="h-8 w-auto"
39+
/>
40+
</Link>
41+
<p className="max-w-md text-sm text-[#C7CDCD] md:max-w-xs">
42+
{mainFooter(lang)}
43+
</p>
44+
</div>
4345

44-
<div className="flex space-x-3">
45-
{data.socials.map(({ icon, platform, url }) => (
46-
<a
47-
key={platform}
48-
href={url}
49-
target="_blank"
50-
rel="noopener noreferrer"
51-
className="hover:bg-hyperjump-blue flex h-10 w-10 items-center justify-center rounded-full border border-[#2D364A] text-white transition"
52-
aria-label={platform}>
53-
<i className={icon} aria-hidden="true"></i>
54-
</a>
55-
))}
46+
<div className="flex space-x-3">
47+
{data.socials.map(({ icon, platform, url }) => (
48+
<a
49+
key={platform}
50+
href={url}
51+
target="_blank"
52+
rel="noopener noreferrer"
53+
className="hover:bg-hyperjump-blue flex h-10 w-10 items-center justify-center rounded-full border border-[#2D364A] text-white transition"
54+
aria-label={platform}>
55+
<i className={icon} aria-hidden="true"></i>
56+
</a>
57+
))}
58+
</div>
59+
<LanguagePicker lang={lang} />
5660
</div>
57-
<LanguagePicker lang={lang} />
5861

5962
<Separator className="w-full max-w-5xl bg-[#2D364A]" />
6063

0 commit comments

Comments
 (0)