Skip to content

Commit 8d03f9c

Browse files
committed
refactor: enhance alert components with shadow and backdrop blur effects for improved visual consistency
1 parent 8aee140 commit 8d03f9c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

components/domain/headers/headers-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function HeadersSection({
4848
{headers && headers.length > 0 ? (
4949
<div className="space-y-4">
5050
{status !== 200 && (
51-
<Alert>
51+
<Alert className="border-black/10 bg-background/40 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)] backdrop-blur supports-[backdrop-filter]:bg-background/40 dark:border-white/10">
5252
<Info aria-hidden="true" />
5353
<AlertDescription>
5454
<p className="inline-flex items-center gap-1 text-[13px]">

components/domain/registration/registration-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function RegistrationSection({
100100
return (
101101
<Section {...sections.registration}>
102102
{isWhoisUnavailable ? (
103-
<div className="flex items-start gap-3 rounded-lg border border-warning-border bg-warning-border/10 p-4 text-sm">
103+
<div className="flex items-start gap-3 rounded-lg border border-warning-border bg-warning-border/10 p-4 text-sm shadow-[inset_0_1px_0_rgba(255,255,255,0.08)] backdrop-blur supports-[backdrop-filter]:bg-warning-border/10">
104104
<AlertCircle className="mt-0.5 size-4 flex-shrink-0 text-yellow-800 dark:text-yellow-200" />
105105
<div className="space-y-1">
106106
<p className="font-medium text-yellow-800 dark:text-yellow-200">

components/domain/seo/redirected-alert.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ export function RedirectedAlert({
2020
const src = domain.replace(/^www\./i, "").toLowerCase();
2121
if (dest === src) return null;
2222
return (
23-
<Alert {...props}>
23+
<Alert
24+
{...props}
25+
className="border-black/10 bg-background/40 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)] backdrop-blur supports-[backdrop-filter]:bg-background/40 dark:border-white/10"
26+
>
2427
<Milestone aria-hidden="true" />
2528
<AlertDescription>
2629
<p className="inline-flex items-center gap-1 text-[13px]">

0 commit comments

Comments
 (0)