idn_app/app/views/layouts/public.html.haml
Nicolas Bally 20c27684a9 suite
2016-07-27 10:23:38 +02:00

163 lines
4.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-@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
lagence de communication globale,
%span créateur dondes positives !
%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;padding-top:0"}
%h3 Vous voulez travailler avec nous ?
.row
.columns.span_6
.row
%table
%tr
%td
=image_tag "/icone-telephone.png"
%td
09 50 11 76 71
%br
06 62 95 47 70
%td
ou
%td
=image_tag "/icone-mail.png"
.row.idn_sign
.columns.span_5{:style => "width:170px;"}
=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