Skip to content

Commit fd71b97

Browse files
wip-y.
1 parent 9e38696 commit fd71b97

15 files changed

+68
-796
lines changed

bin/compile.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function compile(ready) {
105105
if(err) {
106106
return ready(err)
107107
}
108-
console.log('TEMPLATE: ', template)
108+
109109
var output = handlebars.compile(txt)(ctx)
110110

111111
fs.writeFile('output/' + outputFile, output, function(err) {
@@ -158,8 +158,6 @@ function wrapperify(name, txt) {
158158

159159
this.content = new handlebars.SafeString(content)
160160

161-
console.log(name, this.content)
162-
163161
return tpl(this)
164162
})
165163
}

bin/install.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ var meetups = require('knode-meetups')
1313
var base_dir = path.join(__dirname, '..', 'output')
1414

1515
var targets = {
16-
'stylesheets': path.join(__dirname, '..', 'stylesheets')
17-
, 'javascripts': path.join(__dirname, '..', 'javascripts')
18-
, 'images': path.join(__dirname, '..', 'images')
16+
'javascripts': path.join(__dirname, '..', 'javascripts')
1917
, 'style': path.join(__dirname, '..', 'node_modules', 'knode-style')
2018
}
2119

helpers/base.hbs

Lines changed: 40 additions & 259 deletions
Original file line numberDiff line numberDiff line change
@@ -1,261 +1,42 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset='utf-8' />
5-
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
6-
<meta name="description" content="Meetups: A place to put info about your local meetup. Anything node-flavored JS welcome!" />
7-
8-
<link rel="stylesheet" type="text/css" media="screen" href="/stylesheets/stylesheet.css">
9-
<link rel="stylesheet" href="/style/assets/css/bootstrap.min.css" />
10-
<link rel="stylesheet" href="/style/assets/css/ostrich-sans/stylesheet.css" />
11-
<link rel="stylesheet" href="/style/assets/css/main.css" />
12-
<link rel="stylesheet" media="screen" href="/stylesheets/site-specific.css" />
13-
14-
<title>{{#if title}}{{ title }}{{else}}KNODE{{/if}}</title>
15-
</head>
16-
17-
<body id="{{body_id}}" class="{{body_class}}">
18-
<div id="hero" style="">
19-
{{#if logo}}
20-
<svg width="220" height="220" style="margin: 0pt auto; text-align:center;">
21-
<defs>
22-
<clipPath id="hexagon">
23-
<path d="
24-
M0,64
25-
L0,94
26-
Q0 96,4 98
27-
L60,126
28-
Q64 128,68 126
29-
L124,98
30-
Q128 96,128 94
31-
L128,34
32-
Q128 32,124 30
33-
L68,2
34-
Q64 0,60 2
35-
L4,30
36-
Q0 32,0 34
37-
L0,32
38-
Z
39-
"></path>
40-
</clipPath>
41-
<clipPath id="pages">
42-
<path d="
43-
M18,40
44-
L18,70
45-
c4 28, 42 2, 46 26
46-
L64,66
47-
c-4 -30, -40 -4, -46 -26
48-
"></path>
49-
50-
<path transform="translate(128,0)scale(-1,1)" d="
51-
M18,40
52-
L18,70
53-
c4 28, 42 2, 46 26
54-
L64,66
55-
c-4 -30, -40 -4, -46 -26
56-
"></path>
57-
</clipPath>
58-
</defs>
59-
60-
<g transform="translate(14,14)scale(1.5)">
61-
<path class="hexagon" fill="none" d="
62-
M0,64
63-
L0,96
64-
L64,128
65-
L124,98
66-
L128,96
67-
L128,32
68-
L64,0
69-
L0,32
70-
Z
71-
"></path>
72-
<!--
73-
<path class="hexagon" fill="none" d="
74-
M0,64
75-
L0,94
76-
Q0 96,4 98
77-
L60,126
78-
Q64 128,68 126
79-
L124,98
80-
Q128 96,128 94
81-
L128,34
82-
Q128 32,124 30
83-
L68,2
84-
Q64 0,60 2
85-
L4,30
86-
Q0 32,0 34
87-
L0,32
88-
Z
89-
" />
90-
-->
91-
92-
<path fill="black" fill-opacity="0.333" stroke="none" d="
93-
M0,64
94-
L0,94
95-
Q0 96,4 98
96-
L60,126
97-
Q64 128,68 126
98-
L124,98
99-
Q128 96,128 94
100-
L128,34
101-
Q128 32,124 30
102-
L68,2
103-
Q64 0,60 2
104-
L4,30
105-
Q0 32,0 34
106-
L0,32
107-
Z
108-
">
109-
</path>
110-
111-
112-
<path class="book" stroke-width="0" stroke="#f4f4f2" d="
113-
M16,42
114-
L16,84
115-
L64,110
116-
L112,84
117-
L112,42
118-
L64,68
119-
"></path>
120-
121-
<path stroke-width="0" fill="#9e9a9b" d="
122-
M18,66
123-
L18,82
124-
L64,108
125-
L64,66
126-
"></path>
127-
128-
<path transform="translate(128,0)scale(-1,1)" stroke-width="0" fill="#7e7a7b" d="
129-
M18,66
130-
L18,82
131-
L64,108
132-
L64,66
133-
"></path>
134-
135-
<path stroke-width="0" fill="#f4f4f2" d="
136-
M18,40
137-
L18,70
138-
c4 28, 42 2, 46 26
139-
L64,66
140-
c-4 -30, -40 -4, -46 -26
141-
"></path>
142-
143-
<path transform="translate(128,0)scale(-1,1)" stroke-width="0" fill="#bebabb" d="
144-
M18,40
145-
L18,70
146-
c4 28, 42 2, 46 26
147-
L64,66
148-
c-4 -30, -40 -4, -46 -26
149-
"></path>
150-
151-
<path stroke-width="0" fill="#4e4a4b" d="
152-
M 30,86
153-
c38 0, 30 12, 32 18
154-
c0 2, 0 -6, -32 -18
155-
"></path>
156-
157-
<path transform="translate(128,0)scale(-1,1)" stroke-width="0" fill="#4e4a4b" d="
158-
M 30,86
159-
c38 0, 30 12, 32 18
160-
c0 2, 0 -6, -32 -18
161-
"></path>
162-
163-
<rect width="28" height="128" x="72" y="0" clip-path="url(#pages)" fill="#f4f4f2"></rect>
164-
<rect width="8" height="128" x="48" y="0" clip-path="url(#pages)" fill="#fff"></rect>
165-
<rect width="8" height="128" x="80" y="0" clip-path="url(#pages)" fill="#fff"></rect>
166-
<rect width="2" height="128" x="62" y="0" clip-path="url(#pages)" fill="#bebabb"></rect>
167-
<rect width="1" height="128" x="64" y="0" clip-path="url(#pages)" fill="#4e4a4b"></rect>
168-
169-
<text class="title" x="44" y="42" font-size="24" fill="white">KNODE</text>
170-
<g>
171-
<path class="book-text" stroke-dasharray="0,12,17,1,6,1,7,1,5,20" d="
172-
M18,40
173-
c4 28, 42 2, 46 26
174-
"></path>
175-
<path class="book-text" stroke-dasharray="0,12,6,1,3,1,4,1,8,1,7,13" d="
176-
M18,43
177-
c4 28, 42 2, 46 26
178-
"></path>
179-
<path class="book-text" stroke-dasharray="0,12,11,1,10,2,12,20" d="
180-
M18,49
181-
c4 28, 42 2, 46 26
182-
"></path>
183-
<path class="book-text" stroke-dasharray="0,12,12,1,4,1,5,1,7,1,3,20" d="
184-
M18,52
185-
c4 28, 42 2, 46 26
186-
"></path>
187-
<path class="book-text" stroke-dasharray="0,12,6,1,3,1,4,1,8,1,7,13" d="
188-
M18,55
189-
c4 28, 42 2, 46 26
190-
"></path>
191-
192-
<path class="book-text" stroke-dasharray="0,12,8,20,0,42" d="
193-
M18,58
194-
c4 28, 42 2, 46 26
195-
"></path>
196-
197-
<path class="book-text" stroke-dasharray="0,12,24,2,12,20" d="
198-
M18,64
199-
c4 28, 42 2, 46 26
200-
"></path>
201-
<path class="book-text" stroke-dasharray="0,12,8,1,6,1,7,1,6,1,3,20" d="
202-
M18,67
203-
c4 28, 42 2, 46 26
204-
"></path>
205-
</g>
206-
<g transform="translate(128,0)scale(-1,1)">
207-
<path class="book-text" stroke-dasharray="0,12,17,1,6,1,7,1,5,20" d="
208-
M18,40
209-
c4 28, 42 2, 46 26
210-
"></path>
211-
<path class="book-text" stroke-dasharray="0,18,6,1,3,1,4,1,8,1,7,13" d="
212-
M18,43
213-
c4 28, 42 2, 46 26
214-
"></path>
215-
<path class="book-text" stroke-dasharray="0,14,11,1,10,2,12,20" d="
216-
M18,49
217-
c4 28, 42 2, 46 26
218-
"></path>
219-
<path class="book-text" stroke-dasharray="0,15,12,1,4,1,5,1,7,1,3,20" d="
220-
M18,52
221-
c4 28, 42 2, 46 26
222-
"></path>
223-
<path class="book-text" stroke-dasharray="0,18,6,1,3,1,4,1,8,1,7,13" d="
224-
M18,55
225-
c4 28, 42 2, 46 26
226-
"></path>
227-
228-
<path class="book-text" stroke-dasharray="0,42,8,20" d="
229-
M18,58
230-
c4 28, 42 2, 46 26
231-
"></path>
232-
233-
<path class="book-text" stroke-dasharray="0,12,24,2,12,20" d="
234-
M18,64
235-
c4 28, 42 2, 46 26
236-
"></path>
237-
<path class="book-text" stroke-dasharray="0,16,8,1,6,1,7,1,6,1,3,20" d="
238-
M18,67
239-
c4 28, 42 2, 46 26
240-
"></path>
241-
</g>
242-
</g>
243-
</svg>
244-
<h2>a resource for all things node</h2>
245-
{{/if}}
246-
<button type="button" class="btn btn-default navbar-btn"><a href="/speakers">Speakers</a></button>
247-
<button type="button" class="btn btn-default navbar-btn"><a href="/meetups">Meetups</a></button>
248-
<button type="button" class="btn btn-default navbar-btn"><a href="#">CFP</a></button>
249-
<button type="button" class="btn btn-default navbar-btn"><a href="http://nodemeatspace.com/">Node-Meatspace</a></button>
250-
<button type="button" class="btn btn-default navbar-btn"><a href="#">Q &amp; A</a></button>
251-
</div>
252-
253-
{{./content}}
254-
255-
<div id="footer_wrap" class="outer">
256-
<footer class="inner">
257-
<p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
258-
</footer>
259-
</div>
260-
</body>
261-
</html>
3+
<head>
4+
<meta charset='utf-8' />
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
6+
<meta name="description" content="Meetups: A place to put info about your local meetup. Anything node-flavored JS welcome!" />
7+
8+
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/1.4.1/css/ionicons.min.css" />
9+
<link rel="stylesheet" href="/style/assets/css/ostrich-sans/stylesheet.css" />
10+
<link rel="stylesheet" href="/style/assets/css/main.css" />
11+
12+
<title>{{#if title}}{{ title }}{{else}}KNODE{{/if}}</title>
13+
</head>
14+
15+
<body id="{{body_id}}" class="{{body_class}}">
16+
<div id="hero" style="">
17+
{{#if logo}}
18+
<div>
19+
<h1 class="logo">KNODE</h1>
20+
<h2><span>Help us</span> build a resource for all things <span>node</span>.</h2>
21+
<a class="call-to-action" href="#">Find out how.</a>
22+
</div>
23+
{{/if}}
24+
<nav>
25+
<a class="nav-home" href="/">KNODE.IO</a>
26+
<a class="nav-speakers" href="/speakers">Speakers</a>
27+
<a class="nav-meetups" href="/meetups">Meetups</a>
28+
<a class="nav-cfp" href="#">CFP</a>
29+
<a href="http://nodemeatspace.com/">Events</a>
30+
<a href="https://github.com/knode/questions/issues">Q &amp; A</a>
31+
</nav>
32+
</div>
33+
34+
{{./content}}
35+
36+
<div id="footer_wrap" class="outer">
37+
<footer class="inner">
38+
<p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
39+
</footer>
40+
</div>
41+
</body>
42+
</html>

helpers/wrap.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div id="main_content_wrap" class="outer">
2-
<section id="main_content" class="inner">
1+
<div id="main_content_wrap" class="centered">
2+
<div id="main_content" class="row">
33
{{content}}
4-
</section>
4+
</div>
55
</div>

images/bg_hr.png

-943 Bytes
Binary file not shown.

images/blacktocat.png

-1.39 KB
Binary file not shown.

images/github_icon.png

-1.28 KB
Binary file not shown.

images/icon_download.png

-1.13 KB
Binary file not shown.

images/sprite_download.png

-16.4 KB
Binary file not shown.

images/twitter_icon.png

-1.34 KB
Binary file not shown.

0 commit comments

Comments
 (0)