diff --git a/_config.yml b/_config.yml index 060a7d8..319b318 100644 --- a/_config.yml +++ b/_config.yml @@ -12,5 +12,6 @@ github_username: jekyll # Layout settings header_type: fixed +post_type: highlight # Build settings markdown: kramdown diff --git a/_includes/highlight_post.html b/_includes/highlight_post.html new file mode 100644 index 0000000..9333b1c --- /dev/null +++ b/_includes/highlight_post.html @@ -0,0 +1,26 @@ +
+ +
+ play_circle_filled +
+ +
+
+

Features

+ Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Nostrud in laboris labore nisi amet do dolor eu fugiat consectetur elit cillum esse. +
+ +
+ + + + +
diff --git a/_layouts/default.html b/_layouts/default.html index ed3dfb6..ee8d852 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,6 +15,9 @@
+ {% if site.post_type == 'highlight' %} + {% include highlight_post.html %} + {% endif %} {{ content }}
{% include footer.html %} diff --git a/_sass/_layout.scss b/_sass/_layout.scss index 53800f5..b43d45e 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -13,3 +13,57 @@ color: #fff; } +.section-highlight { + position: relative; + + .mdl-card__supporting-text { + margin: 40px; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + padding: 0; + color: inherit; + width: calc(100% - 80px); + } + + .mdl-card__actions { + border-top: 1px solid rgba(0, 0, 0, 0.12); + margin: 0; + padding: 4px 40px; + color: inherit; + + a { + color: #00BCD4; + margin: 0; + } + } + + header { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + min-height: 200px; + + .material-icons { + font-size: 3rem; + } + } + + button { + position: absolute; + z-index: 99; + top: 8px; + right: 8px; + } + +}