From b8a24136e848b7dab2198f034c77b07c37c74b36 Mon Sep 17 00:00:00 2001 From: Nicolas Demangeat Date: Wed, 24 Apr 2024 14:20:50 +0200 Subject: [PATCH] update hotnews front display in homepage --- resources/sass/fo/pages/home.scss | 4 ++ resources/views/fo/pages/home.blade.php | 4 +- .../views/fo/partials/hot-news.blade.php | 38 ++++++++++--------- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/resources/sass/fo/pages/home.scss b/resources/sass/fo/pages/home.scss index 8bdfa69c..c40147f6 100644 --- a/resources/sass/fo/pages/home.scss +++ b/resources/sass/fo/pages/home.scss @@ -1,4 +1,8 @@ #home { + .hot-news-content{ + width: 250px; + } + #hot-news-desktop{ .wood-background{ height: 22rem; diff --git a/resources/views/fo/pages/home.blade.php b/resources/views/fo/pages/home.blade.php index 22fd023d..6beb6e4d 100644 --- a/resources/views/fo/pages/home.blade.php +++ b/resources/views/fo/pages/home.blade.php @@ -8,7 +8,7 @@
{{-- HOT NEWS --}}
cache()->get('hotNewsIsDisplayed') ]) id="hot-news">
@@ -18,7 +18,7 @@
- + @include('fo.partials.hot-news') {{-- MAIN SLIDES --}} diff --git a/resources/views/fo/partials/hot-news.blade.php b/resources/views/fo/partials/hot-news.blade.php index 92703e43..4d1f3967 100644 --- a/resources/views/fo/partials/hot-news.blade.php +++ b/resources/views/fo/partials/hot-news.blade.php @@ -1,30 +1,32 @@ -
-
-
+
+
+
{{-- FIXME: changer l'image pour l'image du model news ainsi que le texte --}} - +
-
- LOREM IPSUM -
-
-
-
-
- {{-- FIXME: changer l'image pour l'image du model news ainsi que le texte --}} - -
-
- LOREM IPSUM +
+
tag actu
+
titre de la news

-
+
+ {{-- FIXME: changer l'image pour l'image du model news ainsi que le texte --}} + +
+
+
tag actu
+
titre de la news qui risque de prendre de la place alors j'écris un grand texte pour simuler ça
+
+
+
+
+
{{ $hotNewsSettings->value['text'] }}
-
+
{{ $hotNewsSettings->value['picture_alt'] }}