style: add ambient shadow glow and glassmorphic frosted edge border to campus image

This commit is contained in:
Amudieshwar A G
2026-07-22 11:20:39 +05:30
parent 3f95f93eb4
commit bcfc5f32e0

View File

@@ -37,8 +37,13 @@ export default function Home() {
initial={{ opacity: 0, scale: 0.95 }} initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }} animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.7 }} 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 */} {/* Main campus image/graphic card */}
<div <div
className="rounded-[24px] overflow-hidden bg-white border border-[#E5E7EB] relative aspect-[4/3] w-full" 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" 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 */} {/* 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" /> <div className="absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-black/10 pointer-events-none" />