Donation widgets · Design 01
Toggle Amount Card
A centred card with a one-time/monthly switch; the amount buttons change with it (£25 to £250 once, £10 to £100 monthly) using only CSS.
Current appeal
Essential support for families in Pakistan
Food parcels, hand pumps for clean water, and help with medical and other essential needs.
<section aria-labelledby="donate-01-title" class="bg-smoke py-16 sm:py-20 lg:py-24">
<div class="mx-auto w-full max-w-content px-5 sm:px-8">
<div class="mx-auto max-w-xl">
<div class="text-center">
<p class="t-label text-water">Current appeal</p>
<h2 id="donate-01-title" class="t-h2 mt-3">Essential support for families in Pakistan</h2>
<p class="t-lead mt-4 text-slate">Food parcels, hand pumps for clean water, and help with medical and other essential needs.</p>
</div>
<form action="donate.html" method="get" aria-labelledby="donate-01-title" class="group/f card mt-10 p-6 sm:p-8">
<input type="hidden" name="fund" value="current-appeal">
<fieldset class="min-w-0">
<legend class="t-label text-ink">How often would you like to give?</legend>
<div class="mt-3 grid grid-cols-2 gap-1.5 rounded-md bg-smoke p-1.5">
<label class="cursor-pointer"><input id="donate-01-once" class="peer sr-only" type="radio" name="frequency" value="one-time" checked><span class="flex h-11 items-center justify-center rounded-sm font-display text-[15px] font-semibold text-ink transition-colors hover:bg-white peer-checked:bg-ink peer-checked:text-white peer-checked:hover:bg-ink peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-water">One-time</span></label>
<label class="cursor-pointer"><input id="donate-01-monthly" class="peer sr-only" type="radio" name="frequency" value="monthly"><span class="flex h-11 items-center justify-center rounded-sm font-display text-[15px] font-semibold text-ink transition-colors hover:bg-white peer-checked:bg-ink peer-checked:text-white peer-checked:hover:bg-ink peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-water">Monthly</span></label>
</div>
</fieldset>
<fieldset class="mt-7 min-w-0">
<legend class="t-label text-ink">Choose an amount</legend>
<div class="mt-3 grid grid-cols-2 gap-3 sm:grid-cols-4">
<label class="hidden cursor-pointer group-has-[#donate-01-monthly:checked]/f:block"><input class="peer sr-only" type="radio" name="amount" value="10"><span class="flex h-14 items-center justify-center rounded-md border border-line-strong bg-white font-display text-lg font-semibold tabular-nums text-ink transition-colors hover:border-ink peer-checked:border-ink peer-checked:bg-ink peer-checked:text-white peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-water">£10</span></label>
<label class="cursor-pointer"><input class="peer sr-only" type="radio" name="amount" value="25"><span class="flex h-14 items-center justify-center rounded-md border border-line-strong bg-white font-display text-lg font-semibold tabular-nums text-ink transition-colors hover:border-ink peer-checked:border-ink peer-checked:bg-ink peer-checked:text-white peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-water">£25</span></label>
<label class="cursor-pointer"><input class="peer sr-only" type="radio" name="amount" value="50" checked><span class="flex h-14 items-center justify-center rounded-md border border-line-strong bg-white font-display text-lg font-semibold tabular-nums text-ink transition-colors hover:border-ink peer-checked:border-ink peer-checked:bg-ink peer-checked:text-white peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-water">£50</span></label>
<label class="cursor-pointer"><input class="peer sr-only" type="radio" name="amount" value="100"><span class="flex h-14 items-center justify-center rounded-md border border-line-strong bg-white font-display text-lg font-semibold tabular-nums text-ink transition-colors hover:border-ink peer-checked:border-ink peer-checked:bg-ink peer-checked:text-white peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-water">£100</span></label>
<label class="cursor-pointer group-has-[#donate-01-monthly:checked]/f:hidden"><input class="peer sr-only" type="radio" name="amount" value="250"><span class="flex h-14 items-center justify-center rounded-md border border-line-strong bg-white font-display text-lg font-semibold tabular-nums text-ink transition-colors hover:border-ink peer-checked:border-ink peer-checked:bg-ink peer-checked:text-white peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-water">£250</span></label>
</div>
<p class="t-caption mt-3 flex flex-wrap items-center justify-between gap-x-4 gap-y-1 text-slate">
<span class="group-has-[#donate-01-monthly:checked]/f:hidden">A single gift to the appeal.</span>
<span class="hidden group-has-[#donate-01-monthly:checked]/f:inline">Taken each month. Cancel at any time.</span>
<a class="link" href="donate.html?fund=current-appeal">Other amount</a>
</p>
</fieldset>
<button type="submit" class="inline-flex items-center justify-center gap-2 rounded-sm font-display font-semibold leading-none whitespace-nowrap transition-[background-color,border-color,transform] duration-150 active:translate-y-px bg-marigold text-ink hover:bg-marigold-deep mt-7 h-14 w-full px-7 text-[17px]">Donate now</button>
<ul class="mt-6 flex flex-wrap justify-center gap-x-6 gap-y-2 border-t border-line pt-5">
<li class="t-caption flex items-center gap-1.5 text-slate"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-water"><path d="M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"></path></svg>Registered charity 1215863</li>
<li class="t-caption flex items-center gap-1.5 text-slate"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 256 256" aria-hidden="true" class="text-water"><path d="M72,104a8,8,0,0,1,8-8h96a8,8,0,0,1,0,16H80A8,8,0,0,1,72,104Zm8,40h96a8,8,0,0,0,0-16H80a8,8,0,0,0,0,16ZM232,56V208a8,8,0,0,1-11.58,7.15L192,200.94l-28.42,14.21a8,8,0,0,1-7.16,0L128,200.94,99.58,215.15a8,8,0,0,1-7.16,0L64,200.94,35.58,215.15A8,8,0,0,1,24,208V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Zm-16,0H40V195.06l20.42-10.22a8,8,0,0,1,7.16,0L96,199.06l28.42-14.22a8,8,0,0,1,7.16,0L160,199.06l28.42-14.22a8,8,0,0,1,7.16,0L216,195.06Z"></path></svg>Gift Aid adds 25p to every £1</li>
</ul>
</form>
</div>
</div>
</section>
