Tree-planting charity landing page
A hopeful page for a tree-planting charity: slide your gift and a tree sprouts on the hillside for every £5, a name you type hangs on a tag on your first tree, and the season’s goal bar lights up your share.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./charity-page.css";
/**
* CharityPage: a landing page for a tree-planting charity.
* Its signature is the hillside: slide the gift and a tree sprouts for every £5,
* oaks, pines and birches growing in rows, while the season's goal bar
* shows your share. A name typed in hangs on a tag on your first tree.
* It is a demo: connect `onDonate` to your payment page.
*/
const PER_TREE = 5;
const GOAL = 60000;
const PLANTED = 41860;
const MAX_TREES = 40;
type Spot = { x: number; y: number; s: number; kind: 0 | 1 | 2; row: number };
const ground = (x: number) => 232 + 18 * Math.sin(x / 80) + 10 * Math.sin(x / 31);
// Fixed spots on the hill: three rows, back row smaller.
const SPOTS: Spot[] = Array.from({ length: MAX_TREES }, (_, i) => {
const row = i % 3;
const x = 24 + ((i * 137) % 556);
const y = ground(x) + 14 + row * 22;
return { x, y, s: 0.95 + row * 0.3, kind: ((i * 7) % 3) as 0 | 1 | 2, row };
});
const DRAW_ORDER = SPOTS.map((s, i) => ({ ...s, i })).sort((a, b) => a.y - b.y);
const SITES = [
{ name: "Calder valley", trees: "18,400", note: "Oak and rowan on steep sheep pasture to slow flood water." },
{ name: "Hebden moor edge", trees: "12,900", note: "Birch and Scots pine where the old woodland ran out." },
{ name: "School grounds", trees: "10,560", note: "Hedges and orchards planted by 34 primary schools." },
];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-grove__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
function Tree({ kind }: { kind: 0 | 1 | 2 }) {
if (kind === 1)
return (
<>
<rect x="-2" y="-10" width="4" height="10" className="gu-grove__trunk" />
<path d="M0 -46 L13 -20 H7 L16 -8 H-16 L-7 -20 H-13Z" className="gu-grove__pine" />
</>
);
if (kind === 2)
return (
<>
<rect x="-1.5" y="-30" width="3" height="30" className="gu-grove__birch" />
<ellipse cx="0" cy="-34" rx="10" ry="15" className="gu-grove__leaf-b" />
</>
);
return (
<>
<rect x="-2.5" y="-14" width="5" height="14" className="gu-grove__trunk" />
<circle cx="-7" cy="-22" r="10" className="gu-grove__leaf" />
<circle cx="7" cy="-24" r="11" className="gu-grove__leaf" />
<circle cx="0" cy="-33" r="12" className="gu-grove__leaf" />
</>
);
}
export function CharityPage({
onDonate,
}: {
onDonate?: (gift: { amount: number; monthly: boolean; dedication: string }) => void;
}) {
const [amount, setAmount] = useState(25);
const [from, setFrom] = useState(0);
const [monthly, setMonthly] = useState(false);
const [dedication, setDedication] = useState("");
const [thanks, setThanks] = useState(false);
const trees = Math.round(amount / PER_TREE);
const yearly = monthly ? trees * 12 : trees;
const before = (PLANTED / GOAL) * 100;
const yours = Math.max(0.6, (yearly / GOAL) * 100);
const first = SPOTS[0];
return (
<div className="gu-grove">
<header className="gu-grove__bar">
<a href="#" className="gu-grove__mark">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 2 4 14h5l-3 5h12l-3-5h5z" />
<path d="M12 19v3" />
</svg>
Root & Rise
</a>
<nav aria-label="Root and Rise">
<a href="#grove-sites">Where we plant</a>
<a href="#grove-give" className="gu-grove__navcta">
Plant a tree
</a>
</nav>
</header>
<section className="gu-grove__hero">
<div className="gu-grove__hero-copy">
<h1>Every £5 puts a native tree in the ground.</h1>
<p>
We are a volunteer-led charity replanting the Calder valley, one hillside at a time. You fund the tree,
the guard and three years of weeding.
</p>
<a href="#grove-give" className="gu-grove__cta">
Plant yours
</a>
</div>
<Photo
src="/images/landing-charity-planting-01.jpg"
alt="Volunteers in muddy boots heeling in saplings on a wet hillside"
tone="#5d7a4a"
className="gu-grove__hero-img"
/>
</section>
<section id="grove-give" className="gu-grove__give" aria-labelledby="grove-give-title">
<h2 id="grove-give-title">Grow your patch</h2>
<div className="gu-grove__hill">
<svg viewBox="0 0 600 330" role="img" aria-label={`${trees} trees on the hillside`}>
<circle cx="510" cy="70" r="34" className="gu-grove__sun" />
<path d="M0 190 C120 150 220 210 330 170 S520 150 600 180 V330 H0Z" className="gu-grove__far" />
<path
d={`M0 ${ground(0)} ${Array.from({ length: 31 }, (_, k) => `L${k * 20} ${ground(k * 20).toFixed(1)}`).join(" ")} V330 H0Z`}
className="gu-grove__near"
/>
{DRAW_ORDER.filter((s) => s.i < trees).map((s) => (
<g
key={s.i}
className="gu-grove__tree"
style={
{
"--x": `${s.x}px`,
"--y": `${s.y}px`,
"--s": s.s,
"--d": `${Math.max(0, s.i - from) * 45}ms`,
} as CSSProperties
}
>
<g className="gu-grove__grow">
<Tree kind={s.kind} />
</g>
</g>
))}
{dedication.trim() && trees > 0 && (
<g className="gu-grove__tag" style={{ "--x": `${first.x}px`, "--y": `${first.y - 30 * first.s}px` } as CSSProperties}>
<path d="M0 0 L10 -14" className="gu-grove__string" />
<rect x="6" y="-34" width={Math.min(150, 14 + dedication.trim().length * 7)} height="20" rx="4" />
<text x="13" y="-20">
{dedication.trim().slice(0, 20)}
</text>
</g>
)}
</svg>
<p className="gu-grove__count" aria-live="polite">
<b key={trees}>{trees}</b> {trees === 1 ? "tree" : "trees"}
{monthly && <span> every month, {yearly} a year</span>}
</p>
</div>
<div className="gu-grove__controls">
<div className="gu-grove__freq" role="group" aria-label="How often">
<button type="button" aria-pressed={!monthly} onClick={() => setMonthly(false)}>
Once
</button>
<button type="button" aria-pressed={monthly} onClick={() => setMonthly(true)}>
Monthly
</button>
</div>
<label className="gu-grove__amount">
<span>
<b>£{amount}</b>
{monthly ? " a month" : ""}
</span>
<input
type="range"
min={5}
max={200}
step={5}
value={amount}
onChange={(e) => {
setFrom(trees);
setAmount(Number(e.target.value));
setThanks(false);
}}
style={{ "--p": `${((amount - 5) / 195) * 100}%` } as CSSProperties}
/>
</label>
<label className="gu-grove__dedicate">
<span>Plant in someone’s name (optional)</span>
<input
type="text"
maxLength={20}
value={dedication}
placeholder="For Grandad Joe"
onChange={(e) => setDedication(e.target.value)}
/>
</label>
<div className="gu-grove__goal">
<p>
This season: <b>{PLANTED.toLocaleString("en-GB")}</b> of {GOAL.toLocaleString("en-GB")} trees
</p>
<div className="gu-grove__track" aria-hidden="true">
<span className="gu-grove__done" style={{ width: `${before}%` }} />
<span className="gu-grove__yours" style={{ left: `${before}%`, width: `${yours}%` }} />
</div>
<p className="gu-grove__small">The bright piece is you.</p>
</div>
{thanks ? (
<p className="gu-grove__thanks" role="status">
Thank you. {yearly} {yearly === 1 ? "tree goes" : "trees go"} in this winter
{dedication.trim() ? `, the first with a tag for ${dedication.trim()}` : ""}. We’ll send you its map pin.
</p>
) : (
<button
type="button"
className="gu-grove__cta gu-grove__give-btn"
onClick={() => {
onDonate?.({ amount, monthly, dedication: dedication.trim() });
setThanks(true);
}}
>
Give £{amount}
{monthly ? " a month" : ""}
</button>
)}
</div>
</section>
<section id="grove-sites" className="gu-grove__sites" aria-labelledby="grove-sites-title">
<h2 id="grove-sites-title">Where your trees go</h2>
<div className="gu-grove__sitegrid">
<Photo
src="/images/landing-charity-forest-03.jpg"
alt="Young trees in tall summer grass on a hillside, some still in their guards"
tone="#7a6a3a"
className="gu-grove__forest"
/>
<ol>
{SITES.map((s) => (
<li key={s.name}>
<h3>{s.name}</h3>
<p className="gu-grove__trees">{s.trees} trees</p>
<p>{s.note}</p>
</li>
))}
</ol>
</div>
</section>
<section className="gu-grove__grower">
<Photo
src="/images/landing-charity-grower-02.jpg"
alt="An older woman in a fleece holding a tray of oak seedlings in a polytunnel"
tone="#6d7d55"
className="gu-grove__grower-img"
/>
<blockquote>
<p>
“I grow every one of them from seed we collect in the valley. When I walk the hill now, I know their
grandparents.”
</p>
<footer>Pat Lowe, runs our tree nursery</footer>
</blockquote>
</section>
<footer className="gu-grove__foot">
<span>© 2026 Root & Rise, Hebden Bridge</span>
<a href="#">Accounts</a>
<a href="#">Volunteer</a>
</footer>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Tree-planting charity landing page
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A hopeful landing page for a volunteer tree-planting charity ("Root & Rise, Calder valley"). Its signature is "Grow your patch": an SVG hillside (sky gradient, a slowly glowing low sun, a far hill and a wavy near hill) where one tree stands for every £5. A gift slider (£5–£200) sets the number of trees (up to 40) on fixed spots in three rows, the back row smaller and drawn first. Oaks (three round crowns), pines (stepped triangles) and birches (white trunk, lime crown) sprout from their base with a squash-and-stretch, the new ones one after another. A Once/Monthly switch changes the wording to trees a month and a year. A "Plant in someone’s name" field hangs a swinging paper tag on the first tree. A goal bar shows this season’s 41,860 of 60,000 trees in deep green, with your share as a blinking sun-yellow piece after it. "Give £25" turns into a thank-you line that repeats the dedication.
## Palette
Background #f2f5ee, deep green #1f3d2b, moss #5f8a3e, leaf #7fae55, pine #3f6e3c, birch crown #b9cf62, soil #7a4e2d, sun #f2b33d, muted #5c6a5f, focus #2b35ff. Headings use a slab serif (Rockwell, Roboto Slab); body is system-ui.
## Layout
- Bar: a pine mark, the name, "Where we plant" and a deep green "Plant a tree" button.
- Hero: copy on the left, a planting photo with one big rounded corner that wipes up.
- Give: a white rounded panel, the hillside on the left, controls, goal bar and button on the right.
- Where your trees go: a woodland photo and three planting sites with their tree counts.
- Grower: a deep green band with a nursery photo and a quote.
- Below 760px everything stacks.
## Images
- landing-charity-planting-01.jpg (16:9, shown at 4:3), landing-charity-forest-03.jpg (3:2, shown at 4:3) and landing-charity-grower-02.jpg (4:5). Until a file exists, each frame shows a green tone.
## Accessibility
- The hillside is role="img" with a label giving the tree count; the count is aria-live and the thanks is role="status".
- The frequency switch uses aria-pressed; the slider and text field have visible labels.
- prefers-reduced-motion turns off every animation and transition.
## Connect it
`onDonate({ amount, monthly, dedication })` fires when the gift button is pressed.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### CharityPage.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./charity-page.css";
/**
* CharityPage: a landing page for a tree-planting charity.
* Its signature is the hillside: slide the gift and a tree sprouts for every £5,
* oaks, pines and birches growing in rows, while the season's goal bar
* shows your share. A name typed in hangs on a tag on your first tree.
* It is a demo: connect `onDonate` to your payment page.
*/
const PER_TREE = 5;
const GOAL = 60000;
const PLANTED = 41860;
const MAX_TREES = 40;
type Spot = { x: number; y: number; s: number; kind: 0 | 1 | 2; row: number };
const ground = (x: number) => 232 + 18 * Math.sin(x / 80) + 10 * Math.sin(x / 31);
// Fixed spots on the hill: three rows, back row smaller.
const SPOTS: Spot[] = Array.from({ length: MAX_TREES }, (_, i) => {
const row = i % 3;
const x = 24 + ((i * 137) % 556);
const y = ground(x) + 14 + row * 22;
return { x, y, s: 0.95 + row * 0.3, kind: ((i * 7) % 3) as 0 | 1 | 2, row };
});
const DRAW_ORDER = SPOTS.map((s, i) => ({ ...s, i })).sort((a, b) => a.y - b.y);
const SITES = [
{ name: "Calder valley", trees: "18,400", note: "Oak and rowan on steep sheep pasture to slow flood water." },
{ name: "Hebden moor edge", trees: "12,900", note: "Birch and Scots pine where the old woodland ran out." },
{ name: "School grounds", trees: "10,560", note: "Hedges and orchards planted by 34 primary schools." },
];
function Photo({ src, alt, tone, className = "" }: { src: string; alt: string; tone: string; className?: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<span className={`gu-grove__photo ${className}`} style={{ "--tone": tone } as CSSProperties}>
{!missing && <img ref={img} src={src} alt={alt} loading="lazy" onError={() => setMissing(true)} />}
</span>
);
}
function Tree({ kind }: { kind: 0 | 1 | 2 }) {
if (kind === 1)
return (
<>
<rect x="-2" y="-10" width="4" height="10" className="gu-grove__trunk" />
<path d="M0 -46 L13 -20 H7 L16 -8 H-16 L-7 -20 H-13Z" className="gu-grove__pine" />
</>
);
if (kind === 2)
return (
<>
<rect x="-1.5" y="-30" width="3" height="30" className="gu-grove__birch" />
<ellipse cx="0" cy="-34" rx="10" ry="15" className="gu-grove__leaf-b" />
</>
);
return (
<>
<rect x="-2.5" y="-14" width="5" height="14" className="gu-grove__trunk" />
<circle cx="-7" cy="-22" r="10" className="gu-grove__leaf" />
<circle cx="7" cy="-24" r="11" className="gu-grove__leaf" />
<circle cx="0" cy="-33" r="12" className="gu-grove__leaf" />
</>
);
}
export function CharityPage({
onDonate,
}: {
onDonate?: (gift: { amount: number; monthly: boolean; dedication: string }) => void;
}) {
const [amount, setAmount] = useState(25);
const [from, setFrom] = useState(0);
const [monthly, setMonthly] = useState(false);
const [dedication, setDedication] = useState("");
const [thanks, setThanks] = useState(false);
const trees = Math.round(amount / PER_TREE);
const yearly = monthly ? trees * 12 : trees;
const before = (PLANTED / GOAL) * 100;
const yours = Math.max(0.6, (yearly / GOAL) * 100);
const first = SPOTS[0];
return (
<div className="gu-grove">
<header className="gu-grove__bar">
<a href="#" className="gu-grove__mark">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 2 4 14h5l-3 5h12l-3-5h5z" />
<path d="M12 19v3" />
</svg>
Root & Rise
</a>
<nav aria-label="Root and Rise">
<a href="#grove-sites">Where we plant</a>
<a href="#grove-give" className="gu-grove__navcta">
Plant a tree
</a>
</nav>
</header>
<section className="gu-grove__hero">
<div className="gu-grove__hero-copy">
<h1>Every £5 puts a native tree in the ground.</h1>
<p>
We are a volunteer-led charity replanting the Calder valley, one hillside at a time. You fund the tree,
the guard and three years of weeding.
</p>
<a href="#grove-give" className="gu-grove__cta">
Plant yours
</a>
</div>
<Photo
src="/images/landing-charity-planting-01.jpg"
alt="Volunteers in muddy boots heeling in saplings on a wet hillside"
tone="#5d7a4a"
className="gu-grove__hero-img"
/>
</section>
<section id="grove-give" className="gu-grove__give" aria-labelledby="grove-give-title">
<h2 id="grove-give-title">Grow your patch</h2>
<div className="gu-grove__hill">
<svg viewBox="0 0 600 330" role="img" aria-label={`${trees} trees on the hillside`}>
<circle cx="510" cy="70" r="34" className="gu-grove__sun" />
<path d="M0 190 C120 150 220 210 330 170 S520 150 600 180 V330 H0Z" className="gu-grove__far" />
<path
d={`M0 ${ground(0)} ${Array.from({ length: 31 }, (_, k) => `L${k * 20} ${ground(k * 20).toFixed(1)}`).join(" ")} V330 H0Z`}
className="gu-grove__near"
/>
{DRAW_ORDER.filter((s) => s.i < trees).map((s) => (
<g
key={s.i}
className="gu-grove__tree"
style={
{
"--x": `${s.x}px`,
"--y": `${s.y}px`,
"--s": s.s,
"--d": `${Math.max(0, s.i - from) * 45}ms`,
} as CSSProperties
}
>
<g className="gu-grove__grow">
<Tree kind={s.kind} />
</g>
</g>
))}
{dedication.trim() && trees > 0 && (
<g className="gu-grove__tag" style={{ "--x": `${first.x}px`, "--y": `${first.y - 30 * first.s}px` } as CSSProperties}>
<path d="M0 0 L10 -14" className="gu-grove__string" />
<rect x="6" y="-34" width={Math.min(150, 14 + dedication.trim().length * 7)} height="20" rx="4" />
<text x="13" y="-20">
{dedication.trim().slice(0, 20)}
</text>
</g>
)}
</svg>
<p className="gu-grove__count" aria-live="polite">
<b key={trees}>{trees}</b> {trees === 1 ? "tree" : "trees"}
{monthly && <span> every month, {yearly} a year</span>}
</p>
</div>
<div className="gu-grove__controls">
<div className="gu-grove__freq" role="group" aria-label="How often">
<button type="button" aria-pressed={!monthly} onClick={() => setMonthly(false)}>
Once
</button>
<button type="button" aria-pressed={monthly} onClick={() => setMonthly(true)}>
Monthly
</button>
</div>
<label className="gu-grove__amount">
<span>
<b>£{amount}</b>
{monthly ? " a month" : ""}
</span>
<input
type="range"
min={5}
max={200}
step={5}
value={amount}
onChange={(e) => {
setFrom(trees);
setAmount(Number(e.target.value));
setThanks(false);
}}
style={{ "--p": `${((amount - 5) / 195) * 100}%` } as CSSProperties}
/>
</label>
<label className="gu-grove__dedicate">
<span>Plant in someone’s name (optional)</span>
<input
type="text"
maxLength={20}
value={dedication}
placeholder="For Grandad Joe"
onChange={(e) => setDedication(e.target.value)}
/>
</label>
<div className="gu-grove__goal">
<p>
This season: <b>{PLANTED.toLocaleString("en-GB")}</b> of {GOAL.toLocaleString("en-GB")} trees
</p>
<div className="gu-grove__track" aria-hidden="true">
<span className="gu-grove__done" style={{ width: `${before}%` }} />
<span className="gu-grove__yours" style={{ left: `${before}%`, width: `${yours}%` }} />
</div>
<p className="gu-grove__small">The bright piece is you.</p>
</div>
{thanks ? (
<p className="gu-grove__thanks" role="status">
Thank you. {yearly} {yearly === 1 ? "tree goes" : "trees go"} in this winter
{dedication.trim() ? `, the first with a tag for ${dedication.trim()}` : ""}. We’ll send you its map pin.
</p>
) : (
<button
type="button"
className="gu-grove__cta gu-grove__give-btn"
onClick={() => {
onDonate?.({ amount, monthly, dedication: dedication.trim() });
setThanks(true);
}}
>
Give £{amount}
{monthly ? " a month" : ""}
</button>
)}
</div>
</section>
<section id="grove-sites" className="gu-grove__sites" aria-labelledby="grove-sites-title">
<h2 id="grove-sites-title">Where your trees go</h2>
<div className="gu-grove__sitegrid">
<Photo
src="/images/landing-charity-forest-03.jpg"
alt="Young trees in tall summer grass on a hillside, some still in their guards"
tone="#7a6a3a"
className="gu-grove__forest"
/>
<ol>
{SITES.map((s) => (
<li key={s.name}>
<h3>{s.name}</h3>
<p className="gu-grove__trees">{s.trees} trees</p>
<p>{s.note}</p>
</li>
))}
</ol>
</div>
</section>
<section className="gu-grove__grower">
<Photo
src="/images/landing-charity-grower-02.jpg"
alt="An older woman in a fleece holding a tray of oak seedlings in a polytunnel"
tone="#6d7d55"
className="gu-grove__grower-img"
/>
<blockquote>
<p>
“I grow every one of them from seed we collect in the valley. When I walk the hill now, I know their
grandparents.”
</p>
<footer>Pat Lowe, runs our tree nursery</footer>
</blockquote>
</section>
<footer className="gu-grove__foot">
<span>© 2026 Root & Rise, Hebden Bridge</span>
<a href="#">Accounts</a>
<a href="#">Volunteer</a>
</footer>
</div>
);
}
```
### charity-page.css
```css
/* CharityPage: Root & Rise. Wet hillside greens, soil and a low winter sun. */
.gu-grove {
--bg: #f2f5ee;
--deep: #1f3d2b;
--moss: #5f8a3e;
--leaf: #7fae55;
--soil: #7a4e2d;
--sun: #f2b33d;
--ink: #1f2a22;
--muted: #5c6a5f;
--line: rgb(31 61 43 / 0.15);
--focus: #2b35ff;
--slab: "Rockwell", "Roboto Slab", "Museo Slab", Georgia, serif;
container-type: inline-size;
overflow: hidden;
background: var(--bg);
color: var(--ink);
font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gu-grove *,
.gu-grove *::before,
.gu-grove *::after {
box-sizing: border-box;
}
.gu-grove a {
color: inherit;
}
.gu-grove button,
.gu-grove input {
font: inherit;
color: inherit;
}
.gu-grove button {
cursor: pointer;
}
.gu-grove :focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.gu-grove h1,
.gu-grove h2,
.gu-grove h3 {
font-family: var(--slab);
font-weight: 700;
margin: 0;
line-height: 1.08;
}
.gu-grove__photo {
display: block;
overflow: hidden;
background: linear-gradient(170deg, color-mix(in srgb, var(--tone) 55%, #fff), var(--tone));
}
.gu-grove__photo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Bar */
.gu-grove__bar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 16px clamp(16px, 4cqi, 40px);
}
.gu-grove__mark {
display: flex;
gap: 8px;
align-items: center;
font-family: var(--slab);
font-weight: 700;
font-size: 20px;
text-decoration: none;
color: var(--deep);
}
.gu-grove__mark svg {
width: 26px;
height: 26px;
fill: var(--moss);
stroke: var(--deep);
stroke-width: 1.6;
stroke-linejoin: round;
}
.gu-grove__bar nav {
display: flex;
gap: 18px;
align-items: center;
font-size: 15px;
}
.gu-grove__bar nav a {
text-decoration: none;
color: var(--muted);
}
.gu-grove__bar nav .gu-grove__navcta {
background: var(--deep);
color: #fff;
padding: 9px 16px;
border-radius: 6px;
}
/* Hero */
.gu-grove__hero {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
padding: 32px clamp(16px, 4cqi, 40px) 56px;
align-items: center;
}
.gu-grove__hero h1 {
font-size: clamp(34px, 5.8cqi, 58px);
color: var(--deep);
animation: gu-grove-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gu-grove__hero p {
color: var(--muted);
margin: 16px 0 24px;
max-width: 42ch;
animation: gu-grove-up 0.9s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gu-grove__hero-img {
aspect-ratio: 4 / 3;
border-radius: 6px 120px 6px 6px;
animation: gu-grove-reveal 1.2s cubic-bezier(0.6, 0, 0.2, 1) both;
}
.gu-grove__cta {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 50px;
padding: 0 24px;
border: 0;
border-radius: 6px;
background: var(--sun);
color: var(--deep);
font-weight: 700;
text-decoration: none;
transition: transform 0.2s, background 0.2s;
}
.gu-grove__cta:hover {
background: #ffc457;
transform: translateY(-2px);
}
/* Give */
.gu-grove__give {
margin: 0 clamp(16px, 4cqi, 40px);
padding: 32px;
background: #fff;
border-radius: 16px;
border: 1px solid var(--line);
display: grid;
grid-template-columns: 1.35fr 1fr;
gap: 8px 32px;
}
.gu-grove__give h2 {
grid-column: 1 / -1;
font-size: clamp(28px, 4.4cqi, 40px);
color: var(--deep);
margin-bottom: 12px;
}
.gu-grove__hill svg {
display: block;
width: 100%;
height: auto;
border-radius: 12px;
background: linear-gradient(#cfe2ea, #eef3e4 70%);
}
.gu-grove__sun {
fill: var(--sun);
opacity: 0.9;
transform-box: fill-box;
transform-origin: center;
animation: gu-grove-glow 5s ease-in-out infinite;
}
.gu-grove__far {
fill: #a9c48e;
}
.gu-grove__near {
fill: #7fa25a;
}
.gu-grove__tree {
translate: var(--x) var(--y);
scale: var(--s);
}
.gu-grove__grow {
transform-origin: 0 0;
animation: gu-grove-sprout 0.7s cubic-bezier(0.3, 1.7, 0.5, 1) both;
animation-delay: var(--d);
}
.gu-grove__grow > * {
stroke: rgb(31 61 43 / 0.35);
stroke-width: 1;
}
.gu-grove__trunk {
fill: var(--soil);
}
.gu-grove__leaf {
fill: var(--leaf);
}
.gu-grove__pine {
fill: #3f6e3c;
}
.gu-grove__birch {
fill: #f1efe8;
}
.gu-grove__leaf-b {
fill: #b9cf62;
}
.gu-grove__tag {
translate: var(--x) var(--y);
animation: gu-grove-swing 3s ease-in-out infinite;
transform-origin: 0 0;
}
.gu-grove__tag rect {
fill: #fff8e6;
stroke: var(--soil);
stroke-width: 1.5;
}
.gu-grove__tag text {
font: 600 12px system-ui, sans-serif;
fill: var(--soil);
}
.gu-grove__string {
stroke: var(--soil);
stroke-width: 1.5;
fill: none;
}
.gu-grove__count {
margin: 10px 0 0;
color: var(--muted);
}
.gu-grove__count b {
display: inline-block;
font-family: var(--slab);
font-size: 34px;
color: var(--deep);
font-variant-numeric: tabular-nums;
animation: gu-grove-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.gu-grove__controls {
display: grid;
gap: 18px;
align-content: start;
}
.gu-grove__freq {
display: inline-grid;
grid-template-columns: 1fr 1fr;
background: var(--bg);
border-radius: 8px;
padding: 4px;
position: relative;
}
.gu-grove__freq button {
min-height: 42px;
border: 0;
background: transparent;
border-radius: 6px;
font-weight: 600;
transition: background 0.25s, color 0.25s;
}
.gu-grove__freq button[aria-pressed="true"] {
background: var(--deep);
color: #fff;
}
.gu-grove__amount {
display: grid;
gap: 4px;
}
.gu-grove__amount b {
font-family: var(--slab);
font-size: 40px;
color: var(--deep);
font-variant-numeric: tabular-nums;
}
.gu-grove__amount input {
appearance: none;
-webkit-appearance: none;
height: 36px;
margin: 0;
background: transparent;
cursor: pointer;
}
.gu-grove__amount input::-webkit-slider-runnable-track {
height: 10px;
border-radius: 5px;
background: linear-gradient(90deg, var(--moss) var(--p), #e1e8da var(--p));
}
.gu-grove__amount input::-moz-range-track {
height: 10px;
border-radius: 5px;
background: linear-gradient(90deg, var(--moss) var(--p), #e1e8da var(--p));
}
.gu-grove__amount input::-webkit-slider-thumb {
-webkit-appearance: none;
width: 30px;
height: 30px;
margin-top: -10px;
border-radius: 50%;
background: var(--sun);
border: 4px solid var(--deep);
transition: transform 0.15s;
}
.gu-grove__amount input::-moz-range-thumb {
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--sun);
border: 4px solid var(--deep);
}
.gu-grove__amount input:active::-webkit-slider-thumb {
transform: scale(1.15);
}
.gu-grove__dedicate {
display: grid;
gap: 6px;
font-size: 14px;
color: var(--muted);
}
.gu-grove__dedicate input {
min-height: 46px;
border: 1px solid var(--line);
border-radius: 8px;
padding: 0 14px;
background: var(--bg);
color: var(--ink);
}
.gu-grove__goal p {
margin: 0 0 6px;
font-size: 14px;
color: var(--muted);
}
.gu-grove__goal b {
color: var(--deep);
}
.gu-grove__track {
position: relative;
height: 14px;
border-radius: 7px;
background: #e1e8da;
overflow: hidden;
}
.gu-grove__done {
position: absolute;
inset: 0 auto 0 0;
background: var(--deep);
animation: gu-grove-fill 1.4s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
transform-origin: left;
}
.gu-grove__yours {
position: absolute;
top: 0;
bottom: 0;
background: var(--sun);
min-width: 4px;
transition: width 0.4s;
animation: gu-grove-blink 1.6s ease-in-out infinite;
}
.gu-grove__small {
font-size: 13px !important;
margin-top: 6px !important;
}
.gu-grove__give-btn {
width: 100%;
}
.gu-grove__thanks {
margin: 0;
padding: 14px 16px;
border-radius: 8px;
background: #e7f0dc;
color: var(--deep);
animation: gu-grove-up 0.4s ease-out both;
}
/* Sites */
.gu-grove__sites {
padding: 72px clamp(16px, 4cqi, 40px) 40px;
}
.gu-grove__sites h2,
.gu-grove__grower h2 {
font-size: clamp(28px, 4.4cqi, 40px);
color: var(--deep);
margin-bottom: 24px;
}
.gu-grove__sitegrid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
align-items: start;
}
.gu-grove__forest {
aspect-ratio: 4 / 3;
border-radius: 6px;
}
.gu-grove__sitegrid ol {
list-style: none;
margin: 0;
padding: 0;
}
.gu-grove__sitegrid li {
padding: 16px 0;
border-top: 2px solid var(--deep);
}
.gu-grove__sitegrid li:first-child {
padding-top: 0;
border-top: 0;
}
.gu-grove__sitegrid h3 {
font-size: 20px;
}
.gu-grove__sitegrid p {
margin: 2px 0 0;
color: var(--muted);
}
.gu-grove__sitegrid .gu-grove__trees {
color: var(--moss);
font-weight: 700;
}
/* Grower */
.gu-grove__grower {
margin: 32px clamp(16px, 4cqi, 40px) 64px;
display: grid;
grid-template-columns: 0.8fr 1.2fr;
background: var(--deep);
color: #eaf1e4;
border-radius: 16px;
overflow: hidden;
}
.gu-grove__grower-img {
min-height: 320px;
}
.gu-grove__grower blockquote {
margin: 0;
padding: 40px;
align-self: center;
}
.gu-grove__grower blockquote p {
font-family: var(--slab);
font-size: clamp(22px, 3.2cqi, 30px);
line-height: 1.3;
margin: 0 0 16px;
}
.gu-grove__grower footer {
color: #b5c8ab;
}
.gu-grove__foot {
display: flex;
gap: 18px;
flex-wrap: wrap;
padding: 20px clamp(16px, 4cqi, 40px);
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 14px;
}
.gu-grove__foot span {
margin-right: auto;
}
@keyframes gu-grove-up {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes gu-grove-reveal {
from {
clip-path: inset(100% 0 0 0);
}
to {
clip-path: inset(0);
}
}
@keyframes gu-grove-sprout {
from {
transform: scale(0, 0);
}
60% {
transform: scale(0.9, 1.15);
}
to {
transform: scale(1);
}
}
@keyframes gu-grove-swing {
0%,
100% {
rotate: -4deg;
}
50% {
rotate: 4deg;
}
}
@keyframes gu-grove-glow {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.08);
}
}
@keyframes gu-grove-pop {
from {
transform: translateY(30%) scale(0.8);
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}
@keyframes gu-grove-fill {
from {
transform: scaleX(0);
}
to {
transform: none;
}
}
@keyframes gu-grove-blink {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.55;
}
}
@container (max-width: 760px) {
.gu-grove__hero,
.gu-grove__give,
.gu-grove__sitegrid,
.gu-grove__grower {
grid-template-columns: 1fr;
}
.gu-grove__hero-img {
aspect-ratio: 16 / 10;
order: -1;
}
.gu-grove__give {
padding: 20px;
}
.gu-grove__grower-img {
min-height: 0;
aspect-ratio: 16 / 10;
}
}
@container (max-width: 560px) {
.gu-grove__bar nav a:not(.gu-grove__navcta) {
display: none;
}
.gu-grove__give {
padding: 16px;
margin: 0 8px;
}
.gu-grove__grower blockquote {
padding: 24px;
}
}
@media (prefers-reduced-motion: reduce) {
.gu-grove *,
.gu-grove *::before,
.gu-grove *::after {
animation: none !important;
transition: none !important;
}
}
```
You might also want
Next piece: Trip planner appOnline course landing page with a free mini lesson
Landing pages, intermediate
Dental clinic landing page with a treatment finder
Landing pages, advanced
Skincare page with a drop-by-drop routine
Landing pages, advanced


