flexicraft-website/templates/index.html

43 lines
1.7 KiB
HTML
Raw Normal View History

{% 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 %}