From 1dc6b3d2270bfd926e9abf0871d476fd5f4ce941 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Fri, 18 Nov 2022 22:32:06 +0100 Subject: [PATCH] Create games list --- assets/css/styles.css | 4 ++-- templates/games.html | 23 +++++++++++++++++++++++ templates/index.html | 8 +++++++- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/assets/css/styles.css b/assets/css/styles.css index 477b6ad..fe9c1fc 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -3589,8 +3589,8 @@ textarea.form-control-lg { } .btn-lg, .btn-group-lg > .btn { - padding: 0.5rem 1rem; - font-size: 1.25rem; + padding: 1.75rem 2.5rem !important; + font-size: 1.25rem !important; border-radius: 0.3rem; } diff --git a/templates/games.html b/templates/games.html index e69de29..1174f82 100644 --- a/templates/games.html +++ b/templates/games.html @@ -0,0 +1,23 @@ +{% extends "layout.html" %} +{% block ogpdesc %}{{ this.shortbody }}{% endblock %} +{% block ogptitle %}{{ this.title }} | Queerscriptors{% endblock %} +{% block twitterdesc %}{{ this.shortbody }}{% endblock %} +{% block twittertitle %}{{ this.title }} | Queerscriptors{% endblock %} +{% block page %} +{% include 'header.html' %} +{% for project in this.children %} + {% set image = project.attachments.images.first() %} +
+
+
+ +
+
+
+
{{project.title}}
+

{{project.shortbody}}

+
+
+
+
+{% endblock %} diff --git a/templates/index.html b/templates/index.html index 8ac9da9..a1180de 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,10 @@ {% include 'masterhead.html' %} {% include 'joinus.html' %} -
+
+
+

Featured games

+
{% for id, item in bag('featured').items() %} {% set image = item.path+'main.jpg' %} @@ -22,5 +25,8 @@
{% endfor %}
+
{% endblock %}