File tree 4 files changed +63
-24
lines changed
4 files changed +63
-24
lines changed Original file line number Diff line number Diff line change 11
11
import { RV_DMCA_GUID } from ' $env/static/public' ;
12
12
import { onMount } from ' svelte' ;
13
13
14
+ export let showDivider = true ;
15
+
14
16
const aboutQuery = createQuery ([' about' ], queries .about );
15
17
16
18
let location: string ;
22
24
</script >
23
25
24
26
<!-- squiggly divider line -->
25
- <svg
26
- aria-hidden =" true"
27
- width =" 100%"
28
- height =" 8"
29
- fill =" none"
30
- xmlns =" http://www.w3.org/2000/svg"
31
- in:fly ={{ y : 10 , easing : quintOut , duration : 750 }}
32
- >
33
- <pattern id =" a" width =" 91" height =" 8" patternUnits =" userSpaceOnUse" >
34
- <path
35
- d =" M114 4c-5.067 4.667-10.133 4.667-15.2 0S88.667-.667 83.6 4 73.467 8.667 68.4 4 58.267-.667 53.2 4 43.067 8.667 38 4 27.867-.667 22.8 4 12.667 8.667 7.6 4-2.533-.667-7.6 4s-10.133 4.667-15.2 0S-32.933-.667-38 4s-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0"
36
- stroke-linecap =" square"
37
- />
38
- </pattern >
39
- <rect width =" 100%" height =" 100%" fill =" url(#a)" />
40
- </svg >
27
+ {#if showDivider }
28
+ <svg
29
+ aria-hidden =" true"
30
+ width =" 100%"
31
+ height =" 8"
32
+ fill =" none"
33
+ xmlns =" http://www.w3.org/2000/svg"
34
+ in:fly ={{ y : 10 , easing : quintOut , duration : 750 }}
35
+ >
36
+ <pattern id =" a" width =" 91" height =" 8" patternUnits =" userSpaceOnUse" >
37
+ <path
38
+ d =" M114 4c-5.067 4.667-10.133 4.667-15.2 0S88.667-.667 83.6 4 73.467 8.667 68.4 4 58.267-.667 53.2 4 43.067 8.667 38 4 27.867-.667 22.8 4 12.667 8.667 7.6 4-2.533-.667-7.6 4s-10.133 4.667-15.2 0S-32.933-.667-38 4s-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0-10.133-4.667-15.2 0-10.133 4.667-15.2 0"
39
+ stroke-linecap =" square"
40
+ />
41
+ </pattern >
42
+ <rect width =" 100%" height =" 100%" fill =" url(#a)" />
43
+ </svg >
44
+ {/if }
41
45
<footer in:fly ={{ y : 10 , easing : quintOut , duration : 750 }}>
42
46
<div class =" footer-top" >
43
47
<section class =" main-content" >
Original file line number Diff line number Diff line change 27
27
}
28
28
@media (max-width : 1700px ) {
29
29
.hero-img {
30
- position : fixed ;
30
+ position : absolute ;
31
31
height : 100vh ;
32
32
top : 115px ;
33
33
right : 6rem ;
Original file line number Diff line number Diff line change 4
4
5
5
<style >
6
6
svg {
7
- position : fixed ;
7
+ position : absolute ;
8
8
z-index : -999 ;
9
9
bottom : 0 ;
10
10
height : 35vh ;
Original file line number Diff line number Diff line change 3
3
import Home from ' $layout/Hero/HeroSection.svelte' ;
4
4
import SocialHost from ' $layout/Hero/SocialHost.svelte' ;
5
5
import Wave from ' $lib/components/Wave.svelte' ;
6
+ import Footer from ' $layout/Footer/FooterHost.svelte' ;
6
7
import Head from ' $lib/components/Head.svelte' ;
8
+
9
+ let scrollY = 0 ;
10
+ let footerVisible = false ;
11
+
12
+ $: footerVisible = scrollY >= 10 ;
7
13
</script >
8
14
15
+ <svelte:window bind:scrollY />
16
+
9
17
<Head
10
18
schemas ={[
11
19
{
117
125
]}
118
126
/>
119
127
120
- <main >
128
+ <main style ={ footerVisible ? ' ' : ` height: 100vh; ` } class:hidden ={ footerVisible } >
121
129
<div class =" wrap" >
122
130
<div class =" wrappezoid" >
123
131
<Home />
124
132
<div id =" heroimg" ><HeroImage /></div >
125
133
</div >
126
134
</div >
127
- <SocialHost />
135
+ <div class ="hide-on-scroll" class:hidden ={footerVisible }>
136
+ <Wave />
137
+ <SocialHost />
138
+ </div >
128
139
</main >
129
- <Wave />
140
+ <div class =" footer" >
141
+ <Footer showDivider ={footerVisible ? true : false } />
142
+ </div >
130
143
131
- <style >
144
+ <style lang =" scss" >
145
+ .hide-on-scroll {
146
+ transition : opacity 0.5s var (--bezier-one );
147
+ z-index : -999 ;
148
+
149
+ & .hidden {
150
+ height : 0 ;
151
+ opacity : 0 ;
152
+ }
153
+ }
132
154
main {
133
155
display : flex ;
134
156
flex-direction : column ;
135
157
gap : 1.5rem ;
158
+ margin-bottom : 3rem ;
159
+ transition :
160
+ gap 0.5s var (--bezier-one ),
161
+ margin-bottom 0.5s var (--bezier-one );
162
+
163
+ & .hidden {
164
+ gap : 0rem ;
165
+ margin-bottom : 0rem ;
166
+ }
136
167
}
137
168
.wrap {
138
169
margin-inline : auto ;
142
173
.wrappezoid {
143
174
height : calc (100vh - 225px );
144
175
display : flex ;
145
- flex-direction : row ;
146
176
justify-content : center ;
147
- gap : 22rem ;
148
177
align-items : center ;
178
+ gap : 22rem ;
149
179
}
180
+
181
+ .footer {
182
+ background-color : var (--background-one );
183
+ }
184
+
150
185
@media (max-width : 1700px ) {
151
186
.wrappezoid {
152
187
justify-content : space-between ;
You can’t perform that action at this time.
0 commit comments