This commit is contained in:
Nicolas Bally 2015-11-14 23:11:53 +01:00
parent 2e79ee6b61
commit 561f042404
8 changed files with 102 additions and 75 deletions

View File

@ -38,7 +38,9 @@ body{
margin:0;
font-size:15px;
color:#333333;
background:rgba(241,240,238,1);
background-color:rgba(241,240,238,0.2);
//background: url('/fond2.jpeg') center center fixed;
background-size: cover;
}
@ -307,19 +309,41 @@ margin:auto;
#main{
width:100%;
max-width:1200px;
margin:auto;
max-width:1300px;
margin:50px auto;
#corps{
width:68%;
float:left;
background:white;
background:rgba(255,255,255,0.95);
padding:10px 20px;
}
#sidebar{
width:30%;
float:right;
background:white;
padding:10px 20px;
text-align:left;
a.active{
font-weight:bold;
}
ul{
padding-left:20px;
}
li{
padding-bottom:10px;
ul{
padding-left:30px;
li{
padding-bottom:0;
}
}
}
}
@ -371,22 +395,42 @@ h1,h2,h3,h4{
text-align:left;
font-weight: 400;
font-family:$header_font, Arial, sans-serif;
color:#69952f;
text-transform:uppercase;
font-weight:bold;
a{
color:black;
color:#69952f;
}
}
h1{
font-size:22px;
line-height:24px;
font-family:$header_font, Arial, sans-serif;
}
h2{
color: #333333;
font-weight: bold;
font-size: 16px;
font-family: "source-sans-pro", Arial, sans-serif;
text-transform:none;
}
.date{
margin-top:10px;
margin-bottom:-20px;
font-size:18px;
font-family:$header_font, Arial, sans-serif;
}
h1{
font-size:30px;
}
.share{
font-size:16px;
@ -399,8 +443,7 @@ h1{
.bottom{
background:white;
background:rgba(250,250,250,0.8);
font-size:0.8em;
padding:0.7em 1em;
margin-top:120px;
@ -460,13 +503,7 @@ a{
}
}
h3{
font-size:1.5em;
margin-bottom:5px;
padding-bottom:0px;
}
article{
margin-bottom:6em;
@ -525,19 +562,7 @@ article{
margin-left:10px;
color:black;
}
h1{
margin:0;
padding:0;
margin-left:10px;
margin-bottom:10px;
margin-top:20px;
color:#69952f;
text-transform:uppercase;
font-weight:bold;
font-size:22px;
line-height:24px;
font-family:$header_font, arial, sans-serif;
}
}
@ -561,28 +586,19 @@ article{
height:80px;
margin-bottom:5px;
}
h2{
color:#333333;
font-weight:bold;
font-size:16px;
padding-left:10px;
font-family:$header_font, Arial, sans-serif;
h2{
margin-top:10px;
margin-left:10px;
margin-right:10px;
}
}
h1{
color:#69952f;
text-transform:uppercase;
font-weight:bold;
font-size:22px;
line-height:24px;
font-family:$header_font, Arial, sans-serif;
}
.article_date{
text-align:left;
@ -651,6 +667,17 @@ h1{
margin-bottom:5px;
}
margin-bottom:3em;
}
.breadcrumb{
background:transparent;
padding:0;
color:rgba(115,115,115,1);
a,a.active{
color:rgba(115,115,115,1);
}
}

View File

@ -18,7 +18,7 @@ class Public::EventsController < ApplicationController
else
@start_list_date = Time.now.beginning_of_month
@end_list_date = @start_list_date + 2.month
@end_list_date = Event.order("stop_at DESC").first.start_at.end_of_month.next_month

View File

@ -55,8 +55,8 @@
=#{:style => "display:none"}
<ul class="bxslider" data-ratio="2.2">
<li><img src="/accueil/1.jpg" title="" /></li>
<li><img src="http://photographie-hors-piste.com/slide/2.jpg" title="" /></li>
<li><img src="http://photographie-hors-piste.com/slide/3.jpg" title="" /></li>
<li><img src="/accueil/2.jpg" title="" /></li>
<li><img src="/accueil/3.jpg" title="" /></li>
</ul>
@ -68,7 +68,7 @@
.main_section_title
=link_to "Actualités +", "/actualites.html"
-article = Article.before(Date.today).recents.first
-article = Article.where(:echo => false).before(Date.today).recents.first
-if article
%a{:href => public_article_path(:id => article.slug)}
@ -80,7 +80,7 @@
=simple_format article.description
.clear
-articles = Article.before(Date.today).recents.offset(1).limit(6)
-articles = Article.where(:echo => false).before(Date.today).recents.offset(1).limit(6)
-if articles
.articles

View File

@ -16,10 +16,10 @@
-content_for :sidebar do
%h2{:class => "month_title"} Agenda par mois
%ul
%h2{:class => "month_title"} Agenda par mois
%ul
-first_month = Event.order(:start_at).first.start_at.beginning_of_month
-last_month = Event.order(:start_at).last.start_at.beginning_of_month
-the_month = last_month

BIN
public/accueil/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 KiB

BIN
public/accueil/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 KiB

BIN
public/fond.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 KiB

BIN
public/fond2.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB