Home: compact row tiles, centered title, closing bottom bar; File Relay out-arrow icon

Tiles now lay icon + title on one row (more compact); the SimpleX Manager title
is centered over the cards; add a closing faded bar at the bottom. File Relay
icon changed to an out-arrow tray (closest emoji to a folder-with-arrow).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Jon
2026-06-05 18:48:36 +01:00
parent 37925edcdf
commit 3f0338041c
2 changed files with 12 additions and 9 deletions

View File

@@ -297,7 +297,7 @@
</button> </button>
<div class="nav-sub"> <div class="nav-sub">
<a href="/relays/chat" {% if nav_active == 'relays' and kind == 'chat' %}class="active"{% endif %}><span class="ico">💬</span><span class="lbl">Chat Relay</span></a> <a href="/relays/chat" {% if nav_active == 'relays' and kind == 'chat' %}class="active"{% endif %}><span class="ico">💬</span><span class="lbl">Chat Relay</span></a>
<a href="/relays/file" {% if nav_active == 'relays' and kind == 'file' %}class="active"{% endif %}><span class="ico">🗂️</span><span class="lbl">File Relay</span></a> <a href="/relays/file" {% if nav_active == 'relays' and kind == 'file' %}class="active"{% endif %}><span class="ico">📤</span><span class="lbl">File Relay</span></a>
<a href="/relays/message" {% if nav_active == 'relays' and kind == 'message' %}class="active"{% endif %}><span class="ico">✉️</span><span class="lbl">Message Relay</span></a> <a href="/relays/message" {% if nav_active == 'relays' and kind == 'message' %}class="active"{% endif %}><span class="ico">✉️</span><span class="lbl">Message Relay</span></a>
</div> </div>
</div> </div>

View File

@@ -3,24 +3,25 @@
{% block head %} {% block head %}
<style> <style>
.home-head { margin-bottom: 28px; } .home-head { margin-bottom: 28px; text-align: center; }
.home-head h1 { margin-bottom: 6px; } .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; } .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
/* faded bar between areas, like the sidebar separators */ /* faded bar between areas, like the sidebar separators */
.tiles + .tiles { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); } .tiles + .tiles { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.tile { .tile {
display: flex; flex-direction: column; gap: 8px; display: flex; flex-direction: row; align-items: center; gap: 12px;
background: var(--card); border: 1px solid var(--border); border-radius: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px;
padding: 22px; text-decoration: none; color: var(--text); padding: 16px 18px; text-decoration: none; color: var(--text);
box-shadow: var(--shadow); box-shadow: var(--shadow);
transition: border-color 0.15s, transform 0.05s; transition: border-color 0.15s, transform 0.05s;
} }
.tile:hover { border-color: var(--accent); } .tile:hover { border-color: var(--accent); }
.tile:active { transform: translateY(1px); } .tile:active { transform: translateY(1px); }
.tile .t-ico { font-size: 28px; line-height: 1; } .tile .t-ico { font-size: 22px; line-height: 1; flex-shrink: 0; }
.tile .t-title { font-size: 16px; font-weight: 700; } .tile .t-title { font-size: 15px; font-weight: 700; }
/* closing bar at the bottom */
.home-end { margin-top: 28px; border-top: 1px solid var(--border); }
</style> </style>
{% endblock %} {% endblock %}
@@ -60,7 +61,7 @@
<span class="t-title">Chat Relay</span> <span class="t-title">Chat Relay</span>
</a> </a>
<a class="tile" href="/relays/file"> <a class="tile" href="/relays/file">
<span class="t-ico">🗂️</span> <span class="t-ico">📤</span>
<span class="t-title">File Relay</span> <span class="t-title">File Relay</span>
</a> </a>
<a class="tile" href="/relays/message"> <a class="tile" href="/relays/message">
@@ -88,4 +89,6 @@
<span class="t-title">Get SimpleX App</span> <span class="t-title">Get SimpleX App</span>
</a> </a>
</div> </div>
<div class="home-end"></div>
{% endblock %} {% endblock %}