Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,31 @@ export default function Home() {
We work at the intersection of{" "}
<Link
href="/research"
className="underline decoration-foreground/40 decoration-1 underline-offset-4 transition-colors hover:decoration-foreground"
className="group relative inline-block"
>
computational neuroscience
<span className="absolute -bottom-0.5 left-0 h-[1px] w-full bg-foreground/25" />
<span className="absolute -bottom-0.5 left-0 h-[1px] w-0 bg-foreground transition-all duration-300 group-hover:w-full" />
</Link>{" "}
and{" "}
<Link
href="/research"
className="underline decoration-foreground/40 decoration-1 underline-offset-4 transition-colors hover:decoration-foreground"
className="group relative inline-block"
>
machine learning
<span className="absolute -bottom-0.5 left-0 h-[1px] w-full bg-foreground/25" />
<span className="absolute -bottom-0.5 left-0 h-[1px] w-0 bg-foreground transition-all duration-300 group-hover:w-full" />
</Link>
</h1>
<p className="animate-slide-up text-sm leading-relaxed text-muted-foreground sm:text-base lg:text-base">
We are interested in understanding{" "}
<Link
href="/publications"
className="underline decoration-muted-foreground/50 decoration-1 underline-offset-2 transition-colors hover:decoration-foreground"
className="group relative inline-block transition-colors hover:text-foreground"
>
behavior
<span className="absolute -bottom-0.5 left-0 h-[1px] w-full bg-muted-foreground/30" />
<span className="absolute -bottom-0.5 left-0 h-[1px] w-0 bg-foreground transition-all duration-300 group-hover:w-full" />
</Link>{" "}
in computational terms and in reverse-engineering the algorithms of the brain.
</p>
Expand Down
15 changes: 10 additions & 5 deletions components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,15 @@ export function Header() {
key={item.name}
href={item.href}
className={cn(
"text-sm font-medium transition-colors hover:text-primary",
isActive ? "text-foreground" : "text-muted-foreground"
"group relative text-sm font-medium transition-all duration-200",
isActive ? "text-foreground" : "text-muted-foreground hover:text-foreground"
)}
>
{item.name}
<span className={cn(
"absolute -bottom-1 left-0 h-0.5 bg-foreground transition-all duration-300",
isActive ? "w-full" : "w-0 group-hover:w-full"
)} />
</Link>
)
})}
Expand All @@ -113,20 +117,21 @@ export function Header() {
createPortal(
<div
id="mobile-nav"
className="fixed inset-x-0 bottom-0 z-50 overflow-y-auto border-t border-border bg-background/95 shadow-lg backdrop-blur supports-[backdrop-filter]:bg-background/80 lg:hidden"
className="fixed inset-x-0 bottom-0 z-50 animate-slide-down overflow-y-auto border-t border-border bg-background/95 shadow-lg backdrop-blur supports-[backdrop-filter]:bg-background/80 lg:hidden"
style={{ top: headerOffset }}
>
<div className="section-container space-y-1 py-6">
{navigation.map((item) => {
{navigation.map((item, index) => {
const isActive = pathname === item.href || pathname === `${item.href}/`
return (
<Link
key={item.name}
href={item.href}
className={cn(
"block rounded-md px-3 py-2 text-base transition-colors hover:bg-accent",
"block rounded-md px-3 py-2 text-base transition-all hover:bg-accent hover:pl-4",
isActive ? "bg-accent text-foreground" : "text-muted-foreground"
)}
style={{ animationDelay: `${index * 50}ms` }}
onClick={() => setMobileMenuOpen(false)}
>
{item.name}
Expand Down