Skip to content

Commit

Permalink
Added parallax
Browse files Browse the repository at this point in the history
  • Loading branch information
DomBennett committed May 29, 2015
1 parent 6fb5992 commit 00c6d6c
Show file tree
Hide file tree
Showing 13 changed files with 106 additions and 98 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Site details
title: Computational Guides for Ecologists
acronym: CGE
title: Field Guides for Ecologists
acronym: FGE
email: [email protected]
description: >
Guides maintained by BES-QSIG. Site generated by Jekyll and hosted by GitHub.
Expand Down
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
<link rel="icon" type="image/x-icon" href="{{ "/favicon.ico" | prepend: site.baseurl }}">
<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="js/jquery.stellar.min.js"></script>
</head>
58 changes: 40 additions & 18 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,46 @@
<header class="site-header" style="height: 50px; background-image: url({{ site.cover | prepend: site.baseurl }})">
<header>
<div class="site-header" data-stellar-background-ratio="0.1"
style="background-image: url({{ site.cover | prepend: site.baseurl }})">

<div class="wrapper">
<div class='site-title' data-stellar-ratio='0.25'>
<h1>
Field Guides for Ecologists
</h1>
Crowd-sourced notes on all things computational and quantitative in ecological research
</div>
</div>
</header>

<script>
$.stellar({
horizontalScrolling: false,
responsive: true,
positionProperty: 'transform'
});
</script>

<div class="site-nav-bar">

<nav class="site-nav">
<a href="#" class="menu-icon">
<svg viewBox="0 0 18 15">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</a>
<a href="#" class="menu-icon">
<svg viewBox="0 0 18 15">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</a>

<div class="trigger">
{% for page in site.menu %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
{% endfor %}
<a class="page-link" href="https://github.com/BES-QSIG">GitHub</a>
</div>
<div class="trigger">
{% for page in site.menu %}
<a class="page-link"
href="{{ page.url | prepend: site.baseurl }}">
{{ page.title }}
</a>
{% endfor %}
<a class="page-link" href="https://github.com/BES-QSIG">
GitHub
</a>
</div>
</nav>

</div>

</header>
</div>
18 changes: 18 additions & 0 deletions _includes/top.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<label class="menu" for="_1">
<span class="genericon genericon-menu"></span>
</label>
<input id="_1" type="checkbox">
<div class="menu-content">
<p class="menu-title">{{ site.title }}<p>
<div class="menu" style="background-color: #1a1a1a; z-index: -1;"></div>
{% for item in site.menu %}
<a href="{{ item.url }}">{{ item.title }}</a>
{% endfor %}
<hr>
{% for social in site.social %}<a href="{{ social.url }}" class="social-links-menu" target="_blank" title="{{ social.desc }}"><span class="genericon genericon-{{ social.icon }}"></span></a>{% endfor %}
</div>
<div class="social-links" data-stellar-ratio="0.1">
{% for social in site.social %}
<a href="{{ social.url }}" target="_blank" title="{{ social.desc }}"><span class="genericon genericon-{{ social.icon }}"></span></a>
{% endfor %}
</div>
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>
</div>

{% include footer.html %}
<!--{% include footer.html %}-->

</body>

Expand Down
2 changes: 2 additions & 0 deletions _layouts/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ <h1 class="doc-title">{{ page.title }}</h1>

{% include docs_sidebar.html %}

</div>

</section>
42 changes: 0 additions & 42 deletions _layouts/home.html

This file was deleted.

37 changes: 23 additions & 14 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,37 @@
*/
.site-header {
border-top: 3px solid $grey-color-dark;
min-height: 56px;
border-bottom: 1px solid $grey-color-dark;
// Positioning context for the mobile navigation icon
position: relative;
background-attachment: fixed;
height: 450px;
}

.site-title {
font-size: 40px;
line-height: 300px;
color: $front-color;
text-align: center;
letter-spacing: -1px;
margin-bottom: 0;
&,
&:visited {
color: $front-color;
}
margin-top: 200px;
}

.title-bar {
color: $front-color;
width: 50%;
size: 8;
align: center;
}

.site-nav-bar {
position: fixed;
background-color: $grey-color-dark;
text-align: center;
bottom: 0;
left: 0;
z-index: 9999;
width: 100%;
height: 40px;
}

.site-nav {
float: center;
line-height: 56px;

.menu-icon {
display: none;
Expand Down Expand Up @@ -83,8 +94,6 @@
}
}



/**
* Site footer
*/
Expand Down
1 change: 0 additions & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ $grey-color-dark: darken($grey-color, 25%);

// Width of the content area
$content-width: 960px;

$on-palm: 600px;
$on-laptop: 800px;

Expand Down
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: default
---

<div class="grid">
<div class="unit whole">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

</p>
</div>
</div>
20 changes: 0 additions & 20 deletions index.md

This file was deleted.

4 changes: 4 additions & 0 deletions js/jquery-2.1.0.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 00c6d6c

Please sign in to comment.