forked from codeformuenster/codeformuenster.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
339 lines (267 loc) · 12.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
---
layout: default
title: Code for Münster
---
<style>
#muensterBG {
background: url(/img/schloss-bg.jpg);
background-repeat: no-repeat;
-moz-background-size:100%;
-webkit-background-size:100%;
background-size:100%;
background-position:center bottom;
height: 500px
}
.progress {
width: 100%;
height: 50px;
}
.progress-wrap {
background: #077737;
height: 20px;
margin-bottom:5px;
overflow: hidden;
position: relative;
}
.progress-wrap .progress-bar {
background: #ddd;
left: 0;
position: absolute;
top: 0;
}
.projectTeaser p {margin:0}
.previewImage {width:100%;
overflow:hidden;
margin-bottom:10px;
padding: 33%;
box-sizing: border-box;
position: relative;
background-color:#eee;
}
.previewImage img, .previewImage .emptyimg {
position: absolute;
top: 0;
left: 0;
display:block;
}
.emptyimg {
text-align:center;
width:100%;
margin-top:-50px;
height:100%;
color: #ccc;
font-size: 80pt;
}
.module-header a {color:white}
.module-header {
padding: 15px 5px;
background: #333;
color: #fff;
text-align: center;
white-space: nowrap;
overflow: hidden;
}
.previewText {height:60px;overflow:hidden}
.icon-container-title {
padding: 15px;
background: #16CE65!important;
margin: 0 0 30px!important;
border-top: none;
font-family: Montserrat,Helvetica,Arial,sans-serif;
text-transform: uppercase;
color: #137254;
}
.projectTeaser { background: #CACACA; }
.projectInner {padding: 20px 10px;}
.meetup {color:#E0393E}
.facebook {color: #3b5998}
.twitter {color: #55acee}
.micon {
padding: 7px 10px;
margin: 10px;
}
</style>
<div class="uk-grid" data-uk-grid-margin>
<div class="uk-width-medium-1-1">
<div class="uk-vertical-align uk-text-center" id="muensterBG" >
<div class="uk-vertical-align-middle uk-width-1-2">
<h1 class="uk-heading-large"><img src="http://codeformuenster.org/img/cfm_logo.png" /><br />Code for Münster</h1>
<p class="uk-text-large"><b>Make a difference</b><br />Nutz' deine Fähigkeiten um deine Stadt zu verbessern!</p>
<br />
<center>
<a target="_blank" class="uk-button micon twitter" data-uk-tooltip title="twitter" href="https://twitter.com/codeformuenster"><i class="uk-icon-twitter uk-icon-large"></i></a>
<a target="_blank" class="uk-button micon facebook" data-uk-tooltip title="facebook" href="https://www.facebook.com/codeformuenster/"><i class="uk-icon-facebook-official uk-icon-large"></i></a>
<a target="_blank" class="uk-button micon meetup" data-uk-tooltip title="meetup.com" href="http://www.meetup.com/OK-Lab-Munster/"><i class="uk-icon-maxcdn uk-icon-large"></i></a>
</center>
<br /> <br /><br /><br /><br />
</div>
</div>
</div>
</div>
<hr class="uk-grid-divider wider">
<div class="uk-grid" data-uk-grid-margin>
<div class="uk-width-medium-1-2">
<img width="660" height="400" src="/img/meetup.jpg" alt="">
</div>
<div class="uk-width-medium-1-2">
<a name="mitmachen"></a>
<h1>Wer sind wir?</h1>
<p>Wir sind Teil des Netzwerks <a href="http://codefor.de" target="_blank">Code for Germany</a>, einem Programm der <a href="http://okfn.de" target="_blank">Open Knowledge Foundation</a> Deutschland. Code for Germany ist Teil eines <a href="http://codeforall.org">internationalen Netzwerks</a> welches von <a href="http://codeforamerica.org" target="_blank">Code for America</a> ins Leben gerufen wurde. In Deutschland ging das Programm 2014 an den Start, mit anfangs acht Open Knowledge Labs, Münster war eines davon. Die Initiative dazu ergriffen Daniel und Mila und launchten das neue Lab zum Open Data Day 2014. Seitdem ist das Netzwerk auf 24 Labs gewachsen und das Münsteraner Lab hat Mitstreiter aus verschiedenen Unternehmen und Hintergründen gewonnen. Die meisten von uns sind Softwareentwickler oder Studenten. Von den Studierenden kommt die Mehrzahl vom <a href="http://ifgi.uni-muester.de" target="_blank">Institut für Geoinformatik.</a></p>
<h2>Was machen wir?</h2>
<p>Wir wollen in Münster den Bürgern und Bürgerinnen bessere Möglichkeiten zur Verfügung stellen um sich informieren und beteiligen zu können. Darüber hinaus wollen wir der Stadtverwaltung und Politik dabei helfen besser und direkter mit den Bürger zu kommunizieren, um sich auszutauschen und deren Feedback zu bekommen.</p>
</p> </div>
</div>
<hr class="uk-grid-divider wider">
<div class="uk-grid" data-uk-grid-margin>
<div class="uk-width-medium-1-2">
{% include meetup.html %}
</div>
<div class="uk-width-medium-1-2">
<img width="660" height="400" src="/img/hacknight.jpg" alt="">
</div>
</div>
<hr class="uk-grid-divider wider">
<a name="projekte"></a>
<h1 class="uk-text-center">Projekte</h1>
<div class="uk-grid" id="projects" data-uk-grid-margin>
</div>
<hr class="uk-grid-divider wider">
<h2 class="uk-text-center">Aktuelle Blog-Artikel</h2>
<article class="uk-article uk-panel uk-panel-box uk-text-center">
<h2 class="uk-article-title">
<a href="{{ site.posts[0].url }}">{{ site.posts[0].title }}</a>
</h2>
<p class="uk-article-meta">
Verfasst von {{site.posts[0].author}} am {{ site.posts[0].date | date: "%-d %B %Y" }}
in <a href="{{ "/blog/index.html" | prepend: site.baseurl }}">{{site.posts[0].category}}</a>
</p>
<p> {{ site.posts[0].excerpt }}
</p>
<p><a class="uk-button uk-button-primary" href="{{ site.posts[0].url }}">weiterlesen…</a>
</p>
</article>
<article class="uk-article uk-panel uk-panel-box uk-text-center">
<h2 class="uk-article-title">
<a href="{{ site.posts[1].url }}">{{ site.posts[1].title }}</a>
</h2>
<p class="uk-article-meta">
Verfasst von {{site.posts[1].author}} am {{ site.posts[1].date | date: "%-d %B %Y" }}
in <a href="{{ "/blog/index.html" | prepend: site.baseurl }}">{{site.posts[1].category}}</a>
</p>
<p> {{ site.posts[1].excerpt }}
</p>
<p><a class="uk-button uk-button-primary" href="{{ site.posts[1].url }}">weiterlesen…</a>
</p>
</article>
<hr class="uk-grid-divider wider">
<h1 class="uk-text-center">Mitglieder</h1>
<div id="contributors" class="uk-grid" data-uk-grid-margin>
</div>
<script type="text/javascript">
function showContributor( contributor ) {
//console.log(contributor);
$("#contributors").append('<div class="uk-width-1-4 uk-width-medium-1-6 uk-width-large-1-6">'+
'<figure class="uk-overlay uk-overlay-hover contrib-gray">'+ ( contributor.avatar_url ? '<img width="150" src="'+contributor.avatar_url+'">'
: '<img width="150" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mO4/R8AArgB255xVG4AAAAASUVORK5CYII=">' )+
'<figcaption class="uk-overlay-panel uk-overlay-background uk-overlay-fade uk-flex uk-flex-center uk-flex-middle uk-text-center"><div>'+contributor.login+'<br />'+( contributor.contributions?contributor.contributions+' points':"")+'</div>'+
'</figcaption><a class="uk-position-cover" href="'+contributor.html_url+'"></a></figure></div>'
);
}
$.getJSON( "/json/members.json", function( data ) {
$.each( data, function( key, val ) {
showContributor(val);
});
});
function showUser( user ) {
if (!user) return "";
return '<div data-uk-tooltip title="'+user.name+'" style="float:left;width:50px;margin:5px 5px 0 0;overflow:hidden">'
+'<a href="'+user.html_url+'" target="_blank"><img src="'+ user.avatar_url+'" width="100%" /></a></div>';
}
function showFeatureIcon(icon) {
var title = "fertiggestelltes Projekt";
var color="orange";
if (icon == "flash") {
color="#f33";
title ="derzeit kaputt";
}
if (icon == "cloud-upload") {
color="#39f";
title ="..work in progress..";
}
if (icon == 'gears') {
color="#88b";
title ="In der Planung";
}
return '<div style="width:1px;height:1px"><div data-uk-tooltip title="'+title+'" style="position:relative;left:5px;top:-25px;color:'+color+';font-size:50px"><i class="uk-icon-'+icon+'"></i></div></div>'
}
function showProject( p, noimage ) {
var percent = p.closed_tasks / p.total_tasks * 100;
var featureIcon = "";
featureIcon = ((p.status=='done')||(p.status=='ok'))?'star':'';
featureIcon = ((!featureIcon) && p.description.match(/\(down\)/i))?'flash':featureIcon;
featureIcon = ((!featureIcon) && p.description.match(/idee/i))?'gears':featureIcon;
featureIcon = ((!featureIcon) && p.description.match(/\(neu\)/i))?'cloud-upload':featureIcon;
$("#projects").append('<div class="uk-width-1-2 uk-width-medium-1-4 uk-width-large-1-4"><div class="projectTeaser">'
+(featureIcon?showFeatureIcon(featureIcon): '')
+'<div class="module-header uk-text-large"><a href="'+p.html_url+'">'+p.title+'</a></div>'
+'<div class="projectInner">'
+ ( (p.image&&!noimage)?'<div class="previewImage"><a href="'+p.url+'"><img src="'+p.image+'" width="100%" /></a></div>' : '<div class="previewImage"><div class="emptyimg"><i class="uk-icon-question-circle uk-icon-large"></i></div></div>' )
// + '<div class="users">'+showUser( p.users[0] )+showUser( p.users[1] )+showUser( p.users[2] ) +showUser( p.users[3] )+'</div>'
+'<div class="previewText">'+p.description+'</div>'
+'</div>'
+'<div class="icon-container-title">'
+'<div class="progress-wrap progress"><div style="position:relative;left:100px;z-index:20;color:white">'+Math.round(percent)+'%</div>'
+'<div style="background-color:#2ABD69;left:'+percent+'%;z-index:10" class="progress-bar progress"></div></div>'
+'<p style="display:block;float:right">'+ p.updated_at.substr(0,10)+'</p>'
+'<p><b>'+ (p.total_tasks ? p.closed_tasks + '/' + p.total_tasks : "" )+' issues</b></p></div>'
+'</div></div>'
);
}
var featured_projects = [
'traffic-dynamics', 'familien-dashboard', 'alternative-skulptur-projekte', 'spassmitdaten', 'opendataday',
'click_that_hood', 'wo-ist-markt.github.io', 'muenster-runnermap', 'open-data-karte-muenster', 'containermap',
'open-data', 'kandidatenliste', 'weihnachtsmarkt', 'trinkwasser', 'open-events',
'wahlprogramm-matrix', 'wahlen', 'wahlkarte', 'bautaetigkeit', 'codeforgermany-presentation',
'civic-hacking-101', 'codeformuenster.github.io', 'parkleitsystem-api',
'parkhaeuser-mobile', 'offenerrat-ms', 'muenster-dashboard', 'haushalt-muenster',
'muenster-quiz','codeformuenster', 'carparcsmuenster', 'goto.nrw'
];
$.getJSON( "/json/repos_meta.json", function( data ) {
var projectlist = {};
$.each( data, function( key, val ) {
projectlist[val['name']]=key;
});
// console.log("projectlist", projectlist);
$.each( featured_projects, function( key, projectname ) {
var p =data[projectlist[projectname]];
if (!p) {
console.log("DID NOT FIND FEATURED PROJECT" , projectname );
} else {
showProject(p);
data[projectlist[projectname]] = "";
}
});
return ;
$.each( data, function( key, val ) {
if ( val ) {
showProject(val, 1);
}
});
});
</script>
<!--
<div id="main">
<div class="wrapper">
<h1>Code a difference:</h1>
<h3>Nutz' deine Fähigkeiten um deine Stadt zu verbessern!</h3>
{% include meetup.html %}
<div class="more-info">
<p><a class="twitter-share-button" href="https://twitter.com/share" data-url="codeformuenster.org" data-text="Code for Münster, Code a Difference" data-via="codeformuenster"> Tweet </a>
<script>
window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs"));
</script>
<p><a href="http://www.muenster.de/stadt/galerie/prinzipalmarkt_prinzipalmarkt15.html">Foto: Presseamt Münster / Angelika Klauser</a></p>
</div>
</div>
</div>
-->