Skip to content

Commit b95fc25

Browse files
committed
feat: optimized footer image + styling across breakpoints
1 parent bb3a7e0 commit b95fc25

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

components/site-footer.vue

+8-14
Original file line numberDiff line numberDiff line change
@@ -99,23 +99,17 @@ const scrollToTop = async () => {
9999
content: '';
100100
position: absolute;
101101
top: 0;
102-
left: calc(50% - $halfGridWidth - 3rem);
103-
width: calc(100% + 10rem);
102+
left: 0;
103+
width: 100%;
104104
height: 100%;
105-
background-size: 1439px 1200px;
106-
background-position: 315px -29px;
105+
background-position: right bottom;
107106
background-repeat: no-repeat;
108-
background-image: url('/images/ring-of-cross-sections-on-angle.jpg');
109-
@include gridMaxMQ {
110-
height: calc(100% + 3rem);
111-
width: 100%;
112-
top: -3rem;
113-
left: calc(100% - 52rem);
114-
background-position: center -106px;
107+
background-image: url('/images/ring-of-cross-sections-on-angle-footer.png');
108+
@include mini {
109+
background-position: 4rem -5.5rem;
115110
}
116-
@include small {
117-
left: 0;
118-
width: 100%;
111+
@include tiny {
112+
background-position: 4rem -3.5rem;
119113
}
120114
}
121115
}

pages/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ onMounted(() => {
415415
left: calc(50% - $halfGridWidth - 3rem);
416416
z-index: -1;
417417
width: toRem(1400);
418-
height: calc(toRem(866) + toRem(68) + toRem(234)); // section height + top displacement + footer height
418+
height: calc(toRem(866) + toRem(68) + toRem(234) - 1rem); // section height + top displacement + footer height - 1rem
419419
background-image: url('/images/ring-of-cross-sections-from-above.jpg');
420420
background-size: 1300px;
421421
background-position: center top;
Loading

0 commit comments

Comments
 (0)