style: add ambient shadow glow and glassmorphic frosted edge border to campus image
This commit is contained in:
@@ -37,8 +37,13 @@ export default function Home() {
|
||||
initial={{ opacity: 0, scale: 0.95 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="relative w-full max-w-lg"
|
||||
className="relative w-full max-w-lg group"
|
||||
>
|
||||
{/* Ambient Blurry Glow behind the image container */}
|
||||
<div
|
||||
className="absolute -inset-3 bg-gradient-to-tr from-[#F97316]/20 to-transparent rounded-[32px] blur-2xl opacity-80 pointer-events-none"
|
||||
/>
|
||||
|
||||
{/* Main campus image/graphic card */}
|
||||
<div
|
||||
className="rounded-[24px] overflow-hidden bg-white border border-[#E5E7EB] relative aspect-[4/3] w-full"
|
||||
@@ -50,6 +55,10 @@ export default function Home() {
|
||||
className="w-full h-full object-cover select-none"
|
||||
/>
|
||||
|
||||
{/* Glassmorphic border overlay (frosted edge blur effect) */}
|
||||
<div className="absolute inset-0 border-[12px] border-white/15 backdrop-blur-[2px] rounded-[24px] pointer-events-none" />
|
||||
<div className="absolute inset-[12px] border border-white/10 pointer-events-none" />
|
||||
|
||||
{/* Subtle dark gradient overlay to ensure text contrast */}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-black/10 pointer-events-none" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user