flexicraft-website/templates/tools.html

31 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block content %}
<div class="container">
<div style="display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem">
<div>
<h1>🧰 Portail des Outils FlexiCraft</h1>
<p style="color:var(--muted)">Niveau d'accès actuel : <strong>{{ tier|upper }}</strong> {% if tier == 'visitor' %}(Mode visiteur public — connectez-vous via Discord pour débloquer les outils citoyens et ministériels){% endif %}</p>
</div>
</div>
<div class="grid">
{% for t in tools %}
<div class="card {{ '' if t.unlocked else 'locked' }}">
<div>
<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:.8rem">
<span class="badge">{{ t.badge }}</span>
<span>{{ '🔓 Débloqué' if t.unlocked else '🔒 Verrouillé' }}</span>
</div>
<h3>{{ t.title }}</h3>
<p style="color:var(--muted);margin:.6rem 0 1.2rem">{{ t.desc }}</p>
</div>
{% if t.unlocked %}
<a href="{{ t.url }}" class="btn btn-primary" target="{{ '_blank' if t.url.startswith('http') else '_self' }}">Ouvrir l'outil →</a>
{% else %}
<span class="btn" style="cursor:not-allowed">Requiert le rang {{ t.badge }}</span>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endblock %}