Initial commit: Vue 3 Gold Land frontend

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-01 10:52:38 +02:00
co-authored by Cursor
commit 15b2ecd1d2
144 changed files with 11511 additions and 0 deletions
+223
View File
@@ -0,0 +1,223 @@
@import './tokens.css';
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
direction: ltr;
font-size: 16px;
font-family: Vazirmatn, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scrollbar-gutter: stable;
overflow-y: scroll;
scrollbar-width: thin;
scrollbar-color: rgba(174, 185, 210, 0.28) #040817;
}
body {
margin: 0;
min-height: 100vh;
min-height: 100dvh;
direction: rtl;
background: #040817;
color: var(--text-main);
overflow-x: hidden;
overscroll-behavior-y: none;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #040817;
}
::-webkit-scrollbar-thumb {
background: rgba(174, 185, 210, 0.28);
border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(174, 185, 210, 0.42);
}
#app {
min-height: 100vh;
min-height: 100dvh;
display: flex;
justify-content: center;
position: relative;
z-index: 1;
background: #040817;
}
.app-shell {
width: 100%;
max-width: var(--app-max-width);
min-height: 100dvh;
background: #040817;
position: relative;
overflow-x: hidden;
box-shadow: none;
}
.page-content {
padding: var(--page-padding);
padding-bottom: calc(var(--nav-height) + var(--nav-bottom-offset) + env(safe-area-inset-bottom, 0px) + 20px);
min-height: 100dvh;
}
.page-content--no-nav {
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
}
.page-content--flush-top {
padding-top: 0;
}
/* Page transitions — opacity only to prevent scroll overflow flash */
.page-enter-active,
.page-leave-active {
transition: opacity var(--transition-normal);
}
.page-enter-from,
.page-leave-to {
opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
.page-enter-active,
.page-leave-active {
transition: opacity 0.15s ease;
}
.page-enter-from,
.page-leave-to {
transform: none;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
button {
font-family: inherit;
cursor: pointer;
border: none;
background: none;
}
a {
color: inherit;
text-decoration: none;
}
img,
svg {
display: block;
max-width: 100%;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 2px;
}
/* Shared game card base */
.game-card-base {
background: var(--card-bg);
border: var(--card-border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
}
/* Typography utilities */
.text-number-lg {
font-size: clamp(1.5rem, 6vw, 2rem);
font-weight: 800;
line-height: 1.2;
}
.text-number-md {
font-size: clamp(1.125rem, 4.5vw, 1.375rem);
font-weight: 800;
line-height: 1.2;
}
.text-label {
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 600;
}
.text-page-title {
font-size: 1.1875rem;
font-weight: 800;
}
/* Animations */
.card-enter {
animation: cardEnter 0.4s ease backwards;
}
@keyframes cardEnter {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes pulseGlow {
0%, 100% {
box-shadow: 0 0 14px rgba(244, 174, 33, 0.35), 0 0 28px rgba(118, 55, 201, 0.2);
}
50% {
box-shadow: 0 0 22px rgba(244, 174, 33, 0.6), 0 0 40px rgba(118, 55, 201, 0.35);
}
}
@keyframes floatSparkle {
0%, 100% { opacity: 0.4; transform: translateY(0) scale(1); }
50% { opacity: 1; transform: translateY(-4px) scale(1.1); }
}
@keyframes coinPop {
0% { transform: scale(1); }
50% { transform: scale(1.12); }
100% { transform: scale(1); }
}
.coin-animate {
animation: coinPop 0.4s ease;
}
.sparkle {
animation: floatSparkle 2.5s ease-in-out infinite;
}
+61
View File
@@ -0,0 +1,61 @@
:root {
/* Core palette */
--background-deep: #050b1d;
--background-main: #08142b;
--background-card: #101d3a;
--background-card-light: #19284b;
--background-purple: #251b4d;
--border-purple: #55358e;
--border-purple-light: #8654d2;
--purple: #7637c9;
--purple-light: #9c50e9;
--gold: #f4ae21;
--gold-light: #ffd55e;
--orange: #f18c16;
--green: #22b54b;
--green-dark: #138d36;
--red: #e63443;
--red-dark: #b8172d;
--blue: #1682cb;
--text-main: #ffffff;
--text-muted: #aeb9d2;
/* Legacy aliases */
--app-bg: var(--background-main);
--app-bg-secondary: var(--background-deep);
--surface: var(--background-card);
--surface-light: var(--background-card-light);
--surface-purple: var(--background-purple);
--primary-purple: var(--purple);
--primary-purple-light: var(--purple-light);
--text-primary: var(--text-main);
--text-secondary: var(--text-muted);
/* Layout */
--radius-sm: 12px;
--radius-md: 17px;
--radius-lg: 20px;
--radius-xl: 24px;
--nav-height: 62px;
--nav-bottom-offset: 8px;
--header-height: 58px;
--app-max-width: 420px;
--page-padding: 16px;
--gap-sm: 8px;
--gap-md: 12px;
--gap-lg: 20px;
--transition-fast: 150ms ease;
--transition-normal: 280ms ease;
/* Shadows */
--shadow-card:
inset 0 1px 0 rgba(255, 255, 255, 0.05),
0 8px 20px rgba(0, 0, 0, 0.28),
0 0 16px rgba(104, 52, 190, 0.08);
--shadow-purple: 0 0 24px rgba(118, 55, 201, 0.35);
--shadow-gold: 0 0 20px rgba(244, 174, 33, 0.25);
/* Card gradient */
--card-bg: linear-gradient(145deg, rgba(29, 42, 78, 0.98), rgba(12, 23, 50, 0.98));
--card-border: 1px solid rgba(118, 75, 190, 0.55);
}