Repository navigation
Expand file tree
/
Copy pathdebug.html
More file actions
205 lines (179 loc) · 4.79 KB
/
Copy pathdebug.html
File metadata and controls
205 lines (179 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>52-Card Deck Grid - 3D Blackjack</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #0b0d13;
color: #e6dfd5;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
padding: 32px 24px;
min-height: 100vh;
}
header {
max-width: 1400px;
margin: 0 auto 32px auto;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 16px;
border-bottom: 1px solid rgba(212, 175, 55, 0.2);
padding-bottom: 20px;
}
.title-group h1 {
font-size: 26px;
font-weight: 700;
color: #d4af37;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 12px;
}
.title-group p {
font-size: 14px;
color: rgba(230, 223, 213, 0.65);
margin-top: 4px;
}
.nav-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: #171b26;
color: #d4af37;
text-decoration: none;
padding: 10px 18px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
border: 1px solid rgba(212, 175, 55, 0.3);
transition: all 0.2s ease;
}
.nav-btn:hover {
background: #23293a;
border-color: #d4af37;
transform: translateY(-1px);
}
.filter-bar {
max-width: 1400px;
margin: 0 auto 24px auto;
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.filter-btn {
background: #141722;
border: 1px solid rgba(255, 255, 255, 0.1);
color: #c9c3b8;
padding: 8px 16px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.filter-btn:hover {
background: #1e2333;
color: #fff;
}
.filter-btn.active {
background: #d4af37;
color: #0b0d13;
border-color: #d4af37;
}
.deck-container {
max-width: 1400px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 36px;
}
.suit-section {
background: rgba(18, 22, 33, 0.7);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 14px;
padding: 20px;
}
.suit-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 16px;
display: flex;
align-items: center;
gap: 8px;
}
.suit-title.red {
color: #e0454a;
}
.suit-title.black {
color: #e2e4ea;
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
gap: 14px;
}
@media (min-width: 1100px) {
.card-grid {
grid-template-columns: repeat(13, 1fr);
}
}
.card-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
transition: transform 0.2s ease;
}
.card-item:hover {
transform: translateY(-4px) scale(1.05);
z-index: 10;
}
.card-item canvas {
width: 100%;
height: auto;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
background: #fff;
}
.card-label {
font-size: 13px;
font-weight: 700;
letter-spacing: 0.5px;
}
.card-label.red {
color: #e0454a;
}
.card-label.black {
color: #c0c4ce;
}
</style>
</head>
<body>
<header>
<div class="title-group">
<h1>♠ ♥ 52-Card Deck Texture Inspector ♦ ♣</h1>
<p>Pure procedural Canvas card faces: corner indexes, standard 2-10 pips, big Ace of Spades, and framed J/Q/K placeholders.</p>
</div>
<a class="nav-btn" href="./">
← Back to 3D Blackjack Table
</a>
</header>
<div class="filter-bar">
<button class="filter-btn active" data-filter="all">All Suits (52)</button>
<button class="filter-btn" data-filter="spades">Spades ♠ (13)</button>
<button class="filter-btn" data-filter="hearts">Hearts ♥ (13)</button>
<button class="filter-btn" data-filter="diamonds">Diamonds ♦ (13)</button>
<button class="filter-btn" data-filter="clubs">Clubs ♣ (13)</button>
</div>
<div id="deck-container" class="deck-container"></div>
<script type="module" src="/src/debug.js"></script>
</body>
</html>