-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (57 loc) · 2.67 KB
/
index.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles.css">
<title>Netflix</title>
</head>
<body>
<div id="container">
<div id="cabecalho">
<img id="logo-netflix" src="./img/netflix.svg" alt="Logo da Netflix">
<button id="botao-entrar">Entrar</button>
</div>
<div>
<h1>Filmes, séries e muito mais. Sem limites.</h1>
<p id="paragrafo-assista">Assista onde quiser. Cancele quando quiser.</p>
<p id="paragrafo-pronto">Pronto para assistir? Informe seu email para criar ou reiniciar sua assinatura.
</p>
<div id="formulario">
<input placeholder="Email" type="email">
<button id="botao-email">Vamos lá <img src="./img/seta.svg" alt="Seta"></button>
</div>
</div>
</div>
<div id="rodape">
<h2>Perguntas frequentes</h2>
<button id="botao-pergunta">O que é a Netflix? <img id="imagem-pergunta" src="./img/fechar.svg"> </button>
<div id="pergunta">
<p class="paragrafo-pergunta">A Netflix é um serviço de transmissão online que oferece uma ampla
variedade de séries, filmes e
documentários premiados em milhares de aparelhos conectados à internet.</p>
<br>
<p class="paragrafo-pergunta">Você pode assistir a quantos filmes e séries quiser, quando e onde quiser,
sem comerciais – tudo por
um preço mensal bem acessível. Aqui você sempre encontra novidades. A cada semana, adicionamos novas
séries e filmes.</p>
</div>
</div>
</body>
<script>
const botaoPergunta = document.getElementById('botao-pergunta');
function verificarVisibilidadePergunta() {
const pergunta = document.getElementById('pergunta');
const imagemPergunta = document.getElementById('imagem-pergunta');
if (pergunta.style.display == 'block') {
imagemPergunta.style.transform = 'rotate(45deg)';
pergunta.style.display = 'none';
} else {
imagemPergunta.style.transform = 'rotate(0deg)';
pergunta.style.display = 'block';
}
}
botaoPergunta.addEventListener('click', verificarVisibilidadePergunta)
</script>
</html>