Skip to content

Commit

Permalink
feat: optimized warped torus image + updated styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tikagan committed Oct 3, 2023
1 parent b95fc25 commit edcf844
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 28 deletions.
4 changes: 2 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ onMounted(() => {
width: calc(100% + 270px);
height: 130rem;
transform: translateX(-270px);
background-image: url('/images/warped-torus-made-of-segments.png');
background-image: url('/images/warped-torus-made-of-segments.jpg');
background-size: 2000px;
background-position: center top;
background-repeat: no-repeat;
Expand Down Expand Up @@ -363,7 +363,7 @@ onMounted(() => {
z-index: -1;
width: calc(100% + toRem(50));
height: toRem(1480);
background-image: url('/images/warped-torus-made-of-segments.png');
background-image: url('/images/warped-torus-made-of-segments.jpg');
background-size: 1520px;
background-position: center top;
background-repeat: no-repeat;
Expand Down
42 changes: 16 additions & 26 deletions pages/signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,31 +68,36 @@ const content = computed(() => {
top: 0;
left: -8vw;
width: 120vw;
height: calc(100% + toRem(234) + toRem(100));
background-image: url('/images/warped-torus-made-of-segments.png');
background-size: toRem(2040);
height: calc(100% + toRem(365));
background-image: url('/images/warped-torus-made-of-segments.jpg');
background-size: vw(2200px);
background-origin: border-box;
background-position: center 64%;
background-repeat: no-repeat;
@include gridMaxMQ {
height: calc(100% + toRem(355));
height: calc(100% + toRem(430));
background-position: center 54%;
}
@include large {
background-size: clamp(toRem(1700), vw(2200px), toRem(1833));
background-position: center 44%;
}
@include medium {
height: calc(100% + toRem(425));
height: calc(100% + toRem(480));
}
@include customMaxMQ(toRem(983)) {
background-position: center bottom;
top: 2rem;
}
@include small {
height: calc(100% + toRem(234));
height: 100%;
}
@include tiny {
background-size: 820px;
height: calc(100% + toRem(234));
@include mini {
background-size: vw(1030px, 375px);
height: calc(100% + toRem(200));
top: unset;
bottom: -15%;
bottom: -2rem;
}
}
}
Expand All @@ -101,24 +106,9 @@ const content = computed(() => {
padding-right: 0;
padding-left: 1.5625rem;
margin-bottom: toRem(17);
// :deep(.button-content) {
// display: flex;
// align-items: center;
// .arrow {
// position: absolute;
// right: unset;
// left: toRem(-18);
// transform: scaleX(-1);
// }
// }
&:hover,
&:focus-visible {
padding-right: 0;
// :deep(.button-content) {
// .arrow {
// left: toRem(-26);
// }
// }
}
}
Expand Down
Binary file added public/images/warped-torus-made-of-segments.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/warped-torus-made-of-segments.png
Binary file not shown.

0 comments on commit edcf844

Please sign in to comment.