|
1 | 1 | ---
|
2 | 2 | interface Props {
|
3 |
| - tiers: { title: string; amount: string; desc: string[] }[]; |
| 3 | + tiers: { |
| 4 | + title: string; |
| 5 | + amount: string; |
| 6 | + description: string; |
| 7 | + items: string[]; |
| 8 | + }[]; |
4 | 9 | }
|
5 | 10 | const { tiers } = Astro.props;
|
6 | 11 | ---
|
7 | 12 |
|
8 | 13 | <div class="max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14 mx-auto">
|
9 | 14 | <div class="max-w-2xl mx-auto text-center mb-10 lg:mb-14">
|
10 |
| - <h2 class="text-2xl font-bold md:text-4xl md:leading-tight text-primary"> |
11 |
| - Join as a Sponsor |
| 15 | + <h2 class="text-2xl font-bold md:text-4xl md:leading-tight dark:text-white"> |
| 16 | + Join as Sponsor |
12 | 17 | </h2>
|
13 | 18 | <p class="mt-1 text-gray-600 dark:text-neutral-400">
|
14 | 19 | Our mahi relies on sponsorship from organisations and people like you who
|
15 | 20 | directly help build the future.
|
16 | 21 | </p>
|
17 | 22 | </div>
|
18 | 23 |
|
19 |
| - <div |
20 |
| - class="relative before:absolute before:inset-0 before:-z-[1] before:bg-[radial-gradient(closest-side,#cbd5e1,transparent)] dark:before:bg-[radial-gradient(closest-side,#525252,transparent)] mt-12" |
21 |
| - > |
22 |
| - <div class="grid gap-px sm:grid-cols-2 lg:grid-cols-4 lg:items-center"> |
23 |
| - { |
24 |
| - tiers.map((tier) => ( |
25 |
| - <div class="flex flex-col h-full text-center"> |
26 |
| - <div class="bg-white pt-8 pb-5 px-8 dark:bg-neutral-900"> |
27 |
| - <h4 class="font-medium text-lg text-secondary">{tier.title}</h4> |
28 |
| - </div> |
| 24 | + <div class="mt-12 grid sm:grid-cols-2 lg:grid-cols-4 gap-6 lg:items-center"> |
| 25 | + { |
| 26 | + tiers.map((tier) => ( |
| 27 | + <div class="flex flex-col border border-gray-200 text-center rounded-xl p-8 dark:border-neutral-800"> |
| 28 | + <h4 class="font-medium text-lg text-gray-800 dark:text-neutral-200"> |
| 29 | + {tier.title} |
| 30 | + </h4> |
| 31 | + <span class="mt-7 font-bold text-5xl text-gray-800 dark:text-neutral-200"> |
| 32 | + {tier.amount} |
| 33 | + </span> |
| 34 | + <p class="mt-2 text-sm text-gray-500 dark:text-neutral-500"> |
| 35 | + {tier.description} |
| 36 | + </p> |
29 | 37 |
|
30 |
| - <div class="h-full bg-white lg:mt-px lg:py-5 px-8 dark:bg-neutral-900"> |
31 |
| - <span class="mt-7 font-bold text-5xl text-gray-800 dark:text-neutral-200"> |
32 |
| - {tier.amount} |
33 |
| - </span> |
34 |
| - </div> |
| 38 | + <ul class="mt-7 space-y-2.5 text-sm"> |
| 39 | + {tier.items.map((item) => ( |
| 40 | + <li class="flex space-x-2"> |
| 41 | + <svg |
| 42 | + class="flex-shrink-0 mt-0.5 size-4 text-blue-600 dark:text-blue-500" |
| 43 | + xmlns="http://www.w3.org/2000/svg" |
| 44 | + width="24" |
| 45 | + height="24" |
| 46 | + viewBox="0 0 24 24" |
| 47 | + fill="none" |
| 48 | + stroke="currentColor" |
| 49 | + stroke-width="2" |
| 50 | + stroke-linecap="round" |
| 51 | + stroke-linejoin="round" |
| 52 | + > |
| 53 | + <polyline points="20 6 9 17 4 12" /> |
| 54 | + </svg> |
| 55 | + <span class="text-gray-800 dark:text-neutral-400">{item}</span> |
| 56 | + </li> |
| 57 | + ))} |
| 58 | + </ul> |
35 | 59 |
|
36 |
| - <div class="bg-white flex justify-center lg:mt-px pt-7 px-8 dark:bg-neutral-900"> |
37 |
| - <ul class="space-y-2.5 text-center text-sm"> |
38 |
| - {tier.desc.map((item) => ( |
39 |
| - <li class="text-gray-800 dark:text-neutral-400">{item}</li> |
40 |
| - ))} |
41 |
| - </ul> |
42 |
| - </div> |
43 |
| - </div> |
44 |
| - )) |
45 |
| - } |
46 |
| - </div> |
| 60 | + <a |
| 61 | + class="mt-5 py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-lg border border-gray-200 text-gray-500 hover:border-blue-600 hover:text-blue-600 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-neutral-400 dark:hover:text-blue-500 dark:hover:border-blue-600" |
| 62 | + href="#contact" |
| 63 | + > |
| 64 | + Sponsor Us |
| 65 | + </a> |
| 66 | + </div> |
| 67 | + )) |
| 68 | + } |
47 | 69 | </div>
|
48 | 70 | </div>
|
0 commit comments