Skip to content

Commit 42f27db

Browse files
committed
fix: mobile
1 parent 8d48860 commit 42f27db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pages/session/[id].astro

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,24 @@ const { session, speakers } = Astro.props
3333
<LogoHorizontal class="h-12 text-white" />
3434
</a>
3535
</nav>
36-
<section class="px-20 pb-12 h-[calc(100dvh-224px)]">
37-
<div class="pt-24 grid grid-cols-1 md:grid-cols-2 gap-8">
36+
<section class="px-8 pt-12 md:px-20 md:pt-24 pb-12 min-h-[calc(100dvh-224px)]">
37+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
3838
{speakers.map(speaker => (
3939
<div class="flex space-x-4 items-center">
40-
<div class="w-32 h-32 shrink-0">
40+
<div class="w-20 md:w-32 aspect-square shrink-0">
4141
<Picture
4242
src={speaker.profilePicture}
43-
class="w-32 h-32 rounded-full"
43+
class="w-full aspect-square rounded-full"
4444
formats={['avif', 'webp']}
4545
alt={speaker.fullName}
4646
width="200"
4747
height="200"
4848
/>
4949
</div>
5050
<div>
51-
<h1 class="text-4xl font-extrabold">{speaker.fullName}</h1>
52-
<h2 class="text-lg">{speaker.tagLine}</h2>
53-
<div class="flex space-x-2 pt-2">
51+
<h1 class="text-3xl md:text-4xl font-extrabold">{speaker.fullName}</h1>
52+
<h2 class="md:text-lg">{speaker.tagLine}</h2>
53+
<div class="flex gap-2 pt-2 flex-wrap">
5454
{speaker.links.map(link => (
5555
<a href={link.url} class="underline">{link.title}</a>
5656
))}

0 commit comments

Comments
 (0)