1b3a8b493e
deploy / deploy (push) Failing after 1m21s
Full rewrite of the portfolio site from Next.js 14 to .NET 10: - ASP.NET Core 10 Razor Pages, no Node.js dependency - EF Core 10 + SQLite (same schema as before — data survives upgrade) - Cookie authentication (same single-password model) - Resend contact form via HttpClient - Bilingual FA/EN via locale cookie + BasePageModel - All UI ported to Razor Pages with Tailwind CDN + custom CSS - Vanilla JS: particles, typewriter, cursor, animations, portfolio modal - Dockerfile: SDK 10.0-alpine → aspnet 10.0-alpine (no npm/Node needed) - CI/CD: dropped NPM_TOKEN, ADMIN_SESSION_SECRET — pure dotnet publish Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
@page "/Admin"
|
|
@model SoroushAsadi.Pages.Admin.AdminIndexModel
|
|
@{
|
|
Layout = "_AdminLayout";
|
|
ViewData["Title"] = "Dashboard";
|
|
}
|
|
|
|
<h1 class="font-display text-2xl font-bold text-white mb-8">Dashboard</h1>
|
|
|
|
<div class="grid grid-cols-1 gap-5 sm:grid-cols-3">
|
|
<a href="/Admin/Sections" class="glass block p-6 hover:border-electric/40 transition-colors">
|
|
<div class="text-3xl font-bold text-electric mb-1">@Model.SectionCount</div>
|
|
<div class="text-sm text-slate-400">Section overrides</div>
|
|
<div class="mt-2 text-xs text-slate-500">Edit bilingual section content</div>
|
|
</a>
|
|
<a href="/Admin/Posts" class="glass block p-6 hover:border-violet/40 transition-colors">
|
|
<div class="text-3xl font-bold text-violet mb-1">6</div>
|
|
<div class="text-sm text-slate-400">Blog posts</div>
|
|
<div class="mt-2 text-xs text-slate-500">Edit article bodies</div>
|
|
</a>
|
|
<div class="glass p-6">
|
|
<div class="text-3xl font-bold text-emerald mb-1">↑</div>
|
|
<div class="text-sm text-slate-400">Site status</div>
|
|
<div class="mt-2 text-xs text-slate-500"><a href="/" class="text-electric hover:underline">View live site →</a></div>
|
|
</div>
|
|
</div>
|