Skip to content

Commit 21cb807

Browse files
committed
2-DR1-TP2.01
1 parent 241aff3 commit 21cb807

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed
904 KB
Loading
387 KB
Loading
87 KB
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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>DR2 - TP2.01</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<picture>
11+
<source media="(min-width: 992px)" srcset="./assets/montanhas-lg.jpg">
12+
<!-- Coloquei uma imagem diferente para ter uma visualização melhor de quando muda de arquivo -->
13+
<source media="(min-width: 576px)" srcset="./assets/montanhas-md.jpg">
14+
<img src="./assets/montanhas-sm.jpg" alt="Montanhas">
15+
</picture>
16+
</body>
17+
</html>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
}
6+
7+
picture img {
8+
width: 100vw;
9+
height: auto;
10+
}

0 commit comments

Comments
 (0)