Skip to content

Commit 35f0428

Browse files
committed
Change header and hero styles
1 parent 55bafe0 commit 35f0428

File tree

5 files changed

+48
-16
lines changed

5 files changed

+48
-16
lines changed

css/navbar-fixed-top.css

+19-14
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,21 @@ body {
22
padding-top: 70px;
33
}
44

5+
.navbar-default .navbar-brand {
6+
color: #202020;
7+
}
8+
59
.navbar-fixed-top {
610
padding: 20px 0px;
7-
height: 95px;
11+
height: 90px;
812
border: none;
913
}
1014

15+
.navbar-fixed-top.slim {
16+
padding: 8px 0px;
17+
height: 60px;
18+
}
19+
1120
.nav .active {
1221
background: none;
1322
}
@@ -18,29 +27,25 @@ h1, h2, h3 {
1827
}
1928

2029
.hero {
21-
/* background: #a0a0FF;*/
22-
background: #74b73f;
30+
background: url(img/jean-cocteau-museum-menton.png);
31+
background: #a0a0ff;
2332
color: white;
24-
height: 22em;
33+
padding-top: 15em;
34+
margin-bottom: 1em;
35+
height: 42em;
2536
width: 100%;
2637
}
2738

28-
body.frontpage > .container {
29-
margin-top: -21em;
39+
.hero h1 {
40+
color: white;
41+
font-size: 4em;
42+
text-align: center;
3043
}
3144

3245
body.releases > .container {
3346
margin-top: 3em;
3447
}
3548

36-
.jumbotron {
37-
background: none;
38-
}
39-
40-
.jumbotron h1, .jumbotron h2 {
41-
text-align: center;
42-
}
43-
4449
#footer {
4550
/*background: #f8f8f8;*/
4651
margin-top: 5em;

img/jean-cocteau-museum-menton.png

584 KB
Loading

index.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,22 @@
5656
</div>
5757
</div>
5858

59-
<div class="hero"></div>
59+
<div class="hero">
60+
<h1>Unified Queries for Java.<br/>
61+
Querydsl is compact, safe and easy to learn.<br/>
62+
Try it today!
63+
</h1>
64+
</div>
6065

6166
<div class="container">
6267

63-
<!-- Main component for a primary marketing message or call to action -->
68+
<!--
6469
<div class="jumbotron">
6570
<h1>Querydsl</h1>
6671
<h2>Unified Queries for Java</h2>
6772
<p>Querydsl provides a unified querying layer for multiple backends in Java. Compared to the alternatives Querydsl is more compact, safer and easier to learn. Try it today!</p>
6873
</div>
74+
-->
6975

7076
<div class="some-buttons">
7177
<table>
@@ -224,7 +230,9 @@ <h2>Examples</h2>
224230
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
225231
<script src="js/bootstrap.min.js"></script>
226232
<script src="js/underscore-min.js"></script>
233+
<script src="js/waypoints.min.js"></script>
227234
<script src="js/versions.js"></script>
235+
<script src="js/scroll.js"></script>
228236

229237
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
230238
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>

js/scroll.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
$(document).ready(function() {
2+
$(".hero").waypoint(function(direction) {
3+
if (direction === "down") {
4+
return $(".navbar-fixed-top").addClass("slim");
5+
} else {
6+
return $(".navbar-fixed-top").removeClass("slim");
7+
}
8+
}, {
9+
offset: 55
10+
});
11+
});

js/waypoints.min.js

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)