Skip to content

Commit def32d3

Browse files
committed
updated demo
1 parent 5526cec commit def32d3

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

demo/css/demo.css

+21-3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ a:hover, a:focus {
7777
}
7878
}
7979

80+
81+
/* Lighter background */
82+
.lighter-bg {
83+
background-color: #0f0f11;
84+
}
85+
8086
/* hero block */
8187
.hero {
8288
display: flex;
@@ -95,8 +101,8 @@ a:hover, a:focus {
95101
letter-spacing: -0.01em;
96102
font-weight: 800;
97103
}
98-
.hero.jarallax > .jarallax-img,
99-
.hero.jarallax > .jarallax-container {
104+
.hero.jarallax > .jarallax-img img,
105+
.hero.jarallax > .jarallax-container img {
100106
filter: blur(3px);
101107
}
102108
.hero-name {
@@ -108,6 +114,10 @@ a:hover, a:focus {
108114
margin-bottom: 20px;
109115
text-transform: uppercase;
110116
}
117+
.hero + .demo-gap {
118+
min-height: 230px;
119+
}
120+
111121
.text-center {
112122
text-align: center;
113123
}
@@ -124,13 +134,16 @@ a:hover, a:focus {
124134
flex-wrap: wrap;
125135
justify-content: center;
126136
gap: 10px;
137+
}
138+
* + .buttons {
127139
margin-top: 20px;
128140
}
129141
a.button {
130142
display: inline-block;
131143
text-decoration: none;
132144
font-size: 16px;
133145
font-weight: 500;
146+
text-align: center;
134147
padding: 12px;
135148
border-radius: 4px;
136149
min-width: 200px;
@@ -171,7 +184,6 @@ a.button-outline:focus {
171184

172185
/* Demo Content */
173186
.demo-content {
174-
background-color: #0b0b0b;
175187
padding: 80px;
176188
}
177189

@@ -185,6 +197,12 @@ a.button-outline:focus {
185197
}
186198

187199

200+
/* Footer */
201+
.footer {
202+
text-align: center;
203+
}
204+
205+
188206
/* Mobile */
189207
@media screen and (max-width: 500px) {
190208
.demo-gap,

demo/index.html

+9-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h2>Different parallax speed</h2>
5959
<img class="jarallax-img" src="images/image-3.jpg" alt="" loading="lazy" />
6060
</div>
6161

62-
<div class="demo-content demo-gap">
62+
<div class="demo-gap demo-content lighter-bg">
6363
<div class="container">
6464
<p>
6565
So Give doesn't forth male him. God cattle rule Heaven blessed Beast lesser him so. Fowl
@@ -108,7 +108,14 @@ <h2>Self-Hosted Videos / Youtube / Vimeo</h2>
108108
<img class="jarallax-img" src="video/video.png" alt="" loading="lazy" />
109109
</div>
110110

111-
<div class="demo-gap">
111+
<div class="demo-gap lighter-bg">
112+
<div class="buttons">
113+
<a class="button" href="https://github.com/nk-o/jarallax/blob/master/README.md" target="_blank">Get Started</a>
114+
<a class="button button-outline" href="https://github.com/nk-o/jarallax/" target="_blank">GitHub</a>
115+
</div>
116+
</div>
117+
118+
<div class="demo-gap footer">
112119
<p>Jarallax &copy; 2022 nK</p>
113120
<small>
114121
All images taken from <a href="https://unsplash.com/">https://unsplash.com/</a>

0 commit comments

Comments
 (0)