|
1 | 1 | --- |
2 | 2 | import '@/styles/base.css' |
| 3 | +import Layout from '@/components/Layout.astro' |
3 | 4 | const centers = Object.values(import.meta.glob('@/pages/centers/*.md', { eager: true })).filter(center => center.frontmatter.layout === '@/layouts/Center.astro') |
4 | 5 | --- |
5 | 6 |
|
6 | | -<html lang="en"> |
7 | | - <head> |
8 | | - <meta charset="utf-8" /> |
9 | | - <meta name="viewport" content="width=device-width" /> |
10 | | - <meta name="generator" content={Astro.generator} /> |
11 | | - <link rel="icon" type="image/svg+xml" href={`${import.meta.env.BASE_URL}/favicon.png`} /> |
12 | | - </head> |
13 | | - <body> |
14 | | - <main class="dm-sans-500"> |
15 | | - <slot/> |
16 | | - <!-- <h1 class="text-4xl hanken-grotesk-500 text-primary">Common Fund Programs Partnered with the CFDE</h1> --> |
17 | | - <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> |
18 | | - {centers.map(center => |
19 | | - <div class="flex flex-col justify-start items-stretch gap-2 p-8 shadow-md rounded-md"> |
20 | | - <div class="flex flex-row gap-8 items-center"> |
21 | | - <div class="flex w-24 h-24 justify-center items-center"><img src={center.frontmatter.icon} class="max-w-24 max-h-24" /></div> |
22 | | - <span class="hanken-grotesk-500 text-xl text-primary">{center.frontmatter.short_label}</span> |
23 | | - </div> |
24 | | - <p class="overflow-ellipsis text-primary">{center.rawContent()}</p> |
25 | | - <div class="flex flex-row gap-8"> |
26 | | - <a class="hanken-grotesk-500 text-primary hover:bg-gray-100 transition p-4" href={center.url}>Expand</a> |
27 | | - <a class="hanken-grotesk-500 text-primary hover:bg-gray-100 transition p-4" href={center.frontmatter.homepage} target="_blank">Go to DCC portal</a> |
28 | | - </div> |
29 | | - </div> |
30 | | - )} |
| 7 | +<Layout> |
| 8 | + <slot/> |
| 9 | + <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> |
| 10 | + {centers.map(center => |
| 11 | + <div class="flex flex-col justify-start items-stretch gap-2 p-8 shadow-md rounded-md"> |
| 12 | + <div class="flex flex-row gap-8 items-center"> |
| 13 | + <div class="flex w-24 h-24 justify-center items-center"><img src={center.frontmatter.icon} class="max-w-24 max-h-24" /></div> |
| 14 | + <span class="hanken-grotesk-500 text-xl text-primary">{center.frontmatter.short_label}</span> |
| 15 | + </div> |
| 16 | + <p class="overflow-ellipsis text-primary">{center.rawContent()}</p> |
| 17 | + <div class="flex flex-row gap-8"> |
| 18 | + <a class="hanken-grotesk-500 text-primary hover:bg-gray-100 transition p-4" href={center.url}>Expand</a> |
| 19 | + <a class="hanken-grotesk-500 text-primary hover:bg-gray-100 transition p-4" href={center.frontmatter.homepage} target="_blank">Go to DCC portal</a> |
| 20 | + </div> |
31 | 21 | </div> |
32 | | - </main> |
33 | | - </body> |
34 | | -</html> |
| 22 | + )} |
| 23 | + </div> |
| 24 | +</Layout> |
0 commit comments