-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathex-01.html
111 lines (91 loc) · 2.65 KB
/
ex-01.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8" />
<title>Curso de HTML5, CSS3 e JavaScript</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
/* vh - viewport height */
/* ------------------------------------------ */
/* normalizar o navegador */
body {
margin: 0;
padding: 0;
}
/* w3c - World Wide Web - Consortium - Consórcio
Sir Tim Berners Lee
ECMA International - TC39 - EcmaScript*/
* {
box-sizing: border-box;
}
/* estrutura CSS - ok */
/* box-sizing - ok */
/* box-model - ok */
/* ------------------------------------------ */
div.container {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
background-color: rgba(0, 0, 0, 0.5);
}
body>div>h1.titulo {
color: red;
}
h1.titulo,
h2.titulo {
color: #fff !important;
text-align: center;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
font-weight: 300;
font-family: 'Roboto', sans-serif;
color: #555;
}
h1 {
font-size: 4em;
}
h2 {
font-size: 2em;
}
body {
background: url("assets/images/background-mobile.webp") no-repeat;
background-size: cover;
background-position: center center;
}
/* Daqui pra cima é tudo mobile */
/* tablet - mediaquerie para largura da tela começando em 768px*/
@media (min-width: 768px) {
/* tablet */
body {
background: url("assets/images/background-tablet.webp") no-repeat;
background-size: cover;
background-position: center center;
}
}
@media (min-width: 1280px) {
/* desktop */
body {
background: url("assets/images/background-desktop.webp") no-repeat;
background-size: cover;
background-position: center center;
}
}
/* 2520px - Extra Large - iMac 27" */
</style>
</head>
<body>
<div class="container">
<h1 class="titulo">Seja bem vindo(a) ao curso de HTML5, CSS3 e JavaScript</h1>
<h2 class="titulo">No momento o assunto é <i>HTML5</i></h2>
</div>
</body>
</html>