Skip to content

Commit

Permalink
added shreya ghosal's songs (#119)
Browse files Browse the repository at this point in the history
* Added Sonu Nigam songs

* Added songs and their images of Sonu Nigam

* Added shreyaGhosal songs
  • Loading branch information
GhoshAditi authored Jan 19, 2024
1 parent 6431d3c commit 6e2d65c
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 0 deletions.
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

0 comments on commit 6e2d65c

Please sign in to comment.