Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Aug 5, 2024
1 parent a251cc6 commit 8a5642f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 34 deletions.
5 changes: 5 additions & 0 deletions lacommunaute/pages/views.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 <a href="{url}">new home page</a>."')
return context


Expand Down
Binary file modified lacommunaute/static/images/search-bg-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lacommunaute/static/images/search-bg-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 34 additions & 33 deletions lacommunaute/static/stylesheets/itou_communaute.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion lacommunaute/templates/pages/home_with_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h1 class="text-center text-white">
</div>
</div>
</section>
<section class="bg-communaute py-5 pt-lg-0">
<section class="bg-communaute-darker py-5 pt-lg-0">
<div class="container container-max-lg s-home-cta-contener">
<a href="{% url 'forum_conversation:topic_create' forum.slug forum.pk %}"
rel="nofollow"
Expand Down

0 comments on commit 8a5642f

Please sign in to comment.