-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaylist-main.php
139 lines (105 loc) · 5.48 KB
/
playlist-main.php
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
$data = file_get_contents('playlist-menu.json');
$menu = json_decode($data,true);
$menu = $menu["menu"];
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="css/style.css"> -->
<title>My Playlist</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="playlist-main.php"><b>My Playlist</b></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link active" aria-current="page" href="playlist-main.php">Home</a>
<a class="nav-link" href="playlist-by-all-songs.php">All Songs</a>
<a class="nav-link" href="playlist-by-genre.php">Genre</a>
<a class="nav-link" href="playlist-by-mood.php">Mood</a>
<a class="nav-link" href="playlist-by-artist.php">Artists</a>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="card">
<!-- <img src="img-lagu/my-playlist1.jpg" class="card-img-top" alt="..."> -->
<div class="card-body">
<h4 class="card-title"><b>Welcome to My Playlist!</b></h4>
<p class="card-text">Sebuah project website iseng-iseng berisikan berbagai macam musik, lagu, & playlist pilihan untuk didengarkan.</p>
<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p><i>Terkadang sebuah lagu bisa menjadi sebuah mesin waktu.</i></p>
<footer class="blockquote-footer">Netizen</footer>
</blockquote>
</div>
</div>
<!-- <p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p> -->
</div>
<img src="img-lagu/my-playlist1.jpg" class="card-img-bottom" alt="...">
</div>
</div>
<div class="row">
<h1>Menu</h1>
</div>
<div class="row">
<?php foreach($menu as $row): ?>
<div class="col-sm-6">
<div class="card">
<img src="img-lagu/menu/<?= $row["gambar"] ?>" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title"><?= $row["nama"] ?></h5>
<p class="card-text"><?= $row["deskripsi"] ?></p>
<a href="<?= $row["link"] ?>" class="btn btn-primary">Lihat</a>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<!-- footer -->
<div class="container">
<footer class="py-3 my-4">
<ul class="nav justify-content-center border-bottom pb-3 mb-3">
<li class="nav-item">
<a href="#" class="nav-link px-2 text-muted">Home</a>
</li>
<li class="nav-item">
<a href="playlist-by-all-songs.php" class="nav-link px-2 text-muted">All Songs</a>
</li>
<li class="nav-item">
<a href="playlist-by-genre.php" class="nav-link px-2 text-muted">Genre</a>
</li>
<li class="nav-item">
<a href="playlist-by-mood.php" class="nav-link px-2 text-muted">Mood</a>
</li>
<li class="nav-item">
<a href="playlist-by-artist.php" class="nav-link px-2 text-muted">Artists</a>
</li>
</ul>
<p class="text-center text-muted">© copyright 2021 | Rahmat Zaki Muharom</p>
</footer>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" integrity="sha384-W8fXfP3gkOKtndU4JGtKDvXbO53Wy8SZCQHczT5FMiiqmQfUpWbYdTil/SxwZgAN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js" integrity="sha384-skAcpIdS7UcVUC05LJ9Dxay8AXcDYfBJqt1CJ85S/CFujBsIzCIv+l9liuYLaMQ/" crossorigin="anonymous"></script>
-->
</body>
</html>