35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
{% 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 %}
|
|
<main class="flex-container">
|
|
<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>
|
|
|
|
{% for map in data.maps %}
|
|
{{ mapComponent.card(map) }}
|
|
{% endfor %}
|
|
</main>
|
|
{% endblock %} |