This commit is contained in:
Nicolas Bally 2020-04-21 14:24:15 +02:00
parent 442dbda85a
commit 792fd9b603
2 changed files with 86 additions and 47 deletions

View File

@ -163,19 +163,14 @@
=link_to add_banner_public_banners_path(), :remote => true, :onclick => "$('#banner').show();$('#small_banner').closest('#small_banner').hide();" do =link_to add_banner_public_banners_path(), :remote => true, :onclick => "$('#banner').show();$('#small_banner').closest('#small_banner').hide();" do
#small_banner{:style => ("display:none;" if !session[:no_banner])} #small_banner{:style => ("display:none;" if !session[:no_banner])}
%span{:style => "font-size:20px;"} =image_tag "/covid.png"
=ic(:warning)
%br
Informations
%br
COVID-2019
#banner{:style => ("display:none;" if session[:no_banner])} #banner{:style => ("display:none;" if session[:no_banner])}
.banner_wrapper
.left .left
%span{:style => "font-size:25px;"}=ic(:warning) =image_tag "/covid.png"
%br
COVID-2019
.right .right
%h4 Continuité de production
%p %p
%strong Jipé continue à produire %strong Jipé continue à produire
en prenant les mesures nécessaires pour en prenant les mesures nécessaires pour
@ -187,6 +182,7 @@
%strong prestataires %strong prestataires
et et
%strong fournisseurs. %strong fournisseurs.
%h4 Solutions durgence et pour laprès confinement
%p %p
Après avoir fourni des Après avoir fourni des
%strong structures pour faire face à lurgence, %strong structures pour faire face à lurgence,
@ -208,27 +204,36 @@
.clear .clear
:scss :scss
.banner_wrapper{
max-width:950px;
margin:auto;
}
#small_banner{ #small_banner{
position:absolute; position:absolute;
top:50px; top:70px;
left:0; left:0;
background:#ffedcd; background:#F9F1E4;
color:#333f48; color:#DB3028;
color:#BF2F2A;
font-size:14px; font-size:14px;
text-align:center; text-align:center;
padding:10px 30px; padding:10px 40px;
z-index:10; z-index:10;
font-weight:bold; font-weight:bold;
img{
width:100px;
}
} }
#banner{ #banner{
background:#ffedcd; background:#F9F1E4;
color:#333f48; color:#333f48;
padding:20px 20px; padding:30px 20px;
font-size:14px; font-size:14px;
position:relative; position:relative;
p{ p{
@ -238,10 +243,11 @@
.actions{ .actions{
a{ a{
padding:4px 8px; padding:4px 8px;
border:1px solid #BF2F2A; border:1px solid #DB3028;
display:inline-block; display:inline-block;
margin-right:8px; margin-right:8px;
margin-top:8px; margin-top:8px;
color:#DB3028;
} }
} }
@ -251,18 +257,51 @@
} }
.right{ .right{
margin-left:200px; margin-left:230px;
h4{
margin-bottom:-4px;
color:#DB3028;
}
} }
.left{ .left{
color:#BF2F2A; color:#BF2F2A;
font-size:18px; font-size:18px;
float:left; float:left;
text-align:center; text-align:left;
width:200px; width:250px;
img{
max-width:180px;display:block;margin:30px 10px;
}
margin-left:-10px; margin-left:-10px;
padding-top:30px;
}
}
@media screen and (max-width: 820px){
#small_banner{
img{
width:50px;
}
padding:8px 15px;
}
#banner{
.right{
margin:0;
padding-bottom:50px;
}
.left{
float:none;
width:100%;
img{
margin:auto;
}
}
} }
} }

BIN
public/covid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB