Browse Source

feat: add description

Signed-off-by: QuentinN42 <quentin@lieumont.fr>
master^2
QuentinN42 2 months ago
parent
commit
42e0aa89d5
Signed by untrusted user: number42 GPG Key ID: 2CD7D563712B3A50
  1. 73
      builder/templates/desc.html
  2. 3
      builder/templates/index.html

73
builder/templates/desc.html

@ -0,0 +1,73 @@
<!DOCTYPE html>
<html data-darkreader-mode="dynamic" data-darkreader-scheme="dark" lang="fr-FR">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="main.css" type="text/css" />
<link href="./static/bootstrap.css" rel="stylesheet" />
<title>{{ config.name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=0.6" />
<link rel="icon" type="image/x-icon" href="{{ config.favicon }}" />
</head>
<body>
<nav class="navbar sticky-top navbar-light bg-light">
{% for category in config.categories %}
<a class="nav-link" href="#{{ category.id }}"> {{ category.name }} </a>
{% endfor %}
<a class="nav-link" style="position: absolute; right: 0px" href="/">
Moins d'info
</a>
</nav>
{% for category in config.categories %}
<div class="container-xxl px-5 py-5">
<h1 class="pb-2 border-bottom" id="{{ category.id }}">
{{ category.name }}
</h1>
<div class="flex-container" style="flex-direction: column">
{% for item in category.content %}
<div
class="flex-item item {{ category.id }}"
style="width: 100%; height: 225px; margin: 25px; padding: 8px"
>
<a href="{{ item.url }}" target="_blank" rel="noopener noreferrer">
<img
src="{{ item.image }}"
alt="{{ item.name }}"
style="width: 225px; float: left"
/></a>
<div style="margin-left: 250px">
<a
class="{{ category.id }}"
style="border: none; text-decoration: none !important"
href="{{ item.url }}"
target="_blank"
rel="noopener noreferrer"
>
<h3>{{ item.name }}</h3></a
>
<p
style="color: var(--bs-body-color) !important; margin-left: 25px"
>
{{ item.description }}
</p>
</div>
</div>
{% endfor %}
</div>
</div>
<div class="b-example-divider"></div>
{% endfor %}
</body>
<footer class="bg-light text-center text-lg-start">
<div class="text-center p-3" style="background-color: rgba(0, 0, 0, 0.2)">
Auto genrated with
<a
class="text-dark"
style="text-decoration: none"
href="https://git.rezel.net/Rezel/rezelator"
>rezelator</a
>!
</div>
</footer>
</html>

3
builder/templates/index.html

@ -14,6 +14,9 @@
{% for category in config.categories %}
<a class="nav-link" href="#{{ category.id }}"> {{ category.name }} </a>
{% endfor %}
<a class="nav-link" style="position: absolute; right: 0px" href="/desc">
Plus d'info
</a>
</nav>
{% for category in config.categories %}
<div class="container-xxl px-5 py-5">

Loading…
Cancel
Save