AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

about.tsx 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import type { AboutSection } from '../types';
  2. import { Container } from '../ui';
  3. export function About({ section }: { section: AboutSection }) {
  4. const { heading, body, stats } = section.content;
  5. const showStats = section.variant === 'with-stats' && stats.length > 0;
  6. return (
  7. <section id={section.id} className="scroll-mt-20 py-16 md:py-24">
  8. <Container
  9. className={showStats ? 'grid gap-12 md:grid-cols-2' : ''}
  10. >
  11. <div
  12. className={showStats ? '' : 'mx-auto max-w-2xl text-center'}
  13. >
  14. <h2 className="sf-heading text-3xl leading-tight font-semibold text-balance sm:text-4xl">
  15. {heading}
  16. </h2>
  17. <p className="mt-5 text-lg leading-relaxed whitespace-pre-line text-(--sf-muted)">
  18. {body}
  19. </p>
  20. </div>
  21. {showStats && (
  22. <dl className="grid content-center gap-px overflow-hidden rounded-(--sf-radius-card) border border-(--sf-border) bg-(--sf-border) sm:grid-cols-3 md:grid-cols-1">
  23. {stats.map((stat) => (
  24. <div
  25. key={stat.label}
  26. className="flex flex-col-reverse gap-1 bg-(--sf-bg) p-6"
  27. >
  28. <dt className="text-sm text-(--sf-muted)">
  29. {stat.label}
  30. </dt>
  31. <dd className="sf-heading text-3xl font-semibold text-(--sf-primary)">
  32. {stat.value}
  33. </dd>
  34. </div>
  35. ))}
  36. </dl>
  37. )}
  38. </Container>
  39. </section>
  40. );
  41. }