Permalink
Browse files

init

  • Loading branch information...
0 parents commit 17d9f795156356f6843a0e8967a1b7bed5e4822e @evenwu committed Nov 29, 2011
1 .rvmrc
@@ -0,0 +1 @@
+rvm ree@middleman
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+gem "middleman", "~>2.0.14"
+gem "therubyracer-heroku", "~>0.8.0"
@@ -0,0 +1,107 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (3.1.3)
+ multi_json (~> 1.0)
+ addressable (2.2.6)
+ chunky_png (1.2.5)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.3)
+ compass (0.11.5)
+ chunky_png (~> 1.2)
+ fssm (>= 0.2.7)
+ sass (~> 3.1)
+ daemons (1.1.4)
+ em-websocket (0.3.5)
+ addressable (>= 2.1.1)
+ eventmachine (>= 0.12.9)
+ eventmachine (0.12.10)
+ execjs (1.2.9)
+ multi_json (~> 1.0)
+ fssm (0.2.7)
+ guard (0.6.3)
+ thor (~> 0.14.6)
+ guard-livereload (0.3.1)
+ em-websocket (>= 0.2.0)
+ guard (>= 0.4.0)
+ multi_json (~> 1.0.3)
+ haml (3.1.4)
+ hike (1.2.1)
+ http_router (0.10.2)
+ rack (>= 1.0.0)
+ url_mount (~> 0.2.1)
+ i18n (0.6.0)
+ maruku (0.6.0)
+ syntax (>= 1.0.0)
+ middleman (2.0.14)
+ coffee-script (~> 2.2.0)
+ compass (~> 0.11.3)
+ execjs (~> 1.2.7)
+ guard (~> 0.6.2)
+ haml (~> 3.1.0)
+ maruku (~> 0.6.0)
+ middleman-livereload (~> 0.2.0)
+ padrino-core (~> 0.10.5)
+ padrino-helpers (~> 0.10.5)
+ rack (~> 1.3.5)
+ rack-test (~> 0.6.1)
+ sass (~> 3.1.7)
+ sinatra (~> 1.3.1)
+ slim (~> 1.0.2)
+ sprockets (~> 2.0.3)
+ thin (~> 1.2.11)
+ thor (~> 0.14.0)
+ tilt (~> 1.3.1)
+ uglifier (~> 1.0.0)
+ middleman-livereload (0.2.1)
+ guard-livereload (~> 0.3.1)
+ multi_json (1.0.4)
+ padrino-core (0.10.5)
+ activesupport (~> 3.1.0)
+ http_router (~> 0.10.2)
+ sinatra (~> 1.3.1)
+ thor (~> 0.14.3)
+ tilt (~> 1.3.0)
+ padrino-helpers (0.10.5)
+ i18n (~> 0.6)
+ padrino-core (= 0.10.5)
+ rack (1.3.5)
+ rack-protection (1.1.4)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ sass (3.1.11)
+ sinatra (1.3.1)
+ rack (~> 1.3, >= 1.3.4)
+ rack-protection (~> 1.1, >= 1.1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ slim (1.0.4)
+ temple (~> 0.3.4)
+ tilt (~> 1.3.2)
+ sprockets (2.0.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ syntax (1.0.0)
+ temple (0.3.4)
+ therubyracer-heroku (0.8.1.pre3)
+ thin (1.2.11)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.14.6)
+ tilt (1.3.3)
+ uglifier (1.0.4)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ url_mount (0.2.1)
+ rack
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ middleman (~> 2.0.14)
+ therubyracer-heroku (~> 0.8.0)
@@ -0,0 +1,93 @@
+###
+# Compass
+###
+
+# Susy grids in Compass
+# First: gem install compass-susy-plugin
+# require 'susy'
+
+# Change Compass configuration
+compass_config do |config|
+ config.output_style = :compress
+ config.line_comments = false
+end
+
+###
+# Haml
+###
+
+# CodeRay syntax highlighting in Haml
+# First: gem install haml-coderay
+# require 'haml-coderay'
+
+# CoffeeScript filters in Haml
+# First: gem install coffee-filter
+# require 'coffee-filter'
+
+# Automatic image dimensions on image_tag helper
+# activate :automatic_image_sizes
+
+###
+# Page command
+###
+
+# Per-page layout changes:
+#
+# With no layout
+# page "/path/to/file.html", :layout => false
+#
+# With alternative layout
+# page "/path/to/file.html", :layout => :otherlayout
+#
+# A path which all have the same layout
+# with_layout :admin do
+# page "/admin/*"
+# end
+
+# Proxy (fake) files
+# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
+# @which_fake_page = "Rendering a fake page with a variable"
+# end
+
+###
+# Helpers
+###
+
+# Methods defined in the helpers block are available in templates
+# helpers do
+# def some_helper
+# "Helping"
+# end
+# end
+
+# Change the CSS directory
+# set :css_dir, "alternative_css_directory"
+
+# Change the JS directory
+# set :js_dir, "alternative_js_directory"
+
+# Change the images directory
+# set :images_dir, "alternative_image_directory"
+
+# Build-specific configuration
+configure :build do
+ # For example, change the Compass output style for deployment
+ # activate :minify_css
+
+ # Minify Javascript on build
+ # activate :minify_javascript
+
+ # Enable cache buster
+ # activate :cache_buster
+
+ # Use relative URLs
+ # activate :relative_assets
+
+ # Compress PNGs after build
+ # First: gem install middleman-smusher
+ # require "middleman-smusher"
+ # activate :smusher
+
+ # Or use a different image path
+ # set :http_path, "/Content/images/"
+end
@@ -0,0 +1,4 @@
+require 'rubygems'
+require 'middleman'
+
+run Middleman.server
@@ -0,0 +1,44 @@
+- content_for :head do
+ %title Pinterest clone home
+
+- content_for :header do
+ .logo
+ .wrapper
+ %h1= image_tag( lorem.image("200x50", :text => "Pinterest"), :alt => "" )
+ .search
+ = image_tag( lorem.image("200x50", :text => "Search box"), :alt => "" )
+ .right
+ %ul
+ %li About
+ %li Login
+ %nav
+ .top-menu
+ %ul
+ %li Everything
+ %li Videos
+ %li Discussions
+ %li Gifts
+
+#container
+ - 100.times do
+ .item
+ - @imgheight = ( rand(10) * 20 + 100 ).to_s
+ = image_tag( lorem.image( "192x" + @imgheight ), :alt => "", :height => @imgheight )
+ %h2= lorem.sentence
+ .comments
+ = 1 + rand(10)
+ comments
+ .chat
+ .chatbox
+ = image_tag( lorem.image("30x30"), :alt => "" )
+ %b= lorem.name
+ via
+ %b= lorem.name
+ onto
+ %b= lorem.words rand(3) + 1
+ - @chat = rand(3)
+ - @chat.times do
+ .chatbox
+ = image_tag( lorem.image("30x30"), :alt => "" )
+ %b= lorem.name
+ %p= lorem.sentence
@@ -0,0 +1,7 @@
+//= require_tree .
+
+$(function(){
+ $('#container').masonry({
+ itemSelector : '.item'
+ });
+});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,13 @@
+!!! 5
+%html
+ %head
+ %meta{:charset => "utf-8"}
+ = stylesheet_link_tag 'main'
+ = javascript_include_tag( "https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js", "all" )
+ = yield_content :head
+ %body{:class => page_classes}
+ %header#hd
+ = yield_content :header
+ .wrapper
+ #bd
+ = yield
Oops, something went wrong.

0 comments on commit 17d9f79

Please sign in to comment.