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>
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
/* ─── Design tokens ──────────────────────────────────────────────────── */
|
||||
:root {
|
||||
--bg: #020510;
|
||||
--electric: #38bdf8;
|
||||
--violet: #818cf8;
|
||||
--magenta: #e879f9;
|
||||
--emerald: #34d399;
|
||||
--cyan: #22d3ee;
|
||||
--radius: 14px;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
html, body {
|
||||
background: var(--bg);
|
||||
font-feature-settings: 'ss01','cv11';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
[dir='rtl'] body { font-family: 'Vazirmatn','VazirmatnLat','Syne',system-ui,sans-serif; }
|
||||
[dir='ltr'] body { font-family: 'Syne','Vazirmatn','VazirmatnLat',system-ui,sans-serif; }
|
||||
|
||||
::selection { background: rgba(56,189,248,.35); color: #f8fafc; }
|
||||
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-track { background: #050a1a; }
|
||||
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#38bdf8,#818cf8); border-radius:999px; border:2px solid #050a1a; }
|
||||
|
||||
/* ─── Component classes (used across Razor templates) ────────────────── */
|
||||
|
||||
.glass {
|
||||
background: linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.015) 100%);
|
||||
border: 1px solid rgba(56,189,248,.14);
|
||||
backdrop-filter: blur(14px);
|
||||
box-shadow: inset 0 1px 0 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.6);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.chip {
|
||||
display: inline-flex; align-items: center; gap: .5rem;
|
||||
padding: .35rem .75rem; border-radius: 999px;
|
||||
border: 1px solid rgba(52,211,153,.25); background: rgba(52,211,153,.06);
|
||||
color: #a7f3d0;
|
||||
font-family: 'SpaceMono',ui-monospace,monospace;
|
||||
font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
|
||||
}
|
||||
|
||||
.label-mono {
|
||||
font-family: 'SpaceMono',ui-monospace,monospace;
|
||||
font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8;
|
||||
}
|
||||
|
||||
.gradient-text {
|
||||
background: linear-gradient(135deg,#38bdf8 0%,#818cf8 45%,#e879f9 100%);
|
||||
-webkit-background-clip: text; background-clip: text; color: transparent;
|
||||
background-size: 200% 200%; animation: gradient-pan 8s ease-in-out infinite;
|
||||
}
|
||||
@keyframes gradient-pan { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
|
||||
|
||||
.btn-primary {
|
||||
display: inline-flex; align-items: center; gap: .6rem;
|
||||
padding: .85rem 1.4rem; border-radius: 999px;
|
||||
font-weight: 600; color: #020510;
|
||||
background: linear-gradient(135deg,#38bdf8 0%,#818cf8 60%,#e879f9 100%);
|
||||
background-size: 200% 200%;
|
||||
transition: transform .25s ease, box-shadow .25s ease, background-position .6s ease;
|
||||
box-shadow: 0 12px 40px -12px rgba(56,189,248,.55);
|
||||
}
|
||||
.btn-primary:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 18px 50px -10px rgba(232,121,249,.55); }
|
||||
|
||||
.btn-ghost {
|
||||
display: inline-flex; align-items: center; gap: .6rem;
|
||||
padding: .8rem 1.35rem; border-radius: 999px;
|
||||
font-weight: 500; color: #e2e8f0;
|
||||
border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.02);
|
||||
transition: border-color .25s ease, background .25s ease, transform .25s ease;
|
||||
}
|
||||
.btn-ghost:hover { border-color: rgba(56,189,248,.6); background: rgba(56,189,248,.06); transform: translateY(-1px); }
|
||||
|
||||
.nav-link {
|
||||
font-size: .875rem; color: #94a3b8;
|
||||
transition: color .2s ease; text-decoration: none;
|
||||
}
|
||||
.nav-link:hover { color: #e2e8f0; }
|
||||
|
||||
#navbar.scrolled { background: rgba(2,5,16,.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.05); }
|
||||
|
||||
/* ─── Section header ─────────────────────────────────────────────── */
|
||||
.section-header { text-align: center; margin-bottom: 3.5rem; }
|
||||
.section-header .eyebrow { margin-bottom: 1rem; }
|
||||
.section-header h2 { font-family:'Syne',sans-serif; font-size:clamp(1.8rem,3.5vw,2.75rem); font-weight:800; color:#fff; margin-bottom:1rem; }
|
||||
[dir='rtl'] .section-header h2 { font-family:'Vazirmatn',sans-serif; }
|
||||
.section-header p { max-width:42rem; margin:0 auto; color:#94a3b8; font-size:1.0625rem; line-height:1.7; }
|
||||
|
||||
/* ─── Service cards ──────────────────────────────────────────────── */
|
||||
.service-card { transition: border-color .3s, box-shadow .3s, transform .3s; }
|
||||
.service-card:hover { transform: translateY(-2px); }
|
||||
|
||||
/* ─── Expertise bars ─────────────────────────────────────────────── */
|
||||
.bar-track { height: .375rem; background: rgba(255,255,255,.07); border-radius:999px; overflow:hidden; }
|
||||
.bar-fill { height: 100%; border-radius:999px; transform-origin:left; }
|
||||
[dir='rtl'] .bar-fill { transform-origin:right; }
|
||||
|
||||
/* ─── Scroll-reveal ──────────────────────────────────────────────── */
|
||||
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
|
||||
.reveal.visible { opacity: 1; transform: none; }
|
||||
|
||||
/* ─── Portfolio modal ────────────────────────────────────────────── */
|
||||
#portfolio-modal { transition: opacity .25s ease; }
|
||||
#portfolio-modal.hidden { pointer-events: none; }
|
||||
|
||||
/* ─── Admin nav ──────────────────────────────────────────────────── */
|
||||
.admin-nav-link {
|
||||
display: block; padding: .5rem .75rem; border-radius: .5rem;
|
||||
color: #94a3b8; font-size: .875rem; text-decoration: none;
|
||||
transition: background .15s, color .15s;
|
||||
}
|
||||
.admin-nav-link:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
|
||||
.admin-nav-link.active { background: rgba(56,189,248,.1); color: #38bdf8; }
|
||||
|
||||
/* ─── Reduced motion ─────────────────────────────────────────────── */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,*::before,*::after {
|
||||
animation-duration: .001ms !important; animation-iteration-count: 1 !important;
|
||||
transition-duration: .001ms !important; scroll-behavior: auto !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user