Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit 8dbe6f4

Browse files
Merge pull request #156 from hack-rpi/gokul-linting
Added new TSX file for FAQ
2 parents d672aa6 + cd0c9c4 commit 8dbe6f4

File tree

13 files changed

+710
-734
lines changed

13 files changed

+710
-734
lines changed

app/(with-layout)/event/schedule/page.tsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ import NavBar from "@/components/nav-bar/nav-bar";
44
import "@/app/globals.css";
55
import { useState, useEffect } from "react";
66
import type { Event } from "@/data/schedule";
7-
import {
8-
saturdayTimes,
9-
sundayTimes,
10-
SATURDAY_START,
11-
SUNDAY_START
12-
} from "@/data/schedule";
7+
import { saturdayTimes, sundayTimes, SATURDAY_START, SUNDAY_START } from "@/data/schedule";
138

149
import Schedule from "@/components/schedule/schedule";
1510
import HackRPILink from "@/components/themed-components/hackrpi-link";
@@ -24,9 +19,9 @@ type RawEvent = {
2419
eventType: "workshop" | "constant" | "important" | "food" | "deadline";
2520
visible: boolean;
2621
column: number;
27-
width: number; // Added width for multi-column spanning
22+
width: number; // Added width for multi-column spanning
2823
startMinutesFromDayStart: number; // minutes offset
29-
durationMinutes: number; // length
24+
durationMinutes: number; // length
3025
};
3126

3227
export default function Page() {
@@ -54,7 +49,7 @@ export default function Page() {
5449
eventType: ev.eventType ?? "general",
5550
visible: ev.visible,
5651
column: ev.column,
57-
width: ev.width // New property to handle multi-column span
52+
width: ev.width, // New property to handle multi-column span
5853
};
5954
});
6055

@@ -73,7 +68,7 @@ export default function Page() {
7368
eventType: ev.eventType ?? "general",
7469
visible: ev.visible,
7570
column: ev.column,
76-
width: ev.width // New property to handle multi-column span
71+
width: ev.width, // New property to handle multi-column span
7772
};
7873
});
7974

@@ -179,7 +174,7 @@ export default function Page() {
179174
<div className="flex items-center justify-between mb-4 border-b-2 border-b-gray-400 h-24">
180175
<h1 className=" text-3xl xs:text-4xl md:text-5xl font-bold">{modalEvent.title}</h1>
181176
<button
182-
className="text-4xl font-bold text-black mr-4 hover:text-primary focus:text-primary"
177+
className="text-4xl font-bold text-black mr-4 hover:text-primary focus:text-primary"
183178
onClick={() => {
184179
setModalEvent(null);
185180
}}
@@ -191,8 +186,7 @@ export default function Page() {
191186
{modalEvent.location} {modalEvent.speaker ? `• ${modalEvent.speaker}` : ""}
192187
</p>
193188
<p className="text-3xl mb-4">
194-
{new Date(modalEvent.startTime).toLocaleString()}{" "}
195-
{new Date(modalEvent.endTime).toLocaleString()}
189+
{new Date(modalEvent.startTime).toLocaleString()}{new Date(modalEvent.endTime).toLocaleString()}
196190
</p>
197191
<p className="text-2xl">{modalEvent.description}</p>
198192
</div>

components/faq/faq.tsx

Lines changed: 3 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,14 @@
11
import React, { useState } from "react";
22
import "../../app/globals.css";
33
import RegistrationButton from "@/components/themed-components/registration-link";
4+
import faqs from "@/data/faqData";
45

56
type FAQ = {
67
title: string;
78
content: React.ReactNode;
89
};
910

10-
const faqs: FAQ[] = [
11-
{
12-
title: "What is HackRPI?",
13-
content:
14-
"Teams of 1-4 have 24 hours to build a project relating to our theme Retro V. Modern. Teams will then present their projects, and the best projects win prizes!",
15-
},
16-
{
17-
title: "When is HackRPI?",
18-
content:
19-
"HackRPI takes place on November 15th and 16th, 2025. Arrival and check-in takes place from 9-10 AM. Our opening ceremony starts at 10 AM, and hacking begins at 11am. Your projects must be on Devpost by 9 AM Sunday, and all coding must stop at 11 AM Sunday. Teams will present, and the event will end around 3 PM on Sunday. We are excited to see you there!",
20-
},
21-
{
22-
title: "Where is HackRPI?",
23-
content:
24-
"HackRPI takes place at Rensselaer Polytechnic Institute, in the Darrin Communication Center. Darrin Communications Center, 51 College Ave, Troy, NY 12180. See our event information page for more details.",
25-
},
26-
{
27-
title: "Is HackRPI free to attend?",
28-
content: "Yes! Thanks to our many wonderful sponsors, all food and swag are completely free for participants!",
29-
},
30-
{
31-
title: "How do I register?",
32-
content: (
33-
<div className="flex items-start md:items-center justify-start flex-col md:flex-row">
34-
<p className="pr-2">You can click here to register with Major League Hacking (MLH).</p>
35-
<RegistrationButton /> {/* This is a custom button component will update later */}
36-
</div>
37-
),
38-
},
39-
{
40-
title: "Who can participate?",
41-
content:
42-
"Everyone is welcome to participate, whether you are a hackathon veteran or this is your first hackathon, this is a great opportunity to learn, experiment with new technologies, and grow your skills. Our team of experienced mentors is here to help you in every step of the way.",
43-
},
44-
{
45-
title: "I'm under 18, can I still participate?",
46-
content:
47-
"Students under 18 are welcome to attend, but are not allowed to stay overnight in the sleep rooms. Students under the age of 17 must have an adult (21+) chaperone with them at all times during the event.",
48-
},
49-
{
50-
title: "Do I have to be an RPI student?",
51-
content:
52-
"No! HackRPI is open to everyone, students of all experience levels from all colleges and universities are welcome to attend. Did you know that students from over 45 other colleges attended HackRPI!",
53-
},
54-
{
55-
title: "Does HackRPI provide travel reimbursement?",
56-
content: (
57-
<p>
58-
Unfortunately, we are unable to provide travel reimbursement at this time, however, we have sleep rooms on
59-
campus for students 18 and older, and we are more than happy to recommend local accommodations if you email us
60-
at{" "}
61-
<a href="mailto:hackrpi@rpi.edu" className="text-hackrpi-primary-blue underline">
62-
hackrpi@rpi.edu
63-
</a>
64-
.
65-
</p>
66-
),
67-
},
68-
{
69-
title: "What should I bring?",
70-
content: "Bring your team, your laptop, chargers, any hardware you need, and a good night's sleep!",
71-
},
72-
{
73-
title: "What is the theme?",
74-
//TODO: Change the description
75-
content:
76-
"The theme for 2025's HackRPI is Retro vs Modern. In a world where nostalgia meets innovation, our 12th annual hackathon, Retro vs Modern, invites creators to explore the contrasts and possibilities between the past and the future. Join us in shaping the future through a creative lens that honors the old while embracing the new.",
77-
},
78-
{
79-
title: "Is it okay if I am late to the event?",
80-
content:
81-
"Yes! You can arrive at any time during the event, but we recommend arriving before 11 AM on Saturday. Remember, the later you are, the less time you have to work on your project!",
82-
},
83-
{
84-
title: "When are submissions due?",
85-
content:
86-
"All projects must be submitted to Devpost by 10 AM on Sunday. You will be able to modify your submission until 11am. After 11an, no coding or changes to your project are allowed.",
87-
},
88-
{
89-
title: "How do I submit my project?",
90-
content:
91-
// eslint-disable-next-line
92-
'You will submit your project on Devpost. See our "Event Information" and "Resources" pages for more details.',
93-
},
94-
{
95-
title: "When and how will prizes be awarded?",
96-
content:
97-
"Prizes are announced at the closing ceremony, which will take place around 4 PM on Sunday. Physical prizes will be distributed during the closing ceremony. Winners of cash prizes will be contacted by our team after the event. ",
98-
},
99-
];
11+
10012

10113
const FAQPage = () => {
10214
const [expandedIndex, setExpandedIndex] = useState<number | null>(null);
@@ -209,4 +121,4 @@ const FAQPage = () => {
209121
);
210122
};
211123

212-
export default FAQPage;
124+
export default FAQPage;

components/nav-bar/nav-bar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export default function NavBar({ showOnScroll }: { showOnScroll: boolean }) {
9494
</>
9595
);
9696
return (
97-
<div className={`${showOnScroll ? (showNav ? "top-0" : "-top-24") : "top-0"} fixed transition-all w-full z-10`}>
98-
<DesktopNavBar links={links} />
99-
<MlhBanner />
100-
</div>
97+
<div className={`${showOnScroll ? (showNav ? "top-0" : "-top-24") : "top-0"} fixed transition-all w-full z-10`}>
98+
<DesktopNavBar links={links} />
99+
<MlhBanner />
100+
</div>
101101
);
102102
}

0 commit comments

Comments
 (0)