additions from backlog

This commit is contained in:
Trilarion
2021-09-22 13:15:48 +02:00
parent f0198312b4
commit 559741621a
22 changed files with 289 additions and 184 deletions

View File

@ -4,6 +4,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Trilarion">
<meta name="description" content="Infos and technical information about many open source games and frameworks.">
<title>{{ base['title'] }}</title>
<link rel="stylesheet" href="{{ base['url_to'](['css', 'bulma.min.css']) }}">
<link rel="stylesheet" href="{{ base['url_to'](['css', 'osgl.min.css']) }}">
@ -16,7 +18,7 @@
<a class="navbar-item{% if 'index' in base['active_nav'] %} is-active{% endif %}" href="{{ base['url_to'](['index.html']) }}">{{ macros.render_icon({'class':'home'}) }}<span>Home</span></a>
<a class="navbar-item{% if 'games' in base['active_nav'] %} is-active{% endif %}" href="{{ base['url_to'](['games', 'index.html']) }}">{{ macros.render_icon({'class':'dice'}) }}<span>Games</span></a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link{% if 'filter' in base['active_nav'] %} is-active{% endif %}">{{ macros.render_icon('filter') }}<span>Filter</span></a>
<a class="navbar-link{% if 'filter' in base['active_nav'] %} is-active{% endif %}">{{ macros.render_icon({'class':'filter'}) }}<span>Filter</span></a>
<div class="navbar-dropdown">
<a class="navbar-item{% if 'genres' in base['active_nav'] %} is-active{% endif %}" href="{{ base['url_to'](['games', 'genres.html']) }}">{{ macros.render_icon({'class':'price-tag'}) }}<span>By category</span></a>
<a class="navbar-item{% if 'code language' in base['active_nav'] %} is-active{% endif %}" href="{{ base['url_to'](['games', 'languages.html']) }}">{{ macros.render_icon({'class':'language'}) }}<span>By code language</span></a>
@ -38,13 +40,13 @@
{#- footer -#}
<footer class="footer">
<div class="container content is-size-7">
<p>The <a href="https://github.com/Trilarion/opensourcegames">Open source games list (OSGL)</a> is a collection of open source game descriptions focusing on technical aspects.
The content on this site is the result of voluntary work and may be outdated or incorrect.<br>
For giving feedback or improving the content see the <a href="contribute.html">contribution guidelines</a> or read the <a href="https://trilarion.blogspot.com/search/label/osgames">Blog</a>.</p>
<p>The content (games descriptions) is licensed <a href="https://github.com/Trilarion/opensourcegames/blob/master/LICENSE">CC-0</a>.
Used icons are licensed under CC BY-SA 3.0 (<a href="https://github.com/somerandomdude/Iconic">Iconic</a> or <a href="http://designmodo.com/linecons-free/">Linecons</a>), CC0 1.0 (<a href="https://simpleicons.org/">Simple Icons</a>),
CC BY 4.0 (<a href="https://github.com/FortAwesome/Font-Awesome">Font Awesome</a> or <a href="https://icomoon.io/#icons-icomoon">IcoMoon Free</a>), CC BY-SA 4.0 (<a href="http://www.entypo.com/">Entypo+</a>) or Apache License 2.0 (<a href="https://material.io/resources/icons">Material Icons</a>).
This website is built using Python, Lark, Jinja2 and Bulma. Last updated: {{ base['creation-date'] }}</p>
<p>The <a href="https://github.com/Trilarion/opensourcegames">Open source games list (OSGL)</a> is a collection of open source game descriptions focusing on technical aspects.
The content on this site is the result of voluntary work and may be outdated or incorrect.<br>
For giving feedback or improving the content see the <a href="contribute.html">contribution guidelines</a> or read the <a href="https://trilarion.blogspot.com/search/label/osgames">Blog</a>.</p>
<p>The content (games descriptions) is licensed <a href="https://github.com/Trilarion/opensourcegames/blob/master/LICENSE">CC-0</a>.
Used icons are licensed under CC BY-SA 3.0 (<a href="https://github.com/somerandomdude/Iconic">Iconic</a> or <a href="http://designmodo.com/linecons-free/">Linecons</a>), CC0 1.0 (<a href="https://simpleicons.org/">Simple Icons</a>),
CC BY 4.0 (<a href="https://github.com/FortAwesome/Font-Awesome">Font Awesome</a> or <a href="https://icomoon.io/#icons-icomoon">IcoMoon Free</a>), CC BY-SA 4.0 (<a href="http://www.entypo.com/">Entypo+</a>) or Apache License 2.0 (<a href="https://material.io/resources/icons">Material Icons</a>).
This website is built using Python, Lark, Jinja2 and Bulma. Last updated: {{ base['creation-date'] }}</p>
</div>
</footer>
</body>

View File

@ -1,5 +1,4 @@
{% extends "base.jinja" %}
{% block content %}
<section class="hero is-info is-bold">
<div class="hero-body">

View File

@ -3,34 +3,32 @@
<section class="section">
<div class="container">
<h1 class="title">{{ listing['title'] }}</h1>
{# iterate over items -#}
{#- iterate over items -#}
{% for item in listing['items'] %}
<div id="{{ item['anchor-id'] }}" class="box">
<div class="level">
<div class="level-left">
<div class="level-item">
<h2 class="title is-4">{{ item['name'] }}</h2>
</div>
</div>
<div class="level-right is-size-5">
<div id="{{ item['anchor-id'] }}" class="box">
<div class="level">
<div class="level-left">
<div class="level-item">
<h2 class="title is-4">{{ item['name'] }}</h2>
</div>
</div>
<div class="level-right is-size-5">
{%- for contact in item['contact'] -%}
<div class="level-item">{{ macros.render_element(contact) }}</div>
{%- endfor -%}
</div>
</div>
</div>
<div class="block">{{ macros.render_element(item['games']) }}</div>
<div class="block">
{%- for field in ('organization',) -%}
{%- if field in item -%}
{{ macros.render_element(item[field]) }}
{%- endif -%}
{%- endfor -%}
</div>
<div class="block">
<a href="{{ base['url_to'](['contribute.html#developers']) }}" title="Contribution guide" class="is-size-7">Improve</a>
</div>
</div>
{% endfor %}
<div class="block">{{ macros.render_element(item['games']) }}</div>
<div class="block">
{%- for field in ('organization',) -%}
{%- if field in item %}{{ macros.render_element(item[field]) }}{% endif -%}
{%- endfor -%}
</div>
<div class="block">
<a href="{{ base['url_to'](['contribute.html#developers']) }}" title="Contribution guide" class="is-size-7">Improve</a>
</div>
</div>
{% endfor -%}
<a class="is-light is-size-7" href="#">Back to top</a>
</div>
</section>

View File

@ -3,19 +3,19 @@
<section class="section">
<div class="container">
<h1 class="title">{{ listing['title'] }}</h1>
{# iterate over items -#}
{% for item in listing['items'] %}
<div id="{{ item['anchor-id'] }}" class="box">
<div class="block">
<h2 class="title is-4">{{ item['name'] }}</h2>
<div class="subtitle is-size-6">{{ macros.render_element(item['inspired']) }}</div>
{%- if 'media' in item -%}{{ macros.render_element(item['media']) }}{%- endif -%}
</div>
<div class="block">
<a href="{{ base['url_to'](['contribute.html#inspirations']) }}" title="Contribution guide" class="is-size-7">Improve</a>
</div>
</div>
{% endfor %}
{# iterate over items -#}
{%- for item in listing['items'] -%}
<div id="{{ item['anchor-id'] }}" class="box">
<div class="block">
<h2 class="title is-4">{{ item['name'] }}</h2>
<div class="subtitle is-size-6">{{ macros.render_element(item['inspired']) }}</div>
{%- if 'media' in item -%}{{ macros.render_element(item['media']) }}{%- endif -%}
</div>
<div class="block">
<a href="{{ base['url_to'](['contribute.html#inspirations']) }}" title="Contribution guide" class="is-size-7">Improve</a>
</div>
</div>
{% endfor -%}
<a class="is-light is-size-7" href="#">Back to top</a>
</div>
</section>

View File

@ -6,7 +6,7 @@
{%- for e in entry -%}{{ render_element(e) }}{%- endfor -%}
{%- elif entry['type'] == 'text' -%}
{{ render_text(entry) }}
{%- elif entry['type'] == 'icon' -%}
{%- elif entry['type'] == 'icon' -%}
{{ render_icon(entry) }}
{%- elif entry['type'] == 'url' -%}
{{ render_url(entry) }}
@ -32,7 +32,7 @@
{# Renders an icon #}
{%- macro render_icon(icon) -%}
<span class="icon has-text-black" {% if 'title' in icon %} title="{{ icon['title'] }}"{% endif %}><i class="icon-{{ icon['class'] }}"></i></span>
<span class="icon is-large has-text-black" {% if 'title' in icon %} title="{{ icon['title'] }}"{% endif %}><i class="icon-{{ icon['class'] }}"></i></span>
{%- endmacro -%}
{# Some text surrounded by a link tag #}

View File

@ -9,16 +9,15 @@
{% endfor %}
</div>
</section>
{% for section in data['sections'] %}
<section class="section">
<div class="container">
<h2 id="">{{ section['title'] }}</h2>
<ul>
{% for item in section['items'] %}
<li>{{ item }}</li>
{% endfor %}
</ul>
<ul>
{% for item in section['items'] -%}
<li>{{ item }}</li>
{% endfor -%}
</ul>
</div>
</section>
{% endfor %}