Skip to content

Commit

Permalink
Add sessions controller and login form
Browse files Browse the repository at this point in the history
  • Loading branch information
canan8 committed May 16, 2020
1 parent a951380 commit 14a0521
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/sessions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the sessions controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/
2 changes: 2 additions & 0 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class SessionsController < ApplicationController
end
2 changes: 2 additions & 0 deletions app/helpers/sessions_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module SessionsHelper
end
37 changes: 36 additions & 1 deletion app/views/welcome/index.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
<h3>Welcome to Pretro!</h3>
<h2 class="ui centered header">Welcome to Pretro!</h2>

<div class="ui container">
<div class="ui placeholder segment">
<div class="ui two column very relaxed stackable grid">
<div class="column">
<div class="ui form">
<div class="field">
<label>Username</label>
<div class="ui left icon input">
<input type="text" placeholder="Username">
<i class="user icon"></i>
</div>
</div>
<div class="field">
<label>Password</label>
<div class="ui left icon input">
<input type="password">
<i class="lock icon"></i>
</div>
</div>
<div class="ui blue submit button">Login</div>
</div>
</div>
<div class="middle aligned column">
<div class="ui big button">
<i class="signup icon"></i>
Sign Up
</div>
</div>
</div>
<div class="ui vertical divider">
Or
</div>
</div>
</div>
7 changes: 7 additions & 0 deletions test/controllers/sessions_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class SessionsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end

0 comments on commit 14a0521

Please sign in to comment.