Skip to content

Commit 740d3ec

Browse files
author
Matthieu Oger
committed
Tutorial: add promotion header.
1 parent 1575f82 commit 740d3ec

File tree

4 files changed

+54
-1
lines changed

4 files changed

+54
-1
lines changed

_includes/promotion-header.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% if page.show_promotion != nil %}
2+
3+
<!-- Steredenn -->
4+
{% if page.show_promotion == 'steredenn' %}
5+
<div class="promotion-header">
6+
Our game — <a href="http://steredenn.pixelnest.io/">Steredenn</a> — is on <a href="http://steredenn-greenlight.pixelnest.io">Steam Greenlight. <em>Help us with your vote!</em></a>
7+
</div>
8+
{% endif %}
9+
10+
{% endif %}

_layouts/tutorial.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
</head>
88
<body>
99
<div class="page tutorial" id="page">
10+
<!-- start promotion header -->
11+
{% include promotion-header.html %}
12+
<!-- end promotion header -->
13+
1014
<!-- reduced header -->
1115
<header class="page-header">
1216
<nav>
@@ -117,7 +121,6 @@ <h3 class="entry__subtitle">
117121
<!-- start promotion -->
118122
{% include promotion.html %}
119123
<!-- end promotion -->
120-
121124
</div>
122125

123126
<!-- reduced footer -->

_sources/promotion.scss

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
// -------------------------------------------------------
2+
// Promotion header.
3+
// -------------------------------------------------------
4+
5+
.promotion-header {
6+
min-height: 23px;
7+
padding: 12px 10px 15px 10px;
8+
background: $brand1-color;
9+
10+
color: white;
11+
font-size: 0.8em;
12+
text-align: center;
13+
14+
a {
15+
color: white;
16+
text-decoration: none;
17+
border-bottom: 1px dotted white;
18+
19+
&:hover {
20+
border-bottom-style: solid;
21+
}
22+
}
23+
}
24+
125
// -------------------------------------------------------
226
// Promotion.
327
// -------------------------------------------------------
@@ -23,6 +47,7 @@ $promotion-margin-top: 60px;
2347

2448
img {
2549
width: 700px;
50+
max-width: 100%;
2651
opacity: 0.8;
2752

2853
@include transition(opacity, 300ms, ease-out);

static/css/pixelnest.css

+15
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,20 @@ li {
784784
margin-top: 20px;
785785
text-align: center; }
786786

787+
.promotion-header {
788+
min-height: 23px;
789+
padding: 12px 10px 15px 10px;
790+
background: #00a9e0;
791+
color: white;
792+
font-size: 0.8em;
793+
text-align: center; }
794+
.promotion-header a {
795+
color: white;
796+
text-decoration: none;
797+
border-bottom: 1px dotted white; }
798+
.promotion-header a:hover {
799+
border-bottom-style: solid; }
800+
787801
.promotion {
788802
margin-top: 60px;
789803
padding: 15px;
@@ -798,6 +812,7 @@ li {
798812
margin-top: 60px; }
799813
.promotion-image img {
800814
width: 700px;
815+
max-width: 100%;
801816
opacity: 0.8;
802817
-webkit-transition: opacity 300ms ease-out;
803818
-moz-transition: opacity 300ms ease-out;

0 commit comments

Comments
 (0)