Update static/index.html
Browse files- static/index.html +209 -209
static/index.html
CHANGED
@@ -1,210 +1,210 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8">
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>
|
7 |
-
<link rel="stylesheet" href="styles.css">
|
8 |
-
<link href="
|
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 |
-
|
140 |
-
</
|
141 |
-
<
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
<
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
<li>
|
157 |
-
<li>
|
158 |
-
<li>
|
159 |
-
<li>
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
<
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
<li>
|
170 |
-
<li>
|
171 |
-
<li>
|
172 |
-
<li>
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
<li>
|
179 |
-
<li>
|
180 |
-
<li>
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
<
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
<script src="script.js"></script>
|
209 |
-
</body>
|
210 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>VibeMl Music Recommendation</title>
|
7 |
+
<link rel="stylesheet" href="/styles.css">
|
8 |
+
<!-- OR use the static path: <link rel="stylesheet" href="/static/styles.css"> -->
|
9 |
+
</head>
|
10 |
+
<body>
|
11 |
+
<div class="app-container">
|
12 |
+
<!-- Navigation Bar -->
|
13 |
+
<nav class="navbar">
|
14 |
+
<div class="nav-content">
|
15 |
+
<div class="nav-logo">
|
16 |
+
<i class="fas fa-music"></i>
|
17 |
+
<span>Vibe ML</span>
|
18 |
+
</div>
|
19 |
+
<div class="nav-links">
|
20 |
+
<a href="#home" class="nav-link active" data-page="home">
|
21 |
+
<i class="fas fa-home"></i>
|
22 |
+
Get Recommendations
|
23 |
+
</a>
|
24 |
+
<a href="#about" class="nav-link" data-page="about">
|
25 |
+
<i class="fas fa-info-circle"></i>
|
26 |
+
About
|
27 |
+
</a>
|
28 |
+
</div>
|
29 |
+
<div class="nav-user">
|
30 |
+
<i class="fab fa-github"></i>
|
31 |
+
<span>GitHub</span>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</nav>
|
35 |
+
|
36 |
+
<!-- Home Page (Music Recommendations) -->
|
37 |
+
<div id="homePage" class="page active">
|
38 |
+
<!-- Main Content -->
|
39 |
+
<main class="main-content">
|
40 |
+
<!-- Search Section -->
|
41 |
+
<section class="search-section">
|
42 |
+
<div class="search-container">
|
43 |
+
<h2>Discover Your Next Favorite Song</h2>
|
44 |
+
<div class="search-box">
|
45 |
+
<i class="fas fa-search search-icon"></i>
|
46 |
+
<input
|
47 |
+
type="text"
|
48 |
+
id="searchInput"
|
49 |
+
placeholder="Search by song name or artist..."
|
50 |
+
autocomplete="off"
|
51 |
+
>
|
52 |
+
<div class="search-spinner" id="searchSpinner">
|
53 |
+
<i class="fas fa-spinner fa-spin"></i>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
<div class="search-results" id="searchResults"></div>
|
57 |
+
</div>
|
58 |
+
</section>
|
59 |
+
|
60 |
+
<!-- Trending Songs Section -->
|
61 |
+
<section class="trending-section" id="trendingSection">
|
62 |
+
<div class="trending-container">
|
63 |
+
<div class="trending-header">
|
64 |
+
<h3>Trending Songs</h3>
|
65 |
+
<p>Popular tracks to get you started</p>
|
66 |
+
</div>
|
67 |
+
<div class="trending-grid" id="trendingGrid">
|
68 |
+
<!-- Trending songs will be inserted here -->
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
</section>
|
72 |
+
|
73 |
+
<!-- Current Playing Section -->
|
74 |
+
<section class="now-playing-section" id="nowPlayingSection" style="display: none;">
|
75 |
+
<div class="now-playing-container">
|
76 |
+
<div class="now-playing-header">
|
77 |
+
<h3>Now Playing</h3>
|
78 |
+
</div>
|
79 |
+
<div class="current-song-card" id="currentSongCard">
|
80 |
+
<!-- Current song details will be inserted here -->
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
</section>
|
84 |
+
|
85 |
+
<!-- Recommendations Section -->
|
86 |
+
<section class="recommendations-section" id="recommendationsSection" style="display: none;">
|
87 |
+
<div class="recommendations-container">
|
88 |
+
<div class="recommendations-header">
|
89 |
+
<h3>Recommended for You</h3>
|
90 |
+
<p>Based on your current selection</p>
|
91 |
+
</div>
|
92 |
+
<div class="recommendations-grid" id="recommendationsGrid">
|
93 |
+
<!-- Recommended songs will be inserted here -->
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</section>
|
97 |
+
</main>
|
98 |
+
</div>
|
99 |
+
|
100 |
+
<!-- About Page -->
|
101 |
+
<div id="aboutPage" class="page">
|
102 |
+
<main class="about-main">
|
103 |
+
<div class="about-hero">
|
104 |
+
<h1>About Vibe ML</h1>
|
105 |
+
<p class="about-subtitle">
|
106 |
+
Vibe ML is an intelligent music recommendation system that helps you discover new music through
|
107 |
+
advanced audio analysis and machine learning technology.
|
108 |
+
</p>
|
109 |
+
</div>
|
110 |
+
|
111 |
+
<div class="features-grid">
|
112 |
+
<div class="feature-card">
|
113 |
+
<div class="feature-icon">
|
114 |
+
<i class="fas fa-brain"></i>
|
115 |
+
</div>
|
116 |
+
<h3>Machine Learning Powered</h3>
|
117 |
+
<p>Using K-means clustering with distinct clusters, we group songs based on their audio features to find the most similar tracks.</p>
|
118 |
+
</div>
|
119 |
+
|
120 |
+
<div class="feature-card">
|
121 |
+
<div class="feature-icon">
|
122 |
+
<i class="fas fa-waveform"></i>
|
123 |
+
</div>
|
124 |
+
<h3>Audio Analysis</h3>
|
125 |
+
<p>We analyze multiple audio features including danceability, energy, valence, acousticness, and tempo to understand each song's unique characteristics.</p>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
<div class="feature-card">
|
129 |
+
<div class="feature-icon">
|
130 |
+
<i class="fas fa-database"></i>
|
131 |
+
</div>
|
132 |
+
<h3>Vast Music Database</h3>
|
133 |
+
<p>Our system is built on a comprehensive database of songs, allowing for diverse and accurate recommendations across different genres and styles.</p>
|
134 |
+
</div>
|
135 |
+
|
136 |
+
<div class="feature-card">
|
137 |
+
<div class="feature-icon">
|
138 |
+
<i class="fas fa-user-music"></i>
|
139 |
+
</div>
|
140 |
+
<h3>Personalized Discovery</h3>
|
141 |
+
<p>Find new music based on songs you already love, helping you discover artists and tracks that match your musical taste.</p>
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
|
145 |
+
<div class="how-it-works">
|
146 |
+
<h2>How It Works</h2>
|
147 |
+
<div class="how-it-works-content">
|
148 |
+
<p class="how-it-works-intro">
|
149 |
+
Vibe ML uses a sophisticated K-means clustering algorithm with 20 clusters to group songs based on their
|
150 |
+
audio features. Our recommendation process follows these steps:
|
151 |
+
</p>
|
152 |
+
|
153 |
+
<div class="process-steps">
|
154 |
+
<ol class="steps-list">
|
155 |
+
<li>Standardizes the song's audio features using StandardScaler</li>
|
156 |
+
<li>Identifies which of the 20 clusters the song belongs to</li>
|
157 |
+
<li>Finds songs within the same cluster</li>
|
158 |
+
<li>Calculates Euclidean distances to find the most similar matches</li>
|
159 |
+
<li>Enriches results with iTunes preview data</li>
|
160 |
+
</ol>
|
161 |
+
</div>
|
162 |
+
|
163 |
+
<div class="audio-features-section">
|
164 |
+
<p class="features-intro">The audio features we analyze include:</p>
|
165 |
+
<div class="features-columns">
|
166 |
+
<div class="features-column">
|
167 |
+
<ul class="features-list-simple">
|
168 |
+
<li>Acousticness</li>
|
169 |
+
<li>Energy</li>
|
170 |
+
<li>Liveness</li>
|
171 |
+
<li>Speechiness</li>
|
172 |
+
<li>Valence</li>
|
173 |
+
</ul>
|
174 |
+
</div>
|
175 |
+
<div class="features-column">
|
176 |
+
<ul class="features-list-simple">
|
177 |
+
<li>Danceability</li>
|
178 |
+
<li>Instrumentalness</li>
|
179 |
+
<li>Loudness</li>
|
180 |
+
<li>Tempo</li>
|
181 |
+
</ul>
|
182 |
+
</div>
|
183 |
+
</div>
|
184 |
+
</div>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
</main>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<!-- REMOVED: Music Player section completely -->
|
191 |
+
|
192 |
+
<!-- Loading Overlay -->
|
193 |
+
<div class="loading-overlay" id="loadingOverlay" style="display: none;">
|
194 |
+
<div class="loading-content">
|
195 |
+
<div class="loading-spinner"></div>
|
196 |
+
<p>Getting recommendations...</p>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
|
200 |
+
<!-- Toast Notifications -->
|
201 |
+
<div class="toast-container" id="toastContainer"></div>
|
202 |
+
</div>
|
203 |
+
|
204 |
+
<!-- Hidden audio element for playing music -->
|
205 |
+
<audio id="audioPlayer" preload="metadata"></audio>
|
206 |
+
|
207 |
+
<script src="/script.js"></script>
|
208 |
+
<!-- OR use the static path: <script src="/static/script.js"></script> -->
|
209 |
+
</body>
|
210 |
</html>
|