Add landing page

This commit is contained in:
benji 2015-09-08 15:16:08 +02:00
parent 0d1b9674b8
commit 5df3327e72
4 changed files with 15 additions and 0 deletions

View file

@ -67,3 +67,5 @@ end
group :production do
gem 'mysql2'
end
gem 'high_voltage', '~> 2.4.0'

View file

@ -92,6 +92,7 @@ GEM
globalid (0.3.6)
activesupport (>= 4.1.0)
hashie (3.4.2)
high_voltage (2.4.0)
i18n (0.7.0)
jbuilder (2.3.1)
activesupport (>= 3.0.0, < 5)
@ -234,6 +235,7 @@ DEPENDENCIES
devise
factory_girl_rails
faker
high_voltage (~> 2.4.0)
jbuilder (~> 2.0)
jquery-rails
mysql2

View file

@ -0,0 +1,9 @@
<h1>Hallo</h1>
<% if user_signed_in? %>
<p>Yeah! Je bent ingelogd.</p>
<% else %>
Log een keer in!
<p><%= link_to "Log in met Zeus WPI", user_omniauth_authorize_path(:zeuswpi) %></p>
<% end %>

View file

@ -3,6 +3,8 @@ Rails.application.routes.draw do
omniauth_callbacks: 'callbacks'
}
root to: 'high_voltage/pages#show', id: "landing"
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".