Skip to content

Commit 8ea02df

Browse files
committed
Center text on very small screens
1 parent 4188781 commit 8ea02df

File tree

1 file changed

+2
-2
lines changed
  • src/app/conf/2025/components/cta-card-section

1 file changed

+2
-2
lines changed

src/app/conf/2025/components/cta-card-section/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function CtaCardSection({
2121
className="relative overflow-hidden bg-gradient-to-r from-pri-dark to-pri-base p-6 dark:from-pri-darker dark:to-pri-dark sm:p-16"
2222
{...rest}
2323
>
24-
<div className="relative z-10 flex flex-col gap-10 sm:items-start">
24+
<div className="relative z-10 flex flex-col gap-10 sm:items-start [@media(max-width:420px)]:text-center">
2525
<div className="flex flex-col gap-6">
2626
<h2 className="text-neu-0 typography-d1 dark:text-neu-900">
2727
{heading}
@@ -46,7 +46,7 @@ export function CtaCardSection({
4646
dark:[--end:hsl(var(--color-sec-base))]
4747
4848
[mask-size:cover]
49-
max-sm:[mask-position:center] max-sm:opacity-70
49+
max-sm:[mask-position:center] max-sm:opacity-50
5050
sm:[mask-size:1117px]
5151
"
5252
style={{

0 commit comments

Comments
 (0)