parent
22cf0819ac
commit
cd2f24f7ca
@ -1,12 +1,25 @@
|
|||||||
<header>
|
<header>
|
||||||
<div class="alert alert-primary" role="alert">
|
<nav class="navbar navbar-expand-lg navbar-light bg-primary">
|
||||||
<h1>The only movies that actually matter</h1>
|
<a class="navbar-brand" href="<%= root_path %>">
|
||||||
<%= link_to image_tag("logo.png"), root_path %>
|
<%= image_tag("logo.png") %> The only movies that actually matter
|
||||||
</div>
|
</a>
|
||||||
<ul class="left">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<li><%= link_to "All Movies", movies_path, class: "btn" %></li>
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
|
<ul class="navbar-nav mr-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<%= link_to "All Movies", movies_path, class: "nav-link" %>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="right">
|
<ul class="navbar-nav">
|
||||||
<li><%= link_to "Sign Up", signup_path, class: "button btn" %></li>
|
<li class="nav-item">
|
||||||
|
<%= link_to "Sign In", new_session_path, class: "nav-link" %>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<%= link_to "Sign Up", signup_path, class: "nav-link" %>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</header>
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
<h1>Sign In</h1>
|
||||||
|
<%= form_with(url: session_path) do |f| %>
|
||||||
|
<%= f.label :email %>
|
||||||
|
<%= f.email_field :email, autofocus: true %>
|
||||||
|
|
||||||
|
<%= f.label :password %>
|
||||||
|
<%= f.password_field :password %>
|
||||||
|
|
||||||
|
<%= f.submit "Sign In" %>
|
||||||
|
<% end %>
|
Loading…
Reference in new issue