Skip to content

Commit 74c4038

Browse files
adiciona header do topo da página.
1 parent fa5751e commit 74c4038

9 files changed

Lines changed: 46 additions & 0 deletions

File tree

core/static/css/_base.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@
1414
}
1515
}
1616
}
17+
18+
.absolute-center { @include absolute-center; }
19+
.text-center { text-align: center; }

core/static/css/_bootstrap-config.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
$navbar-height: 80px;
33
$navbar-default-bg: transparent;
44
$navbar-default-border: transparent;
5+
$brand-primary: #1C3B56;
6+
$font-family-sans-serif: 'Open Sans', sans-serif;

core/static/css/_mixins.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@mixin absolute-center {
2+
position: absolute;
3+
top: 50%;
4+
left: 50%;
5+
transform: translate(-50%, -50%);
6+
}

core/static/css/main.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
@import "../bootstrap/stylesheets/_bootstrap";
44

55
@import "./_overrides";
6+
@import "./_mixins";
67

78
@import "./_base";
9+
10+
@import "./page-specific/_index";
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
#main-header {
3+
min-height: 50vh;
4+
background-image: url('/static/img/cover.jpg');
5+
background-size: cover;
6+
background-position: bottom;
7+
position: relative;
8+
9+
h1, p {
10+
color: #fff;
11+
span { color: $brand-primary; }
12+
}
13+
14+
h1 { font-weight: bold; }
15+
16+
p { text-shadow: 0px 2px 2px $brand-primary; }
17+
}

core/static/img/cover.jpg

389 KB
Loading

core/static/img/logo-pythonrio.png

-1.95 KB
Loading

core/templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<title>{% block title %}{% endblock %}</title>
1212
<meta name="description" content="{% block description %}{% endblock %}">
1313

14+
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
1415
{% stylesheet "main" %}
1516

1617
<!--[if lt IE 9]>

core/templates/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
{% extends "base.html" %}
22

33
{% block content %}
4+
5+
<div id="main-header" class="jumbotron">
6+
<div class="container">
7+
<div class="absolute-center">
8+
<div class="text-center">
9+
<h1>Python <span class="color">Rio de Janeiro</span></h1>
10+
<p>A comunidade que reúne grupos de usuários em todo Rio de Janeiro</p>
11+
<div class="clearfix"></div>
12+
<a href="#sobre-sessao" class="btn btn-default btn-lg page-scroll">Saiba Mais</a>
13+
</div>
14+
</div>
15+
</div>
16+
</div>
17+
418
{% for evento in eventos %}
519
<h1>
620
{{ evento.data }}, {{ evento.local }} - {{ evento.cidade }}

0 commit comments

Comments
 (0)