From 7aed274e63bbe8779782119b2b628db25a1c70a0 Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Sat, 13 May 2017 02:04:43 +0200 Subject: [PATCH] Video support and CSS improvements Fix #1 --- socialdragon/templates/index.html | 123 +++++++++++++++++++----------- 1 file changed, 78 insertions(+), 45 deletions(-) diff --git a/socialdragon/templates/index.html b/socialdragon/templates/index.html index 9efb9e7..ad8575d 100755 --- a/socialdragon/templates/index.html +++ b/socialdragon/templates/index.html @@ -13,13 +13,11 @@ font-family: Roboto, "Lucida Sans Unicode", "Lucida Grande", sans-serif; color: #FFF; text-transform: uppercase; - - background: url('/static/img/bg.gif') 50% 0 no-repeat fixed; - -webkit-background-size: cover; - -moz-background-size: cover; - -o-background-size: cover; - background-size: cover; - + background: url('/static/img/hirsch_big.png') 50% 0 no-repeat fixed; + background-color: #000; + background-size: 20% auto; + background-position: 1em center; + cursor: none; } #left { /*min-width:40%;*/ @@ -41,10 +39,22 @@ #image { vertical-align: middle; margin-top: 0; - max-width: 100%; + width: 100%; overflow: hidden; height: 100%; } + #snapwall_image { + object-fit: contain; + object-position: 50% 50%; + height: 100vh; + width: 100vw; + } + #snapwall_video { + object-fit: contain; + object-position: 50% 50%; + height: 100vh; + width: 100vw; + } h1 { font-size: 60px; } @@ -60,12 +70,14 @@
- + +
- -