New collapsible 'Relays' group in the sidebar (chat/file/message relay) that
expands to show its items and persists open state. Homepage gets a matching
Relays card group, and areas are now split by faded separator bars like the
sidebar. Relay pages are placeholder 'coming soon' stubs (/relays/{kind}).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
104 lines
3.6 KiB
HTML
104 lines
3.6 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Home — SimpleX Manager{% endblock %}
|
|
|
|
{% block head %}
|
|
<style>
|
|
.home-head { margin-bottom: 28px; }
|
|
.home-head h1 { margin-bottom: 6px; }
|
|
.home-head p { color: var(--muted); font-size: 14px; }
|
|
|
|
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
|
|
/* faded bar between areas, like the sidebar separators */
|
|
.tiles + .tiles { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
|
|
.tile {
|
|
display: flex; flex-direction: column; gap: 8px;
|
|
background: var(--card); border: 1px solid var(--border); border-radius: 12px;
|
|
padding: 22px; text-decoration: none; color: var(--text);
|
|
box-shadow: var(--shadow);
|
|
transition: border-color 0.15s, transform 0.05s;
|
|
}
|
|
.tile:hover { border-color: var(--accent); }
|
|
.tile:active { transform: translateY(1px); }
|
|
.tile .t-ico { font-size: 28px; line-height: 1; }
|
|
.tile .t-title { font-size: 16px; font-weight: 700; }
|
|
.tile .t-desc { font-size: 13px; color: var(--muted); }
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="home-head">
|
|
<h1>SimpleX Manager</h1>
|
|
</div>
|
|
|
|
<!-- Area 1: your accounts -->
|
|
<div class="tiles">
|
|
<a class="tile" href="/users">
|
|
<span class="t-ico">👤</span>
|
|
<span class="t-title">Users</span>
|
|
<span class="t-desc">Personal SimpleX accounts — contacts, groups and channels.</span>
|
|
</a>
|
|
<a class="tile" href="/businesses">
|
|
<span class="t-ico">💼</span>
|
|
<span class="t-title">Businesses</span>
|
|
<span class="t-desc">Business inboxes — each customer gets their own group chat.</span>
|
|
</a>
|
|
<a class="tile" href="/bots">
|
|
<span class="t-ico">🤖</span>
|
|
<span class="t-title">Bots</span>
|
|
<span class="t-desc">Echo, broadcast, support, directory and dead-man's-switch bots.</span>
|
|
</a>
|
|
<a class="tile" href="/notifications">
|
|
<span class="t-ico">🔔</span>
|
|
<span class="t-title">Notifications</span>
|
|
<span class="t-desc">Recent messages received across all profiles.</span>
|
|
</a>
|
|
<a class="tile" href="https://simplex.chat/file/" target="_blank" rel="noopener">
|
|
<span class="t-ico">📁</span>
|
|
<span class="t-title">File upload</span>
|
|
<span class="t-desc">Share files over SimpleX (opens simplex.chat).</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Area: relays -->
|
|
<div class="tiles">
|
|
<a class="tile" href="/relays/chat">
|
|
<span class="t-ico">💬</span>
|
|
<span class="t-title">Chat relay</span>
|
|
<span class="t-desc">Relay chat messages between connections.</span>
|
|
</a>
|
|
<a class="tile" href="/relays/file">
|
|
<span class="t-ico">📁</span>
|
|
<span class="t-title">File relay</span>
|
|
<span class="t-desc">Relay files between connections.</span>
|
|
</a>
|
|
<a class="tile" href="/relays/message">
|
|
<span class="t-ico">✉️</span>
|
|
<span class="t-title">Message relay</span>
|
|
<span class="t-desc">Relay messages between connections.</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Area 2: manage -->
|
|
<div class="tiles">
|
|
<a class="tile" href="/network">
|
|
<span class="t-ico">📡</span>
|
|
<span class="t-title">Network</span>
|
|
<span class="t-desc">SimpleX servers and connection status.</span>
|
|
</a>
|
|
<a class="tile" href="/settings">
|
|
<span class="t-ico">⚙️</span>
|
|
<span class="t-title">Settings</span>
|
|
<span class="t-desc">Theme and manager preferences.</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Area 3: SimpleX (external) -->
|
|
<div class="tiles">
|
|
<a class="tile" href="https://simplex.chat/downloads/" target="_blank" rel="noopener">
|
|
<span class="t-ico">📲</span>
|
|
<span class="t-title">Get SimpleX App</span>
|
|
<span class="t-desc">Download the SimpleX Chat app (opens simplex.chat).</span>
|
|
</a>
|
|
</div>
|
|
{% endblock %}
|