-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (41 loc) · 1.35 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@500;700&family=Roboto&display=swap"
rel="stylesheet"
/>
<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>Botões e Cursores</title>
<link rel="stylesheet" href="style.css" />
<script src="https://unpkg.com/phosphor-icons"></script>
</head>
<body>
<div class="app">
<h1>Teste os botões</h1>
<p>
Interaja com os botões e observe a mudança de aparência e de cursores
</p>
<div class="buttons">
<button class="primary" onclick="loading()">
interaja comigo</button>
<button class="secondary">interaja comigo</button>
<button class="tertiary movable">
<i class="ph-list"></i>
interaja comigo</button>
</div>
</div>
<script>
function loading(){
const button = event.currentTarget
button.classList.toggle('loading')
const text = button.textContent
button.innerHTML = `<i class="ph-circle-notch"></i>${text}`
}
</script>
</body>
</html>