Elevate public site UX: premium hero, motion, scrollspy, shared footer
deploy / deploy (push) Successful in 6m30s
deploy / deploy (push) Successful in 6m30s
Redesign-preserve pass on the light editorial theme (dials 7/5/3): - Hero: live availability status, accent value-prop, role line, social row, staggered entrance - Motion (all motivated, reduced-motion safe): CSS scroll-driven reading progress bar, scrollspy nav with animated underline, CTA/blog arrow nudges, service hover accent rule, portfolio cover scale, card lift - Shared multi-column footer across home + blog (brand, nav, contact, social) - Fix anchor scroll offset under the fixed navbar (scroll-margin-top) - Wire real social: LinkedIn, Instagram, email (code.soroush@gmail.com) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+28
-22
@@ -8,22 +8,33 @@
|
|||||||
<!-- ─── HERO (editorial, centered) ───────────────────────────────────── -->
|
<!-- ─── HERO (editorial, centered) ───────────────────────────────────── -->
|
||||||
<section id="top" class="px-5 pt-28 pb-24 sm:px-8 sm:pt-32">
|
<section id="top" class="px-5 pt-28 pb-24 sm:px-8 sm:pt-32">
|
||||||
<div class="mx-auto max-w-3xl text-center">
|
<div class="mx-auto max-w-3xl text-center">
|
||||||
<p class="kicker reveal">@(fa ? "مهندس هوش مصنوعی، مشاور، معمار راهکار" : "AI Engineer, Consultant, Solution Architect")</p>
|
<div class="reveal mb-7 flex justify-center">
|
||||||
|
<span class="status"><span class="dot"></span>@(fa ? "پذیرای پروژههای جدید" : "Available for new projects")</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h1 class="reveal mt-6 @(fa ? "font-fa" : "")" style="font-size:clamp(2.6rem,7vw,4.75rem);transition-delay:.05s">
|
<h1 class="reveal @(fa ? "font-fa" : "")" style="font-size:clamp(2.6rem,7vw,4.75rem);transition-delay:.05s">
|
||||||
@(fa ? "سروش اسعدی" : "Soroush Asadi")
|
@(fa ? "سروش اسعدی" : "Soroush Asadi")
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="lede reveal mx-auto mt-6 text-balance" style="font-size:clamp(1.05rem,2vw,1.3rem);transition-delay:.1s">
|
<p class="reveal mx-auto mt-6 max-w-2xl text-balance leading-snug text-zinc-800" style="font-size:clamp(1.2rem,2.4vw,1.6rem);transition-delay:.1s">
|
||||||
@(fa
|
@(fa ? "طراحی و استقرار " : "I build ")<span class="accent-text font-semibold">@(fa ? "هوش مصنوعی تولیدی" : "production-grade AI")</span>@(fa ? " برای سازمانها، از راهبرد تا استقرار در تولید." : " for the enterprise, from strategy to live deployment.")
|
||||||
? "طراحی و استقرار سامانههای هوش مصنوعی در مقیاس سازمانی؛ از نخستین جلسهی راهبرد تا استقرار در تولید."
|
|
||||||
: "I design and ship production-grade AI systems for the enterprise, from the first strategy session to live deployment.")
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="reveal mt-9 flex flex-wrap items-center justify-center gap-3" style="transition-delay:.15s">
|
<p class="lede reveal mx-auto mt-4 text-[.98rem]" style="transition-delay:.15s">@(fa ? "مهندس هوش مصنوعی، مشاور و معمار راهکار." : "AI Engineer, Consultant, and Solution Architect.")</p>
|
||||||
<a href="#contact" class="btn">@(fa ? "رزرو جلسه" : "Book a call")</a>
|
|
||||||
|
<div class="reveal mt-9 flex flex-wrap items-center justify-center gap-3" style="transition-delay:.2s">
|
||||||
|
<a href="#contact" class="btn">
|
||||||
|
@(fa ? "رزرو جلسه" : "Book a call")
|
||||||
|
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" class="@(fa ? "rotate-180" : "")" aria-hidden="true"><path d="M5 12h14"/><path d="m13 6 6 6-6 6"/></svg>
|
||||||
|
</a>
|
||||||
<a href="#portfolio" class="btn-ghost">@(fa ? "نمونهکارها" : "View work")</a>
|
<a href="#portfolio" class="btn-ghost">@(fa ? "نمونهکارها" : "View work")</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="reveal mt-8 flex items-center justify-center gap-2.5" style="transition-delay:.25s">
|
||||||
|
<a class="social" href="https://www.linkedin.com/in/soroushdes/" target="_blank" rel="noopener" aria-label="LinkedIn"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM3 9h4v12H3V9Zm6 0h3.8v1.64h.05c.53-1 1.83-2.06 3.76-2.06 4.02 0 4.76 2.65 4.76 6.1V21h-4v-5.4c0-1.29-.02-2.95-1.8-2.95-1.8 0-2.07 1.4-2.07 2.85V21H9V9Z"/></svg></a>
|
||||||
|
<a class="social" href="https://www.instagram.com/soroushasadicom/" target="_blank" rel="noopener" aria-label="Instagram"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="5"/><circle cx="12" cy="12" r="4"/><circle cx="17.2" cy="6.8" r="1.1" fill="currentColor" stroke="none"/></svg></a>
|
||||||
|
<a class="social" href="mailto:code.soroush@gmail.com" aria-label="Email"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></svg></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -53,16 +64,18 @@
|
|||||||
("google-stack","Google Stack Specialist","Vertex AI, GKE, and Gemini deployments with cost optimization and enterprise security patterns.",new[]{"Vertex AI","GKE","Gemini"}),
|
("google-stack","Google Stack Specialist","Vertex AI, GKE, and Gemini deployments with cost optimization and enterprise security patterns.",new[]{"Vertex AI","GKE","Gemini"}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@{ int si = 0; }
|
||||||
@foreach (var (id, title, desc, tags) in services)
|
@foreach (var (id, title, desc, tags) in services)
|
||||||
{
|
{
|
||||||
<article class="reveal border-t border-zinc-200 pt-6">
|
<article class="svc reveal border-t border-zinc-200 pt-6" style="transition-delay:@(si * 60)ms">
|
||||||
<span class="text-zinc-400" aria-hidden="true">@Html.Raw(ServiceIcon(id))</span>
|
<span class="svc-icon text-zinc-400" aria-hidden="true">@Html.Raw(ServiceIcon(id))</span>
|
||||||
<h3 class="mt-5 text-lg font-semibold @(fa ? "font-fa" : "")">@title</h3>
|
<h3 class="mt-5 text-lg font-semibold @(fa ? "font-fa" : "")">@title</h3>
|
||||||
<p class="mt-2.5 text-[.95rem] leading-relaxed text-zinc-600">@desc</p>
|
<p class="mt-2.5 text-[.95rem] leading-relaxed text-zinc-600">@desc</p>
|
||||||
<div class="mt-4 flex flex-wrap gap-1.5">
|
<div class="mt-4 flex flex-wrap gap-1.5">
|
||||||
@foreach (var tag in tags) { <span class="chip">@tag</span> }
|
@foreach (var tag in tags) { <span class="chip">@tag</span> }
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
si++;
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -207,7 +220,7 @@
|
|||||||
{
|
{
|
||||||
var initial = char.ToUpperInvariant(pid[0]);
|
var initial = char.ToUpperInvariant(pid[0]);
|
||||||
<article class="card card-link reveal overflow-hidden">
|
<article class="card card-link reveal overflow-hidden">
|
||||||
<div class="flex aspect-[16/9] items-center justify-center bg-zinc-100" aria-hidden="true">
|
<div class="cover flex aspect-[16/9] items-center justify-center bg-zinc-100" aria-hidden="true">
|
||||||
<span class="font-display text-5xl font-bold text-zinc-300">@initial</span>
|
<span class="font-display text-5xl font-bold text-zinc-300">@initial</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-5">
|
<div class="p-5">
|
||||||
@@ -269,6 +282,10 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 class="text-[1.1rem] font-semibold transition-colors group-hover:text-accent @(fa ? "font-fa" : "")">@btitle</h3>
|
<h3 class="text-[1.1rem] font-semibold transition-colors group-hover:text-accent @(fa ? "font-fa" : "")">@btitle</h3>
|
||||||
<p class="mt-1.5 text-[.9rem] leading-relaxed text-zinc-600">@excerpt</p>
|
<p class="mt-1.5 text-[.9rem] leading-relaxed text-zinc-600">@excerpt</p>
|
||||||
|
<span class="arrow-link mt-3">
|
||||||
|
@(fa ? "خواندن" : "Read")
|
||||||
|
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="@(fa ? "rotate-180" : "")" aria-hidden="true"><path d="M5 12h14"/><path d="m13 6 6 6-6 6"/></svg>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
@@ -348,17 +365,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- ─── FOOTER ───────────────────────────────────────────────────────── -->
|
|
||||||
<footer class="border-t border-zinc-200 px-5 py-10 sm:px-8">
|
|
||||||
<div class="mx-auto flex max-w-6xl flex-col items-center gap-3 text-center sm:flex-row sm:justify-between sm:text-start">
|
|
||||||
<div class="flex items-center gap-2.5">
|
|
||||||
<img src="/logo-mark.svg" alt="" width="22" height="22" />
|
|
||||||
<span class="text-sm text-zinc-600">@(fa ? "مهندسی سامانههای هوش مصنوعی برای سازمانها." : "AI systems engineering for the enterprise.")</span>
|
|
||||||
</div>
|
|
||||||
<p class="text-[.78rem] text-zinc-400">© 2026 Soroush Asadi. @(fa ? "تمام حقوق محفوظ است." : "All rights reserved.")</p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
@functions {
|
@functions {
|
||||||
static string ServiceIcon(string id) => id switch {
|
static string ServiceIcon(string id) => id switch {
|
||||||
"strategy" => """<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M9 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4"/><polyline points="9,9 4,9"/><polyline points="9,12 4,12"/><polyline points="9,15 4,15"/><rect x="9" y="2" width="6" height="6"/><path d="M15 8h4a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-4"/></svg>""",
|
"strategy" => """<svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M9 20H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4"/><polyline points="9,9 4,9"/><polyline points="9,12 4,12"/><polyline points="9,15 4,15"/><rect x="9" y="2" width="6" height="6"/><path d="M15 8h4a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-4"/></svg>""",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
@{
|
@{
|
||||||
var locale = (string)(ViewData["Locale"] ?? "fa");
|
var locale = (string)(ViewData["Locale"] ?? "fa");
|
||||||
|
var fa = locale == "fa";
|
||||||
var isRtl = locale == "fa";
|
var isRtl = locale == "fa";
|
||||||
var dir = isRtl ? "rtl" : "ltr";
|
var dir = isRtl ? "rtl" : "ltr";
|
||||||
var lang = locale == "fa" ? "fa" : "en";
|
var lang = locale == "fa" ? "fa" : "en";
|
||||||
@@ -45,6 +46,9 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="site antialiased">
|
<body class="site antialiased">
|
||||||
|
|
||||||
|
<!-- Reading progress (CSS scroll-driven) -->
|
||||||
|
<div class="scroll-progress" aria-hidden="true"></div>
|
||||||
|
|
||||||
<!-- Sentinel for the navbar border (observed by IntersectionObserver) -->
|
<!-- Sentinel for the navbar border (observed by IntersectionObserver) -->
|
||||||
<div id="nav-sentinel" aria-hidden="true"></div>
|
<div id="nav-sentinel" aria-hidden="true"></div>
|
||||||
|
|
||||||
@@ -128,6 +132,43 @@
|
|||||||
@RenderBody()
|
@RenderBody()
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<!-- Footer (shared across all public pages) -->
|
||||||
|
<footer class="site-footer mt-8 px-5 py-14 sm:px-8">
|
||||||
|
<div class="mx-auto grid max-w-6xl grid-cols-1 gap-10 sm:grid-cols-2 lg:grid-cols-[1.5fr_1fr_1fr]">
|
||||||
|
<div>
|
||||||
|
<a href="/#top" class="flex items-center gap-2.5" aria-label="@(locale == "fa" ? "خانه" : "Home")">
|
||||||
|
<img src="/logo-mark.svg" alt="" width="26" height="26" class="h-[26px] w-[26px]" />
|
||||||
|
<span class="font-display text-[15px] font-bold text-zinc-900 @(isRtl ? "font-fa" : "")">@(locale == "fa" ? "سروش اسعدی" : "Soroush Asadi")</span>
|
||||||
|
</a>
|
||||||
|
<p class="mt-4 max-w-xs text-sm leading-relaxed text-zinc-600">@(fa ? "مهندسی سامانههای هوش مصنوعی برای سازمانها؛ از راهبرد تا استقرار در تولید." : "AI systems engineering for the enterprise, from strategy to live deployment.")</p>
|
||||||
|
<div class="mt-5 flex gap-2.5">
|
||||||
|
<a class="social" href="https://www.linkedin.com/in/soroushdes/" target="_blank" rel="noopener" aria-label="LinkedIn"><svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM3 9h4v12H3V9Zm6 0h3.8v1.64h.05c.53-1 1.83-2.06 3.76-2.06 4.02 0 4.76 2.65 4.76 6.1V21h-4v-5.4c0-1.29-.02-2.95-1.8-2.95-1.8 0-2.07 1.4-2.07 2.85V21H9V9Z"/></svg></a>
|
||||||
|
<a class="social" href="https://www.instagram.com/soroushasadicom/" target="_blank" rel="noopener" aria-label="Instagram"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="5"/><circle cx="12" cy="12" r="4"/><circle cx="17.2" cy="6.8" r="1.1" fill="currentColor" stroke="none"/></svg></a>
|
||||||
|
<a class="social" href="mailto:code.soroush@gmail.com" aria-label="Email"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></svg></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav aria-label="Footer" class="flex flex-col gap-2.5">
|
||||||
|
<span class="kicker mb-1">@(fa ? "پیمایش" : "Navigate")</span>
|
||||||
|
<a href="/#services" class="foot-link">@(fa ? "خدمات" : "Services")</a>
|
||||||
|
<a href="/#stack" class="foot-link">@(fa ? "استک" : "Stack")</a>
|
||||||
|
<a href="/#portfolio" class="foot-link">@(fa ? "نمونهکارها" : "Work")</a>
|
||||||
|
<a href="/blog" class="foot-link">@(fa ? "بلاگ" : "Blog")</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="flex flex-col gap-2.5">
|
||||||
|
<span class="kicker mb-1">@(fa ? "تماس" : "Get in touch")</span>
|
||||||
|
<a href="/#contact" class="foot-link">@(fa ? "رزرو جلسه" : "Book a call")</a>
|
||||||
|
<a href="mailto:code.soroush@gmail.com" class="foot-link">code.soroush@gmail.com</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mx-auto mt-12 flex max-w-6xl flex-col items-center gap-2 border-t border-zinc-200 pt-6 text-center sm:flex-row sm:justify-between sm:text-start">
|
||||||
|
<p class="text-[.78rem] text-zinc-400">© 2026 Soroush Asadi. @(fa ? "تمام حقوق محفوظ است." : "All rights reserved.")</p>
|
||||||
|
<p class="text-[.78rem] text-zinc-400">@(fa ? "ساختهشده با دقت در تهران." : "Built with care in Tehran.")</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
<script src="/js/app.js" defer></script>
|
<script src="/js/app.js" defer></script>
|
||||||
@await RenderSectionAsync("Scripts", required: false)
|
@await RenderSectionAsync("Scripts", required: false)
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+89
-20
@@ -1,8 +1,8 @@
|
|||||||
/* ════════════════════════════════════════════════════════════════════════
|
/* ════════════════════════════════════════════════════════════════════════
|
||||||
Minimal editorial theme - light, single accent.
|
Minimal editorial theme, premium pass - light, single accent.
|
||||||
Public site styles are scoped under `.site` so the dark admin (which shares
|
Public styles scoped under `.site`; the dark admin (which shares this file
|
||||||
this file via _AdminLayout) is left untouched. Admin-only classes (.glass,
|
via _AdminLayout) keeps its own dark classes at the bottom (.glass etc).
|
||||||
.label-mono, .admin-nav-link) keep their dark definitions at the bottom.
|
Dials: VARIANCE 7 / MOTION 5 / DENSITY 3.
|
||||||
════════════════════════════════════════════════════════════════════════ */
|
════════════════════════════════════════════════════════════════════════ */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@@ -16,7 +16,10 @@
|
|||||||
--accent: #2563eb; /* blue-600 - the single accent */
|
--accent: #2563eb; /* blue-600 - the single accent */
|
||||||
--accent-ink: #1d4ed8; /* blue-700 */
|
--accent-ink: #1d4ed8; /* blue-700 */
|
||||||
--accent-weak: #eff4ff;
|
--accent-weak: #eff4ff;
|
||||||
|
--accent-line: #c7d2fe; /* indigo-200, for hover borders */
|
||||||
|
--ok: #16a34a; /* availability indicator only */
|
||||||
--radius: 8px;
|
--radius: 8px;
|
||||||
|
--nav-h: 4.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
@@ -46,33 +49,58 @@ body.site {
|
|||||||
.site h1, .site h2, .site h3, .site h4 {
|
.site h1, .site h2, .site h3, .site h4 {
|
||||||
font-family: 'Syne', system-ui, sans-serif;
|
font-family: 'Syne', system-ui, sans-serif;
|
||||||
font-weight: 700; color: var(--text);
|
font-weight: 700; color: var(--text);
|
||||||
letter-spacing: -0.02em; line-height: 1.12;
|
letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance;
|
||||||
}
|
}
|
||||||
[dir='rtl'] .site h1, [dir='rtl'] .site h2,
|
[dir='rtl'] .site h1, [dir='rtl'] .site h2,
|
||||||
[dir='rtl'] .site h3, [dir='rtl'] .site h4 {
|
[dir='rtl'] .site h3, [dir='rtl'] .site h4 {
|
||||||
font-family: 'Vazirmatn', system-ui, sans-serif; letter-spacing: 0;
|
font-family: 'Vazirmatn', system-ui, sans-serif; letter-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* anchor targets clear the fixed navbar */
|
||||||
|
.site section[id] { scroll-margin-top: var(--nav-h); }
|
||||||
|
|
||||||
|
.accent-text { color: var(--accent); }
|
||||||
|
|
||||||
|
/* thin reading-progress bar (CSS scroll-driven; degrades to nothing) */
|
||||||
|
.scroll-progress {
|
||||||
|
position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
|
||||||
|
background: var(--accent); transform-origin: left center; transform: scaleX(0);
|
||||||
|
animation: sp-grow linear both; animation-timeline: scroll(root);
|
||||||
|
}
|
||||||
|
[dir='rtl'] .scroll-progress { transform-origin: right center; }
|
||||||
|
@keyframes sp-grow { to { transform: scaleX(1); } }
|
||||||
|
|
||||||
/* ─── Navigation ─────────────────────────────────────────────────────── */
|
/* ─── Navigation ─────────────────────────────────────────────────────── */
|
||||||
.nav-link { font-size: .9rem; color: var(--text-2); transition: color .18s ease; }
|
|
||||||
.nav-link:hover { color: var(--text); }
|
|
||||||
#navbar { transition: background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
|
#navbar { transition: background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
|
||||||
#navbar.scrolled { background: rgba(250,250,250,.82); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
|
#navbar.scrolled { background: rgba(250,250,250,.82); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
|
||||||
|
|
||||||
|
.nav-link { position: relative; font-size: .9rem; color: var(--text-2); transition: color .18s ease; }
|
||||||
|
.nav-link:hover { color: var(--text); }
|
||||||
|
.nav-link.active { color: var(--text); }
|
||||||
|
.nav-link::after {
|
||||||
|
content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
|
||||||
|
background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
|
||||||
|
}
|
||||||
|
[dir='rtl'] .nav-link::after { transform-origin: right; }
|
||||||
|
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
|
||||||
|
|
||||||
/* ─── Buttons (one shape: 8px radius, no pills, no glow) ──────────────── */
|
/* ─── Buttons (one shape: 8px radius, no pills, no glow) ──────────────── */
|
||||||
.btn, .btn-primary {
|
.btn, .btn-primary {
|
||||||
display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
|
display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
|
||||||
padding: .7rem 1.15rem; border-radius: var(--radius);
|
padding: .72rem 1.2rem; border-radius: var(--radius);
|
||||||
font-weight: 600; font-size: .92rem;
|
font-weight: 600; font-size: .92rem;
|
||||||
background: var(--accent); color: #fff; border: 1px solid var(--accent);
|
background: var(--accent); color: #fff; border: 1px solid var(--accent);
|
||||||
transition: background .18s ease, transform .12s ease;
|
transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
|
||||||
}
|
}
|
||||||
.btn:hover, .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
|
.btn:hover, .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(37,99,235,.5); }
|
||||||
.btn:active, .btn-primary:active { transform: translateY(1px); }
|
.btn:active, .btn-primary:active { transform: translateY(1px); }
|
||||||
|
.btn svg { transition: transform .2s ease; }
|
||||||
|
.btn:hover svg { transform: translateX(3px); }
|
||||||
|
[dir='rtl'] .btn:hover svg { transform: translateX(-3px); }
|
||||||
|
|
||||||
.btn-ghost {
|
.btn-ghost {
|
||||||
display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
|
display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
|
||||||
padding: .7rem 1.15rem; border-radius: var(--radius);
|
padding: .72rem 1.2rem; border-radius: var(--radius);
|
||||||
font-weight: 500; font-size: .92rem;
|
font-weight: 500; font-size: .92rem;
|
||||||
color: var(--text); background: transparent; border: 1px solid var(--line-strong);
|
color: var(--text); background: transparent; border: 1px solid var(--line-strong);
|
||||||
transition: border-color .18s ease, background .18s ease, transform .12s ease;
|
transition: border-color .18s ease, background .18s ease, transform .12s ease;
|
||||||
@@ -80,18 +108,39 @@ body.site {
|
|||||||
.btn-ghost:hover { border-color: var(--text); background: #fff; }
|
.btn-ghost:hover { border-color: var(--text); background: #fff; }
|
||||||
.btn-ghost:active { transform: translateY(1px); }
|
.btn-ghost:active { transform: translateY(1px); }
|
||||||
|
|
||||||
/* ─── Type helpers ───────────────────────────────────────────────────── */
|
/* ─── Availability status ────────────────────────────────────────────── */
|
||||||
.kicker {
|
.status {
|
||||||
font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
|
display: inline-flex; align-items: center; gap: .5rem;
|
||||||
color: var(--text-3); font-weight: 500;
|
font-size: .8rem; color: var(--text-2);
|
||||||
|
border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: .32rem .7rem;
|
||||||
}
|
}
|
||||||
|
.status .dot { position: relative; width: 7px; height: 7px; border-radius: 999px; background: var(--ok); }
|
||||||
|
.status .dot::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: var(--ok); opacity: .55; animation: ping 1.9s cubic-bezier(0,0,.2,1) infinite; }
|
||||||
|
@keyframes ping { 70%, 100% { transform: scale(2.4); opacity: 0; } }
|
||||||
|
|
||||||
|
/* ─── Social ─────────────────────────────────────────────────────────── */
|
||||||
|
.social {
|
||||||
|
display: inline-flex; align-items: center; justify-content: center;
|
||||||
|
width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius);
|
||||||
|
color: var(--text-2); transition: color .18s ease, border-color .18s ease, transform .18s ease;
|
||||||
|
}
|
||||||
|
.social:hover { color: var(--text); border-color: var(--text); transform: translateY(-2px); }
|
||||||
|
.social svg { width: 18px; height: 18px; }
|
||||||
|
|
||||||
|
/* ─── Type helpers ───────────────────────────────────────────────────── */
|
||||||
|
.kicker { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
|
||||||
[dir='rtl'] .kicker { letter-spacing: .06em; }
|
[dir='rtl'] .kicker { letter-spacing: .06em; }
|
||||||
.lede { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 44rem; }
|
.lede { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 44rem; }
|
||||||
|
|
||||||
.sec-head { margin-bottom: 3rem; max-width: 46rem; }
|
.sec-head { margin-bottom: 3rem; max-width: 46rem; }
|
||||||
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
|
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
|
||||||
.sec-head .lede { margin-top: .9rem; }
|
.sec-head .lede { margin-top: .9rem; }
|
||||||
|
|
||||||
|
.arrow-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 500; font-size: .85rem; }
|
||||||
|
.arrow-link svg { transition: transform .2s ease; }
|
||||||
|
.arrow-link:hover svg, .group:hover .arrow-link svg { transform: translateX(3px); }
|
||||||
|
[dir='rtl'] .arrow-link:hover svg, [dir='rtl'] .group:hover .arrow-link svg { transform: translateX(-3px); }
|
||||||
|
|
||||||
/* ─── Neutral tag chip (one shape) ───────────────────────────────────── */
|
/* ─── Neutral tag chip (one shape) ───────────────────────────────────── */
|
||||||
.chip {
|
.chip {
|
||||||
display: inline-flex; align-items: center;
|
display: inline-flex; align-items: center;
|
||||||
@@ -100,10 +149,24 @@ body.site {
|
|||||||
background: #fff; white-space: nowrap;
|
background: #fff; white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ─── Service blocks (animated accent top-rule on hover) ─────────────── */
|
||||||
|
.svc { position: relative; }
|
||||||
|
.svc::before {
|
||||||
|
content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; height: 2px;
|
||||||
|
background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
|
||||||
|
}
|
||||||
|
[dir='rtl'] .svc::before { transform-origin: right; }
|
||||||
|
.svc:hover::before { transform: scaleX(1); }
|
||||||
|
.svc:hover .svc-icon { color: var(--accent); }
|
||||||
|
.svc-icon { transition: color .2s ease; }
|
||||||
|
|
||||||
/* ─── Surface card (portfolio, contact) ──────────────────────────────── */
|
/* ─── Surface card (portfolio, contact) ──────────────────────────────── */
|
||||||
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
|
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
|
||||||
.card-link { transition: border-color .18s ease, transform .18s ease; }
|
.card-link { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
|
||||||
.card-link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
|
.card-link:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(24,24,27,.35); }
|
||||||
|
.cover { overflow: hidden; }
|
||||||
|
.cover > * { transition: transform .45s cubic-bezier(.22,1,.36,1); }
|
||||||
|
.card-link:hover .cover > * { transform: scale(1.04); }
|
||||||
|
|
||||||
/* ─── Form fields ────────────────────────────────────────────────────── */
|
/* ─── Form fields ────────────────────────────────────────────────────── */
|
||||||
.flabel { display: block; font-size: .85rem; font-weight: 500; color: var(--text-2); margin-bottom: .4rem; }
|
.flabel { display: block; font-size: .85rem; font-weight: 500; color: var(--text-2); margin-bottom: .4rem; }
|
||||||
@@ -115,8 +178,13 @@ body.site {
|
|||||||
.field::placeholder { color: var(--text-3); }
|
.field::placeholder { color: var(--text-3); }
|
||||||
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
|
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
|
||||||
|
|
||||||
/* ─── Scroll reveal (MOTION_INTENSITY 3: subtle, transform+opacity only) ─ */
|
/* ─── Footer ─────────────────────────────────────────────────────────── */
|
||||||
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
|
.site-footer { border-top: 1px solid var(--line); background: #fff; }
|
||||||
|
.foot-link { color: var(--text-2); font-size: .9rem; transition: color .18s ease; }
|
||||||
|
.foot-link:hover { color: var(--text); }
|
||||||
|
|
||||||
|
/* ─── Scroll reveal (MOTION 5: subtle, transform+opacity only) ───────── */
|
||||||
|
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.22,1,.36,1); }
|
||||||
.reveal.visible { opacity: 1; transform: none; }
|
.reveal.visible { opacity: 1; transform: none; }
|
||||||
|
|
||||||
/* ─── Blog prose ─────────────────────────────────────────────────────── */
|
/* ─── Blog prose ─────────────────────────────────────────────────────── */
|
||||||
@@ -162,4 +230,5 @@ body.site {
|
|||||||
transition-duration: .001ms !important; scroll-behavior: auto !important;
|
transition-duration: .001ms !important; scroll-behavior: auto !important;
|
||||||
}
|
}
|
||||||
.reveal { opacity: 1 !important; transform: none !important; }
|
.reveal { opacity: 1 !important; transform: none !important; }
|
||||||
|
.scroll-progress { display: none; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,30 @@
|
|||||||
io.observe(sentinel);
|
io.observe(sentinel);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
/* ─── Scrollspy: highlight the nav link for the section in view ───────── */
|
||||||
|
(function () {
|
||||||
|
const links = Array.from(document.querySelectorAll('#navbar a[href*="#"]'));
|
||||||
|
if (!links.length || !('IntersectionObserver' in window)) return;
|
||||||
|
const map = {};
|
||||||
|
links.forEach((a) => {
|
||||||
|
const id = (a.getAttribute('href') || '').split('#')[1];
|
||||||
|
if (id) (map[id] = map[id] || []).push(a);
|
||||||
|
});
|
||||||
|
const sections = Object.keys(map)
|
||||||
|
.map((id) => document.getElementById(id))
|
||||||
|
.filter(Boolean);
|
||||||
|
if (!sections.length) return;
|
||||||
|
|
||||||
|
const io = new IntersectionObserver((entries) => {
|
||||||
|
entries.forEach((e) => {
|
||||||
|
if (!e.isIntersecting) return;
|
||||||
|
links.forEach((a) => a.classList.remove('active'));
|
||||||
|
(map[e.target.id] || []).forEach((a) => a.classList.add('active'));
|
||||||
|
});
|
||||||
|
}, { rootMargin: '-45% 0px -50% 0px', threshold: 0 });
|
||||||
|
sections.forEach((s) => io.observe(s));
|
||||||
|
})();
|
||||||
|
|
||||||
/* ─── Mobile menu toggle ─────────────────────────────────────────────── */
|
/* ─── Mobile menu toggle ─────────────────────────────────────────────── */
|
||||||
(function () {
|
(function () {
|
||||||
const btn = document.getElementById('menu-btn');
|
const btn = document.getElementById('menu-btn');
|
||||||
|
|||||||
Reference in New Issue
Block a user