Skip to content
Merged
Show file tree
Hide file tree
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
37 changes: 29 additions & 8 deletions src/app/conf/2025/schedule/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { Button } from "@/app/conf/_design-system/button"
import { SessionTags } from "../../components/session-tags"
import { formatDescription } from "./format-description"
import { formatBlockTime } from "../_components/format-block-time"
import DownloadIcon from "@/app/conf/_design-system/pixelarticons/download.svg?svgr"

type SessionProps = { params: { id: string } }

Expand Down Expand Up @@ -123,15 +124,35 @@ export default function SessionPage({ params }: SessionProps) {
<h3 className="typography-h2 my-8 px-2 sm:px-3 lg:my-16">
Session resources
</h3>
<section>
{session.files?.map(({ path }) => (
<iframe
key={path}
src={path}
className="aspect-video size-full"
/>
<ul className="flex max-w-full flex-col gap-y-2">
{session.files?.map(({ path, name }) => (
<li key={path}>
<iframe
src={path}
className="aspect-video size-full"
/>
<div className="flex items-stretch justify-between overflow-hidden">
<a
className="typography-link flex items-center truncate p-3 leading-none text-neu-700 max-xs:hidden sm:px-6"
href={path}
>
<span className="inline-block truncate">
{name}
</span>
</a>
<Button
href={path}
variant="tertiary"
className="shrink-0"
download
>
Download
<DownloadIcon className="size-6" />
</Button>
</div>
</li>
))}
</section>
</ul>
</>
)}
</div>
Expand Down
5 changes: 5 additions & 0 deletions src/app/conf/_design-system/pixelarticons/download.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.