Skip to content

Commit 6337faa

Browse files
center countdown badge
1 parent 3f3487f commit 6337faa

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<!-- LIVE CAMERA -->
1717
<video ref="videoEl" autoplay playsinline class="camera-video"></video>
1818

19-
<div v-if="isCountingDown" class="countdown-overlay">
19+
<div v-if="true || isCountingDown" class="countdown-overlay">
2020
<div class="countdown-badge">
21-
{{ countdown }}
21+
<span>{{ countdown }}</span>
2222
</div>
2323
</div>
2424
</div>
@@ -250,16 +250,21 @@ function capturePhoto() {
250250
min-width: 72px;
251251
height: 72px;
252252
border-radius: 50%;
253-
display: grid;
254-
place-items: center;
253+
display: flex;
254+
align-items: center;
255+
justify-content: center;
255256
background: var(--brand-dark);
256257
border: 3px solid var(--brand-primary);
257258
color: white;
258-
font-size: 2rem;
259-
line-height: 1;
260-
font-weight: 700;
261259
box-shadow:
262260
0 10px 24px rgba(0, 0, 72, 0.28),
263261
0 0 18px rgba(17, 199, 204, 0.35);
262+
263+
span {
264+
font-size: 1.8rem;
265+
line-height: 1;
266+
font-weight: 600;
267+
margin-top: -6px;
268+
}
264269
}
265270
</style>

0 commit comments

Comments
 (0)