aboutsummaryrefslogtreecommitdiff
path: root/app/templates/index.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-22 21:03:01 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-22 21:03:01 +0000
commit5f40d6844173d6d7b65a1ec5b73ab83d4ef67073 (patch)
treef13402e7df5bb6078644dd2742701b884f75452a /app/templates/index.html
parent8eedbf64a4c85d9cc8ed61f489f8dcf0e406c56c (diff)
downloadcheatdb-5f40d6844173d6d7b65a1ec5b73ab83d4ef67073.tar.xz
Improve home page
Diffstat (limited to 'app/templates/index.html')
-rw-r--r--app/templates/index.html29
1 files changed, 21 insertions, 8 deletions
diff --git a/app/templates/index.html b/app/templates/index.html
index fde897f..b37228c 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -4,8 +4,8 @@
Welcome
{% endblock %}
-{% block container %}
-<header class="jumbotron">
+{% block content %}
+<!-- <header class="jumbotron">
<div class="container">
<h1 class="display-3">{{ config.USER_APP_NAME }}</h1>
@@ -18,16 +18,29 @@ Welcome
</div>
</header>
-<main class="container">
+<main class="container"> -->
{% from "macros/packagegridtile.html" import render_pkggrid %}
- <h2>Popular</h2>
+
+ <a href="{{ url_for('packages_page', sort='created_at', order='desc') }}" class="btn btn-secondary float-right">
+ See more
+ </a>
+ <h2 class="my-3">Newly Added</h2>
+ {{ render_pkggrid(new) }}
+
+
+ <a href="{{ url_for('packages_page') }}" class="btn btn-secondary float-right">
+ See more
+ </a>
+ <h2 class="my-3">Popular</h2>
{{ render_pkggrid(popular) }}
- <a href="{{ url_for('packages_page') }}" class="btn">Show More</a>
- <h2 style="margin-top:2em;">Newly Added</h2>
- {{ render_pkggrid(new) }}
+ <a href="{{ url_for('packages_page', type='txp') }}" class="btn btn-secondary float-right">
+ See more
+ </a>
+ <h2 class="my-3">Top Texture Packs</h2>
+ {{ render_pkggrid(pop_txp) }}
-</main>
+<!-- </main> -->
{% endblock %}