Skip to content

Commit b225ae0

Browse files
authored
update: funding on home page and remove from menu (#9)
1 parent 10dd956 commit b225ae0

File tree

5 files changed

+89
-2
lines changed

5 files changed

+89
-2
lines changed

app/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { ArrowRight, Brain, Code2, Telescope, FileText, Globe, Code } from "lucide-react"
1+
import { ArrowRight, Brain, Code, Code2, FileText, Globe, Telescope } from "lucide-react"
22
import Link from "next/link"
33

44
import { AnimatedLogo } from "@/components/animations/AnimatedLogo"
5+
import { FunderSection } from "@/components/funding/FunderSection"
56
import { Badge } from "@/components/ui/badge"
67
import { Button } from "@/components/ui/button"
78
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
@@ -280,6 +281,9 @@ export default function Home() {
280281
</div>
281282
</div>
282283
</section>
284+
285+
{/* Funders Section */}
286+
<FunderSection />
283287
</div>
284288
)
285289
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
"use client"
2+
3+
import Link from "next/link"
4+
5+
import fundingData from "@/data/funding.json"
6+
7+
export function FunderSection() {
8+
// Extract unique funders
9+
const uniqueFunders = Array.from(
10+
new Map(
11+
fundingData.map((grant) => [grant.funder.name, grant.funder])
12+
).values()
13+
)
14+
15+
return (
16+
<section className="border-y border-border bg-muted/20 py-8 lg:py-10">
17+
<div className="section-container">
18+
<div className="mx-auto max-w-4xl text-center">
19+
<h2 className="mb-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground">
20+
Supported By
21+
</h2>
22+
<p className="mb-6 text-xs text-muted-foreground">
23+
We gratefully thank our funders who keep the magic alive
24+
</p>
25+
26+
{/* Grid layout for logos */}
27+
<div className="grid grid-cols-3 items-center justify-items-center gap-6 sm:grid-cols-4 lg:grid-cols-6">
28+
{uniqueFunders.map((funder) => (
29+
<a
30+
key={funder.name}
31+
href={funder.website}
32+
target="_blank"
33+
rel="noopener noreferrer"
34+
className="group flex h-12 w-full items-center justify-center transition-opacity hover:opacity-100 lg:h-14"
35+
aria-label={`Visit ${funder.name} website`}
36+
>
37+
<img
38+
src={funder.logo}
39+
alt={funder.name}
40+
className="max-h-full max-w-full object-contain opacity-60 grayscale transition-all duration-300 group-hover:opacity-100 group-hover:grayscale-0"
41+
/>
42+
</a>
43+
))}
44+
</div>
45+
46+
{/* Link to full funding page */}
47+
<div className="mt-6">
48+
<Link
49+
href="/funding"
50+
className="inline-flex items-center gap-1.5 text-xs font-medium text-primary transition-colors hover:text-primary/80"
51+
>
52+
View All Funding & Grants
53+
<svg
54+
className="size-3"
55+
fill="none"
56+
stroke="currentColor"
57+
viewBox="0 0 24 24"
58+
>
59+
<path
60+
strokeLinecap="round"
61+
strokeLinejoin="round"
62+
strokeWidth={2}
63+
d="M9 5l7 7-7 7"
64+
/>
65+
</svg>
66+
</Link>
67+
</div>
68+
</div>
69+
</div>
70+
</section>
71+
)
72+
}

components/header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const navigation = [
1616
{ name: "Research", href: "/research" },
1717
{ name: "People", href: "/people" },
1818
{ name: "Publications", href: "/publications" },
19-
{ name: "Funding", href: "/funding" },
2019
{ name: "Awards", href: "/awards" },
2120
{ name: "Open Positions", href: "/positions" },
2221
{ name: "Contact", href: "/contact" },

data/funding.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
[
2+
{
3+
"id": "scene-2025",
4+
"period": "2025 - 2035",
5+
"title": "Simons Collaboration on Ecological Neuroscience",
6+
"description": "Prof. Mathis was awarded as part of Simons Collaboration on Ecological Neuroscience!",
7+
"type": "Foundation",
8+
"funder": {
9+
"name": "Simons Collaboration on Ecological Neuroscience",
10+
"logo": "/images/funders/simons.png",
11+
"website": "https://www.simonsfoundation.org/"
12+
}
13+
},
214
{
315
"id": "snsf-2024",
416
"period": "2024 - 2028",

public/images/funders/simons.png

66.9 KB
Loading

0 commit comments

Comments
 (0)