-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
89 lines (88 loc) · 2.2 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<title>FireDeck</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
.deck {
display: flex;
justify-content: center;
}
.deck .button {
width: 120px;
height: 120px;
margin: 20px;
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(5px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
font-weight: bold;
font-size: 18px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}
.deck .button.black {
background-color: rgba(0, 0, 0, 0.6);
}
.deck .button i {
font-size: 96px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<h1>FireDeck</h1>
<div class="deck">
<button class="w3-btn w3-blue button">
<i class="fas fa-fire"></i>
Button 1
</button>
<button class="w3-btn w3-red button">
<i class="fas fa-bomb"></i>
Button 2
</button>
<button class="w3-btn w3-green button black">
<i class="fas fa-lightbulb"></i>
Button 3
</button>
<button class="w3-btn w3-yellow button">
<i class="fas fa-bolt"></i>
Button 4
</button>
<button class="w3-btn w3-purple button">
<i class="fas fa-rocket"></i>
Button 5
</button>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/js/all.min.js"></script>
<script>
function fireAction(buttonNumber) {
// Handle button actions here
switch (buttonNumber) {
case 1:
console.log("Button 1 pressed");
break;
case 2:
console.log("Button 2 pressed");
break;
case 3:
console.log("Button 3 pressed");
break;
case 4:
console.log("Button 4 pressed");
break;
case 5:
console.log("Button 5 pressed");
break;
default:
console.log("Unknown button pressed");
break;
}
}
</script>
</body>
</html>