Skip to content

Commit

Permalink
Atv02: Adicionado adaptação para telas menores
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi-D18 committed Oct 15, 2024
1 parent 49d18f9 commit 74746ac
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 21 deletions.
27 changes: 23 additions & 4 deletions src/activities/atv02_padrinhos-magicos/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ header {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
max-width: 90vw;
margin: auto;
}
.container-header img {
Expand Down Expand Up @@ -49,19 +49,17 @@ header {
}

.container-main {
max-width: 1300px;
max-width: 90vw;
margin: auto;
}

body {
background-color: #181818;
cursor: url("../assets/cursor/varinha-magica.png") 27 4, auto;
fallback: auto;
}

button, a {
cursor: url("../assets/cursor/varinha-magica-hover.png") 27 4, auto;
fallback: auto;
}

main {
Expand Down Expand Up @@ -130,4 +128,25 @@ footer a::after {
}
footer a:hover::after {
width: 100%;
}

@media (max-width: 768px) {
header {
padding-bottom: 1.5rem;
}
.container-header {
flex-direction: column;
gap: 2rem;
}
.ep-description h1, .ep-description span {
font-size: 28px;
}
.card-ep {
align-items: center;
}
}
@media (max-width: 481px) {
.ep-description img {
display: none;
}
}/*# sourceMappingURL=index.css.map */

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 31 additions & 4 deletions src/activities/atv02_padrinhos-magicos/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ header {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
max-width: 90vw;
margin: auto;

img {
Expand Down Expand Up @@ -67,19 +67,17 @@ header {
// Estilos do conteúdo principal (Main)

.container-main {
max-width: 1300px;
max-width: 90vw;
margin: auto;
}

body {
background-color: $fundo-main;
cursor: url('../assets/cursor/varinha-magica.png') 27 4, auto;
fallback: auto; // se o navegador não suportar o cursor personalizado ou se o arquivo não for carregado, o navegador usará o cursor padrão
}

button, a {
cursor: url("../assets/cursor/varinha-magica-hover.png") 27 4, auto;
fallback: auto;
}

main {
Expand Down Expand Up @@ -163,3 +161,32 @@ footer {
}
}
}

@media (max-width: 768px) {
header {
padding-bottom: 1.5rem;
}

.container-header {
flex-direction: column;
gap: 2rem;
}

.ep-description {
h1, span {
font-size: 28px;
}
}

.card-ep {
align-items: center;
}
}

@media (max-width: 481px) {
.ep-description {
img {
display: none;
}
}
}
8 changes: 7 additions & 1 deletion src/css/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ footer {
padding: 10px;
background-color: #282828;
color: white;
position: fixed;
position: absolute;
bottom: 0;
width: 100%;
}


footer > p > span {
margin-top: 9px;
}

@media (max-width: 768px) {
footer {
position: initial;
}
}
22 changes: 11 additions & 11 deletions src/js/info-atividades.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ const description = "Imagem referente ao site dessa atividade"

export const activities = [
{
"title": "Atividade 01: Projeto Get Coffe",
"description": "Desenvolvimento de um site sobre café para atrair clientes",
"link": "./src/activities/atv01_projeto-coffe",
"image": "./src/assets/screenshots/get-coffe.png",
"alt": `${description}`
title: "Atividade 01: Projeto Get Coffe",
description: "Desenvolvimento de um site sobre café para atrair clientes",
link: "./src/activities/atv01_projeto-coffe",
image: "./src/assets/screenshots/get-coffe.png",
alt: `${description}`,
},
{
"title": "Atividade 02: Padrinhos Mágicos",
"description": "Criação de um site falando sobre os padrinhos mágicos",
"link": "./src/activities/atv02_padrinhos-magicos",
"image": "./src/assets/screenshots/padrinhos-magicos.png",
"alt": `${description}`
}
title: "Atividade 02: Padrinhos Mágicos",
description: "Criação de um site falando sobre os padrinhos mágicos",
link: "./src/activities/atv02_padrinhos-magicos",
image: "./src/assets/screenshots/padrinhos-magicos.png",
alt: `${description}`,
},
];

0 comments on commit 74746ac

Please sign in to comment.