Initial TafsirQuran app with Gitea CI/CD deploy to k3s.
build-and-deploy / deploy (push) Successful in 10m50s

Blazor UI + ASP.NET API + Postgres; push to main builds images and rolls out namespace tafsirquran.
This commit is contained in:
2026-10-09 21:50:37 +03:30
commit 7f06856f45
124 changed files with 4729 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

+228
View File
@@ -0,0 +1,228 @@
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&family=Amiri:wght@400;700&display=swap');
:root {
--bg: #f3efe6;
--bg-accent: #e7efe8;
--ink: #1c2b24;
--muted: #5d6b63;
--brand: #1f6b4a;
--brand-deep: #134632;
--surface: rgba(255, 255, 255, 0.72);
--line: rgba(28, 43, 36, 0.12);
--danger: #9b3b3b;
--radius: 18px;
--shadow: 0 18px 40px rgba(28, 43, 36, 0.08);
--sidebar-width: 280px;
--font: "Vazirmatn", sans-serif;
--font-ar: "Amiri", serif;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
font-family: var(--font);
color: var(--ink);
background:
radial-gradient(1200px 600px at 100% -10%, #dce9df 0%, transparent 55%),
radial-gradient(900px 500px at -10% 100%, #efe4d2 0%, transparent 50%),
var(--bg);
min-height: 100%;
direction: rtl;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.app-shell { min-height: 100vh; }
.topbar {
position: sticky; top: 0; z-index: 20;
display: flex; align-items: center; gap: 0.75rem;
padding: 0.85rem 1rem;
backdrop-filter: blur(14px);
background: rgba(243, 239, 230, 0.82);
border-bottom: 1px solid var(--line);
}
.brand {
font-weight: 700;
font-size: 1.15rem;
letter-spacing: -0.02em;
}
.icon-btn {
width: 42px; height: 42px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--surface);
display: grid; place-items: center;
cursor: pointer;
}
.burger, .burger::before, .burger::after {
display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px;
content: ""; position: relative;
}
.burger::before { top: -5px; position: absolute; }
.burger::after { top: 5px; position: absolute; }
.sidebar {
position: fixed; inset: 0 auto 0 0; /* LTR physical: for RTL put on right */
right: 0; left: auto;
width: min(var(--sidebar-width), 86vw);
background: #163528;
color: #f4f7f5;
transform: translateX(105%);
transition: transform .28s ease;
z-index: 30;
display: flex; flex-direction: column;
padding: 1.25rem 0.75rem;
box-shadow: var(--shadow);
}
.app-shell.sidebar-open .sidebar { transform: translateX(0); }
.backdrop {
position: fixed; inset: 0; background: rgba(10, 18, 14, 0.35);
opacity: 0; pointer-events: none; transition: opacity .28s ease; z-index: 25;
}
.app-shell.sidebar-open .backdrop { opacity: 1; pointer-events: auto; }
.side-nav { display: flex; flex-direction: column; height: 100%; gap: 1rem; }
.side-section { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.side-footer { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 0.75rem; }
.side-item {
display: flex; align-items: center; justify-content: space-between;
padding: 0.85rem 0.9rem;
border-radius: 12px;
color: inherit;
border: 0;
background: transparent;
width: 100%;
text-align: right;
cursor: pointer;
}
.side-item:hover, .side-item.active { background: rgba(255,255,255,0.08); }
.side-item.nested { padding-right: 1.6rem; font-size: 0.95rem; color: #d7e6dd; }
.side-item.danger { color: #ffc9c9; }
.cascade { display: flex; flex-direction: column; gap: 0.15rem; }
.chevron { transition: transform .2s ease; opacity: .8; }
.chevron.open { transform: rotate(180deg); }
.user-chip { padding: 0.5rem 0.9rem; color: #c7d8ce; font-size: 0.9rem; }
.content { padding: 1.25rem 1rem 2.5rem; max-width: 980px; margin: 0 auto; }
.home { padding-top: 1.5rem; }
.tile-grid { display: grid; gap: 1rem; }
.tafsir-tile {
display: flex; flex-direction: column; justify-content: flex-end;
min-height: 220px;
padding: 1.5rem;
border-radius: 28px;
background:
linear-gradient(160deg, rgba(31,107,74,0.92), rgba(19,70,50,0.95)),
radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%);
color: #f7faf8;
box-shadow: var(--shadow);
transition: transform .2s ease, box-shadow .2s ease;
}
.tafsir-tile:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(19,70,50,0.22); }
.tile-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; }
.tile-author { margin-top: 0.35rem; font-size: 0.95rem; opacity: 0.85; }
.page-header h1, .list-page h1, .prose-page h1, .auth-page h1 {
margin: 0 0 0.35rem; font-size: 1.6rem;
}
.muted { color: var(--muted); }
.error { color: var(--danger); }
.episode-layout {
display: grid;
gap: 1rem;
}
@media (min-width: 860px) {
.episode-layout { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.episode-list {
display: flex; flex-direction: column; gap: 0.45rem;
max-height: 60vh; overflow: auto; padding-left: 0.25rem;
}
.episode-row {
border: 1px solid var(--line);
background: var(--surface);
border-radius: 14px;
padding: 0.85rem 1rem;
text-align: right;
cursor: pointer;
display: flex; flex-direction: column; gap: 0.2rem;
}
.episode-row.active, .episode-row:hover {
border-color: rgba(31,107,74,0.45);
background: #fff;
}
.ep-title { font-weight: 600; }
.ep-meta { color: var(--muted); font-size: 0.85rem; }
.player-panel {
border: 1px solid var(--line);
background: var(--surface);
border-radius: 22px;
padding: 1.1rem;
box-shadow: var(--shadow);
}
.ayah-block { margin-bottom: 1rem; }
.ayah-ar {
font-family: var(--font-ar);
font-size: clamp(1.4rem, 3vw, 1.9rem);
line-height: 2;
margin: 0 0 0.5rem;
}
.ayah-fa { margin: 0; color: var(--muted); }
.audio-player { display: flex; flex-direction: column; gap: 0.85rem; }
.player-title { font-weight: 600; }
.player-actions { display: flex; gap: 0.5rem; }
.chip {
border: 1px solid var(--line);
background: #fff;
border-radius: 999px;
padding: 0.35rem 0.85rem;
cursor: pointer;
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.player-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center; }
.play-btn {
width: 48px; height: 48px; border-radius: 50%;
border: 0; background: var(--brand); color: #fff; cursor: pointer;
}
.seek { width: 100%; accent-color: var(--brand); }
.time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.simple-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.simple-list li {
padding: 0.9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
display: flex; flex-direction: column; gap: 0.2rem;
}
.prose-page p, .auth-page p { line-height: 1.9; color: var(--muted); }
.auth-form { display: grid; gap: 0.85rem; max-width: 420px; margin-top: 1rem; }
.auth-form label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.auth-form input {
border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; background: #fff;
}
.primary-btn {
border: 0; border-radius: 12px; padding: 0.85rem 1rem;
background: var(--brand); color: #fff; cursor: pointer;
}
.primary-btn:disabled { opacity: 0.6; cursor: default; }
.link-btn {
margin-top: 0.85rem; border: 0; background: transparent; color: var(--brand-deep); cursor: pointer;
}
+63
View File
@@ -0,0 +1,63 @@
window.tqStorage = {
get: (key) => localStorage.getItem(key),
set: (key, value) => localStorage.setItem(key, value),
remove: (key) => localStorage.removeItem(key)
};
window.tqAudio = {
_handlers: new WeakMap(),
bind: (audio, dotnet) => {
if (!audio) return;
const onTime = () => dotnet.invokeMethodAsync('OnTime', audio.currentTime || 0, audio.duration || 0, !audio.paused);
const onPause = () => dotnet.invokeMethodAsync('OnPaused', audio.currentTime || 0);
const onEnded = () => dotnet.invokeMethodAsync('OnPaused', audio.currentTime || 0);
audio.addEventListener('timeupdate', onTime);
audio.addEventListener('pause', onPause);
audio.addEventListener('ended', onEnded);
audio.addEventListener('loadedmetadata', onTime);
window.tqAudio._handlers.set(audio, { onTime, onPause, onEnded, dotnet });
window.addEventListener('pagehide', () => {
if (!audio.paused) {
dotnet.invokeMethodAsync('OnPaused', audio.currentTime || 0);
}
});
},
unbind: (audio) => {
const h = window.tqAudio._handlers.get(audio);
if (!h || !audio) return;
audio.removeEventListener('timeupdate', h.onTime);
audio.removeEventListener('pause', h.onPause);
audio.removeEventListener('ended', h.onEnded);
window.tqAudio._handlers.delete(audio);
},
load: async (audio, src, position) => {
if (!audio) return;
audio.src = src;
audio.load();
const seek = () => {
if (position && !Number.isNaN(position)) {
try { audio.currentTime = position; } catch (_) { /* ignore */ }
}
};
audio.addEventListener('loadedmetadata', seek, { once: true });
},
toggle: async (audio) => {
if (!audio) return false;
if (audio.paused) {
await audio.play();
return true;
}
audio.pause();
return false;
},
seek: (audio, value) => {
if (!audio) return;
audio.currentTime = Number(value) || 0;
}
};