Skip to content

Commit 319694f

Browse files
authored
Merge pull request #80 from adelasofia/develop
Added homepage down arrow
2 parents 17a252a + d8d494c commit 319694f

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

_includes/homepage-hero-band.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
<div class="grid-wrapper component homepage-hero-band">
1+
<div class="grid-wrapper homepage-hero-band">
22
<div class="grid__item width-12-12">
33
<div class="home-hero">
44
<h1 class="styled-logo">Quarkus</h1>
55
<h2>Supersonic Subatomic Java</h2>
66
<p>A Kubernetes Native Java stack tailored for GraalVM & OpenJDK HotSpot, crafted from the best of breed Java libraries and standards</p>
77
<a href="{{site.baseurl}}/get-started/" class="button-cta secondary">Get Started</a>
8+
<a href="#" class="scroll-down" address="true"></a>
89
</div>
910
</div>
1011
</div>

_layouts/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
4040
<script type="text/javascript" src="{{ '/assets/javascript/mobile-nav.js' | relative_url }}"></script>
41+
<script type="text/javascript" src="{{ '/assets/javascript/scroll-down.js' | relative_url }}"></script>
4142
<script type="text/javascript">
4243
if (("undefined" !== typeof _satellite) && ("function" === typeof _satellite.pageBottom)) {
4344
_satellite.pageBottom();

_sass/includes/homepage-hero-band.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.homepage-hero-band {
2+
padding-bottom: 6rem;
23

34
.home-hero {
45
text-align: center;
@@ -13,4 +14,24 @@
1314
margin: 1rem auto 3rem auto;
1415
}
1516
}
17+
.scroll-down {
18+
margin: 3rem auto 0 auto;
19+
display: block;
20+
width: 32px;
21+
height: 32px;
22+
-webkit-transition: all .2s ease-in;
23+
transition: all .2s ease-in;
24+
transform: scale(1);
25+
26+
&:before {
27+
transform: rotate(-45deg);
28+
display: block;
29+
width: 25px;
30+
height: 25px;
31+
content: "";
32+
border: 2px solid white;
33+
border-width: 0px 0 2px 2px;
34+
}
35+
}
36+
1637
}

assets/javascript/scroll-down.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function scrollDown() {
2+
$('.scroll-down').click (function() {
3+
$('html, body').animate({scrollTop: $('.homepage-highlights-band').offset().top }, 'slow');
4+
return false;
5+
});
6+
}
7+
8+
if(document.querySelector(".scroll-down")){
9+
scrollDown();
10+
}

0 commit comments

Comments
 (0)