updated index btw

This commit is contained in:
Lain Iwakura 2025-06-16 02:35:49 +03:00
parent 545df04525
commit f1713ad9a8
No known key found for this signature in database
GPG Key ID: C7C18257F2ADC6F8
2 changed files with 13 additions and 0 deletions

View File

@ -81,6 +81,7 @@ try {
<div class="header">
<h1>Text0Nly</h1>
<div class="header-buttons">
<a href="https://git.sr.ht/~iwakuralain/text0Nly" target="_blank" class="source-btn">Source code</a>
<?php if (isset($_SESSION['username'])): ?>
<span>👤 <?= htmlspecialchars($_SESSION['username']) ?><?php if (!empty($_SESSION['is_moderator'])) echo ' (mod)'; ?></span>
<a href="?logout=1">Logout</a>

View File

@ -36,6 +36,18 @@ body {
font-size: 1em;
}
.source-btn {
background: #222;
color: #fff !important;
padding: 4px 12px;
border-radius: 4px;
text-decoration: none !important;
}
.source-btn:hover {
background: #444;
}
.messages-container {
flex: 1;
margin-bottom: 18px;