Forum: the side links as rows in one card

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 13:44:25 +00:00
co-authored by Claude Opus 5.5
parent 42283d740e
commit 23316d6042
2 changed files with 46 additions and 8 deletions
+17 -1
View File
@@ -192,7 +192,7 @@ body:has(.forum[data-theme="light"]) .site-footer { background: #0d1220; }
.fh-sky-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .fh-sky-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fh-sky-text h2 { font-size: 24px; line-height: 1.15; } .fh-sky-text h2 { font-size: 24px; line-height: 1.15; }
.fh-sky-text p { color: var(--ink-2); font-size: 16px; } .fh-sky-text p { color: var(--ink-2); font-size: 16px; }
.fh-sky-link, .fh-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; } .fh-sky-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; }
.fh-waiting-grid { display: grid; gap: 12px; } .fh-waiting-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .fh-waiting-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } } @media (min-width: 760px) { .fh-waiting-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.fh-me { display: flex; flex-direction: column; gap: 14px; } .fh-me { display: flex; flex-direction: column; gap: 14px; }
@@ -644,3 +644,19 @@ a.fh-online-item:hover { color: var(--gold); }
.kb-open .forum-nav, .kb-open .ftv-incoming { display: none; } .kb-open .forum-nav, .kb-open .ftv-incoming { display: none; }
} }
.forum textarea, .forum input { scroll-margin: 88px 0 96px; } .forum textarea, .forum input { scroll-margin: 88px 0 96px; }
/* The small links at the bottom of the side column: rows in one card. */
.fh-links { display: flex; flex-direction: column; }
.fh-link {
display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
color: var(--ink); text-decoration: none;
}
.fh-link + .fh-link { border-top: 1px solid var(--line); }
.fh-link:hover { background: var(--f-hover); }
.fh-link svg {
width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.8;
stroke-linecap: round; stroke-linejoin: round;
}
.fh-link-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.fh-link-text .hint { font-size: 13px; font-weight: 400; }
.fh-link-arrow { color: var(--muted); font-size: 20px; line-height: 1; }
+26 -4
View File
@@ -284,14 +284,36 @@ export default async function ForumHomePage() {
</div> </div>
</section> </section>
)} )}
<Link href="/aszf#forum" className="fh-side-link o-8"> <nav className="fh-card fh-flush fh-links o-8" aria-label="Továbbiak">
A fórum házirendje <Link href="/aszf#forum" className="fh-link">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 4.5h9.5a3 3 0 0 1 3 3v12h-9.5a3 3 0 0 1-3-3z" />
<path d="M8.5 9h5.5M8.5 12.5h5.5" />
</svg>
<span className="fh-link-text">
Házirend
<span className="hint">A fórum szabályai</span>
</span>
<span className="fh-link-arrow" aria-hidden="true">
›
</span>
</Link> </Link>
{viewer.moderator && ( {viewer.moderator && (
<Link href="/forum/moderalas" className="fh-side-link o-8"> <Link href="/forum/moderalas" className="fh-link">
Moderálás: jelentések és napló <svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 3.5l7 2.5v5.5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z" />
<path d="M9 12l2.2 2.2L15.5 10" />
</svg>
<span className="fh-link-text">
Moderálás
<span className="hint">Jelentések, témák, napló</span>
</span>
<span className="fh-link-arrow" aria-hidden="true">
›
</span>
</Link> </Link>
)} )}
</nav>
</aside> </aside>
</div> </div>
); );