Responsive Event Portal
Part of the Responsive UI Patterns section of Coddy's Tailwind CSS journey. Lesson 55 of 55.
Complete the portal while preserving every earlier feature: the centered 960px-cap grid shell, viewport minimum height, 64px header and 48px footer; the narrow stack and wide 160px rail with 24px main gaps; wrapping navigation with 12px gaps; inline-size content containment, one/two-column cards at the 480px local threshold with 16px gaps and bottom-aligned booking links; the responsive one/two-column form with 16px gaps and full-row guide choices; required-email invalid 2px outline and valid zero outline; white normal-weight radio cards changing to #dbeafe and bold only when selected; and the 160px two-axis schedule viewport, 640px minimum fixed table, 160px first column and white sticky level-10 headers at top zero, with all table semantics. Now reveal the first skip link on focus using the accessible inverse pattern, preserving its main destination and full visibility. Give Reserve minimum 44px width and height, flex-centered content and a solid 2px visible-keyboard-focus outline with 4px offset. Keep its native disabled state initially: disabled means 50% opacity and a not-allowed cursor, enabled means full opacity and a pointer cursor. Make the decorative reservation frame ignore pointer events while remaining aria-hidden, so the enabled native button updates the supplied counter. Preserve complete content and supplied behavior.
Challenge
ExpertComplete the portal while preserving every earlier feature: the centered 960px-cap grid shell, viewport minimum height, 64px header and 48px footer; the narrow stack and wide 160px rail with 24px main gaps; wrapping navigation with 12px gaps; inline-size content containment, one/two-column cards at the 480px local threshold with 16px gaps and bottom-aligned booking links; the responsive one/two-column form with 16px gaps and full-row guide choices; required-email invalid 2px outline and valid zero outline; white normal-weight radio cards changing to #dbeafe and bold only when selected; and the 160px two-axis schedule viewport, 640px minimum fixed table, 160px first column and white sticky level-10 headers at top zero, with all table semantics. Now reveal the first skip link on focus using the accessible inverse pattern, preserving its main destination and full visibility. Give Reserve minimum 44px width and height, flex-centered content and a solid 2px visible-keyboard-focus outline with 4px offset. Keep its native disabled state initially: disabled means 50% opacity and a not-allowed cursor, enabled means full opacity and a pointer cursor. Make the decorative reservation frame ignore pointer events while remaining aria-hidden, so the enabled native button updates the supplied counter. Preserve complete content and supplied behavior.
Preserve the supplied content, semantic elements and IDs. Edit the requested utility classes. Press Run preview after edits, then Check/Run code to grade the result. Supplied JavaScript is read-only.
Try it yourself
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Interface workshop</title><link rel="stylesheet" href="./styles.css"></head><body>
<a id="skip" href="#main" class="sr-only">Skip to event content</a>
<div id="shell" class="w-full max-w-[960px] mx-auto grid min-h-screen grid-rows-[auto_1fr_auto]">
<header id="header" class="h-16 flex items-center px-4 bg-slate-900 text-white"><h1 class="text-xl font-bold">Open Studio Weekend</h1></header>
<main id="main" tabindex="-1" class="grid grid-cols-1 md:grid-cols-[160px_minmax(0,1fr)] gap-6">
<nav id="nav" aria-label="Event sections" class="p-4"><ul id="navList" class="flex flex-wrap gap-3"><li><a href="#sessions">Sessions</a></li><li><a href="#booking">Booking</a></li><li><a href="#schedule">Schedule</a></li></ul></nav>
<div id="content" class="min-w-0 space-y-6 @container">
<section id="sessions" aria-labelledby="sessionsTitle"><h2 id="sessionsTitle" class="text-xl font-bold mb-3">Choose a studio</h2><div id="cards" class="grid grid-cols-1 @min-[480px]:grid-cols-2 gap-4">
<article id="cardA" class="h-56 p-4 rounded-xl bg-slate-100 flex flex-col"><h3 class="h-6 font-bold">Printmaking</h3><p class="h-12">Make a small edition with local artists.</p><a id="cardAAction" href="#booking" class="h-10 mt-auto">Choose printmaking</a></article>
<article id="cardB" class="h-56 p-4 rounded-xl bg-slate-100 flex flex-col"><h3 class="h-6 font-bold">Clay studio</h3><p class="h-12">Explore hand-built forms and texture.</p><a id="cardBAction" href="#booking" class="h-10 mt-auto">Choose clay</a></article>
</div></section>
<section id="booking" aria-labelledby="bookingTitle"><h2 id="bookingTitle" class="text-xl font-bold mb-3">Plan your visit</h2>
<form id="form" class="grid grid-cols-1 md:grid-cols-2 gap-4"><div><label for="name" class="block">Name</label><input id="name" class="w-full h-10 border p-2"></div><div><label for="email" class="block">Email</label><input id="email" type="email" required class="w-full h-10 border p-2 outline-solid outline-0 invalid:outline-2"></div>
<fieldset id="choices" class="col-span-full"><legend>Guide format</legend><label id="digitalCard" class="block p-3 bg-white font-normal has-checked:bg-[#dbeafe] has-checked:font-bold"><input id="digital" type="radio" name="guide"> Digital guide</label><label id="printedCard" class="block p-3 bg-white font-normal has-checked:bg-[#dbeafe] has-checked:font-bold"><input id="printed" type="radio" name="guide"> Printed guide</label></fieldset></form>
</section>
<section id="schedule" aria-labelledby="scheduleTitle"><h2 id="scheduleTitle" class="text-xl font-bold mb-3">Weekend schedule</h2><div id="tableWrap" class="w-full h-40 overflow-auto"><table id="table" class="w-full border-separate border-spacing-0 min-w-[640px] table-fixed"><caption>Studio start times</caption><colgroup><col class="w-40"><col></colgroup><thead><tr><th scope="col" class="sticky top-0 z-10 bg-white">Time</th><th scope="col" class="sticky top-0 z-10 bg-white">Session</th></tr></thead><tbody><tr><th scope="row">09:00</th><td>Welcome</td></tr><tr><th scope="row">09:30</th><td>Printmaking</td></tr><tr><th scope="row">10:00</th><td>Clay studio</td></tr><tr><th scope="row">10:30</th><td>Drawing</td></tr><tr><th scope="row">11:00</th><td>Color workshop</td></tr><tr><th scope="row">11:30</th><td>Studio tour</td></tr><tr><th scope="row">12:00</th><td>Lunch</td></tr><tr><th scope="row">13:00</th><td>Open practice</td></tr></tbody></table></div></section>
<section aria-label="Reservation"><button id="availability" class="my-3 p-2 border">Toggle reservation availability</button><div id="reserveArea" class="relative w-64 h-20"><button id="reserve" disabled class="absolute inset-0 outline-solid bg-blue-100 outline-0">Reserve a place</button><div id="reserveFrame" aria-hidden="true" class="absolute inset-0 border-2 border-blue-700 "></div></div><p>Reservations made: <output id="count">0</output></p></section>
</div></main><footer id="footer" class="h-12 flex items-center px-4 bg-slate-100">Access information is available at the welcome desk.</footer></div>
<script src="./controls.js"></script>
</body></html>
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Responsive UI Patterns
1Page Shells
Growing Page ShellsFlexible Content RailsBounded Scroll RegionsFull-Bleed RegionsRecap: Page Shells4Form Layouts
Responsive Field GroupsFocused Field GroupsSelectable Form OptionsNative Validation CuesRecap: Form Layouts2Navigation Patterns
Wrapping NavigationCurrent Page CuesNative Menu DisclosuresKeyboard Skip LinksRecap: Navigation5Data Tables
Scrollable Data TablesPredictable Table ColumnsRow State PresentationSticky Table HeadersRecap: Data Tables8Interactive Panels
Expanded Control CuesChoice Card StatesFocus-Aware Help PanelsContent-Aware Empty StatesRecap: Interactive Panels11Project: Event Portal
Portal ShellSession Browser