GG.deals clone: CodeIgniter 4 + MongoDB game price tracker

- Full gg.deals-style UI: deal feed with filters, game pages with price
  history charts, rankings, vouchers, news, prepaids, subscriptions,
  bundles, franchises, wishlist, API docs
- Real data crawlers:
  * gg:crawl (Steam Store API + GOG Catalog + Epic free games)
  * gg:catalog (252K game slugs from gg.deals sitemaps)
  * gg:ggdeals (per-game prices via FlareSolverr session, JSON-LD parsing)
  * gg:seed / gg:crawl-covers (demo seed + Steam CDN cover art)
- 24/7 self-updating scheduler (scripts/scheduler_loop.php, lockfile-protected)
- Tailwind v4 dark/light theme, Alpine.js, Chart.js
This commit is contained in:
deepseek
2026-08-23 07:06:02 +00:00
commit fff7a4b9b9
146 changed files with 15691 additions and 0 deletions
+288
View File
@@ -0,0 +1,288 @@
@import "tailwindcss";
@source "../../app/Views";
@theme {
--color-page: #13131c;
--color-panel: #1a1a26;
--color-card: #20202d;
--color-elev: #2a2a3c;
--color-line: #2e2e42;
--color-muted: #9b9bb0;
--color-accent: #8be04b;
--color-accent-ink: #12290a;
--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[x-cloak] { display: none !important; }
html { color-scheme: dark; }
::selection { background: rgba(139, 224, 75, 0.35); }
/* ---------- scrollbars ---------- */
.gg-scroll { scrollbar-width: thin; scrollbar-color: #3a3a52 transparent; }
.gg-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
.gg-scroll::-webkit-scrollbar-thumb { background: #3a3a52; border-radius: 8px; }
.gg-scroll::-webkit-scrollbar-track { background: transparent; }
/* ---------- discount badges ---------- */
.cut { color: #dff5c8; }
.cut-lo { background: #3f7d29; }
.cut-mid { background: #4f9d2c; }
.cut-hi { background: #63bd38; }
.cut-badge {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 800;
line-height: 1;
padding: 4px 6px;
border-radius: 6px;
}
/* ---------- score / chips ---------- */
.score-chip {
display: inline-block;
font-size: 10px;
font-weight: 800;
letter-spacing: 0.02em;
color: #d8db9a;
background: #46442a;
border: 1px solid #5d5a33;
padding: 3px 7px;
border-radius: 6px;
}
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-weight: 600;
color: #b9b9c9;
background: #26263a;
border: 1px solid #34344c;
padding: 3px 10px;
border-radius: 999px;
transition: border-color .15s;
}
.chip-green { color: #a9e77c; border-color: #466331; background: #24331c; }
.chip-amber { color: #ecc978; border-color: #6b5525; background: #362c17; }
/* ---------- store badges ---------- */
.store-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 6px;
font-size: 10px;
font-weight: 800;
letter-spacing: 0.03em;
flex-shrink: 0;
overflow: hidden;
}
.store-badge-logo {
width: 100%;
height: 100%;
object-fit: contain;
padding: 3px;
}
.store-badge.lg {
width: 34px;
height: 34px;
border-radius: 8px;
}
.store-badge.lg .store-badge-logo {
padding: 5px;
}
/* ---------- deal ratings ---------- */
.rating {
display: inline-block;
font-size: 11px;
font-weight: 800;
padding: 2.5px 8px;
border-radius: 999px;
}
.rating-best { background: #2c5e14; color: #b7f383; }
.rating-great { background: #38561f; color: #aede7d; }
.rating-good { background: #565120; color: #e4d97e; }
.rating-fair { background: #5d4719; color: #ecc978; }
.rating-high { background: #5e2424; color: #f09c9c; }
.hl-flag {
font-size: 10px;
font-weight: 800;
color: #ffd86e;
background: rgba(255, 216, 110, 0.09);
border: 1px solid rgba(255, 216, 110, 0.35);
padding: 2px 7px;
border-radius: 999px;
}
/* ---------- kind tags ---------- */
.kind-tag {
display: inline-block;
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 2.5px 7px;
border-radius: 5px;
}
.kind-official { color: #a9e77c; background: rgba(139, 224, 75, 0.1); border: 1px solid rgba(139, 224, 75, 0.3); }
.kind-keyshop { color: #ffc896; background: rgba(255, 166, 87, 0.1); border: 1px solid rgba(255, 166, 87, 0.3); }
/* ---------- filters ---------- */
.filter-label {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #83839c;
}
.filter-input {
width: 100%;
background: #16161f;
border: 1px solid #2e2e42;
border-radius: 8px;
padding: 7px 10px;
font-size: 12px;
color: #d4d4e2;
outline: none;
}
.filter-input:focus { border-color: rgba(139, 224, 75, 0.6); }
.filter-input::placeholder { color: #5c5c74; }
.preset-chip {
font-size: 10.5px;
font-weight: 600;
color: #9b9bb0;
background: #16161f;
border: 1px solid #2e2e42;
padding: 3px 8px;
border-radius: 999px;
transition: all .15s;
}
.preset-chip:hover { color: #8be04b; border-color: rgba(139, 224, 75, 0.5); }
.preset-chip.chip-active {
color: #8be04b;
border-color: rgba(139, 224, 75, 0.55);
background: rgba(139, 224, 75, 0.08);
}
.store-row {
display: flex;
align-items: center;
gap: 9px;
padding: 5px 7px;
border-radius: 8px;
transition: background .15s;
}
.store-row:hover { background: #26263a; }
/* range slider */
.gg-range { -webkit-appearance: none; appearance: none; height: 5px; background: #2e2e42; border-radius: 999px; outline: none; }
.gg-range::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px; height: 16px;
border-radius: 50%;
background: #8be04b;
border: 2px solid #12290a;
cursor: pointer;
}
.gg-range::-moz-range-thumb {
width: 14px; height: 14px;
border-radius: 50%;
background: #8be04b;
border: 2px solid #12290a;
cursor: pointer;
}
/* checkbox */
.gg-check {
appearance: none;
width: 15px; height: 15px;
border: 1.5px solid #454563;
border-radius: 4.5px;
background: #16161f;
cursor: pointer;
flex-shrink: 0;
position: relative;
}
.gg-check:checked {
background: #8be04b;
border-color: #8be04b;
}
.gg-check:checked::after {
content: "";
position: absolute;
left: 4px; top: 1px;
width: 4px; height: 8px;
border: solid #12290a;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
/* ---------- buttons ---------- */
.btn-buy {
display: inline-block;
font-size: 12px;
font-weight: 800;
color: #12290a;
background: #8be04b;
padding: 6px 16px;
border-radius: 7px;
transition: background .15s;
}
.btn-buy:hover { background: #9cf465; }
/* ---------- pagination ---------- */
.pg-btn {
display: inline-block;
font-size: 12.5px;
font-weight: 700;
color: #b9b9c9;
background: #20202d;
border: 1px solid #2e2e42;
padding: 7px 13px;
border-radius: 8px;
transition: all .15s;
}
.pg-btn:hover { color: #8be04b; border-color: rgba(139, 224, 75, 0.5); }
.pg-active { color: #12290a; background: #8be04b; border-color: #8be04b; }
.pg-active:hover { color: #12290a; }
.pg-dots { color: #5c5c74; padding: 7px 2px; }
/* ---------- light theme ---------- */
html.theme-light {
color-scheme: light;
}
html.theme-light {
--color-page: #f4f4f7;
--color-panel: #ffffff;
--color-card: #ffffff;
--color-elev: #e8e8ef;
--color-line: #d8d8e2;
--color-muted: #6b6b80;
--color-accent: #4c9e1f;
--color-accent-ink: #ffffff;
}
html.theme-light body {
background: var(--color-page);
color: #27273a;
}
html.theme-light .text-zinc-100, html.theme-light .text-zinc-200, html.theme-light .text-white { color: #1c1c2e !important; }
html.theme-light .text-zinc-300, html.theme-light .text-zinc-400 { color: #4a4a5e !important; }
html.theme-light .bg-page { background: #f4f4f7 !important; }
html.theme-light .bg-panel { background: #ffffff !important; }
html.theme-light .bg-card { background: #ffffff !important; }
html.theme-light .hover\:bg-elev:hover { background: #e8e8ef !important; }
html.theme-light .border-line { border-color: #d8d8e2 !important; }
html.theme-light .filter-input, html.theme-light .preset-chip { background: #f4f4f7; border-color: #d8d8e2; color: #4a4a5e; }
html.theme-light .chip { background: #f0f0f5; border-color: #d8d8e2; color: #4a4a5e; }
html.theme-light .score-chip { background: #e8e8c0; border-color: #c0c080; color: #5a5a20; }