Skip to content

Commit 8b9b943

Browse files
committed
Merge pull request #27 from rubyberlin/design-update
design update
2 parents fbe38b8 + 14f6939 commit 8b9b943

File tree

12 files changed

+375
-161
lines changed

12 files changed

+375
-161
lines changed

Gemfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# If you have OpenSSL installed, we recommend updating
2-
# the following line to use "https"
3-
source 'http://rubygems.org'
1+
source 'https://rubygems.org'
42

5-
gem "middleman", "~>3.2.0"
3+
gem "middleman"
64

75
# Live-reloading plugin
8-
gem "middleman-livereload", "~> 3.1.0"
6+
gem "middleman-livereload"
97

108
# deploy to github pages
119
gem "middleman-deploy"
1210

1311
# For faster file watcher updates on Windows:
14-
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
12+
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]

Gemfile.lock

Lines changed: 82 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,74 @@
11
GEM
2-
remote: http://rubygems.org/
2+
remote: https://rubygems.org/
33
specs:
4-
activesupport (3.2.15)
5-
i18n (~> 0.6, >= 0.6.4)
6-
multi_json (~> 1.0)
7-
chunky_png (1.2.9)
8-
coffee-script (2.2.0)
4+
activesupport (4.1.5)
5+
i18n (~> 0.6, >= 0.6.9)
6+
json (~> 1.7, >= 1.7.7)
7+
minitest (~> 5.1)
8+
thread_safe (~> 0.1)
9+
tzinfo (~> 1.1)
10+
celluloid (0.15.2)
11+
timers (~> 1.1.0)
12+
chunky_png (1.3.1)
13+
coffee-script (2.3.0)
914
coffee-script-source
1015
execjs
11-
coffee-script-source (1.6.3)
12-
compass (0.12.2)
16+
coffee-script-source (1.7.1)
17+
compass (1.0.1)
1318
chunky_png (~> 1.2)
14-
fssm (>= 0.2.7)
15-
sass (~> 3.1)
19+
compass-core (~> 1.0.1)
20+
compass-import-once (~> 1.0.5)
21+
rb-fsevent (>= 0.9.3)
22+
rb-inotify (>= 0.9)
23+
sass (>= 3.3.13, < 3.5)
24+
compass-core (1.0.1)
25+
multi_json (~> 1.0)
26+
sass (>= 3.3.0, < 3.5)
27+
compass-import-once (1.0.5)
28+
sass (>= 3.2, < 3.5)
1629
em-websocket (0.5.0)
1730
eventmachine (>= 0.12.9)
1831
http_parser.rb (~> 0.5.3)
32+
erubis (2.7.0)
1933
eventmachine (1.0.3)
20-
execjs (1.4.0)
21-
multi_json (~> 1.0)
34+
execjs (2.2.1)
2235
ffi (1.9.3)
23-
fssm (0.2.10)
24-
haml (4.0.4)
36+
haml (4.0.5)
2537
tilt
2638
hike (1.2.3)
39+
hooks (0.4.0)
40+
uber (~> 0.0.4)
2741
http_parser.rb (0.5.3)
28-
i18n (0.6.5)
29-
kramdown (1.2.0)
30-
listen (1.3.1)
42+
i18n (0.6.11)
43+
json (1.8.1)
44+
kramdown (1.4.1)
45+
listen (2.7.9)
46+
celluloid (>= 0.15.2)
3147
rb-fsevent (>= 0.9.3)
3248
rb-inotify (>= 0.9)
33-
rb-kqueue (>= 0.2)
34-
middleman (3.2.0)
35-
coffee-script (~> 2.2.0)
36-
compass (>= 0.12.2)
37-
execjs (~> 1.4.0)
38-
haml (>= 3.1.6)
49+
middleman (3.3.5)
50+
coffee-script (~> 2.2)
51+
compass (>= 0.12.4)
52+
compass-import-once (= 1.0.5)
53+
execjs (~> 2.0)
54+
haml (>= 4.0.5)
3955
kramdown (~> 1.2)
40-
middleman-core (= 3.2.0)
56+
middleman-core (= 3.3.5)
4157
middleman-sprockets (>= 3.1.2)
42-
sass (>= 3.1.20)
43-
uglifier (~> 2.1.0)
44-
middleman-core (3.2.0)
45-
activesupport (~> 3.2.6)
58+
sass (>= 3.2.17, < 4.0)
59+
uglifier (~> 2.5)
60+
middleman-core (3.3.5)
61+
activesupport (~> 4.1.0)
4662
bundler (~> 1.1)
47-
i18n (~> 0.6.1)
48-
listen (~> 1.1)
49-
rack (>= 1.4.5)
50-
rack-test (~> 0.6.1)
63+
erubis
64+
hooks (~> 0.3)
65+
i18n (~> 0.6.9)
66+
listen (>= 2.7.9, < 3.0)
67+
padrino-helpers (~> 0.12.3)
68+
rack (>= 1.4.5, < 2.0)
69+
rack-test (~> 0.6.2)
5170
thor (>= 0.15.2, < 2.0)
52-
tilt (~> 1.3.6)
71+
tilt (~> 1.4.1, < 2.0)
5372
middleman-deploy (0.2.4)
5473
middleman-core (>= 3.0.0)
5574
net-sftp
@@ -59,48 +78,58 @@ GEM
5978
middleman-core (>= 3.0.2)
6079
multi_json (~> 1.0)
6180
rack-livereload
62-
middleman-sprockets (3.2.0)
63-
middleman-core (~> 3.2)
64-
sprockets (~> 2.1)
65-
sprockets-helpers (~> 1.0.0)
66-
sprockets-sass (~> 1.0.0)
67-
multi_json (1.8.2)
81+
middleman-sprockets (3.3.9)
82+
middleman-core (~> 3.3)
83+
sprockets (~> 2.12.1)
84+
sprockets-helpers (~> 1.1.0)
85+
sprockets-sass (~> 1.2.0)
86+
minitest (5.4.0)
87+
multi_json (1.10.1)
6888
net-sftp (2.1.2)
6989
net-ssh (>= 2.6.5)
7090
net-ssh (2.9.1)
91+
padrino-helpers (0.12.3)
92+
i18n (~> 0.6, >= 0.6.7)
93+
padrino-support (= 0.12.3)
94+
tilt (~> 1.4.1)
95+
padrino-support (0.12.3)
96+
activesupport (>= 3.1)
7197
ptools (1.2.4)
7298
rack (1.5.2)
7399
rack-livereload (0.3.15)
74100
rack
75101
rack-test (0.6.2)
76102
rack (>= 1.0)
77-
rb-fsevent (0.9.3)
78-
rb-inotify (0.9.2)
79-
ffi (>= 0.5.0)
80-
rb-kqueue (0.2.0)
103+
rb-fsevent (0.9.4)
104+
rb-inotify (0.9.5)
81105
ffi (>= 0.5.0)
82-
sass (3.2.12)
83-
sprockets (2.10.1)
106+
sass (3.4.1)
107+
sprockets (2.12.1)
84108
hike (~> 1.2)
85109
multi_json (~> 1.0)
86110
rack (~> 1.0)
87111
tilt (~> 1.1, != 1.3.0)
88-
sprockets-helpers (1.0.1)
112+
sprockets-helpers (1.1.0)
89113
sprockets (~> 2.0)
90-
sprockets-sass (1.0.2)
114+
sprockets-sass (1.2.0)
91115
sprockets (~> 2.0)
92116
tilt (~> 1.1)
93-
thor (0.18.1)
94-
tilt (1.3.7)
95-
uglifier (2.1.2)
117+
thor (0.19.1)
118+
thread_safe (0.3.4)
119+
tilt (1.4.1)
120+
timers (1.1.0)
121+
tzinfo (1.2.2)
122+
thread_safe (~> 0.1)
123+
uber (0.0.8)
124+
uglifier (2.5.3)
96125
execjs (>= 0.3.0)
97-
multi_json (~> 1.0, >= 1.0.2)
126+
json (>= 1.8.0)
98127

99128
PLATFORMS
100129
ruby
101130

102131
DEPENDENCIES
103-
middleman (~> 3.2.0)
132+
middleman
104133
middleman-deploy
105-
middleman-livereload (~> 3.1.0)
134+
middleman-livereload
106135
wdm (~> 0.1.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Additions or Changes to the Code of Conduct?
1717
--------------------------------------------
1818

1919
1. Fork repository.
20-
2. Open *source/_code-of-conduct.md* and edit it.
20+
2. Open *source/localizable/_code-of-conduct.<locale>.md* and edit it.
2121
3. Open a pull request and add some lines why you want it to be changed.
2222

2323

config.rb

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,29 @@
1-
###
2-
# Compass
3-
###
1+
activate :i18n, path: '/:locale'
42

5-
# Change Compass configuration
6-
# compass_config do |config|
7-
# config.output_style = :compact
8-
# end
3+
helpers do
94

10-
###
11-
# Page options, layouts, aliases and proxies
12-
###
5+
def t(id, replacements = {})
6+
text = I18n.t(id)
7+
replacements.each do |key, value|
8+
text.gsub!(/%\{#{key}(:(.+?))?\}/) { value.gsub('%', $2 || '%') }
9+
end
10+
text
11+
end
1312

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
13+
end
4714

4815
set :css_dir, 'stylesheets'
49-
5016
set :js_dir, 'javascripts'
51-
5217
set :images_dir, 'images'
5318

54-
# Build-specific configuration
5519
configure :build do
56-
# For example, change the Compass output style for deployment
5720
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/"
21+
activate :asset_hash
22+
activate :relative_assets
7023
end
7124

7225
activate :deploy do |deploy|
7326
deploy.method = :git
7427
deploy.build_before = true # default: false
7528
end
29+

locales/en.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
en:
3+
header:
4+
title: "Berlin Code of Conduct"
5+
sub-title: "A Code of Conduct for all User Groups and Conferences"
6+
supporters:
7+
title: "Supporters"
8+
sub-title: "Those user groups and conferences support the Berlin Code of Conduct:"
9+
add: "To list your user group/conference here, just add it in a pull request to %{link:our repository}."
10+
footer:
11+
attribution: "This code of conduct is adapted from the %{link:pdx.rb code of conduct}."
12+

locales/es.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
es:
3+
header:
4+
title: "Berlín Code of Conduct"
5+
sub-title: "Un Código de Conducta para todas las Comunidades de Usuarios y Conferencias"
6+
supporters:
7+
title: "Partidarios/as"
8+
sub-title: "Estas Comunidades y Conferencias son partidarias del Berlín Code of Conduct:"
9+
add: "Para agregar tu comunidad/conferencia aquí, sólo agrégalo como un Pull Request en %{link:nuestro repositorio}."
10+
footer:
11+
attribution: "Este código de conducta es una adaptación del %{link:código de conducta de pdx.rb}."
12+

source/images/logo.svg

Lines changed: 17 additions & 0 deletions
Loading

source/layouts/layout.erb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
<!doctype html>
2-
<html>
2+
<html lang="<%= I18n.locale %>">
33
<head>
44
<meta charset="utf-8">
55
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
66
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" name="viewport">
7-
<title>Berlin Code of Conduct</title>
8-
<link href="stylesheets/style.css" rel="stylesheet">
7+
<meta content="<%= t('header.title') %>" name="description">
8+
<title><%= t('header.title') %></title>
9+
<link href="<%= asset_url('stylesheets/style.css') %>" rel="stylesheet">
910
<script src="//use.typekit.net/vvs3qav.js"></script>
1011
<script>try{Typekit.load();}catch(e){}</script>
1112
</head>
1213
<body class="layout">
13-
<%= yield %>
14+
<div class="layout--container">
15+
<%= yield %>
16+
</div>
1417
</body>
1518
</html>
1619

File renamed without changes.

0 commit comments

Comments
 (0)