fmt
Browse files
src/lib/components/Battle/ActionViewSelector.svelte
CHANGED
@@ -83,10 +83,10 @@
|
|
83 |
{/each}
|
84 |
</div>
|
85 |
{:else if currentView === 'piclets'}
|
|
|
|
|
|
|
86 |
<div class="sub-view-list">
|
87 |
-
{@const availableHealthyPiclets = availablePiclets.filter(p =>
|
88 |
-
p.currentHp > 0 && p.id !== currentPicletId
|
89 |
-
)}
|
90 |
{#if availableHealthyPiclets.length === 0}
|
91 |
<div class="empty-message">
|
92 |
No other healthy piclets available
|
|
|
83 |
{/each}
|
84 |
</div>
|
85 |
{:else if currentView === 'piclets'}
|
86 |
+
{@const availableHealthyPiclets = availablePiclets.filter(p =>
|
87 |
+
p.currentHp > 0 && p.id !== currentPicletId
|
88 |
+
)}
|
89 |
<div class="sub-view-list">
|
|
|
|
|
|
|
90 |
{#if availableHealthyPiclets.length === 0}
|
91 |
<div class="empty-message">
|
92 |
No other healthy piclets available
|
src/lib/components/Battle/BattleControls.svelte
CHANGED
@@ -14,7 +14,6 @@
|
|
14 |
export let onAction: (action: string) => void;
|
15 |
export let onMoveSelect: (move: any) => void;
|
16 |
export let onPicletSelect: (piclet: PicletInstance) => void;
|
17 |
-
export let onBack: () => void;
|
18 |
|
19 |
let availablePiclets: PicletInstance[] = [];
|
20 |
|
@@ -95,152 +94,6 @@
|
|
95 |
flex-direction: column;
|
96 |
}
|
97 |
|
98 |
-
/* Move Selection */
|
99 |
-
.move-select, .piclet-select {
|
100 |
-
display: flex;
|
101 |
-
flex-direction: column;
|
102 |
-
height: 100%;
|
103 |
-
}
|
104 |
-
|
105 |
-
.section-header {
|
106 |
-
display: flex;
|
107 |
-
justify-content: space-between;
|
108 |
-
align-items: center;
|
109 |
-
margin-bottom: 1rem;
|
110 |
-
}
|
111 |
-
|
112 |
-
.section-header h3 {
|
113 |
-
margin: 0;
|
114 |
-
font-size: 1.125rem;
|
115 |
-
color: #1a1a1a;
|
116 |
-
}
|
117 |
-
|
118 |
-
.back-btn {
|
119 |
-
background: none;
|
120 |
-
border: none;
|
121 |
-
color: #007bff;
|
122 |
-
font-size: 0.875rem;
|
123 |
-
cursor: pointer;
|
124 |
-
padding: 0.25rem 0.5rem;
|
125 |
-
}
|
126 |
-
|
127 |
-
.moves-grid {
|
128 |
-
display: grid;
|
129 |
-
grid-template-columns: repeat(2, 1fr);
|
130 |
-
gap: 0.75rem;
|
131 |
-
}
|
132 |
-
|
133 |
-
.move-button {
|
134 |
-
padding: 1rem;
|
135 |
-
background: #f8f9fa;
|
136 |
-
border: 2px solid #e0e0e0;
|
137 |
-
border-radius: 8px;
|
138 |
-
cursor: pointer;
|
139 |
-
display: flex;
|
140 |
-
flex-direction: column;
|
141 |
-
align-items: flex-start;
|
142 |
-
gap: 0.25rem;
|
143 |
-
transition: all 0.2s ease;
|
144 |
-
}
|
145 |
-
|
146 |
-
.move-button:hover:not(:disabled) {
|
147 |
-
background: #e9ecef;
|
148 |
-
border-color: #007bff;
|
149 |
-
}
|
150 |
-
|
151 |
-
.move-button:disabled {
|
152 |
-
opacity: 0.5;
|
153 |
-
cursor: not-allowed;
|
154 |
-
}
|
155 |
-
|
156 |
-
.move-name {
|
157 |
-
font-weight: 600;
|
158 |
-
color: #1a1a1a;
|
159 |
-
}
|
160 |
-
|
161 |
-
.move-type {
|
162 |
-
font-size: 0.75rem;
|
163 |
-
color: #666;
|
164 |
-
text-transform: uppercase;
|
165 |
-
}
|
166 |
-
|
167 |
-
.move-pp {
|
168 |
-
font-size: 0.75rem;
|
169 |
-
color: #999;
|
170 |
-
}
|
171 |
-
|
172 |
-
/* Piclet Selection */
|
173 |
-
.piclets-list {
|
174 |
-
flex: 1;
|
175 |
-
overflow-y: auto;
|
176 |
-
display: flex;
|
177 |
-
flex-direction: column;
|
178 |
-
gap: 0.5rem;
|
179 |
-
}
|
180 |
-
|
181 |
-
.no-piclets {
|
182 |
-
text-align: center;
|
183 |
-
color: #666;
|
184 |
-
padding: 2rem;
|
185 |
-
}
|
186 |
-
|
187 |
-
.piclet-option {
|
188 |
-
display: flex;
|
189 |
-
align-items: center;
|
190 |
-
gap: 1rem;
|
191 |
-
padding: 0.75rem;
|
192 |
-
background: #f8f9fa;
|
193 |
-
border: 2px solid #e0e0e0;
|
194 |
-
border-radius: 8px;
|
195 |
-
cursor: pointer;
|
196 |
-
transition: all 0.2s ease;
|
197 |
-
}
|
198 |
-
|
199 |
-
.piclet-option:hover {
|
200 |
-
background: #e9ecef;
|
201 |
-
border-color: #007bff;
|
202 |
-
}
|
203 |
-
|
204 |
-
.piclet-option img {
|
205 |
-
width: 50px;
|
206 |
-
height: 50px;
|
207 |
-
object-fit: cover;
|
208 |
-
border-radius: 4px;
|
209 |
-
}
|
210 |
-
|
211 |
-
.piclet-details {
|
212 |
-
flex: 1;
|
213 |
-
display: flex;
|
214 |
-
flex-direction: column;
|
215 |
-
align-items: flex-start;
|
216 |
-
}
|
217 |
-
|
218 |
-
.piclet-name {
|
219 |
-
font-weight: 600;
|
220 |
-
color: #1a1a1a;
|
221 |
-
}
|
222 |
-
|
223 |
-
.piclet-stats {
|
224 |
-
font-size: 0.75rem;
|
225 |
-
color: #666;
|
226 |
-
}
|
227 |
-
|
228 |
-
.hp-preview {
|
229 |
-
width: 80px;
|
230 |
-
}
|
231 |
-
|
232 |
-
.hp-preview-bar {
|
233 |
-
height: 6px;
|
234 |
-
background: #e0e0e0;
|
235 |
-
border-radius: 3px;
|
236 |
-
overflow: hidden;
|
237 |
-
}
|
238 |
-
|
239 |
-
.hp-preview-fill {
|
240 |
-
height: 100%;
|
241 |
-
background: #4caf50;
|
242 |
-
transition: width 0.3s ease;
|
243 |
-
}
|
244 |
|
245 |
/* Battle End */
|
246 |
.battle-end {
|
|
|
14 |
export let onAction: (action: string) => void;
|
15 |
export let onMoveSelect: (move: any) => void;
|
16 |
export let onPicletSelect: (piclet: PicletInstance) => void;
|
|
|
17 |
|
18 |
let availablePiclets: PicletInstance[] = [];
|
19 |
|
|
|
94 |
flex-direction: column;
|
95 |
}
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
/* Battle End */
|
99 |
.battle-end {
|
src/lib/components/Pages/Pictuary.svelte
CHANGED
@@ -249,27 +249,6 @@
|
|
249 |
background: white;
|
250 |
}
|
251 |
|
252 |
-
.page-header {
|
253 |
-
padding: 1rem;
|
254 |
-
padding-top: 0.5rem;
|
255 |
-
background: white;
|
256 |
-
position: sticky;
|
257 |
-
top: 0;
|
258 |
-
z-index: 100;
|
259 |
-
}
|
260 |
-
|
261 |
-
.page-header h1 {
|
262 |
-
margin: 0;
|
263 |
-
font-size: 1.75rem;
|
264 |
-
font-weight: bold;
|
265 |
-
color: #333;
|
266 |
-
}
|
267 |
-
|
268 |
-
.piclet-count {
|
269 |
-
margin: 0.25rem 0 0;
|
270 |
-
color: #666;
|
271 |
-
font-size: 0.9rem;
|
272 |
-
}
|
273 |
|
274 |
.loading-state,
|
275 |
.empty-state {
|
|
|
249 |
background: white;
|
250 |
}
|
251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
|
253 |
.loading-state,
|
254 |
.empty-state {
|