Skip to content

Commit ead2a4a

Browse files
committed
feat: signup page background image
1 parent b1b9df4 commit ead2a4a

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

components/site-footer.vue

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<footer id="site-footer">
2+
<footer id="site-footer" :class="{ 'no-background-image': pageSignup }">
33

44
<div class="content">
55
<div class="grid-bottom-noBottom-noGutter">
@@ -52,8 +52,11 @@
5252
<script setup>
5353
// ======================================================================== Data
5454
const generalStore = useGeneralStore()
55+
const route = useRoute()
5556
5657
// ==================================================================== Computed
58+
const pageSignup = computed(() => { return route.name === 'signup' })
59+
5760
const authors = computed(() => {
5861
return generalStore.siteContent.general?.footer.authors
5962
})
@@ -87,6 +90,11 @@ const scrollToTop = async () => {
8790
padding-top: toRem(72);
8891
height: unset;
8992
}
93+
&.no-background-image {
94+
&::before {
95+
display: none;
96+
}
97+
}
9098
&:before {
9199
content: '';
92100
position: absolute;

pages/signup.vue

+44-1
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,51 @@ const content = computed(() => {
4949

5050
<style lang="scss" scoped>
5151
// ///////////////////////////////////////////////////////////////////// General
52-
.page {
52+
.page-signup {
5353
flex: 1;
5454
display: flex;
5555
flex-direction: column;
5656
justify-content: center;
5757
align-items: center;
5858
@include small{
59+
position: relative;
5960
margin-top: 4.875rem;
6061
}
62+
&:before {
63+
content: '';
64+
position: absolute;
65+
display: block;
66+
overflow: visible;
67+
top: 0;
68+
left: -8vw;
69+
width: 120vw;
70+
height: calc(100% + toRem(234) + toRem(100));
71+
background-image: url('/images/warped-torus-made-of-segments.png');
72+
background-size: toRem(2040);
73+
background-origin: border-box;
74+
background-position: center 64%;
75+
background-repeat: no-repeat;
76+
@include gridMaxMQ {
77+
height: calc(100% + toRem(355));
78+
}
79+
80+
@include medium {
81+
height: calc(100% + toRem(425));
82+
}
83+
@include customMaxMQ(toRem(983)) {
84+
background-position: center bottom;
85+
86+
}
87+
@include small {
88+
height: calc(100% + toRem(234));
89+
}
90+
@include tiny {
91+
background-size: 820px;
92+
height: calc(100% + toRem(234));
93+
top: unset;
94+
bottom: -15%;
95+
}
96+
}
6197
}
6298
6399
.back-home-button {
@@ -88,4 +124,11 @@ const content = computed(() => {
88124
}
89125
}
90126
}
127+
128+
// //////////////////////////////////////////////////////////////////// Sections
129+
#section-signup {
130+
width: 100%;
131+
132+
}
133+
91134
</style>

0 commit comments

Comments
 (0)