Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Further tweaks to mobile view

Roland Geider9d3196b5cf88
diff --git a/wger/software/static/css/landing_page.css b/wger/software/static/css/landing_page.css
index 222141437..1d9243a2c 100644
--- a/wger/software/static/css/landing_page.css
+++ b/wger/software/static/css/landing_page.css
@@ -93,16 +93,18 @@ header {
width: 450px;
}
-header .board-section {
- position: absolute;
- width: 100%;
- margin-top: -2em;
-}
ul {
text-align: justify;
}
+.sign-up-bg {
+ background-image: url('/static/images/sign-up-bg.svg');
+ background-repeat: no-repeat;
+ background-position: center;
+ height: 1000px;
+}
+
.hexagon {
/* top: 30vh; */
diff --git a/wger/software/static/images/header-image.png b/wger/software/static/images/header-image.png
deleted file mode 100644
index 1bdcba633..000000000
Binary files a/wger/software/static/images/header-image.png and /dev/null differ
diff --git a/wger/software/static/images/hero.png b/wger/software/static/images/hero.png
index ed31e8cce..afef592e4 100644
Binary files a/wger/software/static/images/hero.png and b/wger/software/static/images/hero.png differ
diff --git a/wger/software/templates/features.html b/wger/software/templates/features.html
index 7ccc67f60..7c81f30bb 100644
--- a/wger/software/templates/features.html
+++ b/wger/software/templates/features.html
@@ -7,7 +7,6 @@
{% block opengraph %}
{{ block.super }}
<meta property="og:title" content="{% translate 'Features' %} - wger">
-
<meta property="og:description"
content="{% blocktranslate %}wger Workout Manager is a free, open source web application that manages your exercises and workouts.{% endblocktranslate %}">
{% endblock %}
@@ -74,8 +73,8 @@
<div class="col-lg-7 col-sm-12 d-flex px-5 flex-column align-items-center">
<img src="{% static 'images/hero.png' %}" alt="a man with a dumbbell" class="header_hero_image">
</div>
- <div class="col-lg-4 col-sm-12 py-3">
- <h1 class="font-bebas-neue display-3 uppercase w-100">
+ <div class="col-lg-4 col-sm-12 py-3 d-flex flex-column align-items-center">
+ <h1 class="font-bebas-neue display-3 uppercase">
{% translate "Track your <br> way to your <br> ideal body" %}
</h1>
<p class="">
@@ -88,20 +87,20 @@
</section>
<!-- board section -->
- <section class="row row-cols-lg-4 row-cols-2 board-section">
- <div class="col-lg-2 col-sm-2 d-flex flex-column align-items-center">
- <h2 class="display-3 font-bebas-neue text-dark-blue text-center mb-0">{{ nr_users }}+</h2>
+ <section class="row">
+ <div class="col-6 col-md-3 d-flex flex-column align-items-center">
+ <h2 class="display-3 font-bebas-neue text-dark-blue mb-0">{{ nr_users }}+</h2>
<p class="text-center">{% translate "people <br> using wger" %}</p>
</div>
- <div class="col-lg-2 col-sm-2 d-flex flex-column align-items-center">
+ <div class="col-6 col-md-3 d-flex flex-column align-items-center">
<h2 class="display-3 font-bebas-neue text-dark-blue mb-0">{{ nr_exercises }}+</h2>
<p class="text-center">{% translate "exercises <br> for workout creation" %}</p>
</div>
- <div class="col-lg-2 col-sm-2 d-flex flex-column align-items-center justify-content-center">
- <h2 class="display-3 font-bebas-neue text-dark-blue mb-0">{{ nr_ingredients }}+</h2>
+ <div class="col-6 col-md-3 d-flex flex-column align-items-center">
+ <h2 class="display-3 font-bebas-neue text-dark-blue mb-0">{{ nr_ingredients }}+</h2>
<p class="text-center">{% translate "foods <br> for meal planing" %}</p>
</div>
- <div class="col-lg-2 col-sm-2 d-flex flex-column align-items-center">
+ <div class="col-6 col-md-3 d-flex flex-column align-items-center">
<h2 class="display-3 font-bebas-neue text-dark-blue mb-0">{{ nr_stars }}+</h2>
<p class="text-center">{% translate "stars <br> on GitHub" %}</p>
</div>
@@ -275,11 +274,11 @@
</section>
<!-- sign up section -->
- <section class="main-section p-3">
- <div class="container-xl">
+ <section class="main-section">
+ <div class="container-xl d-flex align-items-center sign-up-bg">
<!-- form -->
- <div class="row d-flex flex-column gap-2 w-100 align-items-center">
+ <div class="row d-flex flex-column gap-2 w-100 align-items-center ms-1">
<h3 class="col-12 text-center fs-1 uppercase font-bebas-neue">
{% translate "Sign Up Now For Free" %}
</h3>