Skip to content

Instantly share code, notes, and snippets.

View dagda1's full-sized avatar

Paul dagda1

View GitHub Profile
@dagda1
dagda1 / application.html
Created September 8, 2011 05:47
application.html
<!DOCTYPE html>
<head>
<meta charset='utf-8'>
<meta author='Paul Cowan'>
<title>Lead Generator</title>
<link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/assets/application.js" type="text/javascript"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="PNhdEuNsWQC2xIrHP8Ae4SspAEtSCXiSr9exmzHI2po=" name="csrf-token" />
<link href='http://fonts.googleapis.com/css?family=Orbitron:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
@dagda1
dagda1 / _colors.sass
Created September 9, 2011 06:38
_colors.sass
$header-bg: #6A85AF !default
$title-color: #f2f2f2 !default
$subtitle-color: lighten($header-bg, 58)
$type-border: #ddd !default
$text-color: #222 !default
$text-color-light: #aaa !default
@dagda1
dagda1 / Gemfile
Created September 9, 2011 10:50
Gemfile
source 'http://rubygems.org'
source 'http://gems.engineyard.com'
gem 'rails', '~> 3.1.0.rc8'
gem 'haml'
gem 'authlogic', :git => 'https://github.com/AndreasWurm/authlogic.git'
gem 'grid-coordinates'
gem 'nokogiri'
gem 'bundler'
gem 'resque'
@dagda1
dagda1 / _typography.sass
Created September 15, 2011 06:51
_typography.sass
.heading
font-family: "Orbitron", "Georgia", "Helvetica Neue", Arial, San-Serif
body > header h1
font-size: 2.2em
@extend .heading
line-height: 1.2em
text-transform: uppercase
font-weight: normal
margin-bottom: 0.7em
@dagda1
dagda1 / navigation.html.haml
Created September 18, 2011 13:19
navigation.html.haml
%nav{:role => "navigation"}
%ul{:role => "user"}
%li
=link_to "log Out", logout_path
%ul{:role => "main-navigation"}
%li
=link_to "Capture", {:action => "Index", :controller => "Home"}, :method => :get
%li
=link_to "Archives", {:action => "Index", :controller => "Archive"}, :method => :get
@dagda1
dagda1 / _colors.sass
Created September 18, 2011 13:26
_colors.sass
$nav-bg: desaturate(lighten(#9CC889, 18),5)
$nav-border: darken($nav-bg, 10)
$nav-border-top: lighten($nav-bg, 15)
$nav-border-bottom: darken($nav-bg, 25)
$nav-border-left: darken($nav-bg, 11)
$nav-border-right: lighten($nav-bg, 7)
$nav-color: darken($nav-bg, 38)
$nav-color-hover: darken($nav-color, 25)
@dagda1
dagda1 / _navigation.sass
Created September 18, 2011 13:33
_navigation.sass
body > nav
position: relative
background-color: $nav-bg
@include background-image(image-url('noise.png'), linear-gradient(lighten($nav-bg, 8), $nav-bg, darken($nav-bg, 11)))
border
top: 1px solid $nav-border-top
bottom: 1px solid $nav-border-bottom
padding-bottom: .35em
padding-top: .35em
ul
@dagda1
dagda1 / new.html.haml
Created September 26, 2011 12:49
new.html.haml
=form_for @user_session, :id => 'login', :url => user_session_path do |f|
=f.error_messages
%h2
Log In
%fieldset#inputs
=f.label :email
=f.text_field(:email, {:placeholder => "email", :autofocus => "autofocus", :required => "required", :autocomplete => "off"})
=f.label :password
=f.password_field(:password, {:placeholder => "password", :required => "required"})
%fieldset#actions
@dagda1
dagda1 / login.html
Created September 26, 2011 12:55
login.html
<form accept-charset="UTF-8" action="/user_session" class="new_user_session" id="new_user_session" method="post">
<div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" />
<input name="authenticity_token" type="hidden" value="5Q0RXjMIdCbnW8vGYTPYpa+UCg1F8TPQ+EOSDTcQ0Ck=" />
</div>
<h2>Log In</h2>
<fieldset id='inputs'>
<label for="user_session_email">Email</label>
<input autocomplete="off" autofocus="autofocus" id="user_session_email" name="user_session[email]" placeholder="email" required="required" size="30" type="text" />
<label for="user_session_password">Password</label>
<input id="user_session_password" name="user_session[password]" placeholder="password" size="30" type="password" />
@dagda1
dagda1 / _main.sass
Created September 26, 2011 13:41
_main.sass
@mixin form-labels
color: $label-color
text-shadow: 0 1px 0px $label-box-shadow
form label
@include form-labels
float: left
text-transform: uppercase
form h2