89d42184a1
Pipeline (.gitea/workflows/ci-cd.yml), all images/packages via Nexus mirror: - CI api-build: dotnet restore/build server/Hokm.slnx + run Hokm.Sim (rules). - CI web-check: npm install + tsc --noEmit + next build (static export). - deploy (self-hosted): pre-deploy pg_dump backup, rollback image tag, build, bring up db -> server -> web with stop+rm+up --no-deps (no force-recreate, no bare compose down), health-wait each, prune. Local stack (docker-compose.yml), ports in 1500-1600 so it coexists with manual dev on 3000/5005: web :1500 (nginx static) -> server :1505 (.NET) -> db :1510 (postgres, named volume + backups). Dockerfiles: server (.NET, NuGet via nuget.docker.config, binds 0.0.0.0, busybox wget healthcheck) + web (Next static export -> nginx, NEXT_PUBLIC_* baked as build args). nginx.conf SPA fallback. Config: server CORS is now config-driven (Cors__Origins) so the deployed web origin is allowed without code edits. deploy/ENV_FILE.example documents the Gitea ENV_FILE secret; DEPLOY.md covers setup/run/LAN-IP/rollback/migrations. Fonts: switch Vazirmatn + Plus Jakarta Sans from next/font/google (build-time Google fetch -> fails on the Iran CI runner) to self-hosted @fontsource-variable packages. Build is offline and ~3x faster; 7 woff2 emitted into out/. Verified locally: dotnet build slnx + Hokm.Sim (300 matches, exit 0); tsc clean; next build clean with self-hosted fonts. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
163 lines
4.4 KiB
CSS
163 lines
4.4 KiB
CSS
@import "tailwindcss";
|
|
|
|
/*
|
|
FlatRender Hokm — "Persian Luxury" theme.
|
|
Deep navy/teal table, gold filigree accents, geometric motifs.
|
|
*/
|
|
|
|
:root {
|
|
--navy-950: #060c1f;
|
|
--navy-900: #0a142e;
|
|
--navy-800: #0e1c3f;
|
|
--navy-700: #14274f;
|
|
--teal-700: #0d6b6b;
|
|
--teal-500: #14b8a6;
|
|
--teal-400: #2dd4bf;
|
|
--gold-600: #b8860b;
|
|
--gold-500: #d4af37;
|
|
--gold-400: #e6c659;
|
|
--gold-300: #f1da8a;
|
|
--cream: #f5ecd6;
|
|
|
|
--background: var(--navy-950);
|
|
--foreground: #eef2f8;
|
|
}
|
|
|
|
@theme inline {
|
|
--color-navy-950: var(--navy-950);
|
|
--color-navy-900: var(--navy-900);
|
|
--color-navy-800: var(--navy-800);
|
|
--color-navy-700: var(--navy-700);
|
|
--color-teal-700: var(--teal-700);
|
|
--color-teal-500: var(--teal-500);
|
|
--color-teal-400: var(--teal-400);
|
|
--color-gold-600: var(--gold-600);
|
|
--color-gold-500: var(--gold-500);
|
|
--color-gold-400: var(--gold-400);
|
|
--color-gold-300: var(--gold-300);
|
|
--color-cream: var(--cream);
|
|
--font-sans: var(--font-vazir), var(--font-jakarta), system-ui, sans-serif;
|
|
}
|
|
|
|
:root {
|
|
/* Self-hosted @fontsource families (see app/layout.tsx imports). */
|
|
--font-vazir: "Vazirmatn Variable", system-ui, sans-serif;
|
|
--font-jakarta: "Plus Jakarta Sans Variable", system-ui, sans-serif;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
body {
|
|
background:
|
|
radial-gradient(1200px 800px at 50% -10%, rgba(20, 184, 166, 0.12), transparent 60%),
|
|
radial-gradient(900px 700px at 50% 120%, rgba(212, 175, 55, 0.08), transparent 55%),
|
|
var(--navy-950);
|
|
color: var(--foreground);
|
|
font-family: var(--font-sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Persian geometric motif — subtle tiled background */
|
|
.persian-pattern {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Cpath d='M40 16 L64 40 L40 64 L16 40 Z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
|
|
background-size: 80px 80px;
|
|
}
|
|
|
|
/* Felt table surface */
|
|
.felt {
|
|
background:
|
|
radial-gradient(ellipse at 50% 45%, rgba(45, 212, 191, 0.18), transparent 62%),
|
|
radial-gradient(ellipse at 50% 50%, var(--teal-700) 0%, #0a3a3a 45%, #06201f 100%);
|
|
box-shadow:
|
|
inset 0 0 120px rgba(0, 0, 0, 0.55),
|
|
inset 0 0 0 2px rgba(212, 175, 55, 0.25),
|
|
0 30px 80px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
.gold-text {
|
|
background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 55%, var(--gold-600));
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
|
|
.gold-border {
|
|
border: 1px solid rgba(212, 175, 55, 0.45);
|
|
}
|
|
|
|
.glass {
|
|
background: rgba(10, 20, 46, 0.72);
|
|
backdrop-filter: blur(14px);
|
|
border: 1px solid rgba(212, 175, 55, 0.18);
|
|
}
|
|
|
|
.btn-gold {
|
|
background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
|
|
color: #2a1f04;
|
|
font-weight: 700;
|
|
box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
|
|
}
|
|
.btn-gold:hover {
|
|
transform: translateY(-1px);
|
|
filter: brightness(1.05);
|
|
box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
|
|
}
|
|
.btn-gold:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Card face */
|
|
.card-face {
|
|
background: linear-gradient(160deg, #fffdf7, #f3ead2);
|
|
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
|
|
}
|
|
.card-back {
|
|
background:
|
|
repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.22) 0 6px, transparent 6px 12px),
|
|
linear-gradient(160deg, var(--navy-700), var(--navy-900));
|
|
border: 1px solid rgba(212, 175, 55, 0.45);
|
|
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(212, 175, 55, 0.25);
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(212, 175, 55, 0.3);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
[dir="rtl"] {
|
|
font-family: var(--font-vazir), system-ui, sans-serif;
|
|
}
|
|
|
|
@keyframes float-up {
|
|
from {
|
|
transform: translateY(110vh);
|
|
}
|
|
to {
|
|
transform: translateY(-20vh);
|
|
}
|
|
}
|
|
.float-suit {
|
|
animation-name: float-up;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.float-suit {
|
|
animation: none;
|
|
display: none;
|
|
}
|
|
}
|