From f1f1ead1f8733b66fb0d94397cad525df051f623 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 17 Sep 2026 20:42:13 +0200 Subject: [PATCH] feat(mp-card): add mp-card--stack-bottom variant (text top, image bottom) and apply to mini-projects-grid --- .../cases/mini-projects-showcase/index.html | 25 +++++++++++++ public/css/main.css | 36 +++++++++++++++++++ .../cases/mini-projects-showcase/index.html | 25 +++++++++++++ public/en/index.html | 14 ++++---- public/index.html | 14 ++++---- .../cases/mini-projects-showcase.en.html | 25 +++++++++++++ src/pages/cases/mini-projects-showcase.html | 25 +++++++++++++ src/partials/mini-projects-section.en.html | 14 ++++---- src/partials/mini-projects-section.html | 14 ++++---- 9 files changed, 164 insertions(+), 28 deletions(-) diff --git a/public/cases/mini-projects-showcase/index.html b/public/cases/mini-projects-showcase/index.html index 0605e9f..c7fee7c 100644 --- a/public/cases/mini-projects-showcase/index.html +++ b/public/cases/mini-projects-showcase/index.html @@ -1226,6 +1226,31 @@ +
  • + + +
    +

    + [2] height=400 · stack-bottom · ссылка + +

    +
      +
    • плагин
    • +
    +

    Текст сверху, изображение снизу. Высота 400px.

    +
    +
    +
  • diff --git a/public/css/main.css b/public/css/main.css index 1892649..986cef5 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -3405,6 +3405,42 @@ html[data-theme="light"] .hero__portrait-shell { aspect-ratio: 16 / 9; } +.mp-card--stack-bottom { + flex-direction: column-reverse; + align-items: stretch; + gap: 0; + padding: 0; +} + +.mp-card--stack-bottom .mp-card__body { + padding: 1.2rem 1.35rem 1.45rem; +} + +.mp-card--stack-bottom .mp-card__media { + width: 100%; + flex-shrink: 0; + padding: 0 1.35rem 1.2rem; +} + +.mp-card--stack-bottom .mp-card__image { + aspect-ratio: 16 / 9; +} + +.mp-card--stack-bottom.mp-card--hor-image .mp-card__image { + object-fit: contain; + aspect-ratio: 16 / 9; + background: color-mix(in srgb, var(--text-muted) 10%, var(--surface)); +} + +/* внутри варианта: Название → микротекст → тэг */ +.mp-card--stack-bottom .mp-card__desc { + order: 1; +} + +.mp-card--stack-bottom .mp-card__tags { + order: 2; +} + .mp-card--horizontal { flex-direction: row; align-items: stretch; diff --git a/public/en/cases/mini-projects-showcase/index.html b/public/en/cases/mini-projects-showcase/index.html index 884bb8c..f6236b1 100644 --- a/public/en/cases/mini-projects-showcase/index.html +++ b/public/en/cases/mini-projects-showcase/index.html @@ -1226,6 +1226,31 @@ +
  • + + +
    +

    + [2] height=400 · stack-bottom · link + +

    +
      +
    • plugin
    • +
    +

    Text on top, image at the bottom. Height 400px.

    +
    +
    +
  • diff --git a/public/en/index.html b/public/en/index.html index d754806..5dbabad 100644 --- a/public/en/index.html +++ b/public/en/index.html @@ -1177,7 +1177,7 @@
    1. @@ -1312,7 +1312,7 @@
    2. @@ -1327,7 +1327,7 @@
    3. diff --git a/public/index.html b/public/index.html index 65cea32..b19db6d 100644 --- a/public/index.html +++ b/public/index.html @@ -1199,7 +1199,7 @@
      1. @@ -1334,7 +1334,7 @@
      2. @@ -1349,7 +1349,7 @@
      3. diff --git a/src/pages/cases/mini-projects-showcase.en.html b/src/pages/cases/mini-projects-showcase.en.html index b0c7989..339a76e 100644 --- a/src/pages/cases/mini-projects-showcase.en.html +++ b/src/pages/cases/mini-projects-showcase.en.html @@ -631,6 +631,31 @@
      4. +
      5. + + +
        +

        + [2] height=400 · stack-bottom · link + +

        +
          +
        • plugin
        • +
        +

        Text on top, image at the bottom. Height 400px.

        +
        +
        +
      diff --git a/src/pages/cases/mini-projects-showcase.html b/src/pages/cases/mini-projects-showcase.html index 94c56ee..dd80be9 100644 --- a/src/pages/cases/mini-projects-showcase.html +++ b/src/pages/cases/mini-projects-showcase.html @@ -631,6 +631,31 @@
    4. +
    5. + + +
      +

      + [2] height=400 · stack-bottom · ссылка + +

      +
        +
      • плагин
      • +
      +

      Текст сверху, изображение снизу. Высота 400px.

      +
      +
      +
    diff --git a/src/partials/mini-projects-section.en.html b/src/partials/mini-projects-section.en.html index 6b87df4..5d8e386 100644 --- a/src/partials/mini-projects-section.en.html +++ b/src/partials/mini-projects-section.en.html @@ -20,7 +20,7 @@
    1. @@ -155,7 +155,7 @@
    2. @@ -170,7 +170,7 @@
    3. diff --git a/src/partials/mini-projects-section.html b/src/partials/mini-projects-section.html index 5337683..5da0927 100644 --- a/src/partials/mini-projects-section.html +++ b/src/partials/mini-projects-section.html @@ -20,7 +20,7 @@
      1. @@ -155,7 +155,7 @@
      2. @@ -170,7 +170,7 @@