Skip to content

Commit 80b6f06

Browse files
committed
Refined Footer's bottom section
- Added a wrapper div in the copyright segment so the text correctly wraps instead of being weird - Added a wrapper div to the constitution button to set an invisible width for centering - Added a wrapper <pre> in the 'Made with love' segment so the text doesn't act weird when supposed to wrap - Added a width of 48 (tailwind) to all three segments at sm width. This width will keep the 'made with love' message to one line and allow all three segments to be equally spaced compared to before. Copyright text will appropriately wrap - Added a width of 80 (tailwind) to all three segments at lg width. This width will keep all messages to one line and still evenly spaced.
1 parent 152c1e3 commit 80b6f06

1 file changed

Lines changed: 52 additions & 48 deletions

File tree

client/src/components/main/Footer.tsx

Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface ListLink {
3333
type socialMedia = {
3434
url: string;
3535
alt_text: string;
36-
}
36+
};
3737

3838
const quickLinks: ListLink[] = [
3939
{
@@ -72,23 +72,23 @@ export const mainLinks: ListLink[] = [
7272
];
7373

7474
const socialMedia: socialMedia[] = [
75-
{
76-
url: "https://www.facebook.com/people/Game-Development-UWA/61576948012356/",
77-
alt_text: "Facebook"
78-
},
79-
{
80-
url: "https://discord.com/invite/JvnuVyMUff",
81-
alt_text: "Discord"
82-
},
83-
{
84-
url: "https://www.instagram.com/gamedevelopmentuwa",
85-
alt_text: "Instagram"
86-
},
87-
{
88-
url:"https://game-development-uwa.itch.io/",
89-
alt_text: "Itch.io"
90-
}
91-
]
75+
{
76+
url: "https://www.facebook.com/people/Game-Development-UWA/61576948012356/",
77+
alt_text: "Facebook",
78+
},
79+
{
80+
url: "https://discord.com/invite/JvnuVyMUff",
81+
alt_text: "Discord",
82+
},
83+
{
84+
url: "https://www.instagram.com/gamedevelopmentuwa",
85+
alt_text: "Instagram",
86+
},
87+
{
88+
url: "https://game-development-uwa.itch.io/",
89+
alt_text: "Itch.io",
90+
},
91+
];
9292

9393
export default function Footer() {
9494
const footerRef = useRef<HTMLElement | null>(null);
@@ -137,9 +137,7 @@ export default function Footer() {
137137
</p>
138138
</div>
139139
</div>
140-
<a
141-
className="block font-jersey10 text-xl text-gray-300 transition-colors hover:text-purple-400"
142-
>
140+
<a className="block font-jersey10 text-xl text-gray-300 transition-colors hover:text-purple-400">
143141
Email coming soon!
144142
</a>
145143
<p className="font-jersey10 text-xl leading-relaxed text-gray-300/80">
@@ -155,12 +153,12 @@ export default function Footer() {
155153
))}
156154
</div>
157155
</div>
158-
<div className="lg:flex justify-center">
159-
<LinksList
160-
title="Explore"
161-
titleIcon={<Map className="h-4 w-4 text-purple-400" />}
162-
links={mainLinks}
163-
/>
156+
<div className="justify-center lg:flex">
157+
<LinksList
158+
title="Explore"
159+
titleIcon={<Map className="h-4 w-4 text-purple-400" />}
160+
links={mainLinks}
161+
/>
164162
</div>
165163
</div>
166164
<div className="relative my-8">
@@ -174,30 +172,36 @@ export default function Footer() {
174172
</div>
175173
</div>
176174
<div className="flex flex-col items-center justify-between gap-4 sm:flex-row">
177-
<div className="flex items-center gap-2 font-jersey10 text-xl text-gray-400">
178-
<span>© {new Date().getFullYear()} CFC ~ GDUWA</span>
179-
<span className="text-purple-500"></span>
180-
<span>All rights reserved</span>
175+
<div className="flex items-center gap-2 font-jersey10 text-xl text-gray-400 sm:w-48 lg:w-80">
176+
<div>
177+
© {new Date().getFullYear()} CFC ~ GDUWA
178+
<span className="mx-2 text-purple-500"></span>
179+
All rights reserved
180+
</div>
181181
</div>
182-
<Link
183-
href=""
184-
className="group flex -translate-x-[52px] items-center gap-2.5 rounded-full border border-purple-500/20 bg-gradient-to-r from-purple-500/10 to-pink-500/10 px-4 py-2 transition-all duration-300 hover:border-purple-500/40 hover:shadow-lg hover:shadow-purple-500/20"
185-
onClick={() => window.open("/Constitution-V1.pdf")}
186-
>
187-
<span className="font-jersey10 text-xl text-gray-300 transition-colors group-hover:text-white">
188-
Constitution
189-
</span>
190-
</Link>
191-
<div className="flex items-center gap-2 font-jersey10 text-xl text-gray-400">
192-
Made with
193-
<motion.div
194-
animate={{ scale: [1, 1.2, 1] }}
195-
transition={{ duration: 1.5, repeat: Infinity }}
182+
<div className="flex justify-center sm:w-48 lg:w-80">
183+
<Link
184+
href=""
185+
className="group flex w-fit items-center gap-2.5 rounded-full border border-purple-500/20 bg-gradient-to-r from-purple-500/10 to-pink-500/10 px-4 py-2 transition-all duration-300 hover:border-purple-500/40 hover:shadow-lg hover:shadow-purple-500/20"
186+
onClick={() => window.open("/Constitution-V1.pdf")}
196187
>
197-
<Heart className="h-4 w-4 fill-current text-red-500" />
198-
</motion.div>
199-
in Perth, UWA
188+
<div className="font-jersey10 text-xl text-gray-300 transition-colors group-hover:text-white">
189+
Constitution
190+
</div>
191+
</Link>
200192
</div>
193+
<span className="flex items-center justify-end gap-2 font-jersey10 text-xl text-gray-400 sm:w-48 lg:w-80">
194+
<pre className="gap-2 font-jersey10 text-xl">
195+
Made with
196+
<motion.span
197+
animate={{ scale: [1, 1.2, 1] }}
198+
transition={{ duration: 1.5, repeat: Infinity }}
199+
>
200+
<Heart className="mx-2 inline h-4 w-4 fill-current text-red-500" />
201+
</motion.span>
202+
in UWA, Perth
203+
</pre>
204+
</span>
201205
</div>
202206
</div>
203207
</div>

0 commit comments

Comments
 (0)