-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (99 loc) · 3.25 KB
/
index.html
File metadata and controls
114 lines (99 loc) · 3.25 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music Grid</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
/* Custom styling */
.music-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
/* 4 columns */
grid-gap: 15px;
/* Space between grid items */
}
/* Square grid items */
.music-item {
width: 100%;
padding-top: 100%;
/* This makes the height equal to the width */
position: relative;
background-color: #f0f0f0;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.music-item i {
font-size: 2.5rem;
color: #ff6347;
margin-bottom: 10px;
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
}
.music-item p {
font-size: 1rem;
text-align: center;
color: #555;
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
}
/* Copyright text styling */
.footer-text {
margin-top: 30px;
text-align: center;
color: #888;
font-size: 14px;
}
.music-button {
background: none;
border: none;
padding: 0;
cursor: pointer;
}
.music-button:focus {
outline: none;
}
</style>
</head>
<body>
<div class="container mt-5">
<h1 class="text-center">Music Grid</h1>
<div class="music-grid mt-4">
<!-- Generate 32 grid items with title -->
<div class="music-item">
<button class="music-button" onclick="document.getElementById('audio32').play()">
<i class="bi bi-music-note"></i>
</button>
<p>Song 1</p>
<audio id="audio32" src="path/to/your/audiofile.mp3"></audio>
</div>
<div class="music-item">
<button class="music-button" onclick="document.getElementById('audio32').play()">
<i class="bi bi-music-note"></i>
</button>
<p>Song 2</p>
<audio id="audio32" src="path/to/your/audiofile.mp3"></audio>
</div>
</div>
<!-- Footer text -->
<div class="footer-text">
© greytexture 2024. All rights reserved.
</div>
</div>
<!-- Bootstrap JS (Optional) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Bootstrap Icons -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css">
</body>
</html>