Skip to content

Commit

Permalink
Implement toys billboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Dec 11, 2014
1 parent d5cea80 commit b7678ff
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 1 deletion.
Binary file added app/assets/images/welcome/billboard_toys_big.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions app/assets/stylesheets/billboards/_billboard-toys.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/**
* toys billboard
*/


// General stuff
#billboard-toys > article h2 {
font-weight : 600;
text-transform : uppercase;
color : #060;
}

#billboard-toys-link1 > p {
font-weight : 600;
font-size : 18px;
color : $white;
}


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

#billboard-toys > article h2 {
@include static-position($top: 115px, $left: 20px, $width: 175px);
font-size : 18px;
text-align : center;
}

#billboard-toys-link1 > p {
@include static-position($top: 371px, $left: 24px, $height: 28px,
$width: 144px);
padding: 4px 0 0 16px;
}

#billboard-toys-link1 > div {
@include static-position($top: 153px, $left: 2px, $height: 218px,
$width: 193px);
}
}


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

#billboard-toys > article h2 {
@include static-position($top: 25px, $left: 2px, $width: 190px);
font-size : 30px;
text-align : left;
}

#billboard-toys-link1 > p {
@include static-position($top: 368px, $left: 266px, $height: 28px,
$width: 143px);
padding: 4px 0 0 16px;
}

#billboard-toys-link1 > div {
@include static-position($top: 141px, $left: 0, $height: 264px,
$width: 438px);
}
}


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

#billboard-toys > article h2 {
visibility: hidden;
}

#billboard-toys-link1 > p {
@include static-position($top: 360px, $left: 519px, $height: 29px,
$width: 143px);
padding: 4px 0 0 17px;
}

#billboard-toys-link1 > div {
@include static-position($top: 130px, $left: 5px, $height: 273px,
$width: 686px);
}
}
3 changes: 2 additions & 1 deletion app/assets/stylesheets/controller/welcome.css.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@import "mixins/all";
@import "billboards/billboard-ecobookstore";
@import "billboards/billboard-gourmet";
@import "billboards/billboard-toys";
@import "billboards/billboard-gifts";
@import "billboards/billboard-gourmet";
@import "billboards/billboard-books";


Expand Down
8 changes: 8 additions & 0 deletions app/views/welcome/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
= link_to 'Zu Weihnachten Gutscheine verschenken',
'/libraries/8216', id: 'billboard-ecobookstore-link2'

/ Kinderspielzeug
.billboard#billboard-toys
article
h2 Geschenke für<br>Kinder
= link_to '/libraries/7688', id: 'billboard-toys-link1' do
div
p Alle ansehen

/ Geschenke unter 15 EUR
.billboard#billboard-gifts
article
Expand Down

0 comments on commit b7678ff

Please sign in to comment.