News.tsx 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import Link from '@/components/Link';
  2. import tinytime from 'tinytime';
  3. import CTABannerEmails from '@/components/CTABAnnerEmails';
  4. export default function News() {
  5. const changelogs = [];
  6. const dateTemplate = tinytime('{MM} {DD}, {YYYY}');
  7. return (
  8. <section className="section section-light">
  9. <div className="container">
  10. <div className="section-header">
  11. <h2 className="section-title">Refreshing posts from our blog</h2>
  12. </div>
  13. <div className="row xl:g-5">
  14. {/* {changelogs.map(({ slug, module: { default: Component, meta } }, i) => (
  15. <div className="col-12 md:col-6 lg:col-4" key={i} data-aos="zoom-y-out" data-aos-delay={i * 150}>
  16. <Link href={`/changelog/${slug}`} className="d-block text-reset">
  17. <div
  18. className="ratio-16x9 mb-4 border-light rounded-lg"
  19. style={{
  20. backgroundColor: '#fff',
  21. backgroundImage: meta?.image && `url(/img/changelog/${meta.image})`
  22. }}
  23. />
  24. <h3 className="mb-2">{meta?.title}</h3>
  25. <p className="text-muted">
  26. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
  27. dolore magna aliqua.
  28. </p>
  29. <div className="row g-3 items-center">
  30. <div className="col-auto">
  31. <div
  32. className="avatar"
  33. style={{
  34. backgroundImage: `url(/img/authors/codecalm.jpg)`
  35. }}
  36. />
  37. </div>
  38. <div className="col">
  39. Paweł Kuna
  40. <span className="text-muted"> - {dateTemplate.render(new Date(meta?.date.replace(' ', 'T')))}</span>
  41. </div>
  42. </div>
  43. </Link>
  44. </div>
  45. ))} */}
  46. </div>
  47. <div className="mt-7">
  48. <CTABannerEmails />
  49. </div>
  50. </div>
  51. </section>
  52. );
  53. }