Skip to content

Commit edcf844

Browse files
committed
feat: optimized warped torus image + updated styling
1 parent b95fc25 commit edcf844

File tree

4 files changed

+18
-28
lines changed

4 files changed

+18
-28
lines changed

pages/index.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ onMounted(() => {
224224
width: calc(100% + 270px);
225225
height: 130rem;
226226
transform: translateX(-270px);
227-
background-image: url('/images/warped-torus-made-of-segments.png');
227+
background-image: url('/images/warped-torus-made-of-segments.jpg');
228228
background-size: 2000px;
229229
background-position: center top;
230230
background-repeat: no-repeat;
@@ -363,7 +363,7 @@ onMounted(() => {
363363
z-index: -1;
364364
width: calc(100% + toRem(50));
365365
height: toRem(1480);
366-
background-image: url('/images/warped-torus-made-of-segments.png');
366+
background-image: url('/images/warped-torus-made-of-segments.jpg');
367367
background-size: 1520px;
368368
background-position: center top;
369369
background-repeat: no-repeat;

pages/signup.vue

+16-26
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,36 @@ const content = computed(() => {
6868
top: 0;
6969
left: -8vw;
7070
width: 120vw;
71-
height: calc(100% + toRem(234) + toRem(100));
72-
background-image: url('/images/warped-torus-made-of-segments.png');
73-
background-size: toRem(2040);
71+
height: calc(100% + toRem(365));
72+
background-image: url('/images/warped-torus-made-of-segments.jpg');
73+
background-size: vw(2200px);
7474
background-origin: border-box;
7575
background-position: center 64%;
7676
background-repeat: no-repeat;
7777
@include gridMaxMQ {
78-
height: calc(100% + toRem(355));
78+
height: calc(100% + toRem(430));
79+
background-position: center 54%;
80+
}
81+
@include large {
82+
background-size: clamp(toRem(1700), vw(2200px), toRem(1833));
83+
background-position: center 44%;
7984
}
8085
8186
@include medium {
82-
height: calc(100% + toRem(425));
87+
height: calc(100% + toRem(480));
8388
}
8489
@include customMaxMQ(toRem(983)) {
8590
background-position: center bottom;
86-
91+
top: 2rem;
8792
}
8893
@include small {
89-
height: calc(100% + toRem(234));
94+
height: 100%;
9095
}
91-
@include tiny {
92-
background-size: 820px;
93-
height: calc(100% + toRem(234));
96+
@include mini {
97+
background-size: vw(1030px, 375px);
98+
height: calc(100% + toRem(200));
9499
top: unset;
95-
bottom: -15%;
100+
bottom: -2rem;
96101
}
97102
}
98103
}
@@ -101,24 +106,9 @@ const content = computed(() => {
101106
padding-right: 0;
102107
padding-left: 1.5625rem;
103108
margin-bottom: toRem(17);
104-
// :deep(.button-content) {
105-
// display: flex;
106-
// align-items: center;
107-
// .arrow {
108-
// position: absolute;
109-
// right: unset;
110-
// left: toRem(-18);
111-
// transform: scaleX(-1);
112-
// }
113-
// }
114109
&:hover,
115110
&:focus-visible {
116111
padding-right: 0;
117-
// :deep(.button-content) {
118-
// .arrow {
119-
// left: toRem(-26);
120-
// }
121-
// }
122112
}
123113
}
124114
83.2 KB
Loading
-401 KB
Binary file not shown.

0 commit comments

Comments
 (0)