-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1
95 lines (84 loc) · 1.84 KB
/
1
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
<html>
<head>
<title>Basic Web Page</title>
<meta name="viewport" content="width=device-width,initial-scale=1" >
<link href="style.css" rel="stylesheet">
<style>
body {
background: #101010;
color: #ff2535;
font-size: 5em;
font-family: sans-serif;
display: flexbox;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
}
div {
display: flex;
justify-content: center;
}
.div1 {
height: 50%;
margin: 10px;
}
p {
padding-top: 15%;
margin-top: 50px;
text-align: center;
padding-bottom: 15px;
}
.div2 {
height: 50%;
margin: 10px;
}
button{
margin-bottom: 50px;
padding-bottom: 15%;
}
.svg-button {
background: none;
border: none;
cursor: pointer;
fill: #080808;
}
.svg-button:hover {
fill: #ff2535;
animation-duration: 2.5s;
}
</style>
</head>
<body>
<div class='div1'>
<p id='quote'></p>
</div>
<div class='div2'>
<button aria-label="Like" class="svg-button" id="quoteButton">
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" class="bi bi-heart-fill" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314"/>
</svg>
</button>
</div>
<script>
const quotes = () => {
const number = Math.floor(Math.random() * 5);
switch (number) {
case 0:
return 'ik zie je graag';
case 1:
return 'ik zie je graag';
case 2:
return 'ik ben trots op jou';
case 3:
return 'you are everything';
case 4:
return 'you are my heart';
default:
return 'HI BABY';
}
}
document.getElementById('quoteButton').addEventListener('click', function() {
document.getElementById('quote').innerText = quotes();
});
</script>
</body>
</html>