Skip to content

Commit f18a862

Browse files
Fix (#264)
* Gradient css fixed in header * reduce intro text font size and remove shadow --------- Co-authored-by: César Lizurey <[email protected]>
1 parent 054dac7 commit f18a862

File tree

2 files changed

+43
-61
lines changed

2 files changed

+43
-61
lines changed

_includes/header.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<!-- Intro Start -->
22

33
<header class="intro">
4-
<div class="intro-body">
5-
<div class="container">
6-
<div class="row">
7-
<div class="col-md-12 col-md-offset-2">
8-
<span class="intro-text">{{ content }}</span>
9-
<h5>&nbsp;</h5>
10-
<a href="#{{ site.pages_list['About'] }}" class="page-scroll">
11-
<img class="img-me" src="{{site.url}}{{ site.me-img }}" alt="" />
12-
</a>
13-
</div>
14-
</div>
15-
</div>
4+
<div class="wrapper">
5+
<span class="intro-text">{{ content }}</span>
166
</div>
7+
<a href="#{{ site.pages_list['About'] }}" class="page-scroll">
8+
{% if site.me-img contains "https://" %}
9+
<img class="img-me" src="{{ site.me-img }}" alt="" />
10+
{% else %}
11+
<img
12+
class="img-me"
13+
src="{{site.baseurl}}{{ site.me-img }}"
14+
alt=""
15+
/>
16+
{% endif %}
17+
</a>
1718
</header>
1819

1920
<!-- Intro End -->

css/grayscale.scss

Lines changed: 30 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -159,44 +159,25 @@ a {
159159
}
160160

161161
.intro {
162-
display: table;
162+
display: flex;
163+
position: relative;
164+
flex-direction: column;
163165
width: 100%;
164-
height: auto;
166+
height: 100svh;
165167
text-align: center;
166-
padding-top: 20rem;
167168
color: $font-color;
168-
background: url("{{ site.baseurl }}/img/intro-bg.jpg") no-repeat center center;
169-
background-size: cover;
169+
background-color: $primary-color;
170170
-webkit-background-size: cover;
171171
-moz-background-size: cover;
172+
background-size: cover;
172173
-o-background-size: cover;
174+
background-attachment: scroll;
175+
background-image: url("{{ site.baseurl }}/img/intro-bg.jpg");
176+
background-position: center center;
177+
background-repeat: none;
173178

174-
.intro-body {
175-
display: table-cell;
176-
vertical-align: middle;
177-
position: relative;
178-
z-index: 2;
179-
.brand-heading {
180-
font-size: 40px;
181-
}
182-
.intro-text {
183-
font-size: 1.3rem;
184-
}
185-
}
186-
187-
@media (min-width: 768px) {
188-
height: 100%;
189-
.intro-body {
190-
.brand-heading {
191-
font-size: 100px;
192-
}
193-
.intro-text {
194-
font-size: 1.6rem;
195-
}
196-
}
197-
}
198-
@media (min-width: 1200px) {
199-
padding-top: 30rem;
179+
.intro-text {
180+
font-size: 1.6rem;
200181
}
201182
}
202183

@@ -205,28 +186,28 @@ a {
205186
position: absolute;
206187
left: 0px;
207188
right: 0px;
208-
bottom: 23rem;
209-
height: 20%;
210-
background: linear-gradient(180deg, rgba(35, 42, 46, 0) 0%, #232a2e 100%);
189+
height: 50%;
190+
bottom: 0px;
191+
background: linear-gradient(
192+
180deg,
193+
rgba(139, 167, 32, 0) 0%,
194+
$primary-color 100%
195+
);
211196
pointer-events: none;
212-
@media (max-width: 1200px) {
213-
bottom: 35rem;
214-
height: 50%;
215-
}
216-
@media (max-width: 768px) {
217-
bottom: 18rem;
218-
height: 50%;
219-
}
220-
@media (max-width: 414px) {
221-
bottom: 7rem;
222-
height: 50%;
223-
}
224-
@media (max-width: 375px) {
225-
bottom: 2rem;
226-
height: 50%;
197+
@media (min-width: 768px) {
198+
height: 20%;
227199
}
228200
}
229201

202+
.intro .wrapper {
203+
align-content: end;
204+
height: 40%;
205+
}
206+
207+
.intro a {
208+
padding-top: 5%;
209+
}
210+
230211
@-webkit-keyframes pulse {
231212
from {
232213
-webkit-transform: scale(1);

0 commit comments

Comments
 (0)