idn_app/app/views/layouts/public.html.haml
Nicolas Bally a54ef35793 suite
2016-07-25 22:55:50 +02:00

164 lines
4.7 KiB
Plaintext

-@lang = @lang || LangSite.first
-if !@facebook_img or @facebook_img == ""
-@facebook_img= ""
!!!
-if @description and @description == ""
- @description = ""
%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
%head
%title=@title.to_s+" "
%meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"}
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
%meta{ :"name" => "Description", :content => @description }
%meta{ :"name" => "Keywords", :content => @keywords }
= javascript_include_tag "public"
= csrf_meta_tag
=render :partial => "public/shared/ga"
= stylesheet_link_tag 'public'
= stylesheet_link_tag '/fonts/Stylograph/stylesheet.css'
<script src="https://use.typekit.net/hia2kxp.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
=javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
%body
-if flash[:error] or flash[:notice] or flash[:alert]
.flash
=flash[:error]
=flash[:notice]
=flash[:alert]
.top#top_bar
.center
=link_to image_tag("/logo.png", :id => "logo"), "/"+@lang.slug+"/index.html"
=link_to image_tag("/logo-min.png", :id => "logo-min"), "/"+@lang.slug+"/index.html"
.menu
%ul
-links = [["Home","main"],["L'agence","agence_bloc"],["Nos services","services-bloc"],["Un peu de nous","nous-bloc"], ["Contact","contact-bloc"]]
-links.each do |link|
%li
%a{:href => "#", :onclick => "$('html,body').animate({scrollTop: ($('#"+link[1].to_s+"').offset().top - 50)},'slow');return false;"}
=link[0]
.clean
#main{:class => (@menu_item.slug if @menu_item)}
-if @menu_item and @menu_item.id == 1
#home_top
.center
.inner
%h1
L'agence de communication globale
%span toujours en mouvement !
%p
Nous travaillons de la conception à la réalisation de votre identité visuelle
%br
adaptée à votre positionnement, afin de communiquer de manière
%br
cohérente sur vos différents supports Print & Digitaux
=yield
.clear
.contact_container#contact-bloc
.center
%div{:style => "text-align:center;"}
=image_tag "/tete-section.png", :style => "width:300px"
%h2{:style => "text-align:center;"} Contact
%div{:style => "padding:30px 0"}
%h3 Vous voulez travailler avec nous ?
.row
.columns.span_6
.row
.columns.span_5
.tel_panel
=image_tag "/icone-telephone.png", :style => "float:left;margin-right:10px;"
%p
09 50 11 76 71
%br
06 62 95 47 70
.columns.span_2
%p{:style => "text-align:center;"}
ou
.columns.span_5
%p{:style => "text-align:center;"}
=image_tag "/icone-mail.png"
.row.idn_sign
.columns.span_5{:style => "width:190px;"}
=image_tag "/Logo-IDN-Contact.png"
.columns.span_7
%strong
idN communication
%br
4 square de la Dordogne
%br
75017 Paris
%br
%br
=link_to "contact@idncommunication.com", "mailto:contact@idncommunication.com"
.columns.span_6
.contact_form
#form=render :partial => "public/contacts/form"
.bottom
© 2016 idN communication • Tous droits réservés •
=link_to "Mentions légales", "/fr/mentions-legales.html", :data => {:remote => true}
.socials_links
=link_to "https://www.facebook.com/sharer/sharer.php?u=#{request.url}", :target => "_blank", :class => "link facebook" do
=i(:"facebook")
=link_to "https://twitter.com/intent/tweet?url=#{request.url}&via=&text="+CGI::escape(@title.to_s), :target => "_blank", :class => "link twitter" do
=i(:"twitter")
.top_link
=i(:"arrow-up")
.popup_overlay
.popup_container
#popup_content
.close_popup
=image_tag "/bouton-croix.png"
.inner