Skip to content

Commit 46ee0a5

Browse files
committed
Add data to funding sources.
1 parent d70815e commit 46ee0a5

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

src/data/research.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
"agency": "NSF",
2525
"title": "SCH: An intraoral device for multimodal data integration and risk modification connects the oral microbiome to systemic health",
2626
"awardNumber": "2500339",
27-
"years": "2025-2029"
27+
"years": "2025-2029",
28+
"url": "https://www.nsf.gov/awardsearch/showAward?AWD_ID=2500339"
2829
},
2930
{
3031
"agency": "NIH/NLM",
3132
"title": "Discovering clinical endpoints of toxicity via graph machine learning and semantic data analysis",
32-
"awardNumber": "K99/R00LM013646",
33-
"years": "2021-2025"
33+
"awardNumber": "K99/R00-LM013646",
34+
"years": "2021-2025",
35+
"url": "https://reporter.nih.gov/project-details/11000821"
3436
}
3537
]
3638
}

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ import Layout from '../layouts/Layout.astro';
177177
const dx = node.x - otherNode.x;
178178
const dy = node.y - otherNode.y;
179179
const distance = Math.sqrt(dx * dx + dy * dy);
180-
const force = springForce * (distance - 100); // Target edge length is 100px
180+
const force = springForce * (distance - 60); // Target edge length is 100px
181181
fx -= force * (dx / distance);
182182
fy -= force * (dy / distance);
183183
}

src/pages/research.astro

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,18 @@ const research = researchData.default;
4646
<p>Our research is supported by:</p>
4747
<ul>
4848
{research.funding.map((grant) => (
49-
<li><strong>{grant.agency}:</strong> {grant.title} ({grant.years})</li>
49+
<li>
50+
<strong>{grant.agency}</strong>
51+
{grant.awardNumber && (
52+
<span class="award-number">
53+
{" "}[{grant.url ? (
54+
<a href={grant.url} target="_blank" rel="noopener">{grant.awardNumber}</a>
55+
) : (
56+
grant.awardNumber
57+
)}]</span>
58+
)}:
59+
{" "}{grant.title} ({grant.years}).
60+
</li>
5061
))}
5162
</ul>
5263
</section>

src/styles/global.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,3 +582,17 @@ p {
582582
z-index: 1;
583583
pointer-events: none; /* Allow mouse events to pass through text to canvas */
584584
}
585+
586+
.award-number {
587+
font-family: 'Courier New', Courier, monospace;
588+
font-weight: normal;
589+
}
590+
591+
.award-number a {
592+
color: var(--color-primary);
593+
text-decoration: none;
594+
}
595+
596+
.award-number a:hover {
597+
text-decoration: underline;
598+
}

0 commit comments

Comments
 (0)