diff --git a/app/controllers/public/home_controller.rb b/app/controllers/public/home_controller.rb index 1cfa974..884db9d 100755 --- a/app/controllers/public/home_controller.rb +++ b/app/controllers/public/home_controller.rb @@ -1,6 +1,9 @@ class Public::HomeController < ApplicationController layout "home" + def vouisstar + render :layout => "vouisstar" + end def home diff --git a/app/views/layouts/vouisstar.html.haml b/app/views/layouts/vouisstar.html.haml new file mode 100644 index 0000000..aa024a4 --- /dev/null +++ b/app/views/layouts/vouisstar.html.haml @@ -0,0 +1,100 @@ +!!! + +%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"} + %head + %title Négos + + + + %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 } + =# + + + + + = csrf_meta_tag + =#render :partial => "public/shared/ga" + + + + + =javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false" + + + + %body{:style => "background:url('/fond-vs.jpg') center center no-repeat;background-size:100%;background-size:cover;"} + + + + .top + =image_tag "http://negos.pro/public_medias/image_file/file/37/large_sans_titre_-_1.png", :style => "margin:auto;display:block;width:300px;margin:30px auto;" + + + .row + + .columns + %h2 + Vous êtes un particulier ? + .inner + + %p + Vous pourrez très prochainement consulter la liste des points de vente sur cette page + .columns + %h2 + Vous êtes une entreprise ou une organisation ? + .inner + + %p + Vous pouvez vous inscrire sur la plateforme Negos pour commander des packs + %strong Vouis'Star + pour les revendre dans votre commerce, ou les offrir à vos clients. + + %center + =link_to "Commander des packs (pro)", "http://negos.pro", :target => "_blank", :style => "display:inline-block;margin:20px;padding:12px 20px;border:1px solid #f59c00;color:white;background:#f59c00;font-weight:bold;text-decoration:none;" + + + =link_to image_tag( "http://negos.pro/logo.png", :style => "display:block;margin:20px auto;width:160px;"), "http://negos.pro", :target => "_blank" + .clear + + :scss + .columns{ + width:50%; + float:left; + + .inner{ + background:rgba(255,255,255,0.8); + max-width:480px; + margin:auto; + padding:20px; + + } + } + html { + margin: 0px; + height: 100%; + width: 100%; + + } + body { + margin: 0px; + min-height: 100%; + width: 100%; + font-family:Varela Round; + h2{ + text-align:center; + max-width:480px; + margin:auto; + color:white; + margin-bottom:20px; + } + .row{ + margin:40px auto; + max-width:1250px; + } + + + } \ No newline at end of file diff --git a/app/views/public/home/vouisstar.html.haml b/app/views/public/home/vouisstar.html.haml new file mode 100644 index 0000000..e69de29 diff --git a/config/routes.rb b/config/routes.rb index 7ad38fb..d23f899 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ Rails.application.routes.draw do get 'mail_assets/:token.png' => "admin/mail_trackings#update", :as => :image_tracking - + get "vouisstar" => "public/home#vouisstar" constraints subdomain: 'affiliation' do get "/:mlm_token" => "public/home#affiliation" get "/" => "public/home#affiliation" diff --git a/public/fond-vs.jpg b/public/fond-vs.jpg new file mode 100644 index 0000000..68ed3ae Binary files /dev/null and b/public/fond-vs.jpg differ