Skip to content

Commit b8cd073

Browse files
committed
Alinhando texto header com flexbox
1 parent 70e1ce0 commit b8cd073

File tree

5 files changed

+45
-12
lines changed

5 files changed

+45
-12
lines changed

_includes/banner.html

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<div id="index-banner" class="parallax-container" role="banner">
2-
<div class="section no-pad-bot">
3-
<div class="container">
4-
<div class="row center">
5-
<img src="/assets/img/gdglogo.png" class="logo-gdg" alt="google developer group">
6-
<!-- <h4 class="header yellow-text">Google Developer Group</h4>
7-
<h1 class="header yellow-text">Salvador</h1> -->
8-
</div>
2+
<div class="section no-pad-bot">
3+
<div class="container">
4+
<div class="row center">
5+
<!-- <img src="/assets/img/gdglogo.png" class="logo-gdg" alt="google developer group"> -->
96
</div>
107
</div>
11-
<div class="color-overlay"></div>
12-
<div class="parallax">
8+
</div>
9+
<div class="color-overlay">
10+
<div class="row center flex-center">
11+
<h2 class="header white-text">Google Developer Group</h2>
12+
<h3 class="header white-text">Salvador</h3>
1313
</div>
14-
</div>
14+
</div>
15+
<div class="parallax">
16+
</div>
17+
</div>

_includes/header.html

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<a id="logo-container" href="/" class="brand-logo yellow-text">#{{ site.title_min }}</a>
66
<ul class="right hide-on-med-and-down">
77
{% for page in site.pages %}
8+
a
89
<li><a href="{{ site.url_dev }}{{ page.url }}">{{ page.title }}</a></li>
910
{% endfor %}
1011
</ul>

_src/sass/_variables.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$bg: #fcfcfc;
1+
$bg: #F6F4F8;
22
$blue-gray: #263238;
33
$primary-color: #4285F4;
44
$second-color: #FBBC05;

_src/sass/main.scss

+16
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,20 @@ body{
6565
width: 9999px;
6666
height: 1px;
6767
background: $blue-gray;
68+
}
69+
70+
71+
.flex-center {
72+
color: white;
73+
border:none;
74+
display: flex;
75+
flex-direction: column;
76+
justify-content: center;
77+
height: 100vh;
78+
resize: vertical;
79+
overflow: auto;
80+
h2, h3{
81+
margin: 0;
82+
padding: 20px;
83+
}
6884
}

assets/css/main.css

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
body {
2-
background-color: #fcfcfc; }
2+
background-color: #F6F4F8; }
33

44
.parallax-container {
55
min-height: 100vh;
@@ -51,3 +51,16 @@ body {
5151
width: 9999px;
5252
height: 1px;
5353
background: #263238; }
54+
55+
.flex-center {
56+
color: white;
57+
border: none;
58+
display: flex;
59+
flex-direction: column;
60+
justify-content: center;
61+
height: 100vh;
62+
resize: vertical;
63+
overflow: auto; }
64+
.flex-center h2, .flex-center h3 {
65+
margin: 0;
66+
padding: 20px; }

0 commit comments

Comments
 (0)