diff --git a/app/assets/images/phone.jpg b/app/assets/images/phone.jpg new file mode 100644 index 0000000..1f5174a Binary files /dev/null and b/app/assets/images/phone.jpg differ diff --git a/app/assets/stylesheets/components/_banner.scss b/app/assets/stylesheets/components/_banner.scss new file mode 100644 index 0000000..b4fb557 --- /dev/null +++ b/app/assets/stylesheets/components/_banner.scss @@ -0,0 +1,24 @@ +.banner { + color: white; + text-align: center; + height: 100vh; + /* if you have a 70px navbar => height: calc(100vh - 70px); */ + background-size: cover !important; + display: flex; + align-items: center; + justify-content: center; +} +.banner h1 { + font-size: 60px; + font-weight: bold; + text-shadow: 0px 1px rgba(0, 0, 0, 0.2); + color: #F0FFFF; +} +.banner p { + font-size: 30px; + font-weight: lighter; + color: #F0FFFF; + opacity: 0.8; + margin-bottom: 20px; +} + diff --git a/app/assets/stylesheets/components/_index.scss b/app/assets/stylesheets/components/_index.scss index d60407a..3b518a7 100644 --- a/app/assets/stylesheets/components/_index.scss +++ b/app/assets/stylesheets/components/_index.scss @@ -1,3 +1,4 @@ // Import your components CSS files here. @import "alert"; @import "navbar"; +@import "banner"; diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 4e227c9..698a3b7 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -3,4 +3,7 @@ class PagesController < ApplicationController def call end + + def home + end end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index ef0be92..6202e07 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,7 +10,7 @@ <%#= stylesheet_pack_tag 'application', media: 'all' %> - <%= render 'shared/navbar' %> + <%= render 'shared/navbar' unless params["action"] == "home"%> <%= render 'shared/flashes' %> <%= yield %> <%= javascript_include_tag 'application' %> diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb new file mode 100644 index 0000000..97289e0 --- /dev/null +++ b/app/views/pages/home.html.erb @@ -0,0 +1,17 @@ + + +<% unless current_user.nil? %> + +<% end %> diff --git a/config/routes.rb b/config/routes.rb index f48bf3e..5326d09 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,10 +1,11 @@ Rails.application.routes.draw do get 'video_sessions/create' devise_for :users - root to: 'pages#call' + root to: 'pages#home' get '/contacts', to: 'users#index' post '/sessions', to: 'video_sessions#create' mount ActionCable.server, at: '/cable' # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + get '/home', to: 'pages#home' end