57 lines
2.5 KiB
Plaintext
57 lines
2.5 KiB
Plaintext
<%- include("partials/layout-top", { title }) %>
|
|
<section class="hero">
|
|
<h1>Welcome to <%= siteTitle %></h1>
|
|
<p>Manage the bot, explore stats, and extend features from the WebUI.</p>
|
|
<div class="hero-actions">
|
|
<a class="button" href="/commands">View commands</a>
|
|
<a class="button subtle" href="/leaderboards">Leaderboards</a>
|
|
</div>
|
|
</section>
|
|
<% if (homepageHero) { %>
|
|
<section class="homepage-dynamic-hero card" aria-label="Featured community content">
|
|
<div>
|
|
<span class="eyebrow"><%= homepageHero.type.replaceAll("_", " ") %></span>
|
|
<h2><%= homepageHero.title %></h2>
|
|
<% if (homepageHero.description) { %><p><%= homepageHero.description %></p><% } %>
|
|
<% if (homepageHero.source_url) { %><a class="button subtle" href="<%= homepageHero.source_url %>" target="_blank" rel="noopener noreferrer">Open featured content</a><% } %>
|
|
</div>
|
|
<% if (homepageHero.image_url) { %>
|
|
<img class="homepage-hero-media" src="<%= homepageHero.image_url %>" alt="" loading="lazy" />
|
|
<% } else if (homepageHero.embed_url) { %>
|
|
<iframe class="homepage-hero-media" src="<%= homepageHero.embed_url %>" title="<%= homepageHero.title %>" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" allow="accelerometer; autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share" allowfullscreen></iframe>
|
|
<% } %>
|
|
</section>
|
|
<% } %>
|
|
<% if ((homepageLinks || []).length) { %>
|
|
<section class="homepage-link-strip" aria-label="Community links">
|
|
<% homepageLinks.forEach((link) => { %>
|
|
<a class="homepage-link-button" href="<%= link.url %>" target="_blank" rel="noopener noreferrer">
|
|
<% if (link.icon_url) { %>
|
|
<img src="<%= link.icon_url %>" alt="" loading="lazy" />
|
|
<% } else { %>
|
|
<span aria-hidden="true"><%= link.fallback_icon %></span>
|
|
<% } %>
|
|
<span><strong><%= link.label %></strong><small><%= link.description %></small></span>
|
|
</a>
|
|
<% }) %>
|
|
</section>
|
|
<% } %>
|
|
<section class="grid">
|
|
<div class="card">
|
|
<h2>Bot control</h2>
|
|
<p>Configure settings, update the bot, and manage plugins from the dashboard.</p>
|
|
<a href="/admin" class="link">Open admin dashboard</a>
|
|
</div>
|
|
<div class="card">
|
|
<h2>Community stats</h2>
|
|
<p>Track activity, view leaderboards, and browse profile stats.</p>
|
|
<a href="/leaderboards" class="link">View leaderboards</a>
|
|
</div>
|
|
<div class="card">
|
|
<h2>Custom modules</h2>
|
|
<p>Create commands and pages directly in the WebUI.</p>
|
|
<a href="/admin/commands" class="link">Manage commands</a>
|
|
</div>
|
|
</section>
|
|
<%- include("partials/layout-bottom") %>
|