Skip to content

Commit

Permalink
Min-height to pages with less content (#1012)
Browse files Browse the repository at this point in the history
* Min-height to pages with less content

* Undo prettier format Signup.html

* undo prettier format search.html

* undo perttier for leaderboard_specific_month

* undo eachmoth.html

* undo global leaderboard

Co-authored-by: manish bisht <manishbisth9711@gmail.com>
  • Loading branch information
ManishBisht777 and manish bisht authored Jan 3, 2023
1 parent 1f0153e commit 3c3995b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
6 changes: 5 additions & 1 deletion website/templates/account/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

{% block style %}
<style>

.container-min-height{
min-height: 70vh;
}
.inner-addon {
position: relative;
}
Expand Down Expand Up @@ -33,7 +37,7 @@
{% endblock %}

{% block content %}
<div class="row">
<div class="row container-min-height">
<h3 class="text-center">{% trans "Sign Up" %}</h3>
<div class="col-md-6 col-md-offset-3">
<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}">
Expand Down
2 changes: 1 addition & 1 deletion website/templates/leaderboard_eachmonth.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ <h1 class="page-header">Monthly Leaderboard</h1>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
7 changes: 5 additions & 2 deletions website/templates/leaderboard_global.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

{% block style %}
<style>
.container-min-height{
min-height: 50vh;
}
.list-group-item img {
width: 50px;
height: 50px;
Expand Down Expand Up @@ -45,7 +48,7 @@
{% endblock %}

{% block content %}
<div class="row">
<div class="row container-min-height">
<div class="col-lg-6" style="display: flex; justify-content: center; align-items: center;">
<h1 class="page-header">Global Leaderboard</h1>
</div>
Expand Down Expand Up @@ -79,4 +82,4 @@ <h1 class="page-header">Global Leaderboard</h1>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
7 changes: 6 additions & 1 deletion website/templates/leaderboard_specific_month.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

{% block style %}
<style>

.container-min-height{
min-height: 50vh;
}

.list-group-item img {
width: 50px;
height: 50px;
Expand Down Expand Up @@ -133,7 +138,7 @@ <h1 class="page-header">Monthly Leaderboard</h1>
</p>
</div>
</div>
<div class="row">
<div class="row container-min-height">
<div class="col-lg-9">
<div class="list-group">
{%if not leaderboard%}
Expand Down
10 changes: 9 additions & 1 deletion website/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
{% load humanize %}

{% block content %}
<div class="row">


<style>
.container-min-height{
min-height: 50vh;
}
</style>

<div class="row container-min-height">
<div class="col-md-8 col-md-offset-2">
<h1 class="text-center"><span class="search-header">Search Results for </span><span class="search-header-query">"{{query}}"</span></h1>
<hr>
Expand Down

0 comments on commit 3c3995b

Please sign in to comment.