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
32
templates/base.html
Normal file
32
templates/base.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ cfg.site_name }} — Musée Vivant & Démocratie</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar">
|
||||
<a href="/" class="brand">🪨 {{ cfg.site_name }}</a>
|
||||
<div class="nav-links">
|
||||
<a href="/">Accueil</a>
|
||||
<a href="/tools">Outils & Écosystème</a>
|
||||
<a href="{{ cfg.public_links.map_url }}" target="_blank">Carte 2D</a>
|
||||
<a href="{{ cfg.public_links.forgejo_url }}" target="_blank">Forgejo</a>
|
||||
{% if user %}
|
||||
<span class="pill">👤 {{ user.username }} ({{ tier|upper }})</span>
|
||||
<a href="/auth/logout" class="btn">Déconnexion</a>
|
||||
{% elif sso_enabled %}
|
||||
<a href="/auth/discord" class="btn btn-primary">Connexion Discord</a>
|
||||
{% else %}
|
||||
<a href="{{ cfg.public_links.discord_url }}" target="_blank" class="btn btn-primary">Rejoindre Discord</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
{% block content %}{% endblock %}
|
||||
<footer>
|
||||
FlexiCraft (2019 — 2026) • Java 1.9 → 1.21.11+ & Bedrock Crossplay • Mode actif : <strong>{{ tier|upper }}</strong>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
42
templates/index.html
Normal file
42
templates/index.html
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<section class="hero">
|
||||
<h1>{{ content.hero_title }}</h1>
|
||||
<p>{{ content.hero_subtitle }}</p>
|
||||
<div class="status-bar">
|
||||
<span class="pill">
|
||||
<span class="{{ 'dot-on' if status.online else 'dot-off' }}"></span>
|
||||
{{ 'EN LIGNE' if status.online else 'HORS LIGNE' }} ({{ status.players_online }}/{{ status.players_max }})
|
||||
</span>
|
||||
<span class="copy-box" onclick="navigator.clipboard.writeText('{{ cfg.public_links.java_ip }}')" title="Cliquer pour copier">
|
||||
☕ Java : {{ cfg.public_links.java_ip }}
|
||||
</span>
|
||||
<span class="copy-box" onclick="navigator.clipboard.writeText('{{ cfg.public_links.bedrock_ip }}:{{ cfg.public_links.bedrock_port }}')" title="Cliquer pour copier">
|
||||
📱 Bedrock : {{ cfg.public_links.bedrock_ip }} ({{ cfg.public_links.bedrock_port }})
|
||||
</span>
|
||||
<span class="pill">🪪 {{ citizens_count }} Citoyen(s) lié(s)</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="container">
|
||||
<h2>Les 3 piliers de FlexiCraft</h2>
|
||||
<div class="grid">
|
||||
{% for p in content.pillars %}
|
||||
<div class="card">
|
||||
<div>
|
||||
<h3>{{ p.icon }} {{ p.title }}</h3>
|
||||
<p style="color:var(--muted);margin-top:.6rem">{{ p.text }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div style="margin-top:3rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem">
|
||||
<div>
|
||||
<h2>Accès rapide à l'écosystème</h2>
|
||||
<p style="color:var(--muted)">Explorez la carte interactive, rejoignez le Discord ou accédez aux outils selon votre rôle.</p>
|
||||
</div>
|
||||
<a href="/tools" class="btn btn-emerald">Voir tous les outils →</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
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