diff --git a/content/robotics/2014/_index.md b/content/robotics/2014.md similarity index 100% rename from content/robotics/2014/_index.md rename to content/robotics/2014.md diff --git a/content/robotics/2015/_index.md b/content/robotics/2015/_index.md index 4c292d0..4b9f0d0 100644 --- a/content/robotics/2015/_index.md +++ b/content/robotics/2015/_index.md @@ -13,3 +13,5 @@ As was announced at kickstart, the game for this year is a take on the classic g The 'flags' are 25 centimetres cubes of wood on caster wheels weighing roughly 2 kilograms. The rules prevent us from lifting them, so the idea is to drag them around! To see a copy of the rules from the competition, [Click Here](https://www.studentrobotics.org/resources/2015/rulebook.pdf)! + +{{% youtube egV3PY1qaSM %}} diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html new file mode 100644 index 0000000..54b189f --- /dev/null +++ b/layouts/shortcodes/youtube.html @@ -0,0 +1,4 @@ +
+ diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index fdacfbb..0d52552 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -78,3 +78,27 @@ blockquote p { .dropotron.level-0 { margin-top: 0.1em; } + +#main { + padding: 2em 0; + + & > header { + margin-bottom: 2em; + } +} + +.yt-embed { + position: relative; + padding-bottom: 56.25%; + padding-top: 30px; + height: 0; + overflow: hidden; + + iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } +}