Skip to content

Commit d2de840

Browse files
committed
2-DR1-TP2.06
1 parent 8bb3672 commit d2de840

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.05</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+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellendus, nesciunt quibusdam ipsum voluptatibus, ab aperiam suscipit odio tempore excepturi dolorum, delectus cupiditate officiis! Nesciunt voluptates asperiores vitae facere est mollitia!</p>
27+
</article>
28+
<article>
29+
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Dignissimos itaque praesentium, consequuntur maiores eaque, facere inventore, debitis laudantium voluptas quia optio corrupti hic aut sunt perspiciatis cupiditate at ipsa qui!</p>
30+
</article>
31+
</main>
32+
<footer>
33+
<p>Por Matheus de Oliveira</p>
34+
</footer>
35+
</body>
36+
</html>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
body {
8+
width: 100vw;
9+
height: 100vh;
10+
11+
padding: 8px;
12+
13+
display: grid;
14+
grid-template-columns: repeat(3, 1fr);
15+
grid-template-rows: min-content min-content auto min-content;
16+
gap: 16px;
17+
18+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
19+
20+
> * {
21+
padding: 16px;
22+
border-radius: 8px;
23+
}
24+
}
25+
26+
header {
27+
background-color: skyblue;
28+
grid-column: span 3;
29+
}
30+
31+
nav {
32+
background-color: lightcoral;
33+
grid-column: span 3;
34+
35+
ul {
36+
list-style: none;
37+
display: flex;
38+
justify-content: space-around;
39+
}
40+
}
41+
42+
aside {
43+
background-color: lightgreen;
44+
}
45+
46+
main {
47+
background-color: lightseagreen;
48+
grid-column: 2;
49+
50+
display: flex;
51+
flex-direction: column;
52+
gap: 16px;
53+
54+
article {
55+
background-color: white;
56+
padding: 12px;
57+
border-radius: 8px;
58+
}
59+
}
60+
61+
footer {
62+
background-color: lightpink;
63+
grid-column: span 3;
64+
65+
text-align: center;
66+
}

0 commit comments

Comments
 (0)