Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set background color in css file

Roland Geider9dec733bdb20
diff --git a/wger/core/templatetags/wger_extras.py b/wger/core/templatetags/wger_extras.py
index 15f51bccd..571d993ad 100644
--- a/wger/core/templatetags/wger_extras.py
+++ b/wger/core/templatetags/wger_extras.py
@@ -35,7 +35,6 @@ from wger.utils.constants import (
PAGINATION_PAGES_AROUND_CURRENT,
)
-
register = template.Library()
@@ -201,6 +200,7 @@ def fa_class(class_name='', icon_type='fas', fixed_width=True):
:param class_name: the CSS class name, without the "fa-" prefix
:param fixed_width: toggle for fixed icon width
+ :param icon_type; icon type (
:return: the complete CSS classes
"""
css = ''
diff --git a/wger/software/static/css/landing_page.css b/wger/software/static/css/landing_page.css
index e5e1e59c4..488607c82 100644
--- a/wger/software/static/css/landing_page.css
+++ b/wger/software/static/css/landing_page.css
@@ -16,6 +16,7 @@
--red: #bd5164;
--dark-yellow: #9a6a23;
--bg-blue: #163665;
+ --bg-light-blue: #eaf0fe;
}
html,
@@ -38,6 +39,10 @@ a {
border: 0;
}
+.bg-light-blue {
+ background-color: var(--bg-light-blue);
+}
+
.bg-dark-blue:hover {
color: "#fff";
}
diff --git a/wger/software/templates/features.html b/wger/software/templates/features.html
index 8dbfe23c2..30dd3d43f 100644
--- a/wger/software/templates/features.html
+++ b/wger/software/templates/features.html
@@ -24,7 +24,7 @@
<!-- navbar -->
<nav class="navbar navbar-expand-lg px-4">
<div class="container-xl">
- <a class="navbar-brand" href="#">
+ <a class="navbar-brand" href="{% url 'core:index' %}">
<img src="{% static 'images/logos/logo-font.svg' %}" alt="wger logo" />
</a>
<button class="navbar-toggler"
@@ -178,7 +178,8 @@
<li>
{% blocktranslate trimmed %}Get automatically calculated nutritional values
(energy, protein, carbs, ...) for both individual meals and your entire
- weekly plan{% endblocktranslate %}
+ weekly plan
+ {% endblocktranslate %}
</li>
</ul>
</div>
@@ -234,7 +235,7 @@
</div>
<!-- community section -->
- <section class="main-section p-4" style="background-color:#EAF0FE;">
+ <section class="main-section p-4 bg-light-blue">
<div class="container-xl">
<div class="row w-100 gy-3">
<div class="col-lg-7 col-sm-12 d-flex flex-column justify-content-center align-items-center">
@@ -262,19 +263,16 @@
Pitch in and help make wger even better!
{% endblocktranslate %}
</p>
- <div class="d-flex gap-3">
- <button type="button" class="btn btn-primary rounded-1 bg-dark-blue w-auto px-5">
- <a href=""
- target="_blank"
- rel="noopener noreferrer">
- {% translate "Contribute" %}
- </a>
- </button>
- <button type="button" class="btn btn-outline-primary rounded-1 w-auto px-5">
- <a href="http://" target="_blank" rel="noopener noreferrer">
- {% translate "Donate" %}
- </a>
- </button>
+ <div class="d-flex align-items-sm-center gap-3">
+ <a href=""
+ class="btn btn-primary rounded-1 w-auto px-5"
+ target="_blank"
+ rel="noopener noreferrer">
+ {% translate "Contribute" %}
+ </a>
+ <a href="http://" target="_blank" rel="noopener noreferrer" class="btn btn-outline-primary rounded-1 w-auto px-5">
+ {% translate "Donate" %}
+ </a>
</div>
</div>
</div>