Skip to content

Commit 46801a9

Browse files
committed
2-DR1-TP2.07
1 parent d707d47 commit 46801a9

File tree

3 files changed

+108
-1
lines changed

3 files changed

+108
-1
lines changed

2-desenvolvimento-front-end/DR1-mobile-first-ui/DR1-TP2.06/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>DR1 - TP 2.05</title>
6+
<title>DR1 - TP 2.06</title>
77
<link rel="stylesheet" href="style.css">
88
</head>
99
<body>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>DR1 - TP 2.07</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<header>
11+
<h1>Layout Responsivo</h1>
12+
<h2>Mobile-first UI</h2>
13+
</header>
14+
<nav>
15+
<ul>
16+
<li>Página Inicial</li>
17+
<li>Mobile-first UI</li>
18+
<li>Sobre Grid Layout</li>
19+
</ul>
20+
</nav>
21+
<aside>
22+
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Voluptas magnam perferendis dignissimos odit rem et, laudantium distinctio ipsum repellat quasi quam labore dolorem optio neque harum amet laboriosam quas nisi!</p>
23+
</aside>
24+
<main>
25+
<article>
26+
<h3>Removendo a tag <code>&lt;meta viewport&gt;</code></h3>
27+
<p>Ao remover a tag, percebi que o layout teve dificuldade para se ajustar ao tamanho dos dispositivos móveis, "estourando" para fora da tela e mantendo os textos muito grandes.</p>
28+
</article>
29+
<article>
30+
<h3>Alterando o valor de <code>initial-scale</code></h3>
31+
<p>Alterando o valor da propriedade, percebi que, ao simular um dispositivo no DevTools, os elementos apareceram ampliados de acordo com o valor. No caso testei com 3.0 e apareceram 3x maiores.</p>
32+
</article>
33+
<article>
34+
<h3>Alterando o valor de <code>width</code></h3>
35+
<p>Alterando o valor da propriedade, percebi que os componentes em tela começaram a utilizá-lo como referência, como se o valor padrão do <code>body</code> fosse alterado.</p>
36+
</article>
37+
</main>
38+
<footer>
39+
<p>Por Matheus de Oliveira</p>
40+
</footer>
41+
</body>
42+
</html>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
height: 100vh;
9+
10+
padding: 8px;
11+
12+
display: grid;
13+
grid-template-columns: repeat(3, 1fr);
14+
grid-template-rows: min-content min-content auto min-content;
15+
gap: 16px;
16+
17+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
18+
19+
> * {
20+
padding: 16px;
21+
border-radius: 8px;
22+
}
23+
}
24+
25+
header {
26+
background-color: skyblue;
27+
grid-column: span 3;
28+
}
29+
30+
nav {
31+
background-color: lightcoral;
32+
grid-column: span 3;
33+
34+
ul {
35+
list-style: none;
36+
display: flex;
37+
justify-content: space-around;
38+
}
39+
}
40+
41+
aside {
42+
background-color: lightgreen;
43+
}
44+
45+
main {
46+
background-color: lightseagreen;
47+
grid-column: 2;
48+
49+
display: flex;
50+
flex-direction: column;
51+
gap: 16px;
52+
53+
article {
54+
background-color: white;
55+
padding: 12px;
56+
border-radius: 8px;
57+
}
58+
}
59+
60+
footer {
61+
background-color: lightpink;
62+
grid-column: span 3;
63+
64+
text-align: center;
65+
}

0 commit comments

Comments
 (0)