From b6088f488f4e150eb82fa0d081d6ca79dabdfe1c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 27 Sep 2025 18:59:51 +0300 Subject: [PATCH] feat(website): use list with screenshot for note types --- apps/website/src/pages/Home/index.css | 37 +++++++++++++++++++++++++++ apps/website/src/pages/Home/index.tsx | 13 +++++----- 2 files changed, 44 insertions(+), 6 deletions(-) diff --git a/apps/website/src/pages/Home/index.css b/apps/website/src/pages/Home/index.css index 3fb77c6b5..15c713003 100644 --- a/apps/website/src/pages/Home/index.css +++ b/apps/website/src/pages/Home/index.css @@ -204,4 +204,41 @@ section.final-cta .buttons .button { .list-with-screenshot .details { flex-basis: 50%; flex-shrink: 0; +} + +.list-with-screenshot.horizontal { + flex-direction: column-reverse; +} + +.list-with-screenshot.horizontal ul { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 1em; +} + +.list-with-screenshot.horizontal li { + margin: 0; +} + +.list-with-screenshot.horizontal .card { + height: 100%; +} + + +.list-with-screenshot.horizontal h3 { + color: var(--brand-1); +} + + +.list-with-screenshot.horizontal .details { + max-height: 35vh; + overflow: hidden; + display: flex; + flex-direction: column; +} + +.list-with-screenshot.horizontal .details img { + height: 100%; + width: auto; + object-fit: contain; } \ No newline at end of file diff --git a/apps/website/src/pages/Home/index.tsx b/apps/website/src/pages/Home/index.tsx index 8b4f88d50..ba515bb75 100644 --- a/apps/website/src/pages/Home/index.tsx +++ b/apps/website/src/pages/Home/index.tsx @@ -112,8 +112,8 @@ function BenefitsSection() { function NoteTypesSection() { return ( -
- + +
    {items.map(item => (
  • @@ -223,7 +225,6 @@ function ListWithScreenshot({ items }: {
    {selectedItem && ( <> -

    {selectedItem.title}

    )}