Skip to content

Commit

Permalink
Added Sonu Nigam and his songs (#116)
Browse files Browse the repository at this point in the history
* Added Sonu Nigam songs

* Added songs and their images of Sonu Nigam
  • Loading branch information
GhoshAditi authored Jan 18, 2024
1 parent 5e3949d commit 6431d3c
Show file tree
Hide file tree
Showing 15 changed files with 44 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 @@ -65,6 +65,7 @@ const allcategories = [
"Ritviz",
"JubinNautiyal",
"AtifAslam",
"SonuNigam",
];

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

<div class="category-slider small-category" onclick="loadfirstsong(14)">
<div class="artist-card">
<img class="playlist-cover" src="homepage/sonu nigam.jpg" alt="category-img image">
<div class="playlist-details">
<div class="playlist-title">Sonu Nigam</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/sonusongs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"name": "TumseMilkeDilkaHaal",
"title": "Tumse Milke Dilka Haal",
"artist": "Sonu Nigam"
},
{
"name": "AllIzzWell",
"title": "All Izz Well",
"artist": "Sonu Nigam"
}, {
"name": "SurajHuaMaddham",
"title": "Suraj Hua Maddham",
"artist": "Sonu Nigam"
},
{
"name": "YouAreMySoniya",
"title": "You Are My Soniya",
"artist": "Sonu Nigam, Nikita Ganndhi"
},
{
"name": "ZoobiDoobi",
"title": "Zoobi Doobi",
"artist": "Sonu Nigam"
}

]
Binary file added songs-images/SonuNigam/AllIzzWell.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/SonuNigam/AllIzzWell.mp3
Binary file not shown.
Binary file added songs-images/SonuNigam/SurajHuaMaddham.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/SonuNigam/SurajHuaMaddham.mp3
Binary file not shown.
Binary file added songs-images/SonuNigam/TumseMilkeDilkaHaal.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/SonuNigam/TumseMilkeDilkaHaal.mp3
Binary file not shown.
Binary file added songs-images/SonuNigam/YouAreMySoniya.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/SonuNigam/YouAreMySoniya.mp3
Binary file not shown.
Binary file added songs-images/SonuNigam/ZoobiDoobi.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/SonuNigam/ZoobiDoobi.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 @@ -40,6 +40,7 @@ const jsonPaths = [
'./playlists/holispecial.json',
'./playlists/bollywoodsongs.json',
'./playlists/hollywoodsongs.json',
'./playlists/sonusongs.json',
];

let globalSong, allsongs;
Expand Down Expand Up @@ -83,6 +84,8 @@ const fetchAndLogSongs = async () => {
const bollywoodsongs = await fetchData(jsonPaths[12]);
// Array of Hollywood songs, in which each song is an object with the name, title and artist properties.
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]);

globalSong = [
hollywoodsongs,
Expand All @@ -99,6 +102,7 @@ const fetchAndLogSongs = async () => {
ritvizsongs,
rocksongs,
collegesongs,
sonusongs,
];
// Wrapping all the songs array in one array by Type of songs.
allsongs = [
Expand All @@ -116,6 +120,7 @@ const fetchAndLogSongs = async () => {
ritvizsongs,
jubinsongs,
atifsongs,
sonusongs,
];
} catch (error) {
console.error('Error fetching or logging songs:', error);
Expand Down Expand Up @@ -242,6 +247,7 @@ const allcategories = [
'Ritviz',
'JubinNautiyal',
'AtifAslam',
'SonuNigam',
];
let songs = [];
let category;
Expand Down

0 comments on commit 6431d3c

Please sign in to comment.