Skip to content

Commit e58ce67

Browse files
committed
fixed responsive height
1 parent 939f6e8 commit e58ce67

File tree

2 files changed

+28
-31
lines changed

2 files changed

+28
-31
lines changed

index.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ <h3 id="presentation-main-skill">I'm an <br class='br-show'>full-stack engineer<
5858
<section>
5959
<article id="work">
6060
<h2 class="subtitle reveal">These are my github repositories</h2>
61+
<div class="card-projects">
6162
<div id="open-ecommerce" class="card-project reveal">
6263
<div class="card-title">
6364
OpenEcommerce
@@ -74,26 +75,14 @@ <h2 class="subtitle reveal">These are my github repositories</h2>
7475
<div class="card-title">
7576
Angular Portfolio
7677
</div>
77-
<br>
7878
<div class="card-description">
7979
It is a personal portfolio builded with angular using really cool animation (Angular animations).
8080
</div>
8181
<div class="card-links">
8282
<a class="icon-link" href="https://github.com/CarlosJorgeR/portfolio"><i class="fab fa-github fa-gl"></i></a>
8383
</div>
8484
</div>
85-
<!-- <ul>
86-
<li class="reveal">
87-
<p><a class="work-link" href="https://github.com/CarlosJorgeR/openEcommerce" target="_blank"
88-
rel="noopener noreferrer">
89-
OpenEcommerce</a> is an ecommerce builded with .net.</p>
90-
</li>
91-
<li class="reveal">
92-
<p><a class="work-link" href="https://github.com/CarlosJorgeR/portfolio" target="_blank"
93-
rel="noopener noreferrer">
94-
My portfolio</a> is a personal portfolio builded with angular.</p>
95-
</li>
96-
</ul> -->
85+
</div>
9786
</article>
9887
</section>
9988
<footer>

styles.css

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ section {
3535
/* border: solid 3px aqua; */
3636
width: 60%;
3737
margin: 0 auto;
38-
margin-top: 5em;
39-
margin-bottom: 5em;
40-
height: 25em;
38+
margin-top: 2em;
39+
margin-bottom: 2em;
40+
height: calc(100vh - 4em);
4141
z-index: 2;
4242

4343
}
@@ -165,19 +165,22 @@ nav {
165165
padding: 0.5em;
166166
display: flex;
167167
}
168+
.card-projects{
169+
display: flex;
170+
flex-direction: column;
171+
}
168172
#open-ecommerce{
169173
border-right: groove 0.2rem aqua;
170174
border-top: groove 0.2rem aqua;
171175
border-bottom: groove 0.2rem aqua;
172-
173-
margin-left: 3em;
176+
align-self:flex-end;
174177
}
175178
#angular-portfolio{
176179
border-left: groove 0.2rem aqua;
177180
border-top: groove 0.2rem aqua;
178181
border-bottom: groove 0.2rem aqua;
182+
align-self:flex-start;
179183

180-
margin-right: 3em;
181184
}
182185
#angular-portfolio .card-links{
183186
justify-content: end;
@@ -332,17 +335,13 @@ nav {
332335
font-size: 20px;
333336

334337
}
335-
.card-project{
336-
width: 70%;
337-
}
338338
p {
339339
max-width: 450px;
340340
}
341341

342342
section,
343343
footer {
344344
width: 75%;
345-
height: 30em;
346345

347346
}
348347
}
@@ -351,17 +350,13 @@ nav {
351350
:root {
352351
font-size: 15px;
353352
}
354-
.card-project{
355-
width: 80%;
356-
}
357353
p {
358354
max-width: 330px;
359355
}
360356

361357
section,
362358
footer {
363359
width: 80%;
364-
height: 35em;
365360

366361
}
367362
}
@@ -370,17 +365,30 @@ nav {
370365
:root {
371366
font-size: 17px;
372367
}
373-
.card-project{
374-
width: 85%;
375-
}
376368
p {
377369
max-width: 85%;
378370
}
379371

380372
section,
381373
footer {
382374
width: 83%;
383-
height: 40em;
375+
}
376+
377+
.br-show {
378+
display: inline;
379+
}
380+
}
381+
@media (max-width: 350px) {
382+
:root {
383+
font-size: 13px;
384+
}
385+
p {
386+
max-width: 90%;
387+
}
388+
389+
section,
390+
footer {
391+
width: 88%;
384392
}
385393

386394
.br-show {

0 commit comments

Comments
 (0)