Skip to content

Commit

Permalink
Login page updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngzax committed Jul 1, 2011
1 parent 52ef8be commit a359c9f
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 74 deletions.
4 changes: 2 additions & 2 deletions app/stylesheets/application.less
Expand Up @@ -5,6 +5,7 @@

body {
background: #D2D2D2;
padding: 5px 15px;
-webkit-font-smoothing: antialiased;
}

Expand All @@ -13,7 +14,6 @@ body {
border: 1px solid #C5C5C5;
border-width: 0 1px 0 1px;
border-right-color: rgba(0, 0, 0, 0.3);

.hbg-gradient(#F9F9F9, #DFE0E1);
}

Expand Down Expand Up @@ -360,4 +360,4 @@ body {
margin: 0;
.vbg-gradient(#FCFCFC, #EFEFEF);
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
}
106 changes: 45 additions & 61 deletions app/views/app/index.html.erb
@@ -1,73 +1,57 @@
<!DOCTYPE html>
<html>
<head>
<title>Holla</title>
<%= stylesheet_link_tag "application" %>
<%= csrf_meta_tag %>
<%= meta_tag "handle", current_user %>
<%= javascript_include_tag :juggernaut, "application" %>
</head>
<body>
<header id="title">
<h1>Holla</h1>
</header>
<div id="wrapper">
<div id="sidebar">
<h3>Channels</h3>
<ul id="channels">
</ul>

<div id="wrapper">
<div id="sidebar">
<h3>Channels</h3>
<ul id="channels">
</ul>
<h3>Options</h3>
<ul id="options">
<li data-name="settings">Settings</li>
</ul>

<h3>Options</h3>
<ul id="options">
<li data-name="settings">Settings</li>
<h3>Search</h3>
<input type="search" results="0" incremental="true" placeholder="Search">
</div>

<div class="vdivide"></div>

<div id="content">
<div id="messages">
<ul class="items">
</ul>

<h3>Search</h3>
<input type="search" results="0" incremental="true" placeholder="Search">
<div class="new">
<textarea></textarea>
<button>Send</button>
</div>
</div>

<div class="vdivide"></div>

<div id="content">
<div id="messages">
<ul class="items">
</ul>

<div class="new">
<textarea></textarea>
<button>Send</button>
</div>
</div>
<div id="searches">
<h2>Search results: <span class="query"></span></h2>
<ul class="items"></ul>
</div>

<div id="settings">
<h2>Channels</h2>
<ul class="channels">
</ul>

<div id="searches">
<h2>Search results: <span class="query"></span></h2>
<ul class="items"></ul>
<h2>Create Channel</h2>
<div class="createChannel">
<form>
<input type="text" placeholder="Channel name">
<button class="pill">New Channel</button>
</form>
</div>

<div id="settings">
<h2>Channels</h2>
<ul class="channels">
</ul>

<h2>Create Channel</h2>
<div class="createChannel">
<form>
<input type="text" placeholder="Channel name">
<button class="pill">New Channel</button>
</form>
</div>

<h2>Profile</h2>
<h2>Profile</h2>

<div><%= link_to "Logout", logout_path %></div>
</div>
<div><%= link_to "Logout", logout_path %></div>
</div>
</div>

<%= script_template "message" %>
<%= script_template "channels" %>
<%= script_template "edit_channel" %>
<%= script_template "search" %>
</body>
</html>
</div>

<%= script_template "message" %>
<%= script_template "channels" %>
<%= script_template "edit_channel" %>
<%= script_template "search" %>
8 changes: 3 additions & 5 deletions app/views/authorize/index.html.erb
@@ -1,6 +1,4 @@
<h3>Choose an Authentication Method:</h3>
<ul>
<% ["Google", "MyOpenID", "Twitter", "Yahoo"].each do |service| %>
<li><%= link_to "#{service}", "/auth/#{service.downcase}" %></li>
<h3>Please Choose an Authentication Method:</h3>
<% ["Google", "OpenID", "Twitter", "Yahoo"].each do |service| %>
<%= link_to(image_tag("/images/#{service.downcase}_64.png"), "/auth/#{service.downcase}")%>
<% end %>
</ul>
13 changes: 8 additions & 5 deletions app/views/layouts/application.html.erb
@@ -1,14 +1,17 @@
<!DOCTYPE html>
<% app_title = "Holla" %>
<html>
<head>
<title>Holla2</title>
<%= stylesheet_link_tag :all %>
<%= javascript_include_tag :defaults %>
<title><%= app_title %></title>
<%= stylesheet_link_tag "application" %>
<%= csrf_meta_tag %>
<%= meta_tag "handle", current_user %>
<%= javascript_include_tag :juggernaut, "application" %>
</head>
<body>

<header id="title">
<h1><%= app_title %></h1>
</header>
<%= yield %>

</body>
</html>
2 changes: 1 addition & 1 deletion config/routes.rb
Expand Up @@ -64,7 +64,7 @@
match "/assets/*:id" => "assets#show"

match "/authorize" => "authorize#index"
["google", "myopenid", "twitter", "yahoo"].each do |service|
["google", "openid", "twitter", "yahoo"].each do |service|
match "/auth/#{service}/callback" => "authorize#create"
end

Expand Down

0 comments on commit a359c9f

Please sign in to comment.