🧩 Component Library

Visual showcase of reusable components powering The Water Foundation website

29 Components
6 Categories
Live Previews

💬 Core Messages

Large-scale narrative sections that tell our story

9 components • Hero sections, crisis messaging, transformation stories

AtCrisisPoint--Jumbo

Full-screen crisis messaging with visual impact

CrisisJumbo

The Critical Resource Crisis

Water is quickly becoming the world's most critical resource...

!
Crisis Indicator

InvestInTransformation--Jumbo

Hopeful transformation messaging with animations

HopeAnimated
Innovation

More Than A Crisis

This is a call to invest in the future...

📊 Message Grids

Structured data displays and metric showcases

8 components • Cards, metrics, columnar layouts, facts display

MessageCardRow

Key metrics display with hover animations

MetricsInteractive
Critical
Status
Water scarcity & contamination rising globally
+247%
2024 Growth
Investor interest in water tech
$
∞B
Market Size
Unlimited growth potential
3
Verticals
Integrated
Unsiloed finance approach

UnsiloedFinanceColumn

Investment verticals with color-coded categories

FinanceReusable

Unsiloed Finance

1

Venture Builders

Identify best water IP/ideas, build teams, enable with capital

2

VC Funds

Invest in existing teams, plug into venture ecosystem, scale

3

PE Funds

Buy incumbents and hidden champions, build something bigger

FactsGrid

Responsive grid layout for displaying water facts

FactsGrid

Sample Water Facts

Visual preview of facts grid layout

🌊
Fact 1
Global Water Crisis

Water scarcity affects 40% of the global population...

UN Water
🐋
Fact 2
Ocean Pollution

Over 8 million tons of plastic waste enter our oceans...

Ocean Conservancy

FactCard--w-Image

Individual fact card with image and source attribution

CardImage
🌊
Fact 1
Global Water Crisis

Water scarcity affects 40% of the global population and is projected to increase with climate change and population growth.

UN Water: "World Water Report 2023"

📊 Infographics

Data visualization components for water-related statistics and indicators

IndicatorsGrid

Responsive grid of key water indicators with severity levels

New
Critical

Access to Safe Drinking Water

2.2B

people without access

UNICEF/WHO JMP, 2023

Critical

Sanitation Access

3.5B

lack safe sanitation

WHO/UNICEF JMP, 2023

Severe

Wastewater

80%

untreated globally

UNESCO WWDR, 2023

Severe

Economic Losses

$260B

annually

World Bank, 2021

Opportunity

Market Growth

$1T+

water tech market by 2030

BNEF, 2023

Critical

Climate Impact

74%

of climate disasters water-related

UNDRR, 2022

Basic Usage

// 1. Import the component
import IndicatorsGrid from '@components/infographic/IndicatorsGrid.astro';

// 2. Use with default indicators
<IndicatorsGrid />

Custom Data

// 1. Define your indicators data
const customIndicators = [
  {
    severity: 'critical',  // 'critical' | 'severe' | 'opportunity'
    title: 'Water Scarcity',
    value: '2.2B',
    description: 'people without access',
    source: 'UN Water, 2023'
  },
  // ... more indicators
];

// 2. Pass data to the component
<IndicatorsGrid indicators={customIndicators} />

IndicatorCard

Individual indicator card component with severity levels

New
Critical

Water Scarcity

2.2B

People affected globally

UN Water, 2023

Opportunity

Market Growth

$1T+

Water tech market by 2030

BNEF, 2023

Basic Usage

// 1. Import the component
import IndicatorCard from '@components/infographic/IndicatorCard.astro';

// 2. Use with required props
<IndicatorCard
  severity="critical"  // 'critical' | 'severe' | 'opportunity'
  title="Water Scarcity"
  value="2.2B"
  description="People affected globally"
  source="UN Water, 2023"
  class="custom-class"  // Optional: Add custom classes
/>

Props

PropTypeRequiredDescription
severity'critical' | 'severe' | 'opportunity'YesDetermines the color and styling of the indicator
titlestringYesThe main title of the indicator
valuestringYesThe main value to display (e.g., '2.2B', '74%')
descriptionstringYesShort description of what the value represents
sourcestringYesData source attribution
classstringNoAdditional CSS classes to apply

📊 Data Display

Components for presenting data and information in a structured way

FactCard

Display facts with source attribution

CardFact

Basic Fact Card

Fact Card with Image

Basic Usage

// 1. Import the component
import FactCard from '@components/facts/FactCard.astro';
import FactCardWithImage from '@components/facts/FactCard--w-Image.astro';

// 2. Use with a content collection entry
<FactCard entry={entry} />

// 3. Or with the image variant
<FactCardWithImage entry={entry} />

Content Collection Example

// 1. In your content/config.ts
export const collections = {
  facts: defineCollection({
    type: 'data',
    schema: z.object({
      title: z.string(),
      index: z.number(),
      zinger: z.string().optional(),
      source_org: z.string().optional(),
      source_title: z.string().optional().nullable(),
      source_url: z.string().url().optional().nullable(),
      companion_image_url: z.string().optional(),
      sources: z.array(
        z.object({
          org: z.string(),
          title: z.string().optional().nullable(),
          url: z.string().url().optional().nullable(),
        })
      ).optional(),
    }),
  }),
  // ... other collections
};

// 2. In your page component
const entries = await getCollection('facts');

// 3. Render the cards
{entries.map(entry => (
  <FactCard entry={entry} class="mb-4" />
))}

📈 Data Display

Tables, timelines, and structured information

3 components • Tables, timelines, data visualization

Timeline

Animated timeline for showcasing progress

TimelineAnimated

Desalination

Advanced technologies addressing water scarcity with unprecedented efficiency.

Advanced Treatment

Next-generation wastewater treatment solutions creating circular water economies.

PFAS Destruction

Breakthrough technologies eliminating forever chemicals from water systems.

BrandTableDisplay

First principles strategy table with sticky headers

StrategyTable
First PrincipleStrategic ResponseDonor ExampleInvestor Example
1. Water is essential — but mispriced.Align capital with access and risk.Fund women-led kiosks for clean water access in underserved regions.Invest in a digital water rights platform scaling across LATAM.
2. Resilience is the true return.Build for long-term, systemic stability.Core support for water-health-data systems across rural zones.Growth equity in climate-smart irrigation with cross-border reach.
3. Complexity is the alpha.Step in where others hesitate.De-risk blended municipal water reuse pilots in India.Structure SPV for desalination plant in MENA with ESG premiums.
4. Tech must meet governance.Fund tech + policy + community capacity.Grants for soil-water-tech agroforestry in climate-hit Sahel.Hybrid investment in leak detection SaaS + retrofitting ops.
5. Value compounds across sectors.Track and multiply co-benefits.Cross-sector school WASH programs embedded in gender equity.Carbon + biodiversity credits via blue-carbon mangrove assets.

Component Usage

29
Total Components
17
Active in Production
6
Categories