Cleanup, grammar fixes, and build fix
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
@inherits LayoutComponentBase
|
||||
<div class="layout">
|
||||
<aside class="sidebar">
|
||||
<NavMenu />
|
||||
</aside>
|
||||
<div class="main-area">
|
||||
<main>
|
||||
<article class="content">
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
<div class="nav-header">
|
||||
<a class="nav-brand" href="">
|
||||
<span class="brand-icon">◆</span>
|
||||
<span class="brand-text">Game Slop Reference</span>
|
||||
</a>
|
||||
</div>
|
||||
<nav class="nav-links">
|
||||
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
|
||||
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
|
||||
Home
|
||||
</NavLink>
|
||||
<NavLink class="nav-link" href="games">
|
||||
<svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="6" x2="6" y2="18"/><line x1="10" y1="6" x2="10" y2="18"/><path d="M14 6h4a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-4"/></svg>
|
||||
Games
|
||||
</NavLink>
|
||||
</nav>
|
||||
@@ -1,78 +0,0 @@
|
||||
.nav-header {
|
||||
padding: 1.25rem 1rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.nav-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.brand-icon {
|
||||
font-size: 1.3rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.brand-text {
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
padding: 0.75rem 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
padding: 0.6rem 0.75rem;
|
||||
border-radius: 6px;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
background: var(--bg-hover);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.nav-link.active {
|
||||
background: rgba(0, 212, 255, 0.08);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.nav-icon {
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.nav-header {
|
||||
padding: 0.75rem 1rem;
|
||||
}
|
||||
.nav-links {
|
||||
flex-direction: row;
|
||||
padding: 0.5rem;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
.nav-link {
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
padding: 0.5rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.brand-text {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
@page "/games"
|
||||
@inject GameService Service
|
||||
|
||||
<PageTitle>Games</PageTitle>
|
||||
|
||||
<h1>Games</h1>
|
||||
|
||||
<div class="game-cards">
|
||||
@foreach (var game in Service.Games)
|
||||
{
|
||||
<div class="game-card" @onclick="() => ShowDetail(game)">
|
||||
<h3>@game.Title</h3>
|
||||
@if (!string.IsNullOrEmpty(game.Link) || !string.IsNullOrEmpty(game.Git))
|
||||
{
|
||||
<div class="links">
|
||||
@if (!string.IsNullOrEmpty(game.Link))
|
||||
{
|
||||
<a href="@game.Link" target="_blank" @onclick:stopPropagation>
|
||||
<span class="label">link</span> @game.Link
|
||||
</a>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(game.Git))
|
||||
{
|
||||
<a href="@game.Git" target="_blank" @onclick:stopPropagation>
|
||||
<span class="label">git</span> @game.Git
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (_selected is not null)
|
||||
{
|
||||
<div class="dialog-overlay" @onclick="CloseDetail">
|
||||
<div class="dialog" @onclick:stopPropagation>
|
||||
<div class="dialog-header">
|
||||
<h2>@_selected.Title</h2>
|
||||
<button class="dialog-close" @onclick="CloseDetail">×</button>
|
||||
</div>
|
||||
<div class="dialog-body">
|
||||
@((MarkupString)_selected.ContentHtml)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@code {
|
||||
private GameDoc? _selected;
|
||||
|
||||
private void ShowDetail(GameDoc game) => _selected = game;
|
||||
|
||||
private void CloseDetail() => _selected = null;
|
||||
}
|
||||
@@ -9,3 +9,56 @@
|
||||
{
|
||||
<div class="overview-content">@((MarkupString)html)</div>
|
||||
}
|
||||
|
||||
|
||||
|
||||
<div class="game-cards">
|
||||
@foreach (var game in Service.Games.Where(a=>a.IsVisible == true))
|
||||
{
|
||||
|
||||
|
||||
<div class="game-card" @onclick="() => ShowDetail(game)">
|
||||
<h3>@game.Title</h3>
|
||||
@if (!string.IsNullOrEmpty(game.Link) || !string.IsNullOrEmpty(game.Git))
|
||||
{
|
||||
<div class="links">
|
||||
@if (!string.IsNullOrEmpty(game.Link))
|
||||
{
|
||||
<a href="@game.Link" target="_blank" @onclick:stopPropagation>
|
||||
<span class="label">link</span> @game.Link
|
||||
</a>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(game.Git))
|
||||
{
|
||||
<a href="@game.Git" target="_blank" @onclick:stopPropagation>
|
||||
<span class="label">git</span> @game.Git
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (_selected is not null)
|
||||
{
|
||||
<div class="dialog-overlay" @onclick="CloseDetail">
|
||||
<div class="dialog" @onclick:stopPropagation>
|
||||
<div class="dialog-header">
|
||||
<h2>@_selected.Title</h2>
|
||||
<button class="dialog-close" @onclick="CloseDetail">×</button>
|
||||
</div>
|
||||
<div class="dialog-body">
|
||||
@((MarkupString)_selected.ContentHtml)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
@code {
|
||||
private GameDoc? _selected;
|
||||
|
||||
private void ShowDetail(GameDoc game) => _selected = game;
|
||||
|
||||
private void CloseDetail() => _selected = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user