We basically are reddit now

This commit is contained in:
Andrew Tomaka 2015-07-09 16:49:51 -04:00
parent 80af796096
commit 790cb26f2a
5 changed files with 33 additions and 14 deletions

View file

@ -1,2 +1,7 @@
$navbar-default-brand-color: black;
$navbar-default-bg: #cee3f8;
$navbar-default-link-color: #369;
$navbar-default-link-hover-color: #369;
@import "bootstrap-sprockets";
@import "bootstrap";

View file

@ -0,0 +1,13 @@
.navbar.navbar-default.navbar-static-top
.container-fluid
.navbar-header
button.navbar-toggle.collapsed type='button' data-toggle='collapse' data-target='.navbar-collapse'
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
= link_to 'Creddit', root_path, class: 'navbar-brand'
.collapse.navbar-collapse
ul.nav.navbar-nav.navbar-right
li= link_to 'Create Account', new_user_path

View file

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Creddit</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>

View file

@ -0,0 +1,13 @@
doctype html
html
head
title Creddit
= stylesheet_link_tag 'application', media: 'all'
= javascript_include_tag 'application'
= csrf_meta_tags
body
== render 'navbar'
.container-fluid
= yield

View file

@ -1,3 +1,5 @@
Rails.application.routes.draw do
resources :users, only: [:new, :create]
root to: 'users#new'
end