97bd2a12df
deploy / deploy (push) Successful in 1m20s
Full design refactor of the public surface (home, blog, layout) using the taste-skill anti-slop rules. Admin CMS is untouched. - Single locked light theme: #fafafa bg, #18181b text, one accent #2563eb - Syne headings + system body + Vazirmatn (fa); hairline rules, no glows/cards - Remove AI tells: 5-colour palette, gradient text, neon glows, custom cursor, particle canvas, typewriter, scroll cue, per-section eyebrows, progress bars - Replace window scroll listener with an IntersectionObserver sentinel - 8 distinct section layouts; portfolio uses typographic covers (no broken imgs) - Zero em-dashes in visible copy; fix relative-path-safe asset refs - Add missing wwwroot/logo-mark.svg (was 404) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
@page "/blog/{slug}"
|
|
@model SoroushAsadi.Pages.Blog.PostModel
|
|
@{
|
|
ViewData["Title"] = Model.Title + " - Soroush Asadi";
|
|
var fa = Model.IsFa;
|
|
}
|
|
|
|
<div class="px-5 pt-28 pb-24 sm:px-8 sm:pt-32">
|
|
<div class="mx-auto max-w-2xl">
|
|
<a href="/blog" class="mb-10 inline-flex items-center gap-2 text-sm text-zinc-500 transition-colors hover:text-zinc-900 @(fa ? "flex-row-reverse" : "")">
|
|
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.8" class="@(fa ? "" : "rotate-180")"><path d="M5 12H19"/><path d="M13 6L19 12L13 18"/></svg>
|
|
@(fa ? "بازگشت به بلاگ" : "Back to blog")
|
|
</a>
|
|
|
|
@if (Model.PostNotFound)
|
|
{
|
|
<p class="text-zinc-600">@(fa ? "مقاله پیدا نشد." : "Post not found.")</p>
|
|
}
|
|
else
|
|
{
|
|
<header class="mb-8">
|
|
<span class="kicker">@Model.Category</span>
|
|
<h1 class="mt-3 @(fa ? "font-fa" : "")" style="font-size:clamp(1.8rem,4vw,2.5rem)">@Model.Title</h1>
|
|
<p class="mt-3 text-sm text-zinc-400">@Model.ReadTime @(fa ? "دقیقه مطالعه" : "min read")</p>
|
|
</header>
|
|
|
|
<article class="prose-custom">
|
|
@Html.Raw(Model.BodyHtml)
|
|
</article>
|
|
}
|
|
</div>
|
|
</div>
|