|
1 | 1 | import { CodeBlock } from "../../components/CodeBlock.tsx"; |
2 | | -import { CodeWindow } from "../../components/CodeWindow.tsx"; |
3 | 2 | import { PageSection } from "../../components/PageSection.tsx"; |
4 | 3 | import { SectionHeading } from "../../components/homepage/SectionHeading.tsx"; |
5 | 4 |
|
@@ -368,43 +367,50 @@ const extras = [ |
368 | 367 |
|
369 | 368 | export function MoreFeatures() { |
370 | 369 | return ( |
371 | | - <PageSection> |
372 | | - <div class="text-center flex flex-col gap-2"> |
373 | | - <SectionHeading>And there's more</SectionHeading> |
374 | | - </div> |
375 | | - <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6"> |
376 | | - {features.map((f) => ( |
377 | | - <a |
378 | | - href={f.href} |
379 | | - class="flex flex-col gap-3 p-5 rounded-lg border border-gray-200 hover:border-fresh transition-colors" |
380 | | - > |
381 | | - <div class="flex items-center gap-2"> |
382 | | - {f.icon} |
383 | | - <h3 class="font-bold text-base">{f.title}</h3> |
384 | | - </div> |
385 | | - <p class="text-gray-600 text-sm">{f.description}</p> |
386 | | - <div class="text-xs [&>pre]:!m-0 [&>pre]:!p-3 flex-1"> |
387 | | - <CodeWindow> |
| 370 | + <div className="w-full py-8 bg-linear-to-r from-fresh-green/10 to-fresh/10"> |
| 371 | + <PageSection> |
| 372 | + <div class="text-center flex flex-col gap-2"> |
| 373 | + <SectionHeading>And so much more</SectionHeading> |
| 374 | + </div> |
| 375 | + <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-4"> |
| 376 | + {features.map((f) => ( |
| 377 | + <a |
| 378 | + href={f.href} |
| 379 | + class="grid grid-cols-1 grid-rows-[minmax(9.5rem,auto)_1fr] items-stretch gap-3 transition-colors bg-white rounded-lg overflow-clip hover:bg-fresh/1 border border-gray-200 hover:border-fresh" |
| 380 | + > |
| 381 | + <div className="p-6 space-y-3"> |
| 382 | + <div class="flex items-center gap-2 justify-between"> |
| 383 | + <h3 class="font-bold text-lg sm:text-xl lg:text-2xl"> |
| 384 | + {f.title} |
| 385 | + </h3> |
| 386 | + {f.icon} |
| 387 | + </div> |
| 388 | + <p class="text-gray-600 text-sm">{f.description}</p> |
| 389 | + </div> |
| 390 | + <div class="text-xs h-full [&>pre]:m-0! [&>pre]:rounded-none [&>pre]:h-full [&>pre]:p-6! flex-1"> |
388 | 391 | <CodeBlock code={f.code} lang={f.lang} /> |
389 | | - </CodeWindow> |
390 | | - </div> |
391 | | - </a> |
392 | | - ))} |
393 | | - </div> |
394 | | - <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4"> |
395 | | - {extras.map((e) => ( |
396 | | - <a |
397 | | - href={e.href} |
398 | | - class="flex flex-col gap-2 p-4 rounded-lg border border-gray-200 hover:border-fresh transition-colors" |
399 | | - > |
400 | | - <div class="flex items-center gap-2"> |
401 | | - {e.icon} |
402 | | - <h3 class="font-bold text-sm">{e.title}</h3> |
403 | | - </div> |
404 | | - <p class="text-gray-500 text-xs">{e.description}</p> |
405 | | - </a> |
406 | | - ))} |
407 | | - </div> |
408 | | - </PageSection> |
| 392 | + </div> |
| 393 | + </a> |
| 394 | + ))} |
| 395 | + </div> |
| 396 | + <div class="text-center flex flex-col gap-2 mt-8"> |
| 397 | + <h3 class="text-lg font-bold text-gray-600">(…and even more)</h3> |
| 398 | + </div> |
| 399 | + <div class="grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4"> |
| 400 | + {extras.map((e) => ( |
| 401 | + <a |
| 402 | + href={e.href} |
| 403 | + class="flex flex-col gap-2 p-4 rounded-lg border border-gray-200 hover:bg-fresh/1 transition-colors bg-white hover:border-fresh" |
| 404 | + > |
| 405 | + <div class="flex items-center gap-2 justify-between"> |
| 406 | + <h3 class="font-bold text-sm">{e.title}</h3> |
| 407 | + {e.icon} |
| 408 | + </div> |
| 409 | + <p class="text-gray-500 text-xs">{e.description}</p> |
| 410 | + </a> |
| 411 | + ))} |
| 412 | + </div> |
| 413 | + </PageSection> |
| 414 | + </div> |
409 | 415 | ); |
410 | 416 | } |
0 commit comments