Switch to unified view

a/opensourceprojects/templates/frontpage.html b/opensourceprojects/templates/frontpage.html
1
{% extends g.theme.master %}
1
<!DOCTYPE html>
2
<!-- Server: {{g.server_name}} -->
3
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
4
{% if g.theme.jinja_macros %}
5
  {% import g.theme.jinja_macros as theme_macros with context %}
6
{% endif %}
7
{% do g.register_forge_js('js/jquery-base.js', location='head_js') %}
8
{% do g.register_forge_js('js/jquery.notify.js', location='head_js') %}
9
{% do g.register_forge_js('js/sylvester.js') %}
10
{% do g.register_forge_js('js/pb.transformie.min.js') %}
11
{% do g.register_forge_js('js/allura-base.js') %}
12
{% do g.register_forge_css('css/forge/hilite.css') %}
13
{% do g.theme.require() %}
14
{% do g.resource_manager.register_widgets(c) %}
15
{# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ #}
16
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
17
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
18
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
19
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
20
<!--[if (gt IE 9)|!(IE)]>--> <html lang="en" class="no-js"> <!--<![endif]-->
21
  <head>
22
    <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
23
    <title>{% block title %}opensourceprojects.eu{% endblock %}</title>
24
    {{theme_macros.extra_header(g.theme_href(''))}}
25
    <script type="text/javascript">
26
            /*jslint onevar: false, nomen: false, evil: true, css: true, plusplus: false, white: false, forin: true, on: true, immed: false */
27
            /*global confirm, alert, unescape, window, jQuery, $, net, COMSCORE */
28
    </script>
29
    {% for blob in g.resource_manager.emit('head_css') %}
30
      {{ blob }}
31
    {% endfor %}
32
    {% for blob in g.resource_manager.emit('head_js') %}
33
      {{ blob }}
34
    {% endfor %}
2
35
3
{% block title %}{{title}}{% endblock %}
36
    {% if c.project and c.project.neighborhood.css %}
37
      <style type="text/css">
38
        {{c.project.neighborhood.get_custom_css()|safe}}
39
      </style>
40
    {% elif neighborhood and neighborhood.css %}
41
      <style type="text/css">
42
        {{neighborhood.get_custom_css()}}
43
      </style>
44
    {% endif %}
45
    {% block extra_css %}{% endblock %}
46
      <style>.{{ g.antispam.honey_class }} { display:none }</style>
4
47
5
{% block header %}{{title}}{% endblock %}
48
      <style>
49
.upcontent{
50
    background-color: #F4F1FF;
51
    width:100%;
52
    height:350px;
53
    border-bottom: 2px solid #414E96;
54
}
6
55
7
{% block extra_css %}
56
.tagnsign{
57
    margin: 0 auto;
58
    padding-top:80px;
59
    width: 900px;
60
    right:0px;
61
    left:0px;
62
}
63
64
.tagline{
65
    max-width: 500px;
66
    word-wrap:break-word;
67
    float: left;
68
    color:#000C4C;
69
    text-shadow: -1px 1 #333, 1 1px #333, 1px 1 #333, 1 -1px #333;
70
}
71
72
73
.taglinebig{
74
    font-size: 42pt;
75
    line-height: 60px;
76
}
77
78
.taglinemini{
79
    font-size: 20pt;
80
    line-height: 30px;
81
    color:#414E96;
82
    margin-top: 5px;
83
}
84
85
.signbtn {
86
  width:277px;
87
  height: 42px;
88
  display: inline-block;
89
  *display: inline;
90
  padding: 4px 12px;
91
  margin-top: 10px;
92
  margin-bottom: 0;
93
  *margin-left: .3em;
94
  font-size: 14pt;
95
  line-height: 20px;
96
  color: #fff;
97
  text-align: center;
98
  vertical-align: middle;
99
  cursor: pointer;
100
  background-color: #414E96;
101
  *background-color: #414E96;
102
  background-image: -moz-linear-gradient(top, #414E96, #000C4C);
103
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#414E96), to(#000C4C));
104
  background-image: -webkit-linear-gradient(top, #414E96, ##000C4C);
105
  background-image: -o-linear-gradient(top, #414E96, #000C4C);
106
  background-image: linear-gradient(to bottom, #414E96, #000C4C);
107
  background-repeat: repeat-x;
108
  -webkit-border-radius: 4px;
109
  -moz-border-radius: 4px;
110
  border-radius: 4px;
111
  border: 1px solid #000C4C;
112
  text-shadow:none;
113
  letter-spacing:1px;
114
  font-weight: normal;
115
  -webkit-box-shadow:none;
116
  -moz-box-shadow:none;
117
  box-shadow:none;
118
    outline: none;
119
}
120
121
.signbtn:hover{
122
  cursor: pointer;
123
  background-color: #000C4C;
124
  *background-color: #000C4C;
125
  background-image: -moz-linear-gradient(top, #000C4C, #414E96);
126
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#000C4C), to(#414E96));
127
  background-image: -webkit-linear-gradient(top, #000C4C, #414E96);
128
  background-image: -o-linear-gradient(top, #000C4C, #414E96);
129
  background-image: linear-gradient(to bottom, #000C4C, #414E96);
130
  background-repeat: repeat-x;
131
  border: 1px solid #000C4C !important;
132
}
133
134
.signform{
135
    font-weight: lighter;
136
    float: right;
137
    max-width: 277px;
138
}
139
140
.signform input {
141
    width:255px;
142
    color:#444;
143
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
144
    letter-spacing: 1px;
145
    font-size: 13pt;
146
    -webkit-border-radius: 4px;
147
    -moz-border-radius: 4px;
148
    border-radius: 4px;
149
    padding:10px;
150
    margin:5px 0px 1px 0px;
151
    -webkit-box-shadow: none;
152
    box-shadow: none;
153
    -moz-box-shadow: none;
154
}
155
156
.signformbox{
157
    border:1px solid #414E96;
158
}
159
160
.signformboxcheck {
161
    border:1px solid #0E942C;
162
    background-color: #D9FEE1;
163
}
164
165
.signformboxwrong {
166
    border:1px solid #d04437;
167
    background-color: #f6e4e4;
168
}
169
170
.signformerror{ 
171
    background-color:#d04437;
172
    padding:7px 6px 5px 10px;
173
    color:#FFF;
174
    font-size: 10pt;
175
    position: relative;
176
    word-wrap:break-word;
177
    max-width:264px;
178
    text-align: left;
179
    font-weight: bold;
180
    display:none;
181
}
182
183
.signformarrow{
184
    width: 0; 
185
    height: 0; 
186
    border-left: 5px solid transparent;
187
    border-right: 5px solid transparent;
188
    border-bottom: 5px solid #d04437;
189
    margin-left:12px;
190
    display:none;
191
}
192
193
/* display only to test */
194
195
#passarrow, #passerror{
196
    display:block;
197
}
198
199
.middlecontent{
200
    background-color: #FFF;
201
    width:100%;
202
    height:350px;
203
    border-bottom: 1px solid #DFE2F2;
204
    display: none;
205
}
206
207
208
.highlightnrecent{
209
    margin: 0 auto;
210
    width: 900px;
211
    right:0px;
212
    left:0px;
213
}
214
215
.highlightproj{
216
    padding-top:20px;
217
    background-color: #F00;
218
    height:330px;
219
    width: 445px;
220
    float: left;
221
    opacity:0.6;
222
    padding-right:5px;
223
}
224
.recentproj{
225
    padding-top:20px;
226
    background-color: #0F0;
227
    height:330px;
228
    width: 445px;
229
    float: right;
230
    opacity:0.6;
231
    padding-left:5px;
232
}
233
234
235
.downcontent{
236
    background-color: #FFF;
237
    width:100%;
238
    height:800px;
239
    border-bottom: 1px solid #414E96;
240
    background-color: #d2d7f4;
241
}
242
243
244
.featurenexplain{
245
    margin: 0 auto;
246
    width: 900px;
247
    right:0px;
248
    left:0px;
249
}
250
251
.featureosp{
252
    margin-top:40px;
253
    float: left;
254
    text-align: center;
255
    padding:24px;
256
    height: 530px;
257
        border-right-width:1px;
258
    -webkit-border-image: 
259
        -webkit-gradient(linear, 0 0, 0 100%, from(#414E96), to(#d2d7f4)) 1 100%;
260
    -webkit-border-image: 
261
        -webkit-linear-gradient(#414E96, #d2d7f4) 1 100%;
262
    -o-border-image:
263
             -o-linear-gradient(#414E96, #d2d7f4) 1 100%;
264
    -moz-border-image:
265
           -moz-linear-gradient(#414E96, #d2d7f4) 1 100%; 
266
267
}
268
269
#lastfeature {border:none;}
270
271
.featureadmin {
272
    -webkit-border-radius: 4px;
273
    -moz-border-radius: 4px;
274
    border-radius: 4px;
275
    border: 1px solid #414E96;
276
    width:172px;
277
    background-color: #FFF;
278
    margin:0 auto;
279
    margin-top: 30px;
280
    height: 315px;
281
}
282
283
284
.featuregit {
285
    -webkit-border-radius: 4px;
286
    -moz-border-radius: 4px;
287
    border-radius: 4px;
288
    border: 1px solid #414E96;
289
    height: 255px;
290
    width:172px;
291
    background-color: #FFF;
292
    margin:0 auto;
293
    margin-top: 30px;
294
}
295
296
297
.featureforum {
298
    -webkit-border-radius: 4px;
299
    -moz-border-radius: 4px;
300
    border-radius: 4px;
301
    border: 1px solid #414E96;
302
    height: 320px;
303
    width:172px;
304
    background-color: #FFF;
305
    padding-left: 2px;
306
    margin:0 auto;
307
    margin-top: 30px;
308
    padding-top:4px;
309
    padding-bottom:3px;
310
}
311
312
.featuretickets {
313
    -webkit-border-radius: 4px;
314
    -moz-border-radius: 4px;
315
    border-radius: 4px;
316
    border: 1px solid #414E96;
317
    height: 410px;
318
    width:172px;
319
    background-color: #FFF;
320
    margin:0 auto;
321
    margin-top: 30px;
322
    padding-top:5px;
323
    padding-bottom:1px;
324
}
325
326
327
.titleosp{
328
    color:#000C4C;
329
    font-size: 18pt;
330
    font-weight: bold;
331
    padding-bottom: 10px;
332
    text-shadow: -1px 1 #333, 1 1px #333, 1px 1 #333, 1 -1px #333;
333
}
334
335
.explainosp{
336
    color:#000C4C;
337
    font-size: 10pt;
338
    height: 60px;
339
    line-height: 20px;
340
    width: 170px;
341
    margin: 0 auto;
342
    text-align: center;
343
}
344
345
.explainosp p{
346
    font-size: 13pt;
347
    line-height: 25px;
348
    padding: 0px;
349
    margin: 0px; 
350
}
351
352
.featureadmin img{
353
    width:167px;
354
}
355
356
.featureforum img{
357
    width:170px;
358
}
359
360
.featuregit img{
361
    width:167px;
362
}
363
364
.featuretickets img{
365
    width:166px;
366
}
367
368
      </style>
369
    {% block head %}
8
{% endblock %}
370
    {% endblock %}
371
    {{g.analytics.display()}}
372
  </head>
9
373
374
  <body{% block body_attrs %}{% endblock %} id="forge">
375
    {% for blob in g.resource_manager.emit('body_top_js') %}
376
      {{ blob }}
377
    {% endfor %}
378
    {{theme_macros.header(g.login_url, '/auth/logout')}}
379
    {% set flash = tg.flash_obj.render('flash', use_js=False) %}
380
    <section id="page-body" class="{{g.document_class(neighborhood)}}">
381
382
      <div id="content_base" class="{% if c and c.app %}{{ c.app.config.tool_name }}{% endif %}">
383
            {% block before_content %}{% endblock %}
10
{% block content %}
384
            {% block content %}
11
{% endblock %}
385
            
386
387
<div class="upcontent">
388
<div class="tagnsign">
389
390
<div class="tagline">
391
<div class="taglinebig">A common location for ICT-EU projects</div>
392
<div class="taglinemini">Community and Management Tools</div>
393
</div>
394
395
<form class="signform" action="/auth/create_account" method="get">
396
397
    <button class="signbtn" type="submit">Sign up here </button>
398
</form>
399
</div>
400
</div>
401
402
403
404
<div class="middlecontent">
405
<div class="highlightnrecent">
406
407
<div class="highlightproj">
408
<div class="projicon"></div>
409
</div>
410
<div class="recentproj"> </div>
411
412
</div>
413
</div>
414
415
416
<div class="downcontent">
417
<div class="featurenexplain">
418
419
<div class="featureosp">
420
    <div class="titleosp">Manage</div>
421
    <div class="explainosp">
422
        Create, costumise and monitor projects:
423
        <p>Admin tools</p></div>
424
    <div class="featureadmin">
425
    <img src="{{g.theme_href('images/feature-admin.png')}}">
426
    </div>
427
</div>
428
429
<div class="featureosp">
430
    <div class="titleosp">Develop</div>
431
    <div class="explainosp">
432
        Support multiple tools for the same project:
433
        <p>Git and SVN</p></div>
434
    <div class="featuregit">
435
    <img src="{{g.theme_href('images/feature-git.png')}}">
436
    </div>
437
</div>
438
439
<div class="featureosp">
440
    <div class="titleosp">Communicate</div>
441
    <div class="explainosp">Engagement between users and projects:<p>Wiki, Forum and Blog</p> </div>
442
    <div class="featureforum">
443
    <img src="{{g.theme_href('images/feature-forum.png')}}">
444
    </div>
445
</div>
446
447
<div class="featureosp" id="lastfeature">
448
    <div class="titleosp">Track</div>
449
    <div class="explainosp">What needs to be completed, bugs, requests or tasks:<p>Tickets</p> </div>
450
    <div class="featuretickets">
451
    <img src="{{g.theme_href('images/feature-tickets.png')}}">
452
    </div>
453
</div>
454
455
</div>
456
</div>
457
458
459
460
461
462
463
464
465
466
            {% endblock %}
467
            {% block after_content %}{% endblock %}
468
      </div>
469
    </section>
470
    {{theme_macros.footer(g.year(), g.theme_href(''))}}
471
    <div id="messages">
472
        {% for n in h.pop_user_notifications() %}
473
          <section class="message {{ n.subject or 'info' }}">
474
            <header>Notification:</header>
475
            <div class="content">{{ n.text }}</div>
476
          </section>
477
        {% endfor %}
478
    </div>
479
    {% for blob in g.resource_manager.emit('body_js') %}
480
      {{ blob }}
481
    {% endfor %}
482
    {% for blob in g.resource_manager.emit('body_js_tail') %}
483
      {{ blob }}
484
    {% endfor %}
485
    {% block extra_js %}{% endblock %}
486
    {% if neighborhood %}
487
      {{ neighborhood.site_specific_html | safe }}
488
    {% elif c.project.neighborhood %}
489
      {{ c.project.neighborhood.site_specific_html | safe }}
490
    {% endif %}
491
    {{theme_macros.custom_js()}}
492
    {% if flash %}
493
    <script type="text/javascript">{{flash | safe}}</script>
494
    {% endif %}
495
  </body>
496
</html>
497