Initial commit: FlexiCraft Web Portal + Discord SSO + Quartz/Iron engines
This commit is contained in:
commit
f488ff57c5
19 changed files with 3256 additions and 0 deletions
31
templates/tools.html
Normal file
31
templates/tools.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{% 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue