-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (124 loc) · 7.13 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
<!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 href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Inknut+Antiqua:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<title>Trybewarts Wizarding School</title>
</head>
<body>
<header class="container-header">
<div class="header">
<img class="trybewarts-header-logo" src="images/trybewarts-header-logo.svg" alt="Logo Trybewarts">
<h1 id="trybewarts-header-title">Trybewarts</h1>
<form class="trybewarts-login" action="">
<input id="login" class="form-control authentication" type="text" placeholder="Login">
<input id="password" class="form-control authentication" type="password" placeholder="Senha">
<button id="login-button" type="button" class="btn btn-primary authentication">Logar</button>
</form>
</div>
</header>
<div id="container-main">
<main id="main">
<form id="evaluation-form" action="">
<h2>Forms</h2>
<div id="container1-form" class="change">
<input name="Nome" id="input-name" class="inputs-evaluation-form" type="text" placeholder="Nome">
<input name="Sobrenome" id="input-lastname" class="inputs-evaluation-form" type="text" placeholder="Sobrenome">
<input name="Email" id="input-email" class=" inputs-evaluation-form" type="email" placeholder="Email">
<label class="label-select" for="house">Casa:
<select id="house" name="Casa">
<option id="gitnoria-house" value="Gitnória" selected>Gitnória</option>
<option id="reactpuff-house" value="Reactpuff">Reactpuff</option>
<option id="corvinode-house" value="Corvinode">Corvinode</option>
<option id="pytherina-house" value="Pytherina">Pytherina</option>
</select>
</label>
</div>
<hr class="lines">
<div id="container2-form">
<div class="radio-family">
<label class="labels-container1" id="label-family" for="">Qual sua família?</label><br>
<input class="inputs-container1 form-check-input " type="radio" name="family" id="Frontend" value="Frontend">
<label class="labels-container1" id="frontend" for="Frontend">Família Frontend</label><br>
<input class="inputs-container1 form-check-input" type="radio" name="family" id="Backend" value="Backend">
<label class="labels-container1" id="backend" for="Backend">Família Backend</label><br>
<input class="inputs-container1 form-check-input" type="radio" name="family" id="FullStack" value="FullStack">
<label class="labels-container1" id="fullStack" for="FullStack">Família FullStack</label>
</div>
<div class="contents-family">
<label class="labels-container2 form-check-label" id="label-content" for="">Qual conteúdo você está com mais vontade de aprender?</label><br>
<input class="inputs-container2 form-check-input subject" type="checkbox" name="content" id="HoFs" value="HoFs">
<label class="labels-container2 form-check-label" id="hoFs" for="HoFs">HoFs</label>
<input class="inputs-container2 form-check-input subject" type="checkbox" name="content" id="Jest" value="Jest">
<label class="labels-container2 form-check-label" id="jest" for="Jest">Jest</label>
<input class="inputs-container2 form-check-input subject" type="checkbox" name="content" id="Promises" value="Promises">
<label class="labels-container2 form-check-label" id="promises" for="Promises">Promises</label><br>
<input class="inputs-container2 form-check-input subject" type="checkbox" name="content" id="React" value="React">
<label class="labels-container2 form-check-label" id="react" for="React">React</label>
<input class="inputs-container2 form-check-input subject" type="checkbox" name="content" id="SQL" value="SQL">
<label class="labels-container2 form-check-label" id="SQL" for="SQL">SQL</label>
<input class="inputs-container2 form-check-input subject" type="checkbox" name="content" id="Python" value="Python">
<label class="labels-container2 form-check-label" id="python" for="Python">Python</label>
</div>
</div>
<hr class="lines">
<div id="container3-form">
<div class="rate-row">
<label id="label-rate" for="rate">Como você avalia a Trybewarts?</label>
<input type="radio" name="rate" value="1">1
<input type="radio" name="rate" value="2">2
<input type="radio" name="rate" value="3">3
<input type="radio" name="rate" value="4">4
<input type="radio" name="rate" value="5">5
<input type="radio" name="rate" value="6">6
<input type="radio" name="rate" value="7">7
<input type="radio" name="rate" value="8">8
<input type="radio" name="rate" value="9">9
<input type="radio" name="rate" value="10">10
</div>
<br>
<div class="comments">
<label class="textarea" for="comments">Deixe seu comentário:</label>
<br>
<textarea onkeyup="characterCount(this.value)" id="textarea" rows="4" cols="50" maxlength="500" name="comments"></textarea>
<span id="counter">500</span>
</div>
</div>
<div id="container4-form">
<label class="labels-container4" id="label-infos" for="agreement">Você concorda com o uso das informações acima?
<input class="inputs-container4 form-check-input " type="checkbox" name="agreement-checkbox" id="agreement" value='disagree'>
</label>
</div>
<div class="container5-form">
<button id="submit-btn" type="submit" class="btn" disabled=''>Enviar</button>
</div>
</form>
<img id="trybewarts-forms-logo" src="images/trybewarts-colored.svg" alt="Imagem do Escudo Trybewarts">
</main>
</div>
<footer>
<p id="footer-bar">Direitos reservados à Trybewarts©</p>
</footer>
<script>
// Contar caracteres do campo comentário
// Script separado para não gerar erro na leitura do contador
// Refer: https://pt.stackoverflow.com/questions/25753/como-fazer-um-contador-de-caracteres-de-uma-textarea
function characterCount(userInput) {
const sizeArea = 500;
const inputTotal = userInput.length;
if (inputTotal <= sizeArea) {
const leftoverChars = sizeArea - inputTotal;
document.getElementById('counter').innerHTML = leftoverChars;
} else {
document.getElementById('textarea').value = inputTotal; // .substr(0, sizeArea);
}
}
</script>
<script src="script.js"></script>
</body>
</html>