-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
158 lines (137 loc) · 5.71 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html lang="en">
<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" />
<title>Mundo Invertido</title>
<link rel="stylesheet" href="assets/css/styles.css" />
</head>
<body class="light-theme">
<header>
<div class="header-content">
<img class="invert-element" src="assets/images/banner/logo.svg" alt="" />
<p class="invert-element">
Uma jornada para quem não tem medo do desconhecido. O caminho para o
Mundo invertido é incerto, repleto de obstáculos e perigos. Porém, a
recompensa é grande: salvar Hawkings e o mundo todo das garras de
Vecna. Você está preparado? Então clique no botão abaixo para entrar
no Mundo Invertido!
</p>
<button id="switch-theme-button" onclick="switchTheme()">Inverter Mundos</button>
</div>
<div id="top-characters" class="world-characters"></div>
</header>
<main>
<div id="bottom-characters" class="world-characters"></div>
<section id="section-inverted-world" class="container">
<div class="section-texts">
<h2>O Mundo Invertido</h2>
<p>
O Mundo Invertido parece uma cópia do nosso mundo, mas com criaturas
horrendas, tempestades assustadoras, muita escuridão e entidades
malignas. Um reino controlado por Vecna, que tem planos de trazer
tudo isso ao nosso mundo.
</p>
</div>
<img
class="invert-element"
src="assets/images/content/inverted-world.png"
alt="Mundo Invertido"
/>
</section>
<section id="section-stranger-things-trailer" class="container">
<div class="video-frame">
<iframe
width="460"
height="215"
src="https://www.youtube.com/embed/SJ9EFhQ3ANQ?controls=0"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
<div class="section-texts">
<h2>Stranger Things Vol. 4</h2>
<p>
Mais experientes, os heróis de Stranger Things também precisam
enfrentar desafios maiores do que nunca e fazer decisões que vão
mudar suas vidas para sempre. Confira ao lado o trailer da quarta
temporada.
</p>
</div>
</section>
<section id="section-stranger-things-gallery">
<div class="container section-text">
<h2>A segunda série mais assistida da Netflix</h2>
<div class="gallery-container">
<div class="gallery-image invert-element">
<img src="assets/images/content/serie-image-01.png" alt="" />
</div>
<div class="gallery-image invert-element">
<img src="assets/images/content/serie-image-02.png" alt="" />
</div>
<div class="gallery-image invert-element">
<img src="assets/images/content/serie-image-03.png" alt="" />
</div>
</div>
</div>
</section>
<section id="section-form" class="container">
<h2>O Clube Hellfire</h2>
<p>
Para deter Vecna, os heróis de Stranger Things também precisam de
você. O Clube de D&D mais famoso de Hawkings está com vagas abertas
para sua próxima aventura. Se você é destemido, gosta de desafios e
não tem medo de rolar o d20, chegou a hora de se inscrever para fazer
parte da nova campanha.
</p>
<div class="form-content">
<h3>Entre para o clube de D&D e tenha experiências de <span>outro mundo<span></span></h3>
<div class="form-container">
<form action="">
<label for="name">Nome Completo</label>
<input type="text" name="name" id="txtName">
<label for="email">E-mail</label>
<input type="email" name="email" id="txtEmail">
<label for="level">Level</label>
<input type="number" name="level" id="txtLevel">
<label for="character">Personagem</label>
<textarea name="character" cols="30" rows="10" id="txtCharacter"></textarea>
<button type="button" id="btnSubscribe">Me inscrever</button>
</form>
/* type="module" deve ser usado ou a importação do Firebase não funcionará */
<script src="assets/js/main.js" type="module"></script>
</div>
</div>
</section>
</main>
<footer>
<p>
Projeto construído para fins didáticos, com o objetivo de colocar em
prática os conhecimentos de HTML, CSS e JavaScript.
</p>
</footer>
<audio id="music" src="assets/musics/normal-world.mpeg" autoplay></audio>
/* ANIMAÇÕES E AUDIO */
<script>
window.addEventListener('click', function() {
const audio = document.getElementById('music');
audio.play();
audio.volume = 0.2;
});
function switchTheme() {
document.body.classList.toggle('dark-theme');
document.body.classList.toggle('light-theme');
document.body.setAttribute('aria-label', 'Trocando o tema');
const theme = document.body.classList[0];
const music = theme === 'light-theme' ? 'normal-world.mpeg' : 'inverted-world.mpeg'
const audio = document.getElementById('music');
audio.src = `assets/musics/${music}`;
audio.play();
audio.volume = 0.2;
}
</script>
</body>
</html>