Added header

This commit is contained in:
2017-03-12 10:21:17 +01:00
parent 9df54eeade
commit 2e31528deb
6 changed files with 33 additions and 22 deletions
+4 -1
View File
@@ -23,7 +23,10 @@ $font-size-h3: $font-size-base
@import "typeaheadjs"
body
padding-top: 20px
.container
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
padding-top: 20px
.lead
font-weight: normal
+1
View File
@@ -37,5 +37,6 @@ html lang="#{I18n.locale}"
/ = console if Rails.env.development?
.container
= render 'shared/header'
= render 'shared/flashes'
= yield
+20
View File
@@ -0,0 +1,20 @@
header
.row
.col-md-1.col-xs-4
= image_tag('ch420_logo.png', class:'img-responsive pagelogo', alt: t('.logo'))
.col-md-8.col-xs-8
h1
= title t('.title_html')
.col-xs-12.col-md-3
nav.pull-right
h2.sr-only =t('.lang')
a href='/' lang='de'
| Deutsch
|   |  
a href='/it' lang='it'
| Italiano
|   |  
a href='/fr' lang='fr'
| Français
br/
= render 'shared/counter'
-19
View File
@@ -1,22 +1,3 @@
.row
.col-md-1.col-xs-4
= image_tag('ch420_logo.png', class:'img-responsive pagelogo', alt: t('.logo'))
.col-md-8.col-xs-8
h1
= title t('.title_html')
.col-xs-12.col-md-3
nav.pull-right
h2.sr-only =t('.lang')
a href='/' lang='de'
| Deutsch
|   |  
a href='/it' lang='it'
| Italiano
|   |  
a href='/fr' lang='fr'
| Français
br/
= render 'shared/counter'
.row
.col-xs-12.col-md-7
h2.sr-only =t('.form')