Commit a1e98a8a23a1b2c623d352c4df4c44b9c4d0fc21
1 parent
92c19a48
Exists in
master
Add the new Home layout
Showing
5 changed files
with
138 additions
and
1 deletions
Show diff stats
pybossa/themes/default/static/css/theme.css
| @@ -18,7 +18,7 @@ html { | @@ -18,7 +18,7 @@ html { | ||
| 18 | min-height: 100%; | 18 | min-height: 100%; |
| 19 | } | 19 | } |
| 20 | body { | 20 | body { |
| 21 | - margin: 0 0 226px; /* bottom = footer height */ | 21 | + margin: 0 0 166px; /* bottom = footer height */ |
| 22 | padding-top: 53px; | 22 | padding-top: 53px; |
| 23 | font-family: 'Open Sans', sans-serif; | 23 | font-family: 'Open Sans', sans-serif; |
| 24 | } | 24 | } |
| @@ -369,3 +369,82 @@ h6 small { | @@ -369,3 +369,82 @@ h6 small { | ||
| 369 | .upload-container .form-actions { | 369 | .upload-container .form-actions { |
| 370 | padding-top: 10px; | 370 | padding-top: 10px; |
| 371 | } | 371 | } |
| 372 | + | ||
| 373 | +/* Home */ | ||
| 374 | +#wl-features { | ||
| 375 | + position: relative; | ||
| 376 | + background: #ffffff; | ||
| 377 | + z-index: 1; | ||
| 378 | +} | ||
| 379 | + | ||
| 380 | +.wl-features-container { | ||
| 381 | + display: flex; | ||
| 382 | + flex-direction: row; | ||
| 383 | + flex-wrap: wrap; | ||
| 384 | + overflow: hidden; | ||
| 385 | + padding: 0; | ||
| 386 | +} | ||
| 387 | + | ||
| 388 | +.wl-features-wrapper { | ||
| 389 | + position: relative; | ||
| 390 | + display: flex; | ||
| 391 | + flex-direction: row; | ||
| 392 | + align-items: center; | ||
| 393 | + flex: 1; | ||
| 394 | + padding: 75px 0; | ||
| 395 | +} | ||
| 396 | + | ||
| 397 | +.wl-feature { | ||
| 398 | + display: flex; | ||
| 399 | + flex-direction: column; | ||
| 400 | + flex: 1; | ||
| 401 | + align-items: center; | ||
| 402 | + padding: 20px; | ||
| 403 | +} | ||
| 404 | + | ||
| 405 | +.wl-feature .wl-feature-img { | ||
| 406 | + margin-bottom: 28px; | ||
| 407 | +} | ||
| 408 | + | ||
| 409 | +.wl-feature .wl-feature-btn { | ||
| 410 | + padding: 10px 50px; | ||
| 411 | + font-weight: bold; | ||
| 412 | + font-size: 18px; | ||
| 413 | + border-radius: 6px; | ||
| 414 | + text-transform: uppercase; | ||
| 415 | + margin-bottom: 28px; | ||
| 416 | +} | ||
| 417 | + | ||
| 418 | +.wl-feature .wl-feature-description { | ||
| 419 | + font-size: 14px; | ||
| 420 | + line-height: 24px; | ||
| 421 | + text-align: center; | ||
| 422 | +} | ||
| 423 | + | ||
| 424 | +.wl-features-wrapper.-green { | ||
| 425 | + background: #99f35d; | ||
| 426 | +} | ||
| 427 | + | ||
| 428 | +.wl-features-wrapper.-yellow { | ||
| 429 | + background: #f9dd24; | ||
| 430 | +} | ||
| 431 | + | ||
| 432 | +.wl-features-wrapper.-blue { | ||
| 433 | + background: #b6cfed; | ||
| 434 | +} | ||
| 435 | + | ||
| 436 | +.wl-features-wrapper .wl-ellipse-wrapper { | ||
| 437 | + position: absolute; | ||
| 438 | + right: 0px; | ||
| 439 | + top: 50%; | ||
| 440 | + transform: translate(42px, -42px); | ||
| 441 | + width: 85px; | ||
| 442 | + height: 85px; | ||
| 443 | + border-radius: 50% 50%; | ||
| 444 | + background: #ffffff; | ||
| 445 | + z-index: 1; | ||
| 446 | + text-align: center; | ||
| 447 | + font-size: 24px; | ||
| 448 | + vertical-align: middle; | ||
| 449 | + line-height: 80px; | ||
| 450 | +} |
3.35 KB
13.9 KB
5.47 KB
pybossa/themes/default/templates/home/_pybossa_text.html
| @@ -0,0 +1,58 @@ | @@ -0,0 +1,58 @@ | ||
| 1 | +<section id="wl-features"> | ||
| 2 | + <div class="container-fluid"> | ||
| 3 | + <div class="row"> | ||
| 4 | + <div class="col-xs-12 wl-features-container"> | ||
| 5 | + <div class="wl-features-wrapper -green"> | ||
| 6 | + <div class="wl-feature"> | ||
| 7 | + <div class="wl-feature-img"> | ||
| 8 | + <img src="static/img/wl-feature-send-video.png" alt="Ícone de envio de vídeos"> | ||
| 9 | + </div> | ||
| 10 | + <a href="project/wikilibras/newtask" class="btn btn-info wl-btn wl-feature-btn"> | ||
| 11 | + enviar | ||
| 12 | + video | ||
| 13 | + </a> | ||
| 14 | + <div class="wl-feature-description"> | ||
| 15 | + <span>Grave seu sinal e envie para nossa comunidade.</span> | ||
| 16 | + </div> | ||
| 17 | + </div> | ||
| 18 | + <div class="wl-ellipse-wrapper"> | ||
| 19 | + <span>ou</span> | ||
| 20 | + </div> | ||
| 21 | + </div> | ||
| 22 | + <div class="wl-features-wrapper -yellow"> | ||
| 23 | + <div class="wl-feature"> | ||
| 24 | + <div class="wl-feature-img"> | ||
| 25 | + <img src="static/img/wl-feature-create-sign.png" alt="Ícone de criação de sinais"> | ||
| 26 | + </div> | ||
| 27 | + <a href="project/wikilibras/newtask" class="btn btn-info wl-btn wl-feature-btn"> | ||
| 28 | + criar | ||
| 29 | + sinal | ||
| 30 | + </a> | ||
| 31 | + <div class="wl-feature-description"> | ||
| 32 | + <span> Ensine Ícaro, o nosso avatar, a fazer um sinal. | ||
| 33 | + </span> | ||
| 34 | + </div> | ||
| 35 | + </div> | ||
| 36 | + <div class="wl-ellipse-wrapper"> | ||
| 37 | + ou | ||
| 38 | + </div> | ||
| 39 | + </div> | ||
| 40 | + <div class="wl-features-wrapper -blue"> | ||
| 41 | + <div class="wl-feature"> | ||
| 42 | + <div class="wl-feature-img"> | ||
| 43 | + <img src="static/img/wl-feature-fix-sign.png" alt="Ícone de correção de sinais"> | ||
| 44 | + </div> | ||
| 45 | + <a href="project/corretor_sinais/newtask" class="btn btn-info wl-btn wl-feature-btn"> | ||
| 46 | + corrigir | ||
| 47 | + sinal | ||
| 48 | + </a> | ||
| 49 | + <div class="wl-feature-description"> | ||
| 50 | + <span>O sinal está incorreto? Colabore corrigindo-o. | ||
| 51 | + </span> | ||
| 52 | + </div> | ||
| 53 | + </div> | ||
| 54 | + </div> | ||
| 55 | + </div> | ||
| 56 | + </div> | ||
| 57 | + </div> | ||
| 58 | +</section> | ||
| 0 | \ No newline at end of file | 59 | \ No newline at end of file |