Add /patron page 🎨

This commit is contained in:
Mathieu Magnin 2017-06-14 14:42:09 +02:00
parent 624fb13964
commit 90a643d4fb
4 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,5 @@
@import "placeholders";
.patron {
@extend %page-width-container;
}

View file

@ -1,4 +1,6 @@
class RootController < ApplicationController
layout 'new_application'
def index
if administrateur_signed_in?
return redirect_to admin_procedures_path
@ -26,6 +28,9 @@ class RootController < ApplicationController
return redirect_to administrations_path
end
render 'landing', :layout => 'new_application'
render 'landing'
end
def patron
end
end

View file

@ -0,0 +1,13 @@
.patron
%h1 Patron
%h2 Boutons
%p
= link_to ".button", "#", class: "button"
= link_to ".button.primary", "#", class: "button primary"
= link_to ".button.large", "#", class: "button large"
= link_to ".button.large.primary", "#", class: "button large primary"

View file

@ -227,5 +227,7 @@ Rails.application.routes.draw do
get '/:procedure_path' => '/users/dossiers#commencer'
end
get "patron" => "root#patron"
apipie
end