File tree Expand file tree Collapse file tree 2 files changed +44
-14
lines changed
Expand file tree Collapse file tree 2 files changed +44
-14
lines changed Original file line number Diff line number Diff line change 22const { frontmatter } = Astro .props
33---
44
5- <html >
6- <head >
7- <title >{ frontmatter .label } </title >
8- </head >
9- <body >
10- <slot />
11- </body >
5+ <html lang =" en" >
6+ <head >
7+ <meta charset =" utf-8" />
8+ <meta name =" viewport" content =" width=device-width" />
9+ <meta name =" generator" content ={ Astro .generator } />
10+ <link rel =" icon" type =" image/svg+xml" href =" /favicon.svg" />
11+ <style >
12+ html,
13+ body {
14+ font-family: system-ui;
15+ margin: 0;
16+ }
17+ body {
18+ padding: 2rem;
19+ }
20+ </style >
21+ </head >
22+ <body >
23+ <main class =" flex flex-col gap-2" >
24+ <div class =" flex w-48 h-48 justify-center items-center" ><img src ={ frontmatter .icon } class =" max-w-96 max-h-96" /></div >
25+ <h1 class =" text-4xl font-bold" >{ frontmatter .label } </h1 >
26+ <slot />
27+ <div class =" flex flex-row gap-4" >
28+ <a class =" font-bold" href ={ frontmatter .homepage } target =" _blank" >{ frontmatter .short_label } DCC Portal</a >
29+ <a class =" font-bold" href ={ frontmatter .cf_site } target =" _blank" >{ frontmatter .short_label } Program on the NIH Common Fund Website</a >
30+ </div >
31+ </main >
32+ </body >
1233</html >
Original file line number Diff line number Diff line change @@ -21,13 +21,22 @@ const dccs = Object.values(import.meta.glob('./dccs/*.md', { eager: true }))
2121 </head >
2222 <body >
2323 <main >
24- <h1 >Common Fund programs partnered with the CFDE</h1 >
25- <p >The NIH Common Fund is a funding entity within the NIH that supports bold scientific programs that catalyze discovery across all biomedical and behavioral research.</p >
26- { dccs .map (dcc =>
27- <a href = { ` dccs/${dcc .frontmatter .short_label } ` } >
28- <img src = { dcc .frontmatter .icon } />
29- </a >
30- )}
24+ <h1 class =" text-4xl font-bold" >Common Fund Programs Partnered with the CFDE</h1 >
25+ <div class =" grid grid-cols-3 gap-8" >
26+ { dccs .map (dcc =>
27+ <div class = " flex flex-col justify-start items-stretch" >
28+ <div class = " flex flex-row justify-around items-center" >
29+ <div class = " flex w-24 h-24 justify-center items-center" ><img src = { dcc .frontmatter .icon } class = " max-w-24 max-h-24" /></div >
30+ <span class = " font-bold text-lg" >{ dcc .frontmatter .short_label } </span >
31+ </div >
32+ <p style = " overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;" >{ dcc .rawContent ()} </p >
33+ <div class = " flex flex-row justify-around" >
34+ <a class = " font-bold" href = { dcc .url } >Expand</a >
35+ <a class = " font-bold" href = { dcc .frontmatter .homepage } target = " _blank" >Go to DCC portal</a >
36+ </div >
37+ </div >
38+ )}
39+ </div >
3140 </main >
3241 </body >
3342</html >
You can’t perform that action at this time.
0 commit comments