Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Display workshop prerequisites on the program page
Browse files Browse the repository at this point in the history
  • Loading branch information
tanettrimas committed Aug 4, 2023
1 parent 48ae110 commit a616b3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/program/[id]/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
margin-bottom: 1rem;
}

.abstract {
.preline {
white-space: pre-line;
}

Expand Down
9 changes: 8 additions & 1 deletion app/program/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,14 @@ export default async function Page({
</div>

<h3>Abstract</h3>
<p className={styles.abstract}>{session.abstract}</p>
<p className={styles.preline}>{session.abstract}</p>

{session.workshopPrerequisites && (
<>
<h3>Prerequisites</h3>
<p className={styles.preline}>{session.workshopPrerequisites}</p>
</>
)}

<h3>Day & time</h3>
<p>{dayAndTime ? getDayAndTime(session) : 'Coming soon'}</p>
Expand Down
1 change: 1 addition & 0 deletions app/program/program.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface Session {
startSlotZulu: string
speakers: Speaker[]
registerLoc?: string
workshopPrerequisites?: string
}

export interface Speaker {
Expand Down

1 comment on commit a616b3a

@vercel
Copy link

@vercel vercel bot commented on a616b3a Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.