Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added shreya ghosal's songs #119

Merged
merged 4 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Pages/hollysongs.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const allcategories = [
"JubinNautiyal",
"AtifAslam",
"SonuNigam",
"ShreyaGhosal"
];

const out = () => {
Expand Down
Binary file added homepage/shreyaGhosal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,17 @@ <h3 id="bestofartist"> Best Of Artists </h3>
</div>
</div>

<div class="category-slider small-category" onclick="loadfirstsong(15)">
<div class="artist-card">
<img class="playlist-cover" src="homepage/shreyaGhosal.jpg" alt="category-img image">
<div class="playlist-details">
<div class="playlist-title">Shreya Ghosal</div>
<div class="playlist-description"> Artist</div>
</div>
</div>
</div>


</div>

<button id="prev-slide" class="slide-button material-symbols-rounded">
Expand Down
27 changes: 27 additions & 0 deletions playlists/shreyasongs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"name": "ManwaLaage",
"title": "Manwa Laage",
"artist": "Shreya Ghosal"
},
{
"name": "SunnRahaHai",
"title": "Sunn Raha Hai",
"artist": "Sonu Nigam"
}, {
"name": "ParamSundaari",
"title": "Param Sundaari",
"artist": "Shreya Ghosal"
},
{
"name": "MereDholna",
"title": "Mere Dholna",
"artist": "Shreya Ghosal"
},
{
"name": "DeewaniMastani",
"title": "Deewani Mastani",
"artist": "Shreya Ghosal"
}

]
Binary file added songs-images/ShreyaGhosal/DeewaniMastani.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added songs-images/ShreyaGhosal/DeewaniMastani.mp3
Binary file not shown.
Binary file added songs-images/ShreyaGhosal/ManwaLaage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added songs-images/ShreyaGhosal/ManwaLaage.mp3
Binary file not shown.
Binary file added songs-images/ShreyaGhosal/MereDholna.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added songs-images/ShreyaGhosal/MereDholna.mp3
Binary file not shown.
Binary file added songs-images/ShreyaGhosal/ParamSundaari.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added songs-images/ShreyaGhosal/ParamSundaari.mp3
Binary file not shown.
Binary file added songs-images/ShreyaGhosal/SunnRahaHai.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added songs-images/ShreyaGhosal/SunnRahaHai.mp3
Binary file not shown.
6 changes: 6 additions & 0 deletions swetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const jsonPaths = [
'./playlists/bollywoodsongs.json',
'./playlists/hollywoodsongs.json',
'./playlists/sonusongs.json',
'./playlists/shreyasongs.json',
];

let globalSong, allsongs;
Expand Down Expand Up @@ -86,6 +87,8 @@ const fetchAndLogSongs = async () => {
const hollywoodsongs = await fetchData(jsonPaths[13]);
// Below is the array of songs by Sonu Nigam, in which each song is an object with the name, title and artist properties.
const sonusongs = await fetchData(jsonPaths[14]);
// Below is the array of songs by Shreya Ghosal, in which each song is an object with the name, title and artist properties.
const shreyasongs = await fetchData(jsonPaths[15]);

globalSong = [
hollywoodsongs,
Expand All @@ -103,6 +106,7 @@ const fetchAndLogSongs = async () => {
rocksongs,
collegesongs,
sonusongs,
shreyasongs,
];
// Wrapping all the songs array in one array by Type of songs.
allsongs = [
Expand All @@ -121,6 +125,7 @@ const fetchAndLogSongs = async () => {
jubinsongs,
atifsongs,
sonusongs,
shreyasongs,
];
} catch (error) {
console.error('Error fetching or logging songs:', error);
Expand Down Expand Up @@ -248,6 +253,7 @@ const allcategories = [
'JubinNautiyal',
'AtifAslam',
'SonuNigam',
'ShreyaGhosal',
];
let songs = [];
let category;
Expand Down