Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added client/public/fire1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/fire2.png
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like a duplicate of the first explosion image, please delete this and use the first image instead

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/fire3.png
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also seems like a duplicate, please delete

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions client/src/pages/healthcheck.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { useState } from "react";

import { usePings } from "@/hooks/pings";
import { cn } from "@/lib/utils";

import { Button } from "../components/ui/button";

export default function Home() {
const [clicked, setClicked] = useState(false);
const { data, isLoading } = usePings({
enabled: clicked,
});

return (
<div className={cn("flex min-h-screen flex-col items-center gap-4 p-24")}>
<h1 className="font-jersey10 text-4xl text-primary">Test title</h1>
<h2 className="font-firaCode text-xl text-secondary">Test subtitle</h2>
<Button onClick={() => setClicked(true)}>
{isLoading ? "Loading" : "Ping"}
</Button>
<p>
Response from server: <span>{data as string}</span>
</p>
</div>
);
}
242 changes: 223 additions & 19 deletions client/src/pages/index.tsx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the entire file please use existing project colours instead of hex, and try to replace arbitrary px classes with tailwind classes.

Original file line number Diff line number Diff line change
@@ -1,26 +1,230 @@
import { useState } from "react";
import Image from "next/image";

import { usePings } from "@/hooks/pings";
import { cn } from "@/lib/utils";
export default function Landing() {
const upcomingEvents = [
{
id: 1,
title: "Summer 2026 Game Jam",
time: "Monday 24th Oct 11:00am–4:00pm",
image: "/placeholder.png",
},
{
id: 2,
title: "Godot Workshop",
time: "Thursday 2nd Nov 2:00–4:00pm",
image: "/placeholder.png",
},
{
id: 3,
title: "World domination",
time: "Thursday 2nd Nov 2:00–4:00pm",
image: "/placeholder.png",
},
];
Comment on lines +4 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data on the upcoming events should be fetched from the backend. See #6 and #29. You may need to create a hook to fetch all the events if one doesn't already exist. Happy to help and explain more if you would like. You can also refer to older CFC react projects such as coexist if you would like examples of how we do this.


import { Button } from "../components/ui/button";

export default function Home() {
const [clicked, setClicked] = useState(false);
const { data, isLoading } = usePings({
enabled: clicked,
});
const gamesData = [
{
id: 1,
title: "Cool Game",
description: "Cool game is a game about being cool.",
image: "/placeholder.png",
},
{
id: 2,
title: "Cool Game 2",
description: "Cool game 2 is a game about being cool.",
image: "/placeholder.png",
},
{
id: 3,
title: "Cool Game 3",
description: "Cool game 3 is a game about being cool.",
image: "/placeholder.png",
},
];

return (
<div className={cn("flex min-h-screen flex-col items-center gap-4 p-24")}>
<h1 className="font-jersey10 text-4xl text-primary">Test title</h1>
<h2 className="font-firaCode text-xl text-secondary">Test subtitle</h2>
<Button onClick={() => setClicked(true)}>
{isLoading ? "Loading" : "Ping"}
</Button>
<p>
Response from server: <span>{data as string}</span>
</p>
<div>
<section className="bg-[#0d1025] px-10">
<div className="container mx-auto rounded-[10px] bg-[#1B1F4C] px-4 py-8 lg:px-12">
{/* Title Row */}
<div className="flex items-center justify-between px-10">
<div className="flex items-center justify-between">
<h2 className="font-jersey10 text-4xl tracking-wide text-white">
Upcoming Events
</h2>

{/* Arrow controls */}
<div className="ml-[20] flex gap-3 text-lg text-white/60">
<span className="cursor-pointer hover:text-white">&lt;</span>
<span className="cursor-pointer hover:text-white">&gt;</span>
Comment on lines +59 to +60
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be buttons that allow us to scroll left or right to view all of the upcoming events. Buttons should use right and left chevron icons rather than < and > characters. Please use lucide-react icons if you can. Buttons should be disabled when we can no longer move in one direction :)

</div>
</div>
<div>
<span className="font-jersey10">See More </span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should link to the events page (/events)

<span className="cursor-pointer font-jersey10 hover:text-white">
&gt;
</span>
</div>
</div>

<div className="mt-10 grid grid-cols-3 gap-10">
{upcomingEvents.map((event) => (
<div key={event.id} className="flex flex-col">
{/* Image */}
<div className="flex h-[180px] w-full items-center justify-center rounded-[10px] bg-[#d6d1ff]">
<Image
src={event.image}
alt={event.title}
width={60}
height={60}
/>
</div>

<h3 className="mt-6 text-lg font-semibold tracking-wide text-white">
{event.title}
</h3>

<p className="text-sm tracking-wide text-white/70">
{event.time}
</p>

<div className="mt-3 w-full border-b border-white/20"></div>
</div>
))}
</div>
</div>
</section>

<section className="bg-[#0d1025] px-10 py-10">
<div className="flex w-full justify-between px-4">
<div>
<div className="flex w-[200px] justify-around">
<Image
src="/placeholder.png"
width={27}
height={20}
alt="Placeholder"
/>
<div className="font-jersey10">Join our Discord </div>
</div>
<div className="flex w-[200px] justify-around">
<Image
src="/placeholder.png"
width={27}
height={20}
alt="Placeholder"
/>
<div className="font-jersey10">Join our Discord </div>
</div>
</div>

<div
style={{
clipPath:
"polygon(0% 0%, 27% 0%, 31% 1rem, 100% 1rem, 100% calc(100% - 1rem), 97% 100%, 70% 100%, 67% calc(100% - 1rem), 0% calc(100% - 1rem))",
}}
className="relative w-[60vw] bg-secondary p-[1px]"
>
<div
style={{
clipPath:
"polygon(1px 1px, calc(27% - 1px) 1px, calc(31% - 1px) 1rem, calc(100% - 1px) 1rem, calc(100% - 1px) calc(100% - 1rem - 1px), calc(97% - 1px) calc(100% - 1px), calc(70% + 1px) calc(100% - 1px), calc(67% + 1px) calc(100% - 1rem - 1px), 1px calc(100% - 1rem - 1px))",
}}
className="h-full bg-[#0d1025] p-10"
>
<h3 className="mb-[15px] font-jersey10 text-4xl">
So... How do I get involved?
</h3>
<p>
{
"The easiest way to get involved is to come along to one of our events! Most events don't need registration- just check the event description to make sure. If you aren't feeling up to an event, just join our discord. React out to our friendly committee members if you need any help!"
}
</p>
</div>
Comment on lines +123 to +144
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This component should already exist! Really sorry this hadn't already been communicated to you. It is called FeatureBox. Please use that here instead :)

</div>
</div>
</section>

<section className="relative w-full overflow-hidden bg-[#0d1025] px-6 py-20 lg:px-12">
<div className="relative z-10 mx-auto max-w-[1400px]">
<div className="flex w-full flex-row items-start justify-between">
{/* --- Title & Intro Text --- */}
<div className="mb-10 flex flex-col items-start">
<h2 className="flex items-center gap-3 font-jersey10 text-5xl text-white">
Featured Member Creations
<span className="text-4xl text-red-400">❤️</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the pixel heart from the figma here instead

</h2>

<div className="inline-block">
<p className="mt-3 text-lg text-white/70">
Some of our favourite games made by our members
</p>

<div className="mt-8 h-[2px] bg-white/30"></div>
</div>
</div>

{/* --- Buttons Row --- */}
<div className="mb-12 flex flex-col items-start gap-4">
<button className="rounded-md border border-purple-300 bg-[#090A19] px-6 py-3 text-white transition hover:bg-purple-300 hover:text-black">
See more games by our members &gt;
</button>
<button className="rounded-md border border-purple-300 bg-[#090A19] px-6 py-3 text-white transition hover:bg-purple-300 hover:text-black">
Comment on lines +170 to +173
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the Button component here instead. If you need to add a new variant to the Button component please do so. Let me know if you need any help with this

See other cool stuff our members have created &gt;
</button>
</div>
</div>

{/* --- Card Container --- */}
<div className="grid grid-cols-1 gap-10 md:grid-cols-3">
{gamesData.map((game) => (
<div
key={game.id}
className="rounded-xl p-6 text-[#0d1025] shadow-lg"
>
<div className="mb-6 flex h-[180px] items-center justify-center rounded-xl bg-[#d0c5ff]">
<Image
src={game.image}
alt={game.title}
width={80}
height={80}
/>
</div>

<h3 className="mb-2 text-2xl text-white">{game.title}</h3>

<p className="mb-4 text-sm text-[#9CA4FD]">
{game.description}
</p>

<div className="h-[2px] w-full bg-white/30"></div>
</div>
))}
</div>
</div>
<Image
src="/fire1.png"
alt=""
width={400}
height={400}
className="absolute left-[-250px] top-1/2 z-10 -translate-y-1/2"
/>
<Image
src="/fire2.png"
alt=""
width={400}
height={400}
className="absolute right-[-200px] top-1/2 z-10 -translate-y-1/2"
/>
<Image
src="/fire3.png"
alt=""
width={300}
height={300}
className="absolute bottom-[-150px] left-1/2 z-10 -translate-x-1/2"
/>
</section>
</div>
);
}