This commit is contained in:
Nicolas Bally 2017-06-14 22:07:42 +02:00
parent 6b9b44ebd7
commit d469f77a8b
5 changed files with 25 additions and 8 deletions

View File

@ -20,25 +20,25 @@
=raw '<meta property="og:title" content="'+@title.to_s+'" />'
=raw '<meta property="og:description" content="'+@description.to_s+'" />'
-if @facebook_img
=raw '<meta property="og:image" content="http://heylium.io'+@facebook_img.to_s+'"/>'
=raw '<link rel="image_src" href="http://heylium.io'+@facebook_img.to_s+'"/>'
=raw '<meta property="og:image" content="http://idncommunication.com/'+@facebook_img.to_s+'"/>'
=raw '<link rel="image_src" href="http://idncommunication.com/'+@facebook_img.to_s+'"/>'
=raw '<meta name="twitter:card" content="summary_large_image">'
=raw '<meta property="twitter:description" content="'+((@description and @description != "") ? @description : "En savoir plus :").to_s+'"/>'
=#raw '<meta property="twitter:description" content="'+@description.to_s+'"/>'
=raw '<meta property="twitter:title" content="'+@title.to_s+'"/>'
=raw '<meta property="twitter:site" content="@onevoiceplanet"/>'
=raw '<meta property="twitter:creator" content="@onevoiceplanet"/>'
=raw '<meta property="twitter:site" content="@idncontact"/>'
=raw '<meta property="twitter:creator" content="@idncontact"/>'
=raw '<meta property="twitter:url" content="'+request.url.to_s+'"/>'
=raw '<meta property="twitter:image" content="http://heylium.io'+@facebook_img.to_s+'"/>'
=raw '<meta property="twitter:image" content="http://idncommunication.com/'+@facebook_img.to_s+'"/>'
-@img_size = FastImage.size('http://heylium.io'+@facebook_img.to_s)
-@img_size = FastImage.size('http://idncommunication.com/'+@facebook_img.to_s)
-if @img_size and @img_size.size > 0
=raw '<meta property="og:image:width" content="'+@img_size[0].to_s+'"/>'
@ -131,7 +131,7 @@
.contact_container#contact-bloc
.center
.center{:style => "padding:0 5px;"}
%div{:style => "text-align:center;"}
=image_tag "/tete-section.png", :style => "width:300px"
%h2{:style => "text-align:center;"} Contact
@ -171,6 +171,18 @@
%br
%br
=link_to "contact@idncommunication.com", "mailto:contact@idncommunication.com"
%br
%br
%strong Rejoignez-vous sur les réseaux sociaux !
%br
%br
=link_to "https://www.facebook.com/idn.communication/", :target => "_blank", :class => "link facebook" do
=image_tag "/Icone_FB.png"
=link_to "https://twitter.com/idncontact", :target => "_blank", :class => "link twitter" do
=image_tag "/Icone_Twitter.png", :style => "margin-left:10px;"
.mobile_only
%br

View File

@ -6,6 +6,7 @@
=f.input :name, :label => false , :placeholder =>"Votre nom"
=f.input :email, :label => false , :placeholder =>"Votre email"
=f.input :tel, :label => false , :placeholder =>"Votre numéro de téléphone"
=f.input :message, :label =>false , :placeholder => "Votre projet"

View File

@ -1,7 +1,11 @@
%p
Contact de
%strong=@contact.name
%p
Mail
%strong=@contact.email
%p
Téléphone
%strong=@contact.tel

BIN
public/Icone_FB.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

BIN
public/Icone_Twitter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B