Skip to content

Commit 736c70f

Browse files
authored
update: hero style (#25)
1 parent 87b0268 commit 736c70f

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

app/globals.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,9 @@
159159
.animated-underline-muted:hover {
160160
background-size: 100% 1px, 100% 1px;
161161
}
162+
163+
/* Gradient text for banner keywords */
164+
.text-gradient {
165+
@apply bg-clip-text text-transparent bg-gradient-to-r from-sky-500 via-violet-500 to-emerald-500;
166+
}
162167
}

app/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { FunderSection } from "@/components/funding/FunderSection"
66
import { Badge } from "@/components/ui/badge"
77
import { Button } from "@/components/ui/button"
88
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
9+
import { Aurora } from "@/components/visuals/Aurora"
910
import publicationsData from "@/data/publications.json"
1011
import researchData from "@/data/research.json"
1112

@@ -15,7 +16,8 @@ export default function Home() {
1516
return (
1617
<div className="flex flex-col">
1718
{/* Hero Section */}
18-
<section className="relative border-b">
19+
<section className="relative overflow-hidden border-b">
20+
<Aurora />
1921
<div className="section-container py-20 sm:py-24 lg:py-32">
2022
<div className="mx-auto grid max-w-7xl grid-cols-1 items-center gap-8 lg:grid-cols-[2.5fr_1fr] lg:gap-16">
2123
{/* Logo - Mobile Only (Top) */}
@@ -31,7 +33,7 @@ export default function Home() {
3133
href="/research"
3234
className="group relative inline-block underline decoration-foreground/40 decoration-1 underline-offset-4 transition-colors hover:decoration-foreground sm:no-underline"
3335
>
34-
computational neuroscience
36+
<span className="text-gradient">computational neuroscience</span>
3537
<span className="absolute bottom-1 left-0 hidden h-[1px] w-full bg-foreground/25 sm:block" />
3638
<span className="absolute bottom-1 left-0 hidden h-[1px] w-0 bg-foreground transition-all duration-300 group-hover:w-full sm:block" />
3739
</Link>{" "}
@@ -40,7 +42,7 @@ export default function Home() {
4042
href="/research"
4143
className="group relative inline-block underline decoration-foreground/40 decoration-1 underline-offset-4 transition-colors hover:decoration-foreground sm:no-underline"
4244
>
43-
machine learning
45+
<span className="text-gradient">machine learning</span>
4446
<span className="absolute bottom-1 left-0 hidden h-[1px] w-full bg-foreground/25 sm:block" />
4547
<span className="absolute bottom-1 left-0 hidden h-[1px] w-0 bg-foreground transition-all duration-300 group-hover:w-full sm:block" />
4648
</Link>

components/visuals/Aurora.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
export function Aurora() {
2+
return (
3+
<div
4+
aria-hidden
5+
className="pointer-events-none absolute inset-0 -z-10 hidden overflow-hidden dark:block"
6+
>
7+
{/* Constrain aurora to content width */}
8+
<div className="relative mx-auto h-full max-w-7xl">
9+
{/* Top center glow */}
10+
<div className="absolute left-1/2 top-[-10%] h-[40rem] w-[45rem] -translate-x-1/2 rounded-full bg-[radial-gradient(ellipse_at_center,theme(colors.sky.400/.25),transparent_60%)] blur-3xl" />
11+
12+
{/* Left side glows (behind text) */}
13+
<div className="absolute left-[10%] top-[10%] size-[24rem] rounded-full bg-[radial-gradient(ellipse_at_center,theme(colors.violet.500/.15),transparent_60%)] blur-2xl" />
14+
<div className="absolute left-[30%] top-[5%] size-[26rem] rounded-full bg-[radial-gradient(ellipse_at_center,theme(colors.emerald.400/.18),transparent_60%)] blur-2xl" />
15+
16+
{/* Right side glow (behind logo) */}
17+
<div className="absolute right-[5%] top-[20%] size-[28rem] rounded-full bg-[radial-gradient(ellipse_at_center,theme(colors.purple.400/.15),transparent_60%)] blur-2xl" />
18+
19+
{/* Bottom center glow */}
20+
<div className="absolute bottom-[-10%] left-1/2 h-[32rem] w-[50rem] -translate-x-1/2 rounded-full bg-[radial-gradient(ellipse_at_center,theme(colors.cyan.400/.12),transparent_60%)] blur-3xl" />
21+
</div>
22+
</div>
23+
)
24+
}

0 commit comments

Comments
 (0)