From ba486e0e9c7745189e750450005bd95bd72c406a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 12 Aug 2023 12:37:06 +0200 Subject: [PATCH] some style improvements --- web/_data/community-content.json | 11 ------ web/community.html | 68 ++++++++++++++++---------------- web/style.css | 8 +++- 3 files changed, 42 insertions(+), 45 deletions(-) diff --git a/web/_data/community-content.json b/web/_data/community-content.json index a1d3dd1..02b5a17 100644 --- a/web/_data/community-content.json +++ b/web/_data/community-content.json @@ -1,15 +1,4 @@ [ - { - "name": "Itty for Tiny Life", - "slug": "itty", - "desc": "Itty adds a social media site (called Itty) that allows your Tinies to interact digitally!", - "author": "ssblur", - "section": "mods", - "links": { - "Steam": "https://steamcommunity.com/sharedfiles/filedetails/?id=2965803577", - "YouTube": "https://www.youtube.com/channel/UC87-8FM-U9OSUYCzIqlhztA" - } - }, { "name": "Itty for Tiny Life", "slug": "itty", diff --git a/web/community.html b/web/community.html index 2957248..28dcc9d 100644 --- a/web/community.html +++ b/web/community.html @@ -5,37 +5,39 @@ title: Tiny Life summary: A fun simulation game where you mess with people's lives --- -
-

💬 Community Showcase

- Tiny Life's community is awesome, blah blah blah -
- -{% for section in site.data.community-sections %} -
-

{{ section.name }}

-

{{ section.desc }}

- - {% for content in site.data.community-content %} - {% if content.section == section.slug %} -
-
-
-

{{ content.name }}

-
Created by {{ content.author }}
-
{{ content.desc }}
-
- {% for link in content.links %} - {{ link[0] }} - {% unless forloop.last %} - – - {% endunless %} - {% endfor %} -
-
- An image showing off {{ content.name }} -
-
- {% endif %} - {% endfor %} +
+
+

💬 Community Showcase

+ Tiny Life's community is awesome, blah blah blah
-{% endfor %} + + {% for section in site.data.community-sections %} +
+

{{ section.name }}

+

{{ section.desc }}

+ + {% for content in site.data.community-content %} + {% if content.section == section.slug %} +
+
+
+

{{ content.name }}

+
Created by {{ content.author }}
+
{{ content.desc }}
+
+ {% for link in content.links %} + {{ link[0] }} + {% unless forloop.last %} + – + {% endunless %} + {% endfor %} +
+
+ An image showing off {{ content.name }} +
+
+ {% endif %} + {% endfor %} +
+ {% endfor %} +
diff --git a/web/style.css b/web/style.css index 35c1f48..0737615 100644 --- a/web/style.css +++ b/web/style.css @@ -110,7 +110,13 @@ pre.highlight { } .community-content { - margin: 25px auto; + margin-top: 15px; + margin-bottom: 15px; +} + +.community-section { + margin-top: 25px; + margin-bottom: 25px; } .community-title {