From 6844a47bf5704b880325adff17dc1411b7e0ac77 Mon Sep 17 00:00:00 2001 From: Jack Morgan Date: Mon, 13 Jul 2015 17:02:22 +1200 Subject: [PATCH] Added display page for large screens This page is designed for large screens, and most importantly, the 3x3 screen setup in NZi3. This page shows: - Upcoming events (page refreshes every 5 minutes to get next events) - Update Twitter feed - #CS4HSchch Twitter feed - Sponsor logos It would be nice to center the sponsor logos in the slideshow, however this may require rewriting the slideshow code. --- css/display.css | 50 +++++++++++ display.html | 170 +++++++++++++++++++++++++++++++++++++ js/responsiveslides.min.js | 8 ++ 3 files changed, 228 insertions(+) create mode 100644 css/display.css create mode 100644 display.html create mode 100644 js/responsiveslides.min.js diff --git a/css/display.css b/css/display.css new file mode 100644 index 0000000..5897965 --- /dev/null +++ b/css/display.css @@ -0,0 +1,50 @@ +#row-content{ + padding-top: 5rem; +} +.row { + max-width: 100%; +} +.tab-bar { + visibility: visible; + height: 5rem; +} +.tab-bar h1 { + font-size: 5rem; + line-height: 5rem; +} +.event-day { + padding-top: 0px; +} +#sponsor-slideshow { + height: 10rem; +} +.rslides { + position: relative; + list-style: none; + overflow: hidden; + width: 100%; + padding: 0; + margin: 0; +} + +.rslides li { + -webkit-backface-visibility: hidden; + position: absolute; + display: none; + width: 100%; + height: 100%; + left: 0; + top: 0; +} + +.rslides li:first-child { + position: relative; + display: block; + float: left; +} + +.rslides img { + height: auto; + width: auto; + border: 0; +} diff --git a/display.html b/display.html new file mode 100644 index 0000000..f54d736 --- /dev/null +++ b/display.html @@ -0,0 +1,170 @@ +{% extends 'layout.html' %} + +{% block title %}CS4HS Christchurch 2015{% endblock %} + +{% block head %} + {{ super() }} + + + +{% endblock head %} + +{% block body %} + +
+
+

Sponsors

+ + +

Updates

+ +
+
+ {% raw %} +
+ +
+ {% endraw %} +
+

Loading events...

+
+
+ +
+

#CS4HSchch

+ +
+
+{% endblock body %} + +{% block scripts %} + + + + + + + + + + + + +{% endblock scripts %} diff --git a/js/responsiveslides.min.js b/js/responsiveslides.min.js new file mode 100644 index 0000000..21d4832 --- /dev/null +++ b/js/responsiveslides.min.js @@ -0,0 +1,8 @@ +/*! http://responsiveslides.com v1.54 by @viljamis */ +(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on", +w=d+"_s",k=c("