Skip to content

Commit d9fc006

Browse files
committed
Add t-shirt banner
1 parent 80aae15 commit d9fc006

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

sass/custom/_paulus.scss

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
}
1919

2020
.material-card {
21-
// display: inline-block;
2221
background-color: #fefefe;
2322
border-radius: 2px;
2423
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 1px 5px 0 rgba(0,0,0,0.12),0 3px 1px -2px rgba(0,0,0,0.2);
@@ -77,6 +76,33 @@
7776
}
7877
}
7978

79+
.shirt-promo {
80+
display: block;
81+
padding-top: 30%;
82+
background-image: url(/images/merchandise/shirt-frontpage.png);
83+
background-size: cover;
84+
background-position: center;
85+
text-decoration: none;
86+
87+
.caption {
88+
padding: 16px 12px 12px;
89+
background-color: rgba(0, 0, 0, .54);
90+
color: white;
91+
border-bottom-left-radius: 2px;
92+
border-bottom-right-radius: 2px;
93+
94+
.title {
95+
font-size: 20px;
96+
font-weight: 400;
97+
}
98+
99+
.subtitle {
100+
font-size: 12px;
101+
font-weight: initial;
102+
}
103+
}
104+
}
105+
80106
.supported-brands {
81107
text-align: center;
82108

102 KB
Loading

source/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ <h1>Recent Blog Posts</h1>
4747
</li>
4848
{% endfor %}
4949
</div>
50+
51+
<a class='material-card shirt-promo' href='/blog/2017/02/22/home-assistant-tshirts-have-arrived/'>
52+
<div class='caption'>
53+
<div class='title'>
54+
Join the Home Assistant t-shirt revolution!
55+
</div>
56+
<div class='subtitle'>
57+
All proceeds will be donated to the Electronic Frontier Foundation.
58+
</div>
59+
</div>
60+
</a>
5061
</div>
5162
</div>
5263

0 commit comments

Comments
 (0)