diff --git a/lacommunaute/pages/views.py b/lacommunaute/pages/views.py index 4d8ceeb1..3747662a 100644 --- a/lacommunaute/pages/views.py +++ b/lacommunaute/pages/views.py @@ -1,8 +1,10 @@ import logging from typing import Any +from django.contrib import messages from django.contrib.auth.mixins import UserPassesTestMixin from django.shortcuts import render +from django.urls import reverse from django.utils import timezone from django.views.generic.base import TemplateView @@ -35,6 +37,9 @@ def get_context_data(self, **kwargs: Any) -> dict[str, Any]: )[:4] context["forum"] = Forum.objects.filter(kind=ForumKind.PUBLIC_FORUM, lft=1, level=0).first() context["upcoming_events"] = Event.objects.filter(date__gte=timezone.now()).order_by("date")[:4] + + url = reverse("pages:home_with_search") + messages.info(self.request, f'Jump to the new home page."') return context diff --git a/lacommunaute/static/images/search-bg-left.png b/lacommunaute/static/images/search-bg-left.png index d44051ab..98260dfc 100644 Binary files a/lacommunaute/static/images/search-bg-left.png and b/lacommunaute/static/images/search-bg-left.png differ diff --git a/lacommunaute/static/images/search-bg-right.png b/lacommunaute/static/images/search-bg-right.png index 72ebaa80..7ad46fbe 100644 Binary files a/lacommunaute/static/images/search-bg-right.png and b/lacommunaute/static/images/search-bg-right.png differ diff --git a/lacommunaute/static/stylesheets/itou_communaute.scss b/lacommunaute/static/stylesheets/itou_communaute.scss index ea02be04..cf0ceecf 100644 --- a/lacommunaute/static/stylesheets/itou_communaute.scss +++ b/lacommunaute/static/stylesheets/itou_communaute.scss @@ -223,10 +223,43 @@ span.highlighted { color: rgb(254, 208, 0); } +.text-communaute-lightest { + color: #cdf4e9; +} + +.text-communaute-lighter { + color: #59eec3; +} + +.text-communaute { + color: #18a47d; +} + +.text-communaute-darker { + color: #023b2b; +} + +.bg-communaute-lightest { + background-color: #cdf4e9; +} + +.bg-communaute-lighter { + background-color: #59eec3; +} + +.bg-communaute { + background-color: #18a47d; +} + +.bg-communaute-darker { + background-color: #023b2b; +} + + .s-home-search { background-position: center left, center right; background-repeat: no-repeat; - background-color: var(--bs-communaute); + background-color: #023b2b; background-image: url(../images/search-bg-left.png), url(../images/search-bg-right.png); } @@ -275,35 +308,3 @@ span.highlighted { flex: 1; margin: 0 10px; } - -.text-communaute-lightest { - color: #cdf4e9; -} - -.text-communaute-lighter { - color: #59eec3; -} - -.text-communaute { - color: #18a47d; -} - -.text-communaute-darker { - color: #023b2b; -} - -.bg-communaute-lightest { - background-color: #cdf4e9; -} - -.bg-communaute-lighter { - background-color: #59eec3; -} - -.bg-communaute { - background-color: #18a47d; -} - -.bg-communaute-darker { - background-color: #023b2b; -} diff --git a/lacommunaute/templates/pages/home_with_search.html b/lacommunaute/templates/pages/home_with_search.html index 45078330..b57e31cb 100644 --- a/lacommunaute/templates/pages/home_with_search.html +++ b/lacommunaute/templates/pages/home_with_search.html @@ -42,7 +42,7 @@

-
+