Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions _includes/image.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<figure class="media-container">
<img class="media image" src="{{ include.url }}" alt="{{ include.caption }}">
<figcaption class="media-caption">{{ include.caption }}</figcaption>
</figure>
6 changes: 6 additions & 0 deletions _includes/youtube.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<figure class="media-container">
<div class="media video">
<iframe width="532" height="400" src="https://www.youtube.com/embed/{{ include.id }}" frameborder="0" allowfullscreen></iframe>
</div>
<figcaption class="media-caption">{{ include.caption }}</figcaption>
</figure>
4 changes: 2 additions & 2 deletions _posts/2016-04-06-february-lightning-talks.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ In February's lightning talks, Clo tells us about bias and why diversity is impo

Clo delves into the ways that our personal backgrounds influence our view of the world, and explains why it's important to consider all viewpoints.

<div class="video"><iframe width="532" height="400" src="//www.youtube.com/embed/QmAl2cg3C5U" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div>
{% include youtube.html id="QmAl2cg3C5U" %}

---

## Styling in Javascript by Mike James

Mike talks us through a modular, component-based approach to CSS and development, and why new technologies like post-css and react lend themselves so well.

<div class="video"><iframe width="532" height="400" src="//www.youtube.com/embed/DYC9kNPrOwE" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div>
{% include youtube.html id="DYC9kNPrOwE" %}
2 changes: 1 addition & 1 deletion _posts/2016-05-17-screen-saver.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Here’s our setup:

Propsboard hooks into our Slack channels, enabling anyone to give ‘Props’ to slack messages worthy of praise or sharing.

![Screen Saver](/img/posts/2016-05-17-screen-saver/screen.gif)
{% include image.html url="/img/posts/2016-05-17-screen-saver/screen.gif" caption="Our Propsboard dashboard in action" %}

All in all, it’s a great, cheap way to turn screens into useful digital signs, that the whole team can interact with and use to share what’s going on across the office.
2 changes: 1 addition & 1 deletion _sass/components/_clients.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//===============================================================================
// CLIENTS GRID
// CLIENTS
//===============================================================================
.client-container {
padding-bottom: 20px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//===============================================================================
// CALL-TO-ACTION
//===============================================================================
.cta-container {
padding: 65px 20px 30px;
background-color: lighten($ink, 50);
Expand Down
31 changes: 31 additions & 0 deletions _sass/components/_media.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//===============================================================================
// MEDIA
//===============================================================================
.media-container {
padding: 10px 0 0;
}

.media {
position: relative;
margin-left: -30px;

&.video {
padding-bottom: 56.25%; /* 16:9 */
height: 0;
}

iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}

.media-caption {
padding: 5px 0;
font-size: $epsilon;
color: lighten($ink, 20);
text-align: center;
}
16 changes: 1 addition & 15 deletions _sass/pages/_page-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,9 @@
margin-top: 10px;
margin-right: 5px;
}
}

.video {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
margin-bottom: 30px;
height: 0;
}

.video iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}

// Meta
.meta-title {
Expand Down
4 changes: 0 additions & 4 deletions _sass/pages/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,11 @@
&:before {
top: 15px;
transform: rotate(-2deg) scale(1.2);
-ms-transform: rotate(-2deg) scale(1.2);
-webkit-transform: rotate(-2deg) scale(1.2);
}

&:after {
top: -30px;
transform: rotate(-1.4deg) scale(1.2);
-ms-transform: rotate(-1.4deg) scale(1.2);
-webkit-transform: rotate(-1.4deg) scale(1.2);
}

.hero-inner {
Expand Down
3 changes: 2 additions & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
@import "components/_clients";
@import "components/_share";
@import "components/_related";
@import "components/_cta-container";
@import "components/_cta";
@import "components/_media";

// PAGE TEMPLATES
@import "pages/_page-base";
Expand Down