Skip to content

Commit bb82db2

Browse files
committed
chore: scenario info fix and contributors change
1 parent 315ddc2 commit bb82db2

File tree

4 files changed

+55
-88
lines changed

4 files changed

+55
-88
lines changed

frontend/src/components/FabMenu.jsx

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -28,68 +28,43 @@ const FabMenu = () => {
2828
>
2929
<div className="flex flex-col items-end gap-4">
3030
<button
31-
className={`shadow-lg flex items-center justify-center transition-all duration-300 mb-2 ${open ? "opacity-100" : "opacity-0 pointer-events-none"} w-[2.2rem] h-[2.2rem] rounded-[2px] rotate-45 cursor-pointer`}
31+
className={`shadow-lg flex items-center justify-center transition-all duration-300 mb-2 ${open ? "opacity-100" : "opacity-0 pointer-events-none"} w-[2.2rem] h-[2.2rem] rounded-[2px] rotate-45 cursor-pointer bg-base-100 border-[2px] border-primary`}
3232
style={{
33-
background: "var(--color-base-100)",
34-
border: "2px solid var(--color-primary)",
3533
boxShadow: "var(--color-base-content-box-shadow)",
3634
}}
3735
onClick={handleThemeToggle}
3836
aria-label="Toggle Theme"
3937
>
4038
<span className="flex items-center justify-center">
41-
<LightMode
42-
className="text-[1.2rem]"
43-
style={{ color: "var(--color-base-primary)" }}
44-
/>
39+
<LightMode className="text-[1.2rem] text-base-primary" />
4540
</span>
4641
</button>
4742
<button
48-
className={`shadow-lg flex items-center justify-center transition-all duration-300 mb-2 ${open ? "opacity-100" : "opacity-0 pointer-events-none"} w-[2.2rem] h-[2.2rem] rounded-[2px] rotate-45 cursor-pointer`}
43+
className={`shadow-lg flex items-center justify-center transition-all duration-300 mb-2 ${open ? "opacity-100" : "opacity-0 pointer-events-none"} w-[2.2rem] h-[2.2rem] rounded-[2px] rotate-45 cursor-pointer bg-secondary border-[2px] border-secondary`}
4944
style={{
50-
background: "var(--color-secondary)",
51-
border: "2px solid var(--color-secondary)",
5245
boxShadow: "var(--color-base-content-box-shadow)",
5346
}}
5447
onClick={() => history.push("/aboutus")}
5548
aria-label="About Us"
5649
>
57-
<span
58-
className="flex items-center justify-center"
59-
style={{ transform: "rotate(-45deg)" }}
60-
>
61-
<EmojiPeopleIcon
62-
className="text-[1.2rem]"
63-
style={{ color: "var(--color-base-100)" }}
64-
/>
50+
<span className="flex items-center justify-center -rotate-45">
51+
<EmojiPeopleIcon className="text-[1.2rem] text-base-100" />
6552
</span>
6653
</button>
6754
<button
68-
className={`shadow-lg flex items-center justify-center transition-all duration-300 w-[2.2rem] h-[2.2rem] rounded-[2px] rotate-45 cursor-pointer`}
55+
className="shadow-lg flex items-center justify-center transition-all duration-300 w-[2.2rem] h-[2.2rem] rounded-[2px] rotate-45 cursor-pointer border-[2px] border-primary"
6956
style={{
7057
background: open
7158
? "var(--color-secondary)"
7259
: "var(--color-base-100)",
73-
border: "2px solid var(--color-primary)",
7460
boxShadow: "var(--color-base-content-box-shadow)",
7561
}}
7662
aria-label="Open Menu"
7763
>
78-
<span
79-
className="flex items-center justify-center"
80-
style={{ transform: "rotate(-45deg)" }}
81-
>
82-
{open ? (
83-
<MoreVertIcon
84-
className="text-[1.2rem]"
85-
style={{ color: "var(--color-base-100)" }}
86-
/>
87-
) : (
88-
<MoreVertIcon
89-
className="text-[1.2rem]"
90-
style={{ color: "var(--color-secondary)" }}
91-
/>
92-
)}
64+
<span className="flex items-center justify-center -rotate-45">
65+
<MoreVertIcon
66+
className={`text-[1.2rem] ${open ? "text-base-100" : "text-secondary"}`}
67+
/>
9368
</span>
9469
</button>
9570
</div>

frontend/src/features/aboutUs/AboutUsPage.jsx

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,25 @@ const AboutUsPage = () => {
77
const history = useHistory();
88
const location = useLocation();
99

10+
function goBack() {
11+
if (location.key !== undefined) {
12+
history.goBack();
13+
} else {
14+
history.push("/");
15+
}
16+
}
17+
1018
return (
11-
<div
12-
className="flex h-screen w-screen relative bg-[var(--color-base-100)]"
13-
style={{ fontFamily: "DMSans, sans-serif", fontWeight: 400 }}
14-
>
19+
<div className="flex h-screen w-screen relative bg-base-100 font-dm font-normal">
1520
<button
1621
className="absolute top-8 left-8 bg-transparent border-none p-2 cursor-pointer z-10"
17-
onClick={() => {
18-
if (location.key !== undefined) {
19-
history.goBack();
20-
} else {
21-
history.push("/");
22-
}
23-
}}
22+
onClick={goBack}
2423
aria-label="Close"
2524
>
26-
<CloseIcon className="!w-8 !h-8 text-[var(--color-base-content)]" />
25+
<CloseIcon className="!w-8 !h-8 text-base-content" />
2726
</button>
28-
<div className="w-1/2 flex flex-col justify-center items-center bg-[var(--color-base-100)]">
29-
<div
30-
className="flex flex-col items-start leading-tight text-[var(--color-base-content)] font-normal text-[5vw] mb-[10vh]"
31-
style={{ fontFamily: "DMSans, sans-serif" }}
32-
>
27+
<div className="w-1/2 flex flex-col justify-center items-center bg-base-100">
28+
<div className="flex flex-col items-start leading-tight text-base-content font-normal text-[5vw] mb-[10vh]">
3329
<span>Virtual</span>
3430
<span>Patient</span>
3531
<span>Simulator</span>
@@ -41,10 +37,7 @@ const AboutUsPage = () => {
4137
key={group.year}
4238
className={`mb-12 ${idx === 0 ? "mt-[16vh]" : ""} ${idx === contributorsByYear.length - 1 ? "pb-[15vh]" : ""}`}
4339
>
44-
<div
45-
className="text-2xl mb-4 text-[var(--color-base-content)] font-normal"
46-
style={{ fontFamily: "IBMPlexSans, sans-serif" }}
47-
>
40+
<div className="text-2xl mb-4 text-base-content font-normal font-ibm">
4841
{group.year}
4942
</div>
5043
<div className="grid grid-cols-1 gap-2">
@@ -53,19 +46,10 @@ const AboutUsPage = () => {
5346
key={contributor.login}
5447
className="flex flex-row items-center justify-center"
5548
>
56-
<span
57-
className="text-sm text-right text-[var(--color-primary)] font-normal mr-6 min-w-[240px]"
58-
style={{ fontFamily: "IBMPlexSans, sans-serif" }}
59-
>
49+
<span className="text-sm text-right font-ibm text-primary font-normal mr-6 min-w-[240px]">
6050
{getContributionText(contributor.contributions)}
6151
</span>
62-
<span
63-
className="text-m text-left text-[var(--color-base-content)] font-bold"
64-
style={{
65-
fontFamily: "IBMPlexSans, sans-serif",
66-
minWidth: 220,
67-
}}
68-
>
52+
<span className="text-m text-left text-base-content font-bold font-ibm min-w-[220px]">
6953
{contributor.name}
7054
</span>
7155
</div>
@@ -83,6 +67,13 @@ const AboutUsPage = () => {
8367
function getContributionText(contributions) {
8468
if (!contributions || !Array.isArray(contributions)) return "";
8569

70+
if (
71+
contributions.includes("code") &&
72+
contributions.includes("projectManagement")
73+
) {
74+
return "Technical Lead";
75+
}
76+
8677
return contributions
8778
.map((contribution) => {
8879
switch (contribution) {
@@ -91,7 +82,7 @@ function getContributionText(contributions) {
9182
case "projectManagement":
9283
return "Project Manager";
9384
case "design":
94-
return "Designer";
85+
return "Design Lead";
9586
case "infra":
9687
return "Infrastructure";
9788
default:

frontend/src/features/aboutUs/contributorsByYear.js

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ const contributorsByYear = [
2121
name: "Hazik Chaudhry",
2222
avatar_url: "https://avatars.githubusercontent.com/u/99319319?v=4",
2323
profile: "https://github.com/hazikchaudhry",
24-
contributions: ["code", "design"],
24+
contributions: ["code"],
2525
},
2626
{
2727
login: "mshi672",
28-
name: "mshi672",
28+
name: "Mike Shi",
2929
avatar_url: "https://avatars.githubusercontent.com/u/162376891?v=4",
3030
profile: "https://github.com/mshi672",
3131
contributions: ["code", "design"],
3232
},
3333
{
3434
login: "IceBear-2000",
35-
name: "IceBear-2000",
35+
name: "Moksh Manglani",
3636
avatar_url: "https://avatars.githubusercontent.com/u/160542881?v=4",
3737
profile: "https://github.com/IceBear-2000",
38-
contributions: ["code", "design"],
38+
contributions: ["code"],
3939
},
4040
{
4141
login: "kelvinchen8",
42-
name: "kelvinchen8",
42+
name: "Kelvin Chen",
4343
avatar_url: "https://avatars.githubusercontent.com/u/161402193?v=4",
4444
profile: "https://github.com/kelvinchen8",
4545
contributions: ["code"],
@@ -53,7 +53,7 @@ const contributorsByYear = [
5353
},
5454
{
5555
login: "Richman-Tan",
56-
name: "rtan654",
56+
name: "Richman Tan",
5757
avatar_url: "https://avatars.githubusercontent.com/u/160602954?v=4",
5858
profile: "https://github.com/Richman-Tan",
5959
contributions: ["code"],
@@ -74,7 +74,7 @@ const contributorsByYear = [
7474
},
7575
{
7676
login: "Brad123ghost",
77-
name: "Bradley",
77+
name: "Bradley Chung",
7878
avatar_url: "https://avatars.githubusercontent.com/u/32890981?v=4",
7979
profile: "https://github.com/Brad123ghost",
8080
contributions: ["code"],
@@ -93,7 +93,7 @@ const contributorsByYear = [
9393
},
9494
{
9595
login: "JordanBlenn",
96-
name: "Jordan",
96+
name: "Jordan Blenn",
9797
avatar_url: "https://avatars.githubusercontent.com/u/127293604?v=4",
9898
profile: "https://github.com/JordanBlenn",
9999
contributions: ["projectManagement"],
@@ -107,21 +107,21 @@ const contributorsByYear = [
107107
},
108108
{
109109
login: "itsatulbox",
110-
name: "itsatulbox",
110+
name: "Atul Kodla",
111111
avatar_url: "https://avatars.githubusercontent.com/u/161205868?v=4",
112112
profile: "https://github.com/itsatulbox",
113113
contributions: ["code"],
114114
},
115115
{
116116
login: "laibatool792",
117-
name: "laibatool792",
117+
name: "Laiba Batool",
118118
avatar_url: "https://avatars.githubusercontent.com/u/133545972?v=4",
119119
profile: "https://github.com/laibatool792",
120120
contributions: ["code"],
121121
},
122122
{
123123
login: "sbeen56",
124-
name: "sbeen56",
124+
name: "Subeen",
125125
avatar_url: "https://avatars.githubusercontent.com/u/161543207?v=4",
126126
profile: "https://github.com/sbeen56",
127127
contributions: ["code"],
@@ -142,7 +142,14 @@ const contributorsByYear = [
142142
},
143143
{
144144
login: "jacobmathew105",
145-
name: "jacobmathew105",
145+
name: "Jacob Mathew",
146+
avatar_url: "https://avatars.githubusercontent.com/u/136278107?v=4",
147+
profile: "https://github.com/jacobmathew105",
148+
contributions: ["code"],
149+
},
150+
{
151+
login: "jacobmathew105",
152+
name: "Koutaro Yumiba",
146153
avatar_url: "https://avatars.githubusercontent.com/u/136278107?v=4",
147154
profile: "https://github.com/jacobmathew105",
148155
contributions: ["code"],

frontend/src/features/scenarioInfo/ScenarioInfo.jsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ function ScenarioInfo() {
118118
};
119119

120120
return (
121-
<div
122-
className="bg-base-100 text-base-content min-h-screen relative overflow-x-hidden"
123-
data-theme="vps-light"
124-
>
121+
<div className="bg-base-100 text-base-content min-h-screen relative overflow-x-hidden">
125122
{/* Back Button */}
126123
<button
127124
className="absolute z-50 bg-transparent border-none text-primary cursor-pointer hover:text-base-content transition-colors px-8 py-6 top-0 left-0 font-dm text-s"
@@ -287,10 +284,7 @@ function ScenarioInfo() {
287284
{/* Edit Details Modal */}
288285
{showEditModal && (
289286
<dialog open className="modal modal-open fixed inset-0 z-[9999]">
290-
<div
291-
className="modal-box bg-base-100 border border-primary/20 w-[600px] max-w-[90vw] p-8"
292-
data-theme="vps-dark"
293-
>
287+
<div className="modal-box bg-base-100 border border-primary/20 w-[600px] max-w-[90vw] p-8">
294288
<h3 className="font-bold text-2xl mb-6 text-base-content font-dm">
295289
Edit Scenario Details
296290
</h3>

0 commit comments

Comments
 (0)