Skip to content

Commit 42b32cf

Browse files
committed
small fe tweaks
1 parent edc462a commit 42b32cf

File tree

5 files changed

+34
-26
lines changed

5 files changed

+34
-26
lines changed

backend/templates/v2/form/redirection-header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
</div>
88

99
<div class="">
10-
<h1 class="text-3xl font-bold tracking-tight text-gray-900">
10+
<h1 class="text-3xl font-bold tracking-tight text-gray-900 pb-2">
1111
{{ ngo.name }}
1212
</h1>
1313

14-
<ul class="flex gap-4 mt-1 text-sm font-medium">
14+
<ul class="flex flex-col lg:flex-row gap-2 lg:gap-4 mt-1 text-sm font-medium">
1515
{% if ngo_website %}
1616
<li>
1717
<a href="{{ ngo_website }}" class="hover:text-amber-600">

backend/templates/v2/public/all-ngos.html

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@
66
<header class="-mt-16 bg-yellow-400">
77
<div class="container flex flex-col max-w-4xl gap-6 text-center pt-9 pb-14">
88
<h1 class="text-3xl font-bold text-center text-gray-900">
9-
Explorează organizații
9+
{% trans "Explore organizations" %}
1010
</h1>
1111

1212
<p class="font-medium text-gray-900">
13-
Fără să te coste nimic în plus, redirecționând, oferi un strop de putere în plus unui ONG care să facă bine și în numele tău. Poți opta pentru redistribuirea sumei până pe 25 Mai.
13+
{% blocktranslate trimmed %}
14+
Without costing you anything extra,
15+
by redirecting,
16+
you give a little extra power to an NGO to do good in your name.
17+
You can opt for the redistribution of the amount until
18+
{% endblocktranslate %}
19+
<strong class="text-cyan-900">{{ limit.day }} {{ month_limit }}</strong>.
1420
</p>
1521
</div>
1622
</header>
@@ -22,29 +28,27 @@ <h1 class="text-3xl font-bold text-center text-gray-900">
2228
</form>
2329

2430
<div class="grid gap-x-8 gap-y-16 sm:grid-cols-2 lg:grid-cols-4 xl:gap-x-10 xl:gap-y-20">
25-
{% trans "organizations" as paginated_type %}
26-
{% include "public/components/pagination.html" with page_obj=page_obj paginated_type=paginated_type show_pagination_count=True %}
27-
28-
{% for ngo in ngos %}
29-
{% include "public/components/ngo-card.html" with ngo=ngo %}
30-
{% endfor %}
31+
{% if not ngos %}
32+
<div class="col-span-full text-center">
33+
<p class="text-gray-900 text-4xl font-bold">
34+
{% trans "No organizations found." %}
35+
</p>
36+
</div>
37+
{% else %}
38+
{% trans "organizations" as paginated_type %}
39+
{% include "public/components/pagination.html" with page_obj=page_obj paginated_type=paginated_type show_pagination_count=True %}
40+
41+
{% for ngo in ngos %}
42+
{% include "public/components/ngo-card.html" with ngo=ngo %}
43+
{% endfor %}
44+
{% endif %}
3145
</div>
3246

3347
{% include "public/components/pagination.html" with page_obj=page_obj %}
3448
</section>
3549

3650
<aside class="px-6 py-24 sm:px-6 sm:py-32 lg:px-8">
37-
<div class="max-w-2xl mx-auto text-center">
38-
<h2 class="text-4xl font-semibold tracking-tight text-gray-900 text-balance sm:text-5xl">
39-
Reprezinți un ONG?
40-
</h2>
41-
<p class="max-w-xl mx-auto mb-10 text-xl text-gray-600 text-pretty sm:text-3xl">
42-
Află cum te ajută redirecționează.ro
43-
</p>
44-
45-
<a href="{% url 'signup' %}" class="py-3 font-semibold text-center text-gray-900 rounded-md shadow-sm px-7 bg-amber-300 hover:bg-amber-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amber-300">Începe aici</a>
46-
47-
</div>
51+
{% include "account/snippets/cta-ngohub.html" %}
4852
</aside>
4953

5054
{% endblock %}

backend/templates/v2/public/components/faq-question.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<div
2-
x-data="{ expanded: false }">
2+
x-data="{ expanded: false }"
3+
class="border-b border-gray-200 py-8">
34

45
<dt>
56
<!-- Expand/collapse question button -->
@@ -23,7 +24,7 @@
2324
</dt>
2425

2526
<dd class="pr-12 mt-2" x-show="expanded">
26-
<div class="text-gray-600 text-base/7">
27+
<div class="text-gray-600 text-base/7 list-disc">
2728
{{ answer|safe }}
2829
</div>
2930
</dd>

backend/templates/v2/public/components/ngo-search.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
{% load i18n %}
2+
13
<div class="relative pt-8 pb-4" x-data="ngoSearch" x-on:click.outside="close">
24
<label class="relative grid grid-cols-1">
3-
<span class="sr-only">Caută un ONG după nume sau CUI/CIF</span>
5+
{% trans "Search for an NGO by its name" as search_title %}
6+
<span class="sr-only">{{ search_title }}</span>
47

58
<input
69
type="text"
710
name="q"
811
class="border-none col-start-1 row-start-1 block w-full rounded-full bg-white py-1.5 pl-10 pr-3 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-amber-300 sm:pl-9 sm:text-sm/6 focus:outline-none"
9-
placeholder="Caută un ONG după nume sau CUI/CIF"
12+
placeholder="{{ search_title }}"
1013
autocomplete="off"
1114
>
1215

backend/templates/v2/public/faq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>FAQ – Întrebări frecvente</h1>
1919
</a>
2020
</h2>
2121

22-
<dl class="grid gap-6 mt-8">
22+
<dl class="grid mt-8">
2323
{% for question in section.questions %}
2424
{% include "public/components/faq-question.html" with question=question.title answer=question.answer %}
2525
{% endfor %}

0 commit comments

Comments
 (0)