Skip to content

Commit 255fe89

Browse files
improve and align polaroid appearance
1 parent 22118a0 commit 255fe89

2 files changed

Lines changed: 35 additions & 18 deletions

File tree

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

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -232,18 +232,30 @@ async function printImage() {
232232
233233
/* Polaroid */
234234
.polaroid {
235-
background: white;
236-
padding: 1rem;
237-
padding-bottom: 3rem;
238-
width: 360px;
239-
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
240-
transform: rotate(5deg);
235+
background: white;
236+
padding: 17px;
237+
width: 360px;
238+
aspect-ratio: 3.5 / 4;
239+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
240+
transform: rotate(5deg);
241+
position: relative;
242+
z-index: 1;
243+
244+
@include big-screen {
245+
width: 650px;
246+
padding: 32px;
247+
}
248+
249+
& img {
250+
width: 100%;
251+
aspect-ratio: 1 / 1;
252+
object-fit: cover;
253+
display: block;
241254
position: relative;
242-
z-index: 1;
243-
244-
@include big-screen {
245-
width: 650px;
246-
}
255+
border-radius: 1px;
256+
box-shadow: -1px -1px 3px 1px rgba(113, 96, 72, 0.03),
257+
1px 1px 2px rgba(113, 96, 72, 0.03);
258+
}
247259
}
248260
249261
.photo {

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,10 @@ onBeforeUnmount(() => {
228228
position: absolute;
229229
top: 50%;
230230
left: 50%;
231-
width: 300px;
231+
width: 450px;
232+
aspect-ratio: 3.5 / 4;
232233
background: white;
233-
padding: 12px 12px 40px 12px;
234+
padding: 22px;
234235
box-shadow: 0 28px 50px rgba(0, 0, 0, 0.18);
235236
transform-origin: center center;
236237
transition:
@@ -243,15 +244,19 @@ onBeforeUnmount(() => {
243244
}
244245
245246
.photo-card img {
246-
width: 100%;
247-
height: 280px;
248-
object-fit: cover;
249-
display: block;
247+
width: 100%;
248+
aspect-ratio: 1 / 1;
249+
object-fit: cover;
250+
display: block;
251+
position: relative;
252+
border-radius: 1px;
253+
box-shadow: -1px -1px 3px 1px rgba(113, 96, 72, 0.03),
254+
1px 1px 2px rgba(113, 96, 72, 0.03);
250255
}
251256
252257
/* Center */
253258
.photo-card--center {
254-
transform: translate(-50%, -50%) scale(1.18) rotate(0deg);
259+
transform: translate(-50%, -50%) scale(1.22) rotate(0deg);
255260
filter: blur(0);
256261
opacity: 1;
257262
z-index: 5;

0 commit comments

Comments
 (0)