Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 10, 2024
1 parent f3c9bf0 commit 8396dbd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 23 deletions.
Binary file added static/img/U-Report_Logo_invert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions templates/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
<div class="md:mb-0 mb-6 text-center">
<a href="{% url 'public.opinion_read' latest_poll.pk %}"
class="btn hover-dark {% if org|config:"has_new_brand" %}bg-black text-white{% else %}bg-light1-home text-black{% endif %}">{% trans "VIEW FULL RESULTS" %}</a>
class="btn hover-dark {% if org|config:"has_new_brand" %}hover:bg-gray-700 bg-black text-white{% else %}bg-light1-home text-black{% endif %}">{% trans "VIEW FULL RESULTS" %}</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -147,8 +147,8 @@
<div class="max-w-page mx-auto">
<div class="md:flex">
<div class="flex-1">
<div class="bg-light1 p-12 hover-parent">
{% edit_content "orgs.org_edit" "" "#id_common.join_text" "-m-8" "dark" %}
<div class="bg-light1-home p-12 hover-parent">
{% edit_content 'orgs.org_edit' "" "#id_common.join_text" "-m-8" "dark" %}
<div class="text-3xl font-bold leading-tight text-center">
{% if org|config:"join_text" %}
{{ org|config:"join_text" }}
Expand Down Expand Up @@ -182,7 +182,11 @@
<div style="min-height:349px" class="flex justify-content">
<div class="inline-block mx-auto my-auto text-center">
<div class="w-64">
<img src="{{ STATIC_URL }}img/u-report-global-logo-white.png" alt="">
{% if org|config:"has_new_brand" %}
<img src="{{ STATIC_URL }}/img/U-Report_Logo_invert.png" alt="{{ org.name }}" class="logo">
{% else %}
<img src="{{ STATIC_URL }}img/u-report-global-logo-white.png">
{% endif %}
</div>
</div>
</div>
Expand Down Expand Up @@ -344,7 +348,7 @@
{% trans "Learn more about how U-Report is empowering and connecting young people to speak out on issues that matter to them." %}
</div>
<a href="{% url 'public.about' %}"
class="btn bg-light1 text-black hover-dark">{% trans "LEARN MORE" %}</a>
class="btn bg-light1-home text-black hover-dark">{% trans "LEARN MORE" %}</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/public/ureporters.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
class="md:flex engagement-graph-block hover-parent block mt-16 p-2 bg-dark-blue"
id="graph-block-{{ metric.slug }}-{{ time_filter.time_filter_number }}">
<div class="md:w-2/5 hover-parent">
<div class="bg-light1 h-1 w-16 mb-4"></div>
<div class="bg-light1-home h-1 w-16 mb-4"></div>
<div class="text-3xl mb-4 font-bold">{{ metric.title }}</div>
<div data-page="engagement" class="text-xs flex mb-6 text-black random-pill">
{% for segment in data_segments %}
Expand Down
22 changes: 5 additions & 17 deletions templates/public_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,24 +150,12 @@
display: block;
}
{% if org|config:"has_new_brand" %}
.bg-dark1-home {
.bg-dark1-home, .bg-dark2-home, .bg-dark3-home, .bg-light1-home, .bg-light2-home {
background: #00aeef;
}

.bg-dark2-home {
background: #00aeef;
}

.bg-dark3-home {
background: #00aeef;
}

.bg-light1-home {
background: #00aeef;
}

.bg-light2-home {
background: #00aeef;
.bg-dark1-home.hover-dark:hover, .bg-dark2-home.hover-dark:hover, .bg-dark3-home.hover-dark:hover, .bg-light1-home.hover-dark:hover, .bg-light2-home.hover-dark:hover {
background: #42ccff;
}

.text-light1-home {
Expand Down Expand Up @@ -272,7 +260,7 @@
</div>
<div class="md:w-1/4 rtl:float-left rtl:text-left ltr:float-right ltr:text-right inline-block mb-4">
<a href="#"
class="btn bg-light1 text-black inline-block download-screenshot hover-dark">Download</a>
class="btn bg-light1-home text-black inline-block download-screenshot hover-dark">Download</a>
</div>
<div class="mt-4 shadow">
<img src="#" alt="" class="screenshot-rendered">
Expand Down Expand Up @@ -785,7 +773,7 @@
{% endif %}
</div>
<a href="{% url 'public.ureporters' %}"
class="btn bg-light2 text-white inline-block hover-dark">{% trans "EXPLORE ENGAGEMENT" %}</a>
class="btn bg-light2-home text-white inline-block hover-dark">{% trans "EXPLORE ENGAGEMENT" %}</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 8396dbd

Please sign in to comment.