+ {% block content %}{% endblock %}
+
+ diff --git a/innovedus_cms/base/templates/base/includes/home_banner.html b/innovedus_cms/base/templates/base/includes/home_banner.html index 3490cd2..b77e214 100644 --- a/innovedus_cms/base/templates/base/includes/home_banner.html +++ b/innovedus_cms/base/templates/base/includes/home_banner.html @@ -5,7 +5,7 @@
{% endif %} diff --git a/innovedus_cms/home/static/css/home.css b/innovedus_cms/home/static/css/home.css index 6f9eea4..b781c0e 100644 --- a/innovedus_cms/home/static/css/home.css +++ b/innovedus_cms/home/static/css/home.css @@ -1,9 +1,3 @@ -.home-page { - max-width: 890px; - margin: 0 auto; - padding: 0 16px; -} - .home-hero-band { background-color: #0e1b42; color: #ffffff; @@ -19,12 +13,6 @@ color: #ffffff; } -.template-homepage .header-inner { - max-width: 1028px; - margin: 0 auto; - /* padding: 0 16px; */ -} - .template-homepage .main-menu-link { color: #ffffff; } @@ -42,6 +30,12 @@ color: #ffffff; } +.home-banner img { + width: 100%; + height: auto; + display: block; +} + .list-title { align-items: center; margin: 10px 0; diff --git a/innovedus_cms/home/static/css/horizontal_list.css b/innovedus_cms/home/static/css/horizontal_list.css index a34f326..12518bd 100644 --- a/innovedus_cms/home/static/css/horizontal_list.css +++ b/innovedus_cms/home/static/css/horizontal_list.css @@ -45,12 +45,12 @@ .horizontal-list { display: flex; align-items: stretch; - gap: 24px; + gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 24px 0; - padding: 12px 48px; + padding: 0; scrollbar-width: none; -ms-overflow-style: none; } diff --git a/innovedus_cms/home/static/css/news_list.css b/innovedus_cms/home/static/css/news_list.css index 798d250..6d639fb 100644 --- a/innovedus_cms/home/static/css/news_list.css +++ b/innovedus_cms/home/static/css/news_list.css @@ -5,13 +5,11 @@ .news-hero { display: grid; - grid-template-columns: 1fr 1fr; + grid-template-columns: 480px 1fr; grid-template-areas: "header header" - "image meta" - "image intro" - "image body"; - gap: 16px; + "image content"; + gap: 16px 40px; align-items: start; } @@ -47,6 +45,7 @@ position: relative; border-radius: 10px; overflow: hidden; + width: 480px; } .news-hero .first-news-image::after { @@ -69,19 +68,47 @@ border-radius: 10px; } +.news-hero .first-news-content { + grid-area: content; + display: flex; + flex-direction: column; + gap: 16px; + max-height: 293px; +} + +.news-hero .fist-news-date, +.news-hero .first-news-intro { + flex: 0 0 auto; +} + .news-hero .fist-news-date { - grid-area: meta; color: rgba(255, 255, 255, 0.4); } .news-hero .first-news-intro { - grid-area: intro; font-size: 20px; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; } .news-hero .first-news-body { - grid-area: body; font: 12px; + flex: 1 1 auto; + overflow: hidden; + position: relative; +} + +.news-hero .first-news-body::after { + content: ""; + position: absolute; + left: 0; + right: 0; + bottom: 0; + height: 100px; + background: linear-gradient(to bottom, rgba(14, 27, 66, 0), #0e1b42); + pointer-events: none; } .news-list-items { @@ -92,7 +119,7 @@ margin-top: 24px; display: flex; flex-wrap: wrap; - gap: 30px; + gap: 28px; } .news-list-items a { @@ -167,9 +194,7 @@ "title" "image" "head" - "meta" - "intro" - "body"; + "content"; } .news-hero .news-hero-header { diff --git a/innovedus_cms/home/templates/home/home_page.html b/innovedus_cms/home/templates/home/home_page.html index a7edee0..8e8ba60 100644 --- a/innovedus_cms/home/templates/home/home_page.html +++ b/innovedus_cms/home/templates/home/home_page.html @@ -8,8 +8,8 @@ {% endblock %} {% block content %} -