Skip to content

Commit 3b2f745

Browse files
committed
Add friends section
1 parent b58edb2 commit 3b2f745

File tree

3 files changed

+79
-1
lines changed

3 files changed

+79
-1
lines changed

_sass/minima/_base.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ body {
3030

3131

3232

33+
/**
34+
* Set heading font style
35+
*/
36+
h1, h2, h3, h4, h5, h6 {
37+
font-family: "Londrina Solid", sans-serif;
38+
}
39+
40+
41+
3342
/**
3443
* Set `margin-bottom` to maintain vertical rhythm
3544
*/

_sass/minima/_layout.scss

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
transition: border 1s;
6363

6464
&.sticky {
65-
position: fixed;
65+
position: sticky;
6666
top: 0;
6767
width: 100%;
6868

@@ -282,6 +282,34 @@ hr {
282282

283283

284284

285+
/**
286+
* Friends Section
287+
*/
288+
.friends {
289+
.friends-row {
290+
text-align: center;
291+
292+
.friends-member {
293+
display: inline-block;
294+
margin: 0 20px 8px 20px;
295+
296+
a {
297+
text-decoration: none;
298+
}
299+
300+
img {
301+
display: block;
302+
margin: 16px 0;
303+
width: 96px;
304+
height: 96px;
305+
border-radius: 50%;
306+
}
307+
}
308+
}
309+
}
310+
311+
312+
285313
/**
286314
* Posts
287315
*/

index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,44 @@ <h2>Family</h2>
5757
</div>
5858

5959
<hr>
60+
61+
<div class="friends">
62+
<h2>Friends</h2>
63+
64+
<div class="friends-row gold">
65+
<div class="friends-member">
66+
<a href="https://twitter.com/random">
67+
<img src="https://placehold.it/333x333" alt="">
68+
<div>Random Company</div>
69+
</a>
70+
</div>
71+
<div class="friends-member">
72+
<a href="https://twitter.com/random">
73+
<img src="https://placehold.it/333x333" alt="">
74+
<div>Random Company</div>
75+
</a>
76+
</div>
77+
<div class="friends-member">
78+
<a href="https://twitter.com/random">
79+
<img src="https://placehold.it/333x333" alt="">
80+
<div>Random Company</div>
81+
</a>
82+
</div>
83+
</div>
84+
<div class="friends-row silver">
85+
<div class="friends-member">
86+
<a href="https://twitter.com/random">
87+
<img src="https://placehold.it/333x333" alt="">
88+
<div>Random Company</div>
89+
</a>
90+
</div>
91+
<div class="friends-member">
92+
<a href="https://twitter.com/random">
93+
<img src="https://placehold.it/333x333" alt="">
94+
<div>Random Company</div>
95+
</a>
96+
</div>
97+
</div>
98+
</div>
99+
100+
<hr>

0 commit comments

Comments
 (0)