Skip to content

Commit be09cf5

Browse files
committed
Make CallForProposals better on tablet screens
1 parent f35f352 commit be09cf5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/app/conf/2025/components/call-for-proposals.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ export function CallForProposals() {
328328
// todo: the part with `dark:` here is temporary until we have a dark mode version of this section
329329
className="gql-conf-section gql-conf-container dark:text-neu-0"
330330
>
331-
<div className="flex *:basis-1/2 max-md:flex-col">
332-
<div className="border-sec-dark bg-sec-light p-4 md:border-r md:p-8 lg:p-16">
331+
<div className="flex *:basis-1/2 max-lg:flex-col">
332+
<div className="border-sec-dark bg-sec-light p-4 lg:border-r lg:p-8 xl:p-16">
333333
<h1 className="typography-h2">Call for Proposals</h1>
334334
<p className="mt-6 md:mt-10">
335335
Putting on an amazing conference depends on great content, which is
@@ -378,7 +378,7 @@ export function CallForProposals() {
378378
<article className="flex h-auto flex-col bg-[#C6F267]">
379379
<div
380380
role="tablist"
381-
className="flex divide-sec-dark border-b border-sec-dark *:flex-1 max-md:sr-only md:divide-x"
381+
className="flex divide-sec-dark border-b border-sec-dark *:flex-1 max-lg:sr-only lg:divide-x"
382382
>
383383
{tabsInOrder.map((tab, i) => (
384384
<TabButton
@@ -389,21 +389,21 @@ export function CallForProposals() {
389389
/>
390390
))}
391391
</div>
392-
<div className="flex flex-1 justify-center overflow-hidden max-md:flex-col md:items-center">
392+
<div className="flex flex-1 justify-center overflow-hidden max-lg:flex-col lg:items-center">
393393
{tabsInOrder.map(tab => (
394394
<Fragment key={tab}>
395395
<TabButton
396396
tab={tab}
397397
activeTab={activeTab}
398398
setActiveTab={setActiveTab}
399-
className="md:hidden"
399+
className="lg:hidden"
400400
aria-hidden
401401
/>
402402
<div
403403
role="tabpanel"
404404
key={tab}
405405
id={`tabpanel-${tab}`}
406-
className="flex-1"
406+
className="relative h-full flex-1"
407407
style={{
408408
display: activeTab === tab ? "block" : "none",
409409
}}
@@ -441,7 +441,7 @@ function TabButton({
441441
tabIndex={tabIndex}
442442
aria-selected={activeTab === tab}
443443
className={clsx(
444-
"gql-focus-visible flex items-center justify-between px-3 py-4 typography-body-lg hover:bg-sec-light focus:outline-none max-md:border-b max-md:border-sec-dark max-md:first:border-t md:[--collapsible:1] md:aria-selected:bg-sec-light",
444+
"gql-focus-visible flex items-center justify-between px-3 py-4 typography-body-lg hover:bg-sec-light focus:outline-none max-lg:border-b max-lg:border-sec-dark max-lg:first:border-t lg:[--collapsible:1] lg:aria-selected:bg-sec-light",
445445
className,
446446
)}
447447
onFocus={() => {
@@ -454,7 +454,7 @@ function TabButton({
454454
{...props}
455455
>
456456
{tab.charAt(0).toUpperCase() + tab.slice(1)}
457-
<ArrowDownIcon className="ml-2 size-6 text-transparent max-md:[[aria-selected=false]>&]:rotate-180 max-md:[[aria-selected=false]>&]:text-sec-dark [[aria-selected=true]>&]:text-sec-darker" />
457+
<ArrowDownIcon className="ml-2 size-6 text-transparent max-lg:[[aria-selected=false]>&]:rotate-180 max-lg:[[aria-selected=false]>&]:text-sec-dark [[aria-selected=true]>&]:text-sec-darker" />
458458
</button>
459459
)
460460
}
@@ -475,8 +475,8 @@ function arrowsMoveSideways(event: React.KeyboardEvent<HTMLButtonElement>) {
475475

476476
function DefinitionListBox({ children }: { children: React.ReactNode }) {
477477
return (
478-
<div className="relative isolate md:p-8 lg:p-16">
479-
<dl className="divide-y divide-sec-dark border-neu-300 md:divide-neu-300 md:border md:shadow-[0px_0px_20px_0px_rgba(133,185,19,0.20)]">
478+
<div className="inset-0 isolate h-full lg:absolute lg:flex lg:items-center lg:justify-center lg:p-4 xl:p-8 2xl:p-16">
479+
<dl className="divide-y divide-sec-dark border-neu-300 lg:divide-neu-300 lg:border lg:shadow-[0px_0px_20px_0px_rgba(133,185,19,0.20)]">
480480
{children}
481481
</dl>
482482
<Stripes />
@@ -494,7 +494,7 @@ function Stripes() {
494494
return (
495495
<div
496496
role="presentation"
497-
className="pointer-events-none absolute inset-0 bottom-[-20px] -z-10 translate-x-0.5 translate-y-12 ease-linear max-md:hidden"
497+
className="pointer-events-none absolute inset-0 bottom-[-20px] -z-10 translate-x-0.5 translate-y-12 ease-linear max-lg:hidden"
498498
style={{
499499
maskImage: mask,
500500
WebkitMaskImage: mask,

0 commit comments

Comments
 (0)