From 853c78230ed1ab143e48718ce7f65e256b53416f Mon Sep 17 00:00:00 2001 From: Marc Altmann Date: Thu, 22 Oct 2015 23:40:42 +0200 Subject: [PATCH] Replace USP blue box with Startnext widget on welcome page --- .../stylesheets/controller/welcome.scss | 29 +++++++++++++++++++ app/views/welcome/_startnext_widget.html.slim | 3 ++ app/views/welcome/index.html.slim | 4 +-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 app/views/welcome/_startnext_widget.html.slim diff --git a/app/assets/stylesheets/controller/welcome.scss b/app/assets/stylesheets/controller/welcome.scss index 1aab913ed9..4981323c05 100644 --- a/app/assets/stylesheets/controller/welcome.scss +++ b/app/assets/stylesheets/controller/welcome.scss @@ -151,6 +151,20 @@ } +// Startnext widget +.startnext_widget { margin-bottom: 1em; } +.startnext_widget-inner { + @include whitebox; + background-color: $secondary-color; + padding: 0; + height: 410px; + + iframe { + display: block; + margin: 50px auto 0; + } +} + // USP teaser #usp { margin-bottom: 1em; } @@ -449,6 +463,11 @@ @include omega; } + .startnext_widget { + @include span(2 of 4); + @include omega; + } + // Filters teaser .teaser--filters { @@ -535,6 +554,11 @@ @include omega; } + .startnext_widget { + @include span(2 of 6); + @include omega; + } + // Filters teaser .teaser--filters { @@ -612,6 +636,11 @@ @include omega; } + .startnext_widget { + @include span(2 of 8); + @include omega; + } + // Filters teaser .teaser--filters { @include span(2 of 8); diff --git a/app/views/welcome/_startnext_widget.html.slim b/app/views/welcome/_startnext_widget.html.slim new file mode 100644 index 0000000000..bd29353f40 --- /dev/null +++ b/app/views/welcome/_startnext_widget.html.slim @@ -0,0 +1,3 @@ +.startnext_widget + .startnext_widget-inner + iframe height="300" frameborder="0" width="200" scrolling="no" allowtransparency="true" style="height:300px;width:200px;"src="https://www.startnext.com/fairmondo-spiel/widget/?w=200&h=300&l=de" diff --git a/app/views/welcome/index.html.slim b/app/views/welcome/index.html.slim index 22434b43bd..30aff3780e 100644 --- a/app/views/welcome/index.html.slim +++ b/app/views/welcome/index.html.slim @@ -30,8 +30,8 @@ - cache 'billboards' do = render 'billboards' -- cache 'usp_teaser' do - = render 'usp_teaser' +- cache 'startnext_widget' do + = render 'startnext_widget' - cache 'filter_boxes' do = render 'filter_boxes'