Skip to content

Commit d3f2a34

Browse files
authored
fix: update links in home page and enhance research highlights (#29)
1 parent 00bbbf7 commit d3f2a34

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Home() {
3131
<h1 className="animate-fade-in text-3xl font-bold leading-[1.1] tracking-tight sm:text-4xl lg:text-[2.75rem] xl:text-5xl">
3232
We work at the intersection of{" "}
3333
<Link
34-
href="/research"
34+
href="#research"
3535
className="group relative inline-block underline decoration-foreground/40 decoration-1 underline-offset-4 transition-colors hover:decoration-foreground sm:no-underline"
3636
>
3737
<span className="text-gradient">computational neuroscience</span>
@@ -40,7 +40,7 @@ export default function Home() {
4040
</Link>{" "}
4141
and{" "}
4242
<Link
43-
href="/research"
43+
href="#research"
4444
className="group relative inline-block underline decoration-foreground/40 decoration-1 underline-offset-4 transition-colors hover:decoration-foreground sm:no-underline"
4545
>
4646
<span className="text-gradient">machine learning</span>

components/research/ResearchHighlight.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ export function ResearchHighlight({ publications }: ResearchHighlightProps) {
3434

3535
const heroPub = publications[0]
3636
if (!heroPub) return null
37-
37+
3838
const gridPubs = publications.slice(1)
3939

40-
const getPrimaryLink = (pub: Publication) =>
40+
const getPrimaryLink = (pub: Publication) =>
4141
pub.links?.website || pub.links?.arxiv || pub.links?.biorxiv || "#"
4242

4343
return (
44-
<section className="py-24 lg:py-32">
44+
<section id="research" className="py-24 lg:py-32">
4545
<div className="section-container">
4646
<div className="mb-16 flex flex-col justify-between gap-4 sm:flex-row sm:items-end">
4747
<div>
@@ -88,9 +88,11 @@ export function ResearchHighlight({ publications }: ResearchHighlightProps) {
8888
<Link
8989
href={getPrimaryLink(heroPub)}
9090
target="_blank"
91-
className="mb-3 inline-block text-xl font-bold underline decoration-1 underline-offset-2 transition-all hover:text-primary hover:decoration-2 sm:text-2xl"
91+
className="group mb-3 inline-block text-xl font-bold transition-all duration-300 ease-out hover:translate-x-1 hover:text-primary sm:text-2xl"
9292
>
93-
{heroPub.title}
93+
<span className="bg-gradient-to-r from-transparent to-transparent bg-[length:0%_2px] bg-left-bottom bg-no-repeat transition-all duration-300 ease-out group-hover:bg-[length:100%_2px] group-hover:bg-gradient-to-r group-hover:from-primary group-hover:to-primary">
94+
{heroPub.title}
95+
</span>
9496
</Link>
9597

9698
<p className="mb-5 text-sm text-muted-foreground">
@@ -179,9 +181,11 @@ export function ResearchHighlight({ publications }: ResearchHighlightProps) {
179181
<Link
180182
href={getPrimaryLink(pub)}
181183
target="_blank"
182-
className="mb-3 inline-block text-xl font-bold underline decoration-1 underline-offset-2 transition-all hover:text-primary hover:decoration-2"
184+
className="group mb-3 inline-block text-xl font-bold transition-all duration-300 ease-out hover:translate-x-1 hover:text-primary"
183185
>
184-
{pub.title}
186+
<span className="bg-gradient-to-r from-transparent to-transparent bg-[length:0%_2px] bg-left-bottom bg-no-repeat transition-all duration-300 ease-out group-hover:bg-[length:100%_2px] group-hover:bg-gradient-to-r group-hover:from-primary group-hover:to-primary">
187+
{pub.title}
188+
</span>
185189
</Link>
186190

187191
<p className="mb-4 text-sm text-muted-foreground">

0 commit comments

Comments
 (0)