ios
Browse files
src/lib/components/Pages/Pictuary.svelte
CHANGED
@@ -129,10 +129,6 @@
|
|
129 |
/>
|
130 |
{:else}
|
131 |
<div class="pictuary-page">
|
132 |
-
<header class="page-header">
|
133 |
-
<h1>Pictuary</h1>
|
134 |
-
</header>
|
135 |
-
|
136 |
{#if isLoading}
|
137 |
<div class="loading-state">
|
138 |
<div class="spinner"></div>
|
|
|
129 |
/>
|
130 |
{:else}
|
131 |
<div class="pictuary-page">
|
|
|
|
|
|
|
|
|
132 |
{#if isLoading}
|
133 |
<div class="loading-state">
|
134 |
<div class="spinner"></div>
|
src/lib/components/Piclets/PicletDetail.svelte
CHANGED
@@ -46,17 +46,20 @@
|
|
46 |
}
|
47 |
</script>
|
48 |
|
49 |
-
<div class="detail-
|
50 |
-
<div class="detail-content">
|
51 |
<div class="navigation-bar">
|
52 |
-
<button class="
|
|
|
|
|
|
|
|
|
53 |
<h2>{instance.nickname || instance.typeId}</h2>
|
54 |
<div class="nav-spacer"></div>
|
55 |
</div>
|
56 |
|
57 |
<div class="content-scroll">
|
58 |
<!-- Header Card -->
|
59 |
-
<div class="header-card"
|
60 |
<div class="header-layout">
|
61 |
<div class="image-column">
|
62 |
<div class="image-container">
|
@@ -135,9 +138,6 @@
|
|
135 |
{#if selectedTab === 'about'}
|
136 |
<div class="content-card">
|
137 |
<p class="description">{instance.concept}</p>
|
138 |
-
<div class="image-caption">
|
139 |
-
<strong>Original prompt:</strong> {instance.imageCaption}
|
140 |
-
</div>
|
141 |
</div>
|
142 |
{:else if selectedTab === 'stats'}
|
143 |
<div class="content-card">
|
@@ -223,27 +223,16 @@
|
|
223 |
{/if}
|
224 |
</div>
|
225 |
</div>
|
226 |
-
</div>
|
227 |
</div>
|
228 |
|
229 |
<style>
|
230 |
-
.detail-
|
231 |
position: fixed;
|
232 |
inset: 0;
|
233 |
-
background: rgba(0, 0, 0, 0.5);
|
234 |
-
display: flex;
|
235 |
-
align-items: flex-end;
|
236 |
-
z-index: 1000;
|
237 |
-
}
|
238 |
-
|
239 |
-
.detail-content {
|
240 |
background: #f2f2f7;
|
241 |
-
|
242 |
-
height: 90vh;
|
243 |
-
overflow: hidden;
|
244 |
display: flex;
|
245 |
flex-direction: column;
|
246 |
-
border-radius: 16px 16px 0 0;
|
247 |
}
|
248 |
|
249 |
/* Navigation Bar */
|
@@ -264,18 +253,20 @@
|
|
264 |
text-align: center;
|
265 |
}
|
266 |
|
267 |
-
.
|
268 |
background: none;
|
269 |
border: none;
|
270 |
color: #007bff;
|
271 |
-
font-size: 17px;
|
272 |
-
font-weight: 400;
|
273 |
cursor: pointer;
|
274 |
padding: 0;
|
|
|
|
|
|
|
|
|
275 |
}
|
276 |
|
277 |
.nav-spacer {
|
278 |
-
width:
|
279 |
}
|
280 |
|
281 |
/* Content Scroll */
|
@@ -290,6 +281,7 @@
|
|
290 |
margin: 16px;
|
291 |
padding: 20px;
|
292 |
border-radius: 16px;
|
|
|
293 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
294 |
}
|
295 |
|
@@ -346,7 +338,7 @@
|
|
346 |
}
|
347 |
|
348 |
.level-badge {
|
349 |
-
background: rgba(
|
350 |
padding: 3px 10px;
|
351 |
border-radius: 12px;
|
352 |
font-size: 13px;
|
@@ -408,7 +400,7 @@
|
|
408 |
}
|
409 |
|
410 |
.tab-button.active {
|
411 |
-
background: #
|
412 |
color: white;
|
413 |
}
|
414 |
|
@@ -431,11 +423,6 @@
|
|
431 |
color: #000;
|
432 |
}
|
433 |
|
434 |
-
.image-caption {
|
435 |
-
font-size: 14px;
|
436 |
-
color: #666;
|
437 |
-
line-height: 1.4;
|
438 |
-
}
|
439 |
|
440 |
/* Stats Tab */
|
441 |
.section-title {
|
@@ -601,16 +588,11 @@
|
|
601 |
}
|
602 |
|
603 |
@media (min-width: 768px) {
|
604 |
-
.detail-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
.detail-content {
|
610 |
-
max-width: 500px;
|
611 |
-
height: auto;
|
612 |
-
max-height: 90vh;
|
613 |
-
border-radius: 16px;
|
614 |
}
|
615 |
}
|
616 |
</style>
|
|
|
46 |
}
|
47 |
</script>
|
48 |
|
49 |
+
<div class="detail-page">
|
|
|
50 |
<div class="navigation-bar">
|
51 |
+
<button class="back-btn" onclick={onClose}>
|
52 |
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
53 |
+
<path d="M19 12H5m0 0l7 7m-7-7l7-7"></path>
|
54 |
+
</svg>
|
55 |
+
</button>
|
56 |
<h2>{instance.nickname || instance.typeId}</h2>
|
57 |
<div class="nav-spacer"></div>
|
58 |
</div>
|
59 |
|
60 |
<div class="content-scroll">
|
61 |
<!-- Header Card -->
|
62 |
+
<div class="header-card">
|
63 |
<div class="header-layout">
|
64 |
<div class="image-column">
|
65 |
<div class="image-container">
|
|
|
138 |
{#if selectedTab === 'about'}
|
139 |
<div class="content-card">
|
140 |
<p class="description">{instance.concept}</p>
|
|
|
|
|
|
|
141 |
</div>
|
142 |
{:else if selectedTab === 'stats'}
|
143 |
<div class="content-card">
|
|
|
223 |
{/if}
|
224 |
</div>
|
225 |
</div>
|
|
|
226 |
</div>
|
227 |
|
228 |
<style>
|
229 |
+
.detail-page {
|
230 |
position: fixed;
|
231 |
inset: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
background: #f2f2f7;
|
233 |
+
z-index: 1000;
|
|
|
|
|
234 |
display: flex;
|
235 |
flex-direction: column;
|
|
|
236 |
}
|
237 |
|
238 |
/* Navigation Bar */
|
|
|
253 |
text-align: center;
|
254 |
}
|
255 |
|
256 |
+
.back-btn {
|
257 |
background: none;
|
258 |
border: none;
|
259 |
color: #007bff;
|
|
|
|
|
260 |
cursor: pointer;
|
261 |
padding: 0;
|
262 |
+
display: flex;
|
263 |
+
align-items: center;
|
264 |
+
width: 24px;
|
265 |
+
height: 24px;
|
266 |
}
|
267 |
|
268 |
.nav-spacer {
|
269 |
+
width: 24px;
|
270 |
}
|
271 |
|
272 |
/* Content Scroll */
|
|
|
281 |
margin: 16px;
|
282 |
padding: 20px;
|
283 |
border-radius: 16px;
|
284 |
+
background: linear-gradient(135deg, #636366, #48484a);
|
285 |
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
286 |
}
|
287 |
|
|
|
338 |
}
|
339 |
|
340 |
.level-badge {
|
341 |
+
background: rgba(142, 142, 147, 0.8);
|
342 |
padding: 3px 10px;
|
343 |
border-radius: 12px;
|
344 |
font-size: 13px;
|
|
|
400 |
}
|
401 |
|
402 |
.tab-button.active {
|
403 |
+
background: #636366;
|
404 |
color: white;
|
405 |
}
|
406 |
|
|
|
423 |
color: #000;
|
424 |
}
|
425 |
|
|
|
|
|
|
|
|
|
|
|
426 |
|
427 |
/* Stats Tab */
|
428 |
.section-title {
|
|
|
588 |
}
|
589 |
|
590 |
@media (min-width: 768px) {
|
591 |
+
.detail-page {
|
592 |
+
position: relative;
|
593 |
+
max-width: 600px;
|
594 |
+
margin: 0 auto;
|
595 |
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
|
596 |
}
|
597 |
}
|
598 |
</style>
|