Skip to content

Commit c68c67d

Browse files
authoredNov 14, 2024··
Merge pull request #109 from armada-ths/erik/add-at-fair-page
Erik/add at fair page
2 parents d4dff68 + e133b2c commit c68c67d

File tree

3 files changed

+117
-3
lines changed

3 files changed

+117
-3
lines changed
 

‎src/app/student/at-the-fair/page.tsx

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
"use client"
2+
import { P } from "@/app/_components/Paragraph"
3+
import { Page } from "@/components/shared/Page"
4+
import { useState } from "react"
5+
6+
export default function AtFairPage() {
7+
const [randomNumber, setRandomNumber] = useState(-1)
8+
const questions = [
9+
"How does your recruitment process look like?",
10+
"If you could give your younger self advice about working in your field, what would it be?",
11+
"What advice do you have to someone about to graduate?",
12+
"What is the best memory you have from work?",
13+
"What is the biggest professional mistake you have made?",
14+
"What was the biggest change between studying and working?",
15+
"What made you become your role?",
16+
"How does a typical day look for your role?",
17+
"What do you think are key character traits to have while working in your role?",
18+
"What tends to stand out in a cover letter?",
19+
"What’s the best way to prepare oneself for interviews?",
20+
"What’s your best memory from university?",
21+
"What do you wish someone told you when you were newly graduated?",
22+
"Why did you start working at your company?",
23+
"How do you handle work-life balance?",
24+
"What do you think about the work environment?",
25+
"How long have you worked there?",
26+
"What does your company do?",
27+
"What’s your role at your company?",
28+
"Why did you apply for the job in the first place?",
29+
"What are your suggestions for standing out during an interview?",
30+
"How does your company work with the sustainable development goals?"
31+
]
32+
33+
const generateRandomNumber = () => {
34+
const number = Math.floor(Math.random() * 22)
35+
setRandomNumber(number)
36+
}
37+
38+
return (
39+
<Page.Background withIndents>
40+
<Page.Boundary>
41+
<Page.Header>At the Fair</Page.Header>
42+
<div>
43+
<P>
44+
Walking up to a representative of a company you really want to work
45+
for can be intimidating! But don't fret, below we’ve collected some
46+
tips on how to get the most out of your conversation.
47+
</P>
48+
49+
<ul className="mt-2 text-stone-400">
50+
<li>
51+
<i>· Formulate your sentences and speak clearly.</i>
52+
</li>
53+
<li>
54+
<i>· Treat it like a friendly chat.</i>
55+
</li>
56+
<li>
57+
<i>· Show interest and ask questions.</i>
58+
</li>
59+
</ul>
60+
61+
<P>
62+
Remember that you are not chatting with an AI who just knows facts
63+
about the company, but with another person. Think of it as a date
64+
with a company!
65+
</P>
66+
</div>
67+
<br />
68+
<Page.Header tier="secondary">Example questions</Page.Header>
69+
<P>
70+
Below are some examples of questions you can ask the companies during
71+
Armada to get the conversation started.
72+
</P>
73+
{/*INSERT QUESTION GENERATOR HERE*/}
74+
<div className=" mt-2 min-h-48 min-w-48 place-items-center rounded-2xl bg-green-950 p-5">
75+
<p className="absolute text-green-300 opacity-80">
76+
<i>Question</i>
77+
</p>
78+
<div className="flex">
79+
<div className="flex-grow place-content-center justify-center">
80+
<p className="py-7 text-center text-3xl text-green-50 opacity-90">
81+
<i>
82+
{randomNumber >= 0
83+
? questions[randomNumber]
84+
: "Press the button below to generate a question."}
85+
</i>
86+
</p>
87+
</div>
88+
</div>
89+
<button
90+
onClick={() => generateRandomNumber()}
91+
className="rounded-lg bg-green-700 p-3">
92+
Generate Question
93+
</button>
94+
</div>
95+
<br />
96+
<div className="self-center"></div>
97+
</Page.Boundary>
98+
</Page.Background>
99+
)
100+
}

‎src/components/shared/NavigationMenu.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import Link from "next/link"
44
import * as React from "react"
55

6-
import { Page } from "@/components/shared/Page"
76
import { useScreenSize } from "@/components/shared/hooks/useScreenSize"
7+
import { Page } from "@/components/shared/Page"
88
import {
99
NavigationMenu as BaseNavigationMenu,
1010
NavigationMenuContent,
@@ -73,13 +73,19 @@ const studentLinks: NavigationLink[] = [
7373
title: "Recruitment",
7474
href: "/student/recruitment",
7575
description: `Join Armada ${DateTime.now().year}. See which roles are available`,
76-
enabled: true
76+
enabled: false
7777
},
7878
{
7979
title: "Map",
8080
href: "/student/map",
8181
description: "Find your way around the fair",
8282
enabled: true
83+
},
84+
{
85+
title: "At the Fair",
86+
href: "/student/at-the-fair",
87+
description: "For the fair",
88+
enabled: true
8389
}
8490
]
8591

‎src/feature_flags.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ export const FEATURE_FLAG_DEFINITIONS = {
1414
{ value: true, label: "Show" },
1515
{ value: false, label: "Hidden" }
1616
]
17+
},
18+
AT_FAIR_PAGE: {
19+
description: "Access to At the Fair Page",
20+
options: [
21+
{ value: true, label: "Show" },
22+
{ value: false, label: "Hidden" }
23+
]
1724
}
1825
} satisfies FlagDefinitionsType
1926

@@ -22,6 +29,7 @@ export const FEATURE_FLAGS: Record<
2229
boolean
2330
> = {
2431
EVENT_PAGE: true,
25-
MAP_PAGE: true
32+
MAP_PAGE: true,
33+
AT_FAIR_PAGE: true
2634
}
2735
export default FEATURE_FLAGS

0 commit comments

Comments
 (0)
Please sign in to comment.