Inset donate glow background with rounded corners on mobile
- Inset the glow container horizontally and vertically on small screens - Round its corners on small screens, then remove the inset and radius at sm and up
This commit is contained in:
parent
76d5173bc4
commit
32200dbeca
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ export function DonateGlow({ theme, className }: { theme: GlowTheme; className?:
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
className={cn("pointer-events-none fixed inset-0 -z-10 overflow-hidden", className)}
|
className={cn("pointer-events-none fixed inset-x-0 inset-y-2 -z-10 overflow-hidden rounded-3xl sm:inset-y-0 sm:rounded-none", className)}
|
||||||
style={failed ? { background: `radial-gradient(ellipse 80% 50% at 50% 110%, ${a}, transparent), radial-gradient(ellipse 50% 40% at 100% 0%, color-mix(in srgb, ${b} 20%, transparent), transparent)` } : undefined}
|
style={failed ? { background: `radial-gradient(ellipse 80% 50% at 50% 110%, ${a}, transparent), radial-gradient(ellipse 50% 40% at 100% 0%, color-mix(in srgb, ${b} 20%, transparent), transparent)` } : undefined}
|
||||||
>
|
>
|
||||||
<canvas
|
<canvas
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue