Skip to content

Commit 152c1e3

Browse files
committed
Refactored some of the Footer
- Removed gamedev-metadata.json as it was redundant only storing data for the club's social media links. The data for the se links has been moved to Footer.tsx in the form of a list of objects - Added the social media link for the club's new itch.io page - Removed all of the quick links from the footer, as they were useless. To rework the footer's layout from this, the column number at lg width has been reduced to 2 since only two segments remain. When at 2 columns, the 'Explore' links will be centered within their column, but will justify left when wrapping. Made some label changes: - Replaced Create . Play . Inspire, with Design . Create . Play, as that is the slogan we are currently choosing. - Removed the email text and href from where the email is stated in the footer, as we currently don't have an email and that one doesn't exist. - Changed the text below the email to say 'Building the next generation of game developers!', which sounds better + the previous version was grammatically incorrect - Changed the copyright holder to 'CFC ~ GDUWA', as the previous title was poor.
1 parent bd7e8ec commit 152c1e3

2 files changed

Lines changed: 32 additions & 30 deletions

File tree

client/src/components/main/Footer.tsx

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ import { useRef } from "react";
2323
import LinksList from "@/components/ui/LinksList";
2424
import NetworkCanvas from "@/components/ui/NetworkCanvas";
2525
import SocialIconButton from "@/components/ui/SocialIconButton";
26-
import { social_media } from "@/gamedev-metadata.json";
2726

2827
export interface ListLink {
2928
label: string;
3029
href: string;
3130
icon: ReactNode;
3231
}
3332

33+
type socialMedia = {
34+
url: string;
35+
alt_text: string;
36+
}
37+
3438
const quickLinks: ListLink[] = [
3539
{
3640
label: "Join the Club",
@@ -67,6 +71,25 @@ export const mainLinks: ListLink[] = [
6771
},
6872
];
6973

74+
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+
]
92+
7093
export default function Footer() {
7194
const footerRef = useRef<HTMLElement | null>(null);
7295
return (
@@ -77,7 +100,7 @@ export default function Footer() {
77100
>
78101
<div className="relative z-10 border-t border-purple-500/20">
79102
<div className="container mx-auto px-4 py-12 sm:px-6 lg:px-8">
80-
<div className="mb-12 grid grid-cols-1 gap-8 lg:grid-cols-3">
103+
<div className="mb-12 grid grid-cols-1 gap-8 lg:grid-cols-2">
81104
<div className="space-y-4 lg:col-span-1">
82105
<div className="group flex items-center gap-4">
83106
<motion.div
@@ -110,22 +133,20 @@ export default function Footer() {
110133
Game Development
111134
</h3>
112135
<p className="font-jersey10 text-lg text-gray-400">
113-
CreatePlayInspire
136+
DesignCreatePlay
114137
</p>
115138
</div>
116139
</div>
117140
<a
118-
href="mailto:UWAgamedev@gmail.com"
119141
className="block font-jersey10 text-xl text-gray-300 transition-colors hover:text-purple-400"
120142
>
121-
UWAgamedev@gmail.com
143+
Email coming soon!
122144
</a>
123145
<p className="font-jersey10 text-xl leading-relaxed text-gray-300/80">
124-
Building the next generation of game developers at UWA game
125-
development club
146+
Building the next generation of game developers!
126147
</p>
127148
<div className="flex gap-3 pt-2">
128-
{social_media.map((data) => (
149+
{socialMedia.map((data) => (
129150
<SocialIconButton
130151
key={data.alt_text}
131152
url={data.url}
@@ -134,16 +155,13 @@ export default function Footer() {
134155
))}
135156
</div>
136157
</div>
137-
<LinksList
138-
title="Quick Links"
139-
titleIcon={<LucideLink className="h-4 w-4 text-accent" />}
140-
links={quickLinks}
141-
/>
158+
<div className="lg:flex justify-center">
142159
<LinksList
143160
title="Explore"
144161
titleIcon={<Map className="h-4 w-4 text-purple-400" />}
145162
links={mainLinks}
146163
/>
164+
</div>
147165
</div>
148166
<div className="relative my-8">
149167
<div className="absolute inset-0 flex items-center">
@@ -157,7 +175,7 @@ export default function Footer() {
157175
</div>
158176
<div className="flex flex-col items-center justify-between gap-4 sm:flex-row">
159177
<div className="flex items-center gap-2 font-jersey10 text-xl text-gray-400">
160-
<span>© {new Date().getFullYear()} CFC Game Dev</span>
178+
<span>© {new Date().getFullYear()} CFC ~ GDUWA</span>
161179
<span className="text-purple-500"></span>
162180
<span>All rights reserved</span>
163181
</div>

client/src/gamedev-metadata.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)