Skip to content

Commit 654c22e

Browse files
committed
Responsividade
1 parent 820bbd6 commit 654c22e

File tree

3 files changed

+50
-5
lines changed

3 files changed

+50
-5
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<body>
3030
<!---Cabeçalho-Main-->
3131
<header>
32-
<div class="background container-fluid">
33-
<nav class="navbar navbar-expand-md">
32+
<div class="background">
33+
<nav class="navbar navbar-expand-md container-fluid">
3434
<h2 class="logo navbar-brand">Portfó<span>lio</span></h2>
3535
<button
3636
class="navbar-toggler"
@@ -89,7 +89,7 @@ <h3>Sou estudante de desenvolvimento web na <strong> <a class="trybe" href="http
8989
<div class="container">
9090
<div class="main-sobre row">
9191
<img class="picture img-fluid" src="images/felipe-seabra.jpg" alt="Foto Felipe Seabra" />
92-
<div class="Text-sobre col-md-6 mt-3">
92+
<div class="Text-sobre mt-3">
9393
<h2>Sobre Mim</h2>
9494
<!-- <h5>Desenvolvedor <span>web</span></h5> -->
9595
<p>

script.js

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

2-
function addLinkBotton(classe, link) {
3-
let Bottons = document.getElementsByClassName(classe);
2+
const addLinkBotton = (classe, link) => {
3+
const Bottons = document.getElementsByClassName(classe);
44
for (let botton of Bottons) {
55
botton.href = link;
66
}

style.css

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,49 +408,94 @@ footer p {
408408
0% {
409409
opacity: 1;
410410
}
411+
411412
50% {
412413
opacity: 0;
413414
}
415+
414416
100% {
415417
opacity: 1;
416418
}
417419
}
420+
418421
@-o-keyframes flickerAnimation {
419422
0% {
420423
opacity: 1;
421424
}
425+
422426
50% {
423427
opacity: 0;
424428
}
429+
425430
100% {
426431
opacity: 1;
427432
}
428433
}
434+
429435
@-moz-keyframes flickerAnimation {
430436
0% {
431437
opacity: 1;
432438
}
439+
433440
50% {
434441
opacity: 0;
435442
}
443+
436444
100% {
437445
opacity: 1;
438446
}
439447
}
448+
440449
@-webkit-keyframes flickerAnimation {
441450
0% {
442451
opacity: 1;
443452
}
453+
444454
50% {
445455
opacity: 0;
446456
}
457+
447458
100% {
448459
opacity: 1;
449460
}
450461
}
462+
451463
#animate-flicker {
452464
-webkit-animation: flickerAnimation 1s infinite;
453465
-moz-animation: flickerAnimation 1s infinite;
454466
-o-animation: flickerAnimation 1s infinite;
455467
animation: flickerAnimation 1s infinite;
456468
}
469+
470+
@media screen and (max-width: 990px) {
471+
.picture {
472+
max-width: 280px;
473+
}
474+
475+
.Text-sobre {
476+
display: flex;
477+
flex-direction: column;
478+
justify-content: center;
479+
align-items: center;
480+
width: 90%;
481+
}
482+
483+
.Text-sobre h2 {
484+
font-size: 2.5em;
485+
text-align: center;
486+
}
487+
488+
.title h2 {
489+
font-size: 2.5em;
490+
text-align: center;
491+
}
492+
}
493+
494+
@media screen and (max-width: 768px) {
495+
.navbar {
496+
background-color: #191919;
497+
z-index: 1;
498+
border-radius: 0 0 5px 5px;
499+
transition: .5s;
500+
}
501+
}

0 commit comments

Comments
 (0)