Skip to content

Commit 4fdfcb4

Browse files
adiciona header com evento atual na página de eventos.
1 parent 10fc639 commit 4fdfcb4

8 files changed

Lines changed: 50 additions & 23 deletions

File tree

core/static/css/_base.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,30 @@ a { text-decoration: underline; }
3939

4040
}
4141

42+
.main-header {
43+
min-height: 60vh;
44+
background-image: url('/static/img/cover.jpg');
45+
background-size: cover;
46+
background-position: bottom;
47+
position: relative;
48+
margin: 0;
49+
50+
.absolute-center { width: 100%; }
51+
52+
h1, p {
53+
color: #fff;
54+
span { color: $brand-primary; }
55+
}
56+
57+
h1 { font-weight: bold; }
58+
h2{
59+
background-color: #1c3b56;
60+
padding: 10px 0;
61+
}
62+
63+
p { text-shadow: 0px 2px 2px $brand-primary; }
64+
}
65+
4266
.seção {
4367

4468
> * {

core/static/css/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
@import "./_base";
99

1010
@import "./page-specific/_index";
11+
@import "./page-specific/_eventos";
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
#eventos-header {
3+
h2 {
4+
color: #fff;
5+
font-weight: bold;
6+
margin: 1em auto;
7+
}
8+
}

core/static/css/page-specific/_index.scss

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
11

22
#index {
33

4-
#main-header {
5-
min-height: 60vh;
6-
background-image: url('/static/img/cover.jpg');
7-
background-size: cover;
8-
background-position: bottom;
9-
position: relative;
10-
margin: 0;
11-
12-
.absolute-center { width: 100%; }
13-
14-
h1, p {
15-
color: #fff;
16-
span { color: $brand-primary; }
17-
}
18-
19-
h1 { font-weight: bold; }
20-
21-
p { text-shadow: 0px 2px 2px $brand-primary; }
22-
}
23-
244
#projetos, #agenda {
255
hr { margin-bottom: 4em }
266
}

core/templates/base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
</div>
3333
<div class="collapse navbar-collapse">
3434
<ul class="nav navbar-nav navbar-right">
35-
<li><a href="/">Home</a></li>
3635
<li><a href="{% url "eventos" %}">Eventos</a></li>
3736
<li><a href="/#social">Contato/Social</a></li>
3837
</ul>

core/templates/eventos.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{% extends "base.html" %}
22

33
{% block content %}
4-
4+
5+
{% include "partials/_eventos-header.html" %}
6+
57
{% endblock %}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
<div id="eventos-header" class="jumbotron seção main-header">
3+
<div class="container">
4+
<div class="absolute-center">
5+
<div class="text-center">
6+
<h1>{{ evento_atual.nome }}</h1>
7+
<h2>{{ evento_atual.local }} - {{ evento_atual.cidade }}</h2>
8+
<div class="clearfix"></div>
9+
<a href="{{ evento_atual.meetup_link|default:"#" }}" class="btn btn-default btn-lg">Inscreva-se</a>
10+
</div>
11+
</div>
12+
</div>
13+
</div>

core/templates/partials/_main-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<div id="main-header" class="jumbotron seção">
2+
<div class="jumbotron seção main-header">
33
<div class="container">
44
<div class="absolute-center">
55
<div class="text-center">

0 commit comments

Comments
 (0)