Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
b8f60db
change height of leaderboard so the footer isn't in the middle of the…
mc-rizzy Sep 30, 2025
d237de2
basic threejs stufuf
mc-rizzy Oct 7, 2025
19f4eb5
added smosoth animation for camera and wrote function to create train…
mc-rizzy Oct 7, 2025
be0db96
Added map loading algorithm and map loading functions
mc-rizzy Oct 17, 2025
4a9fd1b
un-impossible algorithm added and more models
mc-rizzy Oct 21, 2025
7b553cc
added another camera angle
mc-rizzy Oct 24, 2025
197a0c9
rigged model and added skeleton implementation
mc-rizzy Oct 27, 2025
eac7381
Bruh tf is ts? How did my model get so deformed. not happy |:c
mc-rizzy Oct 27, 2025
2d53c82
created a train model in blender for a long long time and then import…
mc-rizzy Nov 4, 2025
d3c351a
Added Jr Directors and changed colors
aarugaut Nov 7, 2025
21142af
Merge branch 'main' into Aaryan2025Again
BastedEggsRYummy Nov 7, 2025
1985a35
Merge pull request #153 from hack-rpi/Aaryan2025Again
BastedEggsRYummy Nov 7, 2025
35dd104
Update package-lock.json
BastedEggsRYummy Nov 7, 2025
389076d
Removed aws dependencies
BastedEggsRYummy Nov 7, 2025
499ad98
Update members.ts
BastedEggsRYummy Nov 8, 2025
7ce9d0c
Try try again (ampx)
BastedEggsRYummy Nov 8, 2025
54805c4
Ran npx husky init
BastedEggsRYummy Nov 8, 2025
d0b307f
Ampx trying again
BastedEggsRYummy Nov 8, 2025
a7cdad3
No package-lock
BastedEggsRYummy Nov 8, 2025
df9d8cf
Welcome back package-lock.json
BastedEggsRYummy Nov 8, 2025
cd0cbd5
Moved over package.json from other version
BastedEggsRYummy Nov 8, 2025
78085ef
I ran build
BastedEggsRYummy Nov 8, 2025
742fc56
Create .amplifyignore
BastedEggsRYummy Nov 8, 2025
73ac788
Trying out lazy loading images
BastedEggsRYummy Nov 8, 2025
f9bb69f
npm i sharp
BastedEggsRYummy Nov 8, 2025
53f7a72
Small optimizations
BastedEggsRYummy Nov 8, 2025
2bf7bf1
Image optimization attempt
BastedEggsRYummy Nov 8, 2025
35d54bd
Slightly optimized images
BastedEggsRYummy Nov 9, 2025
f39d893
Minor styling glitches
BastedEggsRYummy Nov 9, 2025
84cc251
Updated organizers
BastedEggsRYummy Nov 9, 2025
973bae2
Updated mentoring and volunteer form links
BastedEggsRYummy Nov 9, 2025
14b6ae2
Moved event info to faq section (bad solution) so the background colo…
BastedEggsRYummy Nov 9, 2025
49fc4df
Added back in globalFoundries logo
BastedEggsRYummy Nov 9, 2025
dd80ffb
Changed times, also made pixel sidebar say hackrpi XI
BastedEggsRYummy Nov 9, 2025
fe5a615
Added Photon & MLH Prizes to prize page
BastedEggsRYummy Nov 9, 2025
f74c91a
Added team back to nav-bar
BastedEggsRYummy Nov 9, 2025
c5f2bd5
pain
mc-rizzy Nov 9, 2025
8d733ef
Updated schedule from Logistics
BastedEggsRYummy Nov 9, 2025
6b80733
t3 stack not mern
BastedEggsRYummy Nov 9, 2025
4a3ac9c
Update members.ts
BastedEggsRYummy Nov 9, 2025
7b0fb83
stuff
mc-rizzy Nov 10, 2025
6c76c68
changed comment
mc-rizzy Nov 10, 2025
d91a40a
finished up
mc-rizzy Nov 10, 2025
ca6ccb4
added background Music
mc-rizzy Nov 10, 2025
86d65ed
Merge pull request #154 from hack-rpi/William-moreheaderchanges
BastedEggsRYummy Nov 11, 2025
b8d0592
Added backend to game
BastedEggsRYummy Nov 11, 2025
a8afa5a
Delete package-lock.json
BastedEggsRYummy Nov 11, 2025
cbdaa78
Delete page.tsx
BastedEggsRYummy Nov 11, 2025
e92826c
Update package.json
BastedEggsRYummy Nov 11, 2025
551aa63
Welcome back
BastedEggsRYummy Nov 11, 2025
98baa8f
Merge branch 'main' into subway-surfers-an-shi
BastedEggsRYummy Nov 11, 2025
13ef568
Merge pull request #155 from hack-rpi/subway-surfers-an-shi
BastedEggsRYummy Nov 11, 2025
ce99c72
Lot of little changes
BastedEggsRYummy Nov 11, 2025
5ec85ba
Three.js is back
BastedEggsRYummy Nov 11, 2025
eb1aedf
Got rid of aws reference
BastedEggsRYummy Nov 11, 2025
3ea7178
No more localhost
BastedEggsRYummy Nov 11, 2025
2578dd6
Using https instead, oops
BastedEggsRYummy Nov 11, 2025
6ea27b1
Trying to get the game to work
BastedEggsRYummy Nov 12, 2025
e5502c2
Added types/3, link update
BastedEggsRYummy Nov 12, 2025
900a5e3
Added amplify.yaml, hopefully that fixes things
BastedEggsRYummy Nov 12, 2025
b56f6a3
More debugging with env file
BastedEggsRYummy Nov 12, 2025
17291e3
We're trying again ig
BastedEggsRYummy Nov 12, 2025
7e43e96
Try try try try try try again
BastedEggsRYummy Nov 12, 2025
da772e4
Alright maybe this time
BastedEggsRYummy Nov 12, 2025
72e2244
Goddamn it I thought of something
BastedEggsRYummy Nov 12, 2025
df68904
Trtying the secrets route
BastedEggsRYummy Nov 12, 2025
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
6 changes: 6 additions & 0 deletions .amplifyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
docs/
documentation/
e2e/
.vscode/
*.mp4
*.psd
11 changes: 3 additions & 8 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# Run TypeScript check (excluding problematic test files)
#echo "🧪 Checking TypeScript..."
#npx tsc --noEmit
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# Run Prettier + ESLint on staged files
#echo "🧹 Formatting and linting staged files..."
#npx lint-staged

#echo "✅ Pre-commit checks passed!"
#npm test
23 changes: 23 additions & 0 deletions amplify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
# Install dependencies
- npm ci || npm install
build:
commands:
# Create a minimal placeholder .env to prevent build warnings
# The actual secret will be fetched from AWS Secrets Manager at runtime
- echo "# Placeholder - actual secrets loaded at runtime" > .env
- npm run build
artifacts:
# For Next.js the build output served by Amplify Hosting is in .next (not 'build' like CRA)
baseDirectory: .next
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- .next/cache/**
8 changes: 4 additions & 4 deletions app/(with-layout)/event/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function EventPage() {
<div className="absolute -bottom-2 left-0 right-0 h-1 bg-gradient-to-r from-hackrpi-orange to-hackrpi-pink"></div>
</h2>
<p className="mt-8 text-lg text-hackrpi-yellow max-w-3xl mx-auto">
After coding ends at noon on Sunday, present your project to our panel of industry professionals,
After coding ends at 11am on Sunday, present your project to our panel of industry professionals,
professors, alumni, and fellow students. They&apos;ll evaluate your work based on these criteria:
</p>
</div>
Expand Down Expand Up @@ -282,11 +282,11 @@ function EventPage() {
<div className="space-y-2 text-gray-300 md:text-lg">
<p className="flex items-center">
<span className="text-hackrpi-orange font-bold mr-2">📅</span>
Submit by <span className="font-bold text-hackrpi-orange mx-1">11:00 AM Sunday</span>
Submit by <span className="font-bold text-hackrpi-orange mx-1">9:00 AM Sunday</span>
</p>
<p className="flex items-center">
<span className="text-hackrpi-pink font-bold mr-2">✏️</span>
Edit until <span className="font-bold text-hackrpi-pink mx-1">12:00 PM Sunday</span>
Edit until <span className="font-bold text-hackrpi-pink mx-1">11:00 AM Sunday</span>
</p>
</div>
</div>
Expand All @@ -302,7 +302,7 @@ function EventPage() {
Present Your Project
</h3>
<p className="text-gray-300 md:text-lg">
After noon, no changes allowed. Be ready to give a live demo and explain your project to the
After 11am, no changes allowed. Be ready to give a live demo and explain your project to the
judges!
</p>
</div>
Expand Down
7 changes: 6 additions & 1 deletion app/(with-layout)/event/prizes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//import NavBar from "@/components/nav-bar/nav-bar";
import "@/app/globals.css";
import { podiumPrizes, majorPrizes, minorPrizes } from "@/data/prizes";
import { podiumPrizes, majorPrizes, minorPrizes, mlhPrizes } from "@/data/prizes";
import Podium from "@/components/prizes/podium";
import MajorPrizes from "@/components/prizes/major_prizes";
import MinorPrizes from "@/components/prizes/minor_prizes";
Expand All @@ -14,9 +14,14 @@ export default function Page() {
<h1 className="text-4xl sm:text-6xl font-bold font-sans my-4 text-center">$3500+ In Prizes</h1>
<Podium podiumPrizes={podiumPrizes} />
<hr className="w-11/12 desktop:w-3/4 lg:w-2/3 2xl:w-3/5 mx-auto my-4 border-gray-300" />
<h1 className="text-3xl sm:text-4xl font-bold font-sans text-center">Major Prize Tracks</h1>
<MajorPrizes majorPrizes={majorPrizes} />
<hr className="w-11/12 desktop:w-3/4 lg:w-2/3 2xl:w-3/5 mx-auto my-4 border-gray-300" />
<h1 className="text-3xl sm:text-4xl font-bold font-sans text-center">Minor Prize Tracks</h1>
<MinorPrizes minorPrizes={minorPrizes} />
<hr className="w-11/12 desktop:w-3/4 lg:w-2/3 2xl:w-3/5 mx-auto my-4 border-gray-300" />
<h1 className="text-3xl sm:text-4xl font-bold font-sans text-center">MLH Prize Tracks</h1>
<MinorPrizes minorPrizes={mlhPrizes} />
</div>
</div>
);
Expand Down
81 changes: 81 additions & 0 deletions app/(with-layout)/surfers/leaderboard/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
"use client";

import { useState, useEffect } from "react";
import NavBar from "@/components/nav-bar/nav-bar";
import "@/app/globals.css";
import HackRPIButton from "@/components/themed-components/hackrpi-button";

const isDirector = false; // Set to `true` to test the director functionality

interface Result {
id: string;
name: string;
score: number;
}

export default function Page() {
const [leaderboardEntries, setLeaderboardEntries] = useState<Result[]>([]);

// Function to fetch leaderboard entries
const fetchLeaderboard = async () => {
try {
// Use relative path so it works across environments (preview, prod, custom domains)
const response = await fetch("/api/scores", { cache: 'no-store' });
if (response.ok) {
const data: Result[] = await response.json(); // Ensure the data is typed as Result[]
setLeaderboardEntries(data); // Update state with the fetched leaderboard data
} else {
console.error("Failed to fetch leaderboard data");
}
} catch (error) {
console.error("Error fetching leaderboard:", error);
}
};

useEffect(() => {
fetchLeaderboard(); // Fetch leaderboard when the component mounts
}, []); // Empty dependency array ensures this runs once when the component mounts

return (
<div className="flex flex-col items-center justify-start w-full h-full">
<div className="flex-grow flex-shrink basis-auto">
<h1 className="mt-28 text-center text-4xl font-modern text-hackrpi-orange">2048 Leaderboard</h1>
<table className="min-w-[80vw] mt-10 justify-inbetween table-auto w-full table table-zebra">
<thead>
<tr className="text-white bg-hackrpi-yellow">
<th className="w-1/4 px-4 py-2 text-center font-retro text-white">Position</th>
<th className="w-1/3 px-4 py-2 text-center font-retro text-white">Username</th>
<th className="w-1/3 px-4 py-2 text-center font-retro text-white">Score</th>
{isDirector ? (
<th className="w-1/3 px-4 py-2 font-retro text-white bg-hackrpi-yellow">Delete</th>
) : null}
</tr>
</thead>

<tbody className="text-center text-white font-retro bg-gradient-to-r from-hackrpi-dark-purple to-hackrpi-yellow">
{leaderboardEntries.map((entry, index) => (
<tr key={entry.id}>
<td className="px-y py-2">{index + 1}</td>
<td className="px-4 py-2">{entry.name}</td>
<td className="px-4 py-2">{entry.score}</td>
{isDirector ? (
<td className="px-4 py-2 flex items-center justify-center">
<HackRPIButton
onClick={async () => {
alert("not implemented yet");
}}
>
Delete Item
</HackRPIButton>
</td>
) : null}
</tr>
))}
</tbody>
</table>
</div>
<div className="flex-grow mt-24"></div>
<div className="absolute-bottom-0 w-full"></div>
</div>
);
}
Loading
Loading