Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions src/pages/session/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const speakers = await getEntries(entry.data.speakers);

// Resolve session codes to session data
const resolveSessions = (codes: string[]) =>
codes.map((code) => sessions.find((s) => s?.data?.code === code));
codes.map(code => sessions.find(s => s.data.code === code)!);

// Filter out sessions with room "Exhibit Hall"
const filteredSessions = sessions.filter(
Expand Down Expand Up @@ -74,7 +74,7 @@ const nextSessionsOrdered = sameRoomNextSession
<dd class="capitalize">{entry.data.session_type}</dd>
<dt class="font-bold">Level:</dt>
<dd class="capitalize">{entry.data.level}</dd>
<!-- {
{
entry.data.room && (
<>
<dt class="font-bold">Room:</dt>
Expand All @@ -95,7 +95,7 @@ const nextSessionsOrdered = sameRoomNextSession
</dd>
</>
)
} -->
}
<dt class="font-bold">Duration:</dt>
<dd>{entry.data.duration} minutes</dd>
</dl>
Expand Down Expand Up @@ -148,8 +148,8 @@ const nextSessionsOrdered = sameRoomNextSession
The speaker{speakers.length > 1 ? "s" : ""}
</h2>
{speakers.map((speaker) => (
<div class="md:grid grid-cols-[260px_1fr] md:gap-6">
{speaker.data.avatar ? (
<div class={speaker.data.avatar ? "md:grid grid-cols-[260px_1fr] md:gap-6" : ""}>
{speaker.data.avatar && (
<div class="flex items-start">
<div class="border-4 border-white rounded-lg shadow-lg inline-block mb-10">
<Picture
Expand All @@ -161,10 +161,6 @@ const nextSessionsOrdered = sameRoomNextSession
/>
</div>
</div>
) : (
<div class="flex items-start mb-4 invisible">
<img src="" alt="" class="w-full max-w-sm mb-12" />
</div>
)}
<div>
<p class="mb-4">
Expand All @@ -185,7 +181,7 @@ const nextSessionsOrdered = sameRoomNextSession
)
}

<!-- {
{
(parallelSessions?.length ?? 0) > 0 ||
(nextSessionsInAllRooms?.length ?? 0) > 0 ? (
<>
Expand Down Expand Up @@ -232,7 +228,7 @@ const nextSessionsOrdered = sameRoomNextSession
</div>
</>
) : null
} -->
}
</footer>
</article>
</Layout>