Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

Commit 764cc07

Browse files
committed
Let's try us some Middleman.
1 parent 30f01ec commit 764cc07

File tree

11 files changed

+665
-0
lines changed

11 files changed

+665
-0
lines changed

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile ~/.gitignore_global
6+
7+
# Ignore bundler config
8+
/.bundle
9+
10+
# Ignore the build directory
11+
/build
12+
13+
# Ignore Sass' cache
14+
/.sass-cache
15+
16+
# Ignore .DS_store file
17+
.DS_Store

Gemfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# If you have OpenSSL installed, we recommend updating
2+
# the following line to use "https"
3+
source 'http://rubygems.org'
4+
5+
gem "middleman", "~>3.1.5"
6+
7+
# Live-reloading plugin
8+
gem "middleman-livereload", "~> 3.1.0"
9+
10+
# For faster file watcher updates on Windows:
11+
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
12+
13+
# Cross-templating language block fix for Ruby 1.8
14+
platforms :mri_18 do
15+
gem "ruby18_source_location"
16+
end

Gemfile.lock

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
activesupport (3.2.14)
5+
i18n (~> 0.6, >= 0.6.4)
6+
multi_json (~> 1.0)
7+
chunky_png (1.2.8)
8+
coffee-script (2.2.0)
9+
coffee-script-source
10+
execjs
11+
coffee-script-source (1.6.3)
12+
compass (0.12.2)
13+
chunky_png (~> 1.2)
14+
fssm (>= 0.2.7)
15+
sass (~> 3.1)
16+
em-websocket (0.5.0)
17+
eventmachine (>= 0.12.9)
18+
http_parser.rb (~> 0.5.3)
19+
eventmachine (1.0.3)
20+
execjs (1.4.0)
21+
multi_json (~> 1.0)
22+
ffi (1.9.0)
23+
fssm (0.2.10)
24+
haml (4.0.3)
25+
tilt
26+
hike (1.2.3)
27+
http_parser.rb (0.5.3)
28+
i18n (0.6.5)
29+
kramdown (1.1.0)
30+
listen (1.2.3)
31+
rb-fsevent (>= 0.9.3)
32+
rb-inotify (>= 0.9)
33+
rb-kqueue (>= 0.2)
34+
middleman (3.1.5)
35+
coffee-script (~> 2.2.0)
36+
compass (>= 0.12.2)
37+
execjs (~> 1.4.0)
38+
haml (>= 3.1.6)
39+
kramdown (~> 1.1.0)
40+
middleman-core (= 3.1.5)
41+
middleman-more (= 3.1.5)
42+
middleman-sprockets (>= 3.1.2)
43+
sass (>= 3.1.20)
44+
uglifier (~> 2.1.0)
45+
middleman-core (3.1.5)
46+
activesupport (~> 3.2.6)
47+
bundler (~> 1.1)
48+
i18n (~> 0.6.1)
49+
listen (~> 1.2.2)
50+
rack (>= 1.4.5)
51+
rack-test (~> 0.6.1)
52+
thor (>= 0.15.2, < 2.0)
53+
tilt (~> 1.3.6)
54+
middleman-livereload (3.1.0)
55+
em-websocket (>= 0.2.0)
56+
middleman-core (>= 3.0.2)
57+
multi_json (~> 1.0)
58+
rack-livereload
59+
middleman-more (3.1.5)
60+
middleman-sprockets (3.1.4)
61+
middleman-core (>= 3.0.14)
62+
middleman-more (>= 3.0.14)
63+
sprockets (~> 2.1)
64+
sprockets-helpers (~> 1.0.0)
65+
sprockets-sass (~> 1.0.0)
66+
multi_json (1.8.0)
67+
rack (1.5.2)
68+
rack-livereload (0.3.15)
69+
rack
70+
rack-test (0.6.2)
71+
rack (>= 1.0)
72+
rb-fsevent (0.9.3)
73+
rb-inotify (0.9.1)
74+
ffi (>= 0.5.0)
75+
rb-kqueue (0.2.0)
76+
ffi (>= 0.5.0)
77+
ruby18_source_location (0.2)
78+
sass (3.2.10)
79+
sprockets (2.10.0)
80+
hike (~> 1.2)
81+
multi_json (~> 1.0)
82+
rack (~> 1.0)
83+
tilt (~> 1.1, != 1.3.0)
84+
sprockets-helpers (1.0.1)
85+
sprockets (~> 2.0)
86+
sprockets-sass (1.0.1)
87+
sprockets (~> 2.0)
88+
tilt (~> 1.1)
89+
thor (0.18.1)
90+
tilt (1.3.7)
91+
uglifier (2.1.2)
92+
execjs (>= 0.3.0)
93+
multi_json (~> 1.0, >= 1.0.2)
94+
95+
PLATFORMS
96+
ruby
97+
98+
DEPENDENCIES
99+
middleman (~> 3.1.5)
100+
middleman-livereload (~> 3.1.0)
101+
ruby18_source_location
102+
wdm (~> 0.1.0)

config.rb

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
###
2+
# Compass
3+
###
4+
5+
# Change Compass configuration
6+
# compass_config do |config|
7+
# config.output_style = :compact
8+
# end
9+
10+
###
11+
# Page options, layouts, aliases and proxies
12+
###
13+
14+
# Per-page layout changes:
15+
#
16+
# With no layout
17+
# page "/path/to/file.html", :layout => false
18+
#
19+
# With alternative layout
20+
# page "/path/to/file.html", :layout => :otherlayout
21+
#
22+
# A path which all have the same layout
23+
# with_layout :admin do
24+
# page "/admin/*"
25+
# end
26+
27+
# Proxy pages (http://middlemanapp.com/dynamic-pages/)
28+
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => {
29+
# :which_fake_page => "Rendering a fake page with a local variable" }
30+
31+
###
32+
# Helpers
33+
###
34+
35+
# Automatic image dimensions on image_tag helper
36+
# activate :automatic_image_sizes
37+
38+
# Reload the browser automatically whenever files change
39+
# activate :livereload
40+
41+
# Methods defined in the helpers block are available in templates
42+
# helpers do
43+
# def some_helper
44+
# "Helping"
45+
# end
46+
# end
47+
48+
set :css_dir, 'stylesheets'
49+
50+
set :js_dir, 'javascripts'
51+
52+
set :images_dir, 'images'
53+
54+
# Build-specific configuration
55+
configure :build do
56+
# For example, change the Compass output style for deployment
57+
# activate :minify_css
58+
59+
# Minify Javascript on build
60+
# activate :minify_javascript
61+
62+
# Enable cache buster
63+
# activate :asset_hash
64+
65+
# Use relative URLs
66+
# activate :relative_assets
67+
68+
# Or use a different image path
69+
# set :http_prefix, "/Content/images/"
70+
end

source/images/background.png

2.66 KB
Loading

source/images/middleman.png

24.7 KB
Loading

source/index.html.erb

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Welcome to Middleman
3+
---
4+
5+
<div class="welcome">
6+
<h1>Middleman is Watching</h1>
7+
<p class="doc">
8+
<%= link_to "Read Online Documentation", "http://middlemanapp.com/" %>
9+
</p><!-- .doc -->
10+
</div><!-- .welcome -->

source/javascripts/all.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//= require_tree .

source/layouts/layout.erb

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
6+
<!-- Always force latest IE rendering engine or request Chrome Frame -->
7+
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
8+
9+
<!-- Use title if it's in the page YAML frontmatter -->
10+
<title><%= current_page.data.title || "The Middleman" %></title>
11+
12+
<%= stylesheet_link_tag "normalize", "all" %>
13+
<%= javascript_include_tag "all" %>
14+
</head>
15+
16+
<body class="<%= page_classes %>">
17+
<%= yield %>
18+
</body>
19+
</html>

source/stylesheets/all.css

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
@charset "utf-8";
2+
3+
body {
4+
background: #d4d4d4 url("../images/background.png");
5+
text-align: center;
6+
font-family: sans-serif; }
7+
8+
h1 {
9+
color: rgba(0, 0, 0, .3);
10+
font-weight: bold;
11+
font-size: 32px;
12+
letter-spacing: -1px;
13+
text-transform: uppercase;
14+
text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
15+
background: url("../images/middleman.png") no-repeat center 100px;
16+
padding: 350px 0 10px;
17+
margin: 0; }
18+
19+
.doc {
20+
font-size: 14px;
21+
margin: 0; }
22+
.doc:before,
23+
.doc:after {
24+
opacity: .2;
25+
padding: 6px;
26+
font-style: normal;
27+
position: relative;
28+
content: "•"; }
29+
.doc a {
30+
color: rgba(0, 0, 0, 0.3); }
31+
.doc a:hover {
32+
color: #666; }
33+
34+
.welcome {
35+
-webkit-animation-name: welcome;
36+
-webkit-animation-duration: .9s; }
37+
38+
@-webkit-keyframes welcome {
39+
from {
40+
-webkit-transform: scale(0);
41+
opacity: 0;
42+
}
43+
50% {
44+
-webkit-transform: scale(0);
45+
opacity: 0;
46+
}
47+
82.5% {
48+
-webkit-transform: scale(1.03);
49+
-webkit-animation-timing-function: ease-out;
50+
opacity: 1;
51+
}
52+
to {
53+
-webkit-transform: scale(1);
54+
}
55+
}

0 commit comments

Comments
 (0)