ddstats-server/views/pages/maps.njk

35 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-11-04 22:50:57 +01:00
{% extends "../templates/basic.njk" %}
{% import "../components/_map.njk" as mapComponent %}
{% block head %}
<title>DDStats - Maps!</title>
<link rel="stylesheet" type="text/css" href="/assets/css/maps.css">
{% endblock %}
{% block body %}
2021-11-05 10:32:06 +01:00
<main class="flex-container">
2021-11-06 16:55:37 +01:00
<form action="/search" method="get" id="search">
<h1>Search</h1>
<input type="text" name="map" id="map" placeholder="Map name">
<input type="text" name="categories" id="categories" placeholder="Category">
<input type="text" name="stars" id="stars" placeholder="Star amount">
<div class="sorting">
<label for="asc">
<input type="radio" name="sortBy" id="asc" value="asc">
Sort Ascending
</label>
<label for="desc">
<input type="radio" name="sortBy" id="desc" value="desc">
Sort Descending
</label>
</div>
<button type="submit">Search!</button>
</form>
2021-11-04 22:50:57 +01:00
{% for map in data.maps %}
{{ mapComponent.card(map) }}
{% endfor %}
</main>
{% endblock %}