Skip to content

Commit 85ebd15

Browse files
simplify image generation error message
1 parent 88ae004 commit 85ebd15

1 file changed

Lines changed: 10 additions & 64 deletions

File tree

src/photo-booth/src/views/Result.vue

Lines changed: 10 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@
3636
<div v-else class="image-placeholder">
3737
<div v-if="tile.type === 'loading'" class="image-placeholder__shimmer"></div>
3838
<div v-if="tile.type === 'error'" class="image-failed">
39-
<div class="image-failed__icon" aria-hidden="true">
40-
<span class="image-failed__spark image-failed__spark--left"></span>
41-
<span class="image-failed__spark image-failed__spark--right"></span>
42-
</div>
43-
<div class="image-failed__title">Generation failed</div>
39+
<div class="image-failed__title">Image generation failed</div>
4440
<div class="image-failed__message">
4541
This variation did not render correctly.
4642
</div>
@@ -265,80 +261,30 @@ function startOver() {
265261
}
266262
267263
.image-failed {
268-
position: relative;
264+
position: absolute;
265+
inset: 0;
269266
z-index: 1;
270-
width: 100%;
271267
padding: 1.75rem 1.25rem;
272268
display: flex;
273269
flex-direction: column;
274270
align-items: center;
275271
justify-content: center;
276272
text-align: center;
277273
gap: 0.9rem;
278-
color: white;
279-
}
280-
281-
.image-failed__icon {
282-
width: 72px;
283-
height: 72px;
284-
border-radius: 22px;
285-
position: relative;
286-
display: grid;
287-
place-items: center;
288-
background: rgba(17, 199, 204, 0.14);
289-
border: 2px solid rgba(38, 239, 233, 0.55);
290-
box-shadow:
291-
0 10px 24px rgba(0, 0, 0, 0.18),
292-
inset 0 0 0 1px rgba(255, 255, 255, 0.08);
293-
}
294-
295-
.image-failed__icon::before {
296-
content: "";
297-
width: 30px;
298-
height: 30px;
299-
border-radius: 10px;
300-
border: 3px solid rgba(38, 239, 233, 0.9);
301-
transform: rotate(45deg);
302-
}
303-
304-
.image-failed__icon::after {
305-
content: "!";
306-
position: absolute;
307-
font-size: 1.5rem;
308-
font-weight: 700;
309-
color: rgba(38, 239, 233, 1);
310-
}
311-
312-
.image-failed__spark {
313-
position: absolute;
314-
width: 14px;
315-
height: 2px;
316-
border-radius: 999px;
317-
background: rgba(38, 239, 233, 0.85);
318-
top: 18px;
319-
}
320-
321-
.image-failed__spark--left {
322-
left: 10px;
323-
transform: rotate(-35deg);
324-
}
325-
326-
.image-failed__spark--right {
327-
right: 10px;
328-
transform: rotate(35deg);
274+
color: #000048;
275+
background-color: #D5D5F3;
276+
font-size: 19px;
329277
}
330278
331279
.image-failed__title {
332-
font-size: 1.2rem;
333-
font-weight: 700;
334-
letter-spacing: 0.02em;
280+
font-size: 1em;
281+
font-weight: 600;
335282
}
336283
337284
.image-failed__message {
338-
max-width: 200px;
339-
font-size: 0.9rem;
285+
font-size: 1em;
340286
line-height: 1.35;
341-
color: rgba(255, 255, 255, 0.78);
287+
font-weight: 400;
342288
}
343289
344290
.image-card.selected {

0 commit comments

Comments
 (0)