-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (76 loc) · 1.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" type="image/png" href="favicon.ico" />
<title>noise</title>
<script defer src="app.js"></script>
</head>
<body>
<section>
<div class="item" id="rainy-btn">
<img src="./assets/icons/cloud-rain.svg" alt="rainy" />
</div>
<div class="item" id="summer-btn">
<img src="./assets/icons/sun.svg" alt="summer" />
</div>
<div class="item" id="winter-btn">
<img src="./assets/icons/cloud-snow.svg" alt="winter" />
</div>
</section>
<div class="volume">
<input
type="range"
id="volume"
name="volume"
min="0"
max="1"
step="0.1"
/>
<label for="volume"></label>
</div>
<audio id="rainy-audio">
<source src="./assets/sounds/rain.mp3" type="audio/mpeg" />
</audio>
<audio id="summer-audio">
<source src="./assets/sounds/summer.mp3" type="audio/mpeg" />
</audio>
<audio id="winter-audio">
<source src="./assets/sounds/winter.mp3" type="audio/mpeg" />
</audio>
</body>
<style>
body {
background-image: url("assets/rainy-bg.jpg");
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
section {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
.volume {
margin-top: 2%;
margin-left: 4%;
}
.item {
width: 100px;
height: 100px;
margin-left: 50px;
padding: 10px 10px;
border: solid 1px white;
border-radius: 5px;
}
img {
width: 100%;
}
input {
margin: 0.4rem;
}
</style>
</html>