Skip to content

Commit 22be10d

Browse files
add trending vertical video button styles and html example on story page deck
1 parent befed6d commit 22be10d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

layouts/shortcodes/header.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{{- $class := .Get "class" }}
22
<header class="header {{$class}}">
3+
<div>
4+
<a class="button vertical-video">
5+
<svg viewBox="0 0 512 512" height="15"><path d="M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z" fill="white"/></svg>
6+
<span>Trending Videos</span>
7+
</a>
8+
</div>
39
<a class="kicker" href="#">Section</a>
410
<h1 class="h1">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce tempus lorem amet.</h1>
511
<div class="author-byline">

static/css/atoms.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,17 @@ hr {
262262
border: none;
263263
}
264264

265+
.button.vertical-video {
266+
--button-background-color: #365FCA;
267+
display: inline-flex;
268+
align-items: center;
269+
gap: 8px;
270+
margin: var(--space) 0;
271+
padding: 8px 10px;
272+
font-size: 12px;
273+
text-transform: none;
274+
}
275+
265276
.button > img {
266277
display: block;
267278
}

0 commit comments

Comments
 (0)