From 9920a14a0010facc85f6ec5d1dbf272d2e2dfed3 Mon Sep 17 00:00:00 2001 From: Laura Langdon <48335772+LauraLangdon@users.noreply.github.com> Date: Wed, 3 Jun 2026 19:16:54 -0700 Subject: [PATCH 1/2] update landing page --- src/content/docs/index.mdx | 49 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index 5310e97..97e91d7 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -1,35 +1,34 @@ --- title: Distribute Aid Docs description: Documentation for Distribute Aid's projects, tools, and processes. -template: splash -hero: - tagline: Documentation for Distribute Aid's projects, tools, and processes. - actions: - - text: Get Started - link: /how-to-da/contributing - icon: right-arrow - - text: GitHub - link: https://github.com/distributeaid - icon: external - variant: minimal +template: doc --- -import { Card, CardGrid } from '@astrojs/starlight/components'; +import { LinkCard, CardGrid } from '@astrojs/starlight/components'; + +Documentation for Distribute Aid's projects, tools, and processes. ## Projects - - Data collection and analysis for understanding aid distribution needs across - regions. - - - The next generation of the Distribute Aid public website. - - - Collecting and organizing publicly available aid-related data. - - - New to Distribute Aid? Start here to learn how to contribute. - + + + + From 37535a7065441ec091724084b5a141160db17369 Mon Sep 17 00:00:00 2001 From: Laura Langdon <48335772+LauraLangdon@users.noreply.github.com> Date: Wed, 3 Jun 2026 21:21:23 -0700 Subject: [PATCH 2/2] add back icons in cards --- src/content/docs/index.mdx | 42 +++++++++++++++++++------------------- src/styles/custom.css | 20 ++++++++++++++++++ 2 files changed, 41 insertions(+), 21 deletions(-) diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index 97e91d7..efda042 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -4,31 +4,31 @@ description: Documentation for Distribute Aid's projects, tools, and processes. template: doc --- -import { LinkCard, CardGrid } from '@astrojs/starlight/components'; +import { Card, CardGrid, LinkButton } from '@astrojs/starlight/components'; Documentation for Distribute Aid's projects, tools, and processes. ## Projects - - - - + +Data collection and analysis for understanding aid distribution needs across regions. + +Needs Assessment docs + + +The next generation of the Distribute Aid public website. + +Website docs + + +Collecting and organizing publicly available aid-related data. + +API docs + + +New to Distribute Aid? Start here to learn how to contribute. + +Get started + diff --git a/src/styles/custom.css b/src/styles/custom.css index 476937e..ed4f69a 100644 --- a/src/styles/custom.css +++ b/src/styles/custom.css @@ -12,3 +12,23 @@ --sl-hue-accent: 222; --sl-hue-blue: 222; } + +/* Card CTA buttons: bottom-aligned across a row, with a guaranteed gap + above so the button never crowds the description in denser cards. */ +.sl-markdown-content .card { + display: flex; + flex-direction: column; + padding-bottom: 1.2rem; +} +.sl-markdown-content .card .body { + display: flex; + flex-direction: column; + flex-grow: 1; +} +.sl-markdown-content .card .body > p { + margin-bottom: 1.5rem; +} +.sl-markdown-content .card .sl-link-button { + margin-top: auto; + align-self: flex-start; +}