!!!

%html{:xmlns=>"http://www.w3.org/1999/xhtml", :"xml:lang"=>"fr", :lang=>"fr"}
  %head
    %meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" }
    %title
      Jean-François Noblet
    
  
    
    = csrf_meta_tag 

    = javascript_include_tag "public"
    
    = stylesheet_link_tag 'public' 
  
    =render :partial => "public/shared/ga"
  
    
    
  %body


    .top
      #menu_top
        =render(:partial => "public/shared/first_menu")      
      =link_to image_tag('logo.png', :id => "logo"), "/"
      
    .slider
      .slides
        .slides_container
          -photos = 1..20
          -photos = photos.sort {rand(8)}
          -photos = photos.sort {rand(6)}
          -photos = photos.sort {rand(4)}
          -photos = photos[0..4]
          -photos.each do |photo|
            .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/'+("%02d" % photo)+'.jpg', :style => "width:1000px;height:460px;"), ""
            
          
          
          
          
        
        .photos_link.hover
          =link_to "Actuellement plus de 24 000 photos visibles dans ma photothèque", "http://www.photo-nature-environnement.com", :target => "_blank"
        
        %a.prev.hover{:href => "#"}
          =image_tag('arrow-prev.png')
        %a.next.hover{:href => "#"}
          =image_tag('arrow-next.png')
      
    #slider_shadow
  
  


    #home_main
      #right
        #events_container
          #events
            .slide
              %h2 A ne pas rater !
            
              =render Event.after(Time.now.beginning_of_day).order(:start_at).limit(3)
                          
              =link_to "voir la suite.", public_events_path, :style => "display:block;padding-top:15px;text-align:right"
        #new_book
          %h3 Découvrez mon nouveau livre !
          =link_to image_tag("book.jpg"), "http://www.plumedecarotte.com/ouvrage_fiche.php?id=147"
    
    
      #articles
        =render Article.recents.limit 3
        =link_to "Voir tout les articles du blog", articles_path(), :id => "bloglink"
                            
              
      %p{:style => "clear:both"}
    #footer_container.home
      #footer
        =render :partial => "public/shared/footer"
        %p{:style => "clear:both;"}
      
    #legals
      %p{:style => "float:right"}
        =link_to "Site réalisé par Nicolas Bally - Quartz Agence", "http://www.quartz-agence.com", :target => "_blank"
      
      %p=link_to "Mentions légales"
      



