Skip to content

Commit 29fa67d

Browse files
committed
close in-person and add view-all button to speakers
1 parent 66366f8 commit 29fa67d

File tree

5 files changed

+49
-36
lines changed

5 files changed

+49
-36
lines changed

Diff for: frontend/src/app/dashboard/posterSession/PosterSessionForm.tsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ export default function PosterSessionForm(props: IPosterSessionForm) {
111111
<div className="flex items-start gap-6 self-stretch max-md:flex-col">
112112
<div className="flex flex-[1_0_0] flex-col items-start gap-2 self-stretch">
113113
<label className="text-base font-medium uppercase not-italic leading-[normal] tracking-[.64px] text-[#8A8998]">
114-
Upload File
114+
Upload File
115115
</label>
116116
<p className="text-sm tracking-[0.64px] text-[#8A8998]">
117117
Supported format: <strong>.pdf</strong> (Max: 10MB)
118118
</p>
119119
<div>
120120
<button
121-
disabled = {true}
121+
disabled={true}
122122
onClick={handleClick}
123-
className="flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-white shadow-md transition opacity-70"
123+
className="flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-white opacity-70 shadow-md transition"
124124
>
125125
<svg
126126
xmlns="http://www.w3.org/2000/svg"
@@ -140,7 +140,7 @@ export default function PosterSessionForm(props: IPosterSessionForm) {
140140
</button>
141141

142142
<input
143-
disabled = {true}
143+
disabled={true}
144144
type="file"
145145
accept={'application/pdf'}
146146
ref={fileInputRef}
@@ -174,7 +174,10 @@ export default function PosterSessionForm(props: IPosterSessionForm) {
174174
</div>
175175
</div>
176176

177-
<button disabled={true} className="mb-8 flex h-[72px] items-center justify-center gap-2.5 self-stretch rounded-lg bg-primary px-8 py-0 text-xl font-bold not-italic leading-[normal] tracking-[-0.2px] text-white opacity-70">
177+
<button
178+
disabled={true}
179+
className="mb-8 flex h-[72px] items-center justify-center gap-2.5 self-stretch rounded-lg bg-primary px-8 py-0 text-xl font-bold not-italic leading-[normal] tracking-[-0.2px] text-white opacity-70"
180+
>
178181
Update Poster File
179182
</button>
180183
</form>

Diff for: frontend/src/app/dashboard/register/AttendanceInfo.tsx

+33-26
Original file line numberDiff line numberDiff line change
@@ -120,39 +120,46 @@ export default function AttendanceInfo({
120120
MODE OF ATTENDANCE
121121
<div
122122
className={
123-
'mt-2 flex flex-row items-center gap-x-6 text-lg font-semibold text-darkslategray-100 max-md:flex-col max-md:items-start'
123+
'mt-2 flex flex-row items-start gap-x-6 text-lg font-semibold text-darkslategray-100 max-md:flex-col max-md:items-start'
124124
}
125125
>
126126
{modesOfAttendance.map((modeOfAttendance) =>
127127
modeOfAttendance.id !== ID_OF_LAUNCH ? (
128-
<label
128+
<span
129129
key={modeOfAttendance.id}
130-
className={`flex items-center gap-x-2 ${
131-
modeOfAttendance.name.includes('Person')
132-
? 'line-through opacity-60'
133-
: ''
134-
}`}
130+
className={'flex flex-col items-center justify-center'}
135131
>
136-
<input
137-
type={'radio'}
138-
id={modeOfAttendance.name}
139-
name={'modeOfAttendance'}
140-
value={modeOfAttendance.id}
141-
disabled={
142-
modesOfAttendance[selectedModeIndex]?.paid ||
132+
<label
133+
className={`flex items-center gap-x-2 ${
143134
modeOfAttendance.name.includes('Person')
144-
}
145-
defaultChecked={
146-
modesOfAttendance[selectedModeIndex]?.id ===
147-
modeOfAttendance.id
148-
}
149-
onChange={onModeChange}
150-
/>
151-
<span>
152-
{modeOfAttendance.name} -{' '}
153-
{(modeOfAttendance.price ?? 0).toLocaleString()} Tooman
154-
</span>
155-
</label>
135+
? 'line-through opacity-60'
136+
: ''
137+
}`}
138+
>
139+
<input
140+
type={'radio'}
141+
id={modeOfAttendance.name}
142+
name={'modeOfAttendance'}
143+
value={modeOfAttendance.id}
144+
disabled={
145+
modesOfAttendance[selectedModeIndex]?.paid ||
146+
modeOfAttendance.name.includes('Person')
147+
}
148+
defaultChecked={
149+
modesOfAttendance[selectedModeIndex]?.id ===
150+
modeOfAttendance.id
151+
}
152+
onChange={onModeChange}
153+
/>
154+
<span>
155+
{modeOfAttendance.name} -{' '}
156+
{(modeOfAttendance.price ?? 0).toLocaleString()} Tooman
157+
</span>
158+
</label>
159+
{modeOfAttendance.name.includes('Person') && (
160+
<span>Capacity is full</span>
161+
)}
162+
</span>
156163
) : null,
157164
)}
158165
</div>

Diff for: frontend/src/ui/landing/seminar/SeminarHeader.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import React from 'react';
22
import PreArrow from './assets/pre arrow.svg';
33
import NextArrow from './assets/next arrow.svg';
44
import NextPreButton from './NextPreButton';
5+
import ViewAllButton from './ViewAllButton';
56

67
export default function SeminarHeader() {
78
return (
8-
<div className={'flex items-center justify-between px-32 pt-20'}>
9-
<div>
9+
<div className={'flex items-center justify-between px-32 pt-6 '}>
10+
<div className={''}>
1011
<div
1112
className={
12-
'font-manrope text-left text-lg font-medium uppercase text-white/60'
13+
'font-manrope text-left text-lg font-medium uppercase text-white/60 '
1314
}
1415
>
1516
Unveiling the Frontiers of Knowledge
@@ -18,6 +19,8 @@ export default function SeminarHeader() {
1819
Speakers
1920
</div>
2021
</div>
22+
23+
<ViewAllButton text={'View All'} />
2124
{/*<div className={'flex'}>*/}
2225
{/* <NextPreButton src={PreArrow} direction={'pre'} />*/}
2326
{/* <NextPreButton src={NextArrow} direction={'next'} className={'ml-4'} />*/}

Diff for: frontend/src/ui/landing/seminar/SeminarLine.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Speaker } from '../../../lib/types';
55

66
export default function SeminarLine({ speakers }: { speakers: Speaker[] }) {
77
return (
8-
<Marquee /*className={'flex flex-wrap items-center justify-center'}*/>
8+
<Marquee>
99
{speakers.map((speaker, index) => (
1010
<SeminarCard key={index} speaker={speaker} />
1111
))}

Diff for: frontend/src/ui/landing/seminar/ViewAllButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function ViewAllButton({
1313
<Link
1414
href={'/seminars'}
1515
className={
16-
'font-manrope m-auto mb-3 flex w-fit items-center justify-center rounded-md bg-white px-8 py-5 text-lg font-bold hover:bg-whitesmoke'
16+
'font-manrope flex w-fit items-center justify-center rounded-md bg-white px-8 py-5 text-lg font-bold hover:bg-whitesmoke '
1717
}
1818
>
1919
<div>{text}</div>

0 commit comments

Comments
 (0)