diff --git a/config.rb b/config.rb index 0f2ff6f..df45187 100644 --- a/config.rb +++ b/config.rb @@ -49,6 +49,11 @@ after_configuration do sprockets.append_path File.join "#{root}", @bower_config["directory"] end +#video pages +data.video.keys.each do |vdo| + proxy "video/#{vdo}.html", 'video/template.html', locals: {video: data.video[vdo]}, ignore: true +end + # Build-specific configuration configure :build do # For example, change the Compass output style for deployment diff --git a/data/video.yml b/data/video.yml index cae145a..904152b 100644 --- a/data/video.yml +++ b/data/video.yml @@ -1,5 +1,5 @@ --- -demo: +index: file: "reel2011.mp4" title: "2011 Demo Reel" width: "960" diff --git a/source/assets/css/all.scss b/source/assets/css/all.scss index 65cef3e..e1f695e 100644 --- a/source/assets/css/all.scss +++ b/source/assets/css/all.scss @@ -10,6 +10,10 @@ body { font-size: 16px; } +.spacer-20 { margin: 20px 0 0 0; } +.spacer-50 { margin: 50px 0 0 0; } +.spacer-100{ margin: 100px 0 0 0; } + header{ background: $dark; // url(/assets/img/bg/congruent_outline.png); color: $offwhite; @@ -63,10 +67,15 @@ header a:hover { color: $accent_color; } -.poster img { +.player { width: 100%; + margin: 50px 0; } +.poster img { + width: 100%; + padding: 0 auto; +} .side-links { font-family: $accent_font; diff --git a/source/index.haml b/source/index.haml index 8a13858..933e44a 100644 --- a/source/index.haml +++ b/source/index.haml @@ -2,7 +2,7 @@ title: A Fresh Start poster: /assets/img/star_nasa.jpg --- - +.spacer-100 .row .col-sm-12 - + A new thing diff --git a/source/layouts/layout.html.haml b/source/layouts/layout.html.haml index 11dbaa2..ae3ea1d 100644 --- a/source/layouts/layout.html.haml +++ b/source/layouts/layout.html.haml @@ -23,5 +23,6 @@ = tag :img, src: current_page.data.poster .container = yield + .spacer-50 = javascript_include_tag "app" diff --git a/source/shared/_header.haml b/source/shared/_header.haml index bc2f20b..5ee5cc9 100644 --- a/source/shared/_header.haml +++ b/source/shared/_header.haml @@ -8,9 +8,9 @@ %a{href: '/'} home %li - %a{href: "video"} video + %a{href: "/video"} video %li - %a{href: "contact"} contact + %a{href: "/contact"} contact %ul.social :ruby