Skip to content

Commit

Permalink
Add Ecobookstore billboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Nov 17, 2014
1 parent ca34864 commit 33bb275
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 28 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/assets/javascripts/visual/slides.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(document).always ->
height: 410
play:
active: false
auto: true
auto: false
interval: 10000
pagination:
active: false
Expand Down
178 changes: 178 additions & 0 deletions app/assets/stylesheets/billboards/_billboard-ecobookstore.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
/**
* Ecobookstore billboard
*/


// General stuff
#billboard-ecobookstore > article h2 {
font-weight: 600;
color: #2b4b5e;
text-transform: none;
text-align: left;
}

#billboard-ecobookstore > article h3 {
text-indent: -1000em;
}

#billboard-ecobookstore > article > a > p {
position: absolute;
font-weight: 600;
color: $white;
}

#billboard-ecobookstore > article > p {
position: absolute;
font-weight: 600;
line-height: 1.2em;
color: $white;
}

#billboard-ecobookstore > article > p > span {
color: #e57a61;
}


// Responsive code: small version
@include till-breakpoint($bp-tablet) {
#billboard-ecobookstore {
background-image: image-url('welcome/billboard_ecobookstore_small.jpg');
}

#billboard-ecobookstore > article h2 {
display: none;
}

#billboard-ecobookstore > article h3 {
@include static-position($top: 335px, $left: 25px, $height: 60px, $width: 175px);
}

#billboard-ecobookstore > article > a > p {
@include static-position($top: 260px, $left: 40px, $height: 25px, $width: 129px);
font-size: 16px;
padding: 4px 0 0 15px;
}

#billboard-ecobookstore > article > p:nth-of-type(1) {
display: none;
}

#billboard-ecobookstore > article > p:nth-of-type(2) {
display: none;
}

#billboard-ecobookstore > article > p.alternative-text {
@include static-position($top: 185px, $left: 5px, $width: 200px);
font-size: 17px;
text-align: center;
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(1) {
@include static-position($top: 0, $left: 55px, $height: 190px, $width: 94px);
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(2) {
display: none;
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(3) {
display: none;
}
}


// Responsive code: medium version
@include between-breakpoints($bp-tablet, $bp-tablet-horizontal) {
#billboard-ecobookstore {
background-image: image-url('welcome/billboard_ecobookstore_medium.jpg');
}

#billboard-ecobookstore > article h2 {
@include static-position($top: 340px, $left: 12px, $width: 130px);
font-size: 16px;
}

#billboard-ecobookstore > article h3 {
@include static-position($top: 340px, $left: 95px, $height: 60px, $width: 170px);
}

#billboard-ecobookstore > article > a > p {
@include static-position($top: 337px, $left: 298px, $height: 27px, $width: 127px);
font-size: 16px;
padding: 4px 0 0 15px;
}

#billboard-ecobookstore > article > p:nth-of-type(1) {
@include static-position($top: 115px, $left: 155px, $width: 300px);
font-size: 17px;
}

#billboard-ecobookstore > article > p:nth-of-type(2) {
display: none;
}

#billboard-ecobookstore > article > p.alternative-text {
display: none;
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(1) {
@include static-position($top: 0, $left: 11px, $height: 258px, $width: 120px);
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(2) {
@include static-position($top: 241px, $left: 275px, $height: 81px, $width: 160px);
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(3) {
@include static-position($top: 0px, $left: 155px, $height: 105px, $width: 280px);
}
}


// Responsive code: big version
@include at-breakpoint($bp-tablet-horizontal) {
#billboard-ecobookstore {
background-image: image-url('welcome/billboard_ecobookstore_big.jpg');
}

#billboard-ecobookstore > article h2 {
@include static-position($top: 345px, $left: 29px, $width: 200px);
font-size: 20px;
}

#billboard-ecobookstore > article h3 {
@include static-position($top: 322px, $left: 225px, $height: 85px, $width: 235px);
}

#billboard-ecobookstore > article > a > p {
@include static-position($top: 333px, $left: 528px, $height: 30px, $width: 146px);
font-size: 18px;
padding: 4px 0 0 17px;
}

#billboard-ecobookstore > article > p:nth-of-type(1) {
@include static-position($top: 105px, $left: 215px, $width: 470px);
font-size: 18px;
}

#billboard-ecobookstore > article > p:nth-of-type(2) {
@include static-position($top: 170px, $left: 215px, $width: 470px);
font-size: 18px;
}

#billboard-ecobookstore > article > p.alternative-text {
display: none;
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(1) {
@include static-position($top: 0, $left: 29px, $height: 295px, $width: 150px);
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(2) {
@include static-position($top: 241px, $left: 495px, $height: 75px, $width: 200px);
}

#billboard-ecobookstore > article > ul > li#billboard-ecobookstore-link1 div:nth-of-type(3) {
@include static-position($top: 0px, $left: 235px, $height: 105px, $width: 445px);
}
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/controller/welcome.css.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "mixins/all";
@import "billboards/billboard-ecobookstore";
@import "billboards/billboard-books";
@import "billboards/billboard-gourmet";
@import "billboards/billboard-vintage";
Expand Down
72 changes: 45 additions & 27 deletions app/views/welcome/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -39,38 +39,23 @@
span.slides-arrow.slides-arrow--right
i.fa.fa-chevron-right

/ Bücher
.billboard#billboard-books
/ Ecobookstore
.billboard#billboard-ecobookstore
article
hgroup
h2 Wir haben sie alle
h3 Auf Fairmondo über 1 Mio. Bücher finden
= link_to 'Jetzt stöbern', 'https://www.fairmondo.de/categories/bucher?pk_campaign=bb4&pk_kwd=stoebern'
= link_to 'categories/bucher' do
hgroup
h2 Ab sofort bei unserem Händler:
h3 ecobookstore.de
p Jetzt stöbern
p Alle Bücher, Filme, Audio-CDs und Spiele aus dem Ecobookstore <span>versandkostenfrei</span> liefern lassen.
p Mit Deinem Einkauf beim Ecobookstore unterstützt Du seine Bemühungen für den Regenwaldschutz.
p.alternative-text Alle Bücher, Filme, Audio-CDs und Spiele aus dem Ecobookstore.
ul
li#billboard-books-link1
= link_to 'https://www.fairmondo.de/libraries/5531?pk_campaign=bb4&pk_kwd=romane' do
div
p Beliebteste Romane
li#billboard-books-link2
= link_to 'https://www.fairmondo.de/libraries/5622?pk_campaign=bb4&pk_kwd=neuerscheinungen' do
div
p Neuer&shy;scheinungen
li#billboard-books-link3
= link_to 'https://www.fairmondo.de/libraries/6937?pk_campaign=bb4&pk_kwd=ratgeber' do
li#billboard-ecobookstore-link1
= link_to 'categories/bucher' do
div
p Beste Ratgeber
li#billboard-books-link4
= link_to 'https://www.fairmondo.de/libraries/5556?pk_campaign=bb4&pk_kwd=kinder' do
div
p Kinder- und Jugendbücher
li#billboard-books-link5
= link_to 'https://www.fairmondo.de/libraries/5560?pk_campaign=bb4&pk_kwd=krimi' do
div
p Krimis und Thriller
li#billboard-books-link6
= link_to 'https://www.fairmondo.de/libraries/5533?pk_campaign=bb4&pk_kwd=gebraucht' do
div
p Gebrauchte Bücher

/ Edle Tropfen
.billboard#billboard-gourmet
Expand Down Expand Up @@ -112,6 +97,39 @@
div
p Beleuchtung

/ Bücher
.billboard#billboard-books
article
hgroup
h2 Wir haben sie alle
h3 Auf Fairmondo über 1&nbsp;Mio. Bücher finden
= link_to 'Jetzt stöbern', 'https://www.fairmondo.de/categories/bucher?pk_campaign=bb4&pk_kwd=stoebern'
ul
li#billboard-books-link1
= link_to 'https://www.fairmondo.de/libraries/5531?pk_campaign=bb4&pk_kwd=romane' do
div
p Beliebteste Romane
li#billboard-books-link2
= link_to 'https://www.fairmondo.de/libraries/5622?pk_campaign=bb4&pk_kwd=neuerscheinungen' do
div
p Neuer&shy;scheinungen
li#billboard-books-link3
= link_to 'https://www.fairmondo.de/libraries/6937?pk_campaign=bb4&pk_kwd=ratgeber' do
div
p Beste Ratgeber
li#billboard-books-link4
= link_to 'https://www.fairmondo.de/libraries/5556?pk_campaign=bb4&pk_kwd=kinder' do
div
p Kinder- und Jugendbücher
li#billboard-books-link5
= link_to 'https://www.fairmondo.de/libraries/5560?pk_campaign=bb4&pk_kwd=krimi' do
div
p Krimis und Thriller
li#billboard-books-link6
= link_to 'https://www.fairmondo.de/libraries/5533?pk_campaign=bb4&pk_kwd=gebraucht' do
div
p Gebrauchte Bücher


/ USP Teaser with registration link
- cache 'uspteaser' do
Expand Down

0 comments on commit 33bb275

Please sign in to comment.