Skip to content

Commit

Permalink
🎨 blue & hero
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed May 22, 2017
1 parent 327a9c6 commit d328c3a
Show file tree
Hide file tree
Showing 12 changed files with 130 additions and 56 deletions.
4 changes: 2 additions & 2 deletions .tm_properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
softTabs = true
tabSize = 2
excludeInFileChooser = "{$exclude,build,components,bower_components,node_modules}"
excludeInFolderSearch = "{$exclude,build,components,bower_components,node_modules}"
excludeInFileChooser = "{$exclude,build,bower_components,node_modules}"
excludeInFolderSearch = "{$exclude,build,bower_components,node_modules}"
2 changes: 1 addition & 1 deletion content/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ is_homepage: true

{{! ----------------------------------------------------------------- }}

<h3>Install</h3>
<h2>Install</h2>

{{! ----------------------------------------------------------------- }}

Expand Down
11 changes: 2 additions & 9 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ html { font-size: 17px; }
html.export { font-size: 15px; }

a {
color: #6A6;
color: #19F;
text-decoration: none;
}

a:hover {
color: #E90;
color: #C25;
}

h1, h2, h3 {
Expand Down Expand Up @@ -85,13 +85,6 @@ tr:nth-child(2) td {
position: relative; /* for page-nav */
}

/* ---- content ---- */

.container {
max-width: 1000px;
padding: 0 10px;
}

/* ---- page-title ---- */

.page-title {
Expand Down
20 changes: 20 additions & 0 deletions data/licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"developer": {
"title": "Developer",
"for": "1 developer",
"price": "25",
"gumroadSlug": "episcroll-dev"
},
"team": {
"title": "Team",
"for": "up to 8 developers",
"price": "110",
"gumroadSlug": "episcroll-team"
},
"organization": {
"title": "Organization",
"for": "Unlimited developers",
"price": "320",
"gumroadSlug": "episcroll-org"
}
}
12 changes: 12 additions & 0 deletions modules/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"browser": true,
"unused": true,
"undef": true,
"globals": {
"filterBind": false,
"Episcroll": false,
"EpiscrollDocs": true,
"matchesSelector": false,
"utils": true
}
}
26 changes: 26 additions & 0 deletions modules/container/container.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* container
------------------------- */

.container {
padding-left: 10px;
padding-right: 10px;
max-width: 1500px;
}

.container > * {
max-width: 900px;
}

.container .duo.example {
max-width: none;
}

/* desktop */
@media screen and ( min-width: 960px ) {

.container {
padding-left: 200px;
padding-right: 20px;
}

}
20 changes: 20 additions & 0 deletions modules/hero/hero.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* hero
------------------------- */

.hero {
padding: 40px 0;
background: #19F;
color: white;
}

.hero__title {
font-size: 8.0rem;
margin: 0;
line-height: 1;
}

.hero__tagline {
font-size: 2.0rem;
margin: 0;
color: white;
}
6 changes: 6 additions & 0 deletions modules/hero/hero.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="hero">
<div class="container">
<h1 class="hero__title">Episcroll</h1>
<p class="hero__tagline">Infinite scroll, back-button friendly</p>
</div>
</div>
8 changes: 5 additions & 3 deletions modules/page-nav/page-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
@media screen and ( min-width: 1220px ) {
.page-nav {
position: absolute;
right: 0px;
top: 0px;
left: 0;
top: 0;
width: 200px;
padding-top: 20px;
margin: 0;
padding: 20px;
list-style: none;
}

/* activate sticky */
Expand Down
31 changes: 15 additions & 16 deletions modules/site-nav/site-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,26 @@
------------------------- */

.site-nav {
background: #8C8;
}

/* bottom nav */
.main ~ .site-nav {
position: relative;
margin-top: 80px;
z-index: 2; /* on top of page-nav */
}

.site-nav__list {
background: #19F;
list-style: none;
margin: 0;
padding: 0;
}

.site-nav__list:after {
/* clearfix */
.site-nav:after {
content: '';
clear: both;
display: block;
}

/* bottom nav */
.main ~ .site-nav {
position: relative;
margin-top: 80px;
z-index: 2; /* on top of page-nav */
}

.site-nav__item {
width: 33.333%;
float: left;
Expand All @@ -45,7 +43,7 @@
}

.site-nav__item a:hover {
background: #E5A;
background: #C25;
color: white;
}

Expand All @@ -61,8 +59,8 @@
.page--events .site-nav__item--events a,
.page--extras .site-nav__item--extras a,
.page--license .site-nav__item--license a {
background: #ED2;
color: white;
background: #FFF;
color: #19F;
}

/* size at which it can fit */
Expand All @@ -79,7 +77,8 @@
}

.site-nav__item--homepage {
font-size: 26px;
font-size: 1.6rem;
width: 200px;
}

}
44 changes: 20 additions & 24 deletions modules/site-nav/site-nav.hbs
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
<nav class="site-nav">
<div class="container">
<ul class="site-nav__list">
<li class="site-nav__item site-nav__item--homepage">
<a href="{{#if page.is_404}}/{{/if}}.">Episcroll</a>
</li>
<li class="site-nav__item site-nav__item--options">
<a href="{{#if page.is_404}}/{{/if}}options.html">Options</a>
</li>
<li class="site-nav__item site-nav__item--api">
<a href="{{#if page.is_404}}/{{/if}}api.html">API</a>
</li>
<li class="site-nav__item site-nav__item--events">
<a href="{{#if page.is_404}}/{{/if}}events.html">Events</a>
</li>
<li class="site-nav__item site-nav__item--extras">
<a href="{{#if page.is_404}}/{{/if}}extras.html">Extras</a>
</li>
<li class="site-nav__item site-nav__item--license">
<a href="license.html">License</a>
</li>
</ul>
</div>
</nav>
<ol class="site-nav">
<li class="site-nav__item site-nav__item--homepage">
<a href="{{#if page.is_404}}/{{/if}}.">Episcroll</a>
</li>
<li class="site-nav__item site-nav__item--options">
<a href="{{#if page.is_404}}/{{/if}}options.html">Options</a>
</li>
<li class="site-nav__item site-nav__item--api">
<a href="{{#if page.is_404}}/{{/if}}api.html">API</a>
</li>
<li class="site-nav__item site-nav__item--events">
<a href="{{#if page.is_404}}/{{/if}}events.html">Events</a>
</li>
<li class="site-nav__item site-nav__item--extras">
<a href="{{#if page.is_404}}/{{/if}}extras.html">Extras</a>
</li>
<li class="site-nav__item site-nav__item--license">
<a href="license.html">License</a>
</li>
</ol>
2 changes: 1 addition & 1 deletion templates/page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{> site-nav}}

{{#if page.is_homepage}}
{{!> hero-carousel}}
{{> hero}}
{{/if}}

<div class="main">
Expand Down

0 comments on commit d328c3a

Please sign in to comment.