diff --git a/frontend/src/components/Auth/firebase.js b/frontend/src/components/Auth/firebase.js index eafed44..d2ca8a5 100644 --- a/frontend/src/components/Auth/firebase.js +++ b/frontend/src/components/Auth/firebase.js @@ -3,14 +3,25 @@ import { getAuth } from "firebase/auth"; import { getFirestore } from "firebase/firestore"; // Your web app's Firebase configuration +// const firebaseConfig = { +// apiKey: import.meta.env.VITE_API_KEY, +// authDomain: import.meta.env.VITE_AUTH_DOMAIN, +// projectId: import.meta.env.VITE_PROJECT_ID, +// storageBucket: import.meta.env.VITE_STORAGE_BUCKET, +// messagingSenderId: import.meta.env.VITE_MESSAGING_SENDER_ID, +// appId: import.meta.env.VITE_APP_ID, +// databaseURL: import.meta.env.VITE_DATABASE_URL, +// }; + + const firebaseConfig = { - apiKey: import.meta.env.VITE_API_KEY, - authDomain: import.meta.env.VITE_AUTH_DOMAIN, - projectId: import.meta.env.VITE_PROJECT_ID, - storageBucket: import.meta.env.VITE_STORAGE_BUCKET, - messagingSenderId: import.meta.env.VITE_MESSAGING_SENDER_ID, - appId: import.meta.env.VITE_APP_ID, - databaseURL: import.meta.env.VITE_DATABASE_URL, + apiKey: "AIzaSyBNZqJmtwAqYuE0zrtdSMdgcoXZSoRdMew", + authDomain: "opensource-2faad.firebaseapp.com", + projectId: "opensource-2faad", + storageBucket: "opensource-2faad.appspot.com", + messagingSenderId: "1060453831050", + appId: "1:1060453831050:web:4e94554bd4ec6e9f37f873", + measurementId: "G-QL0FTXFWEH" }; // Initialize Firebase @@ -19,12 +30,3 @@ export const auth = getAuth(app); export const db = getFirestore(app); export default app; -// const firebaseConfig = { -// apiKey: "AIzaSyBNZqJmtwAqYuE0zrtdSMdgcoXZSoRdMew", -// authDomain: "opensource-2faad.firebaseapp.com", -// projectId: "opensource-2faad", -// storageBucket: "opensource-2faad.appspot.com", -// messagingSenderId: "1060453831050", -// appId: "1:1060453831050:web:4e94554bd4ec6e9f37f873", -// measurementId: "G-QL0FTXFWEH" -// }; \ No newline at end of file diff --git a/frontend/src/components/Footer.jsx b/frontend/src/components/Footer.jsx index 27db80d..68f963d 100644 --- a/frontend/src/components/Footer.jsx +++ b/frontend/src/components/Footer.jsx @@ -12,11 +12,10 @@ import { Link } from "react-router-dom"; const Footer = () => { const currentYear = new Date().getFullYear(); return ( - -
- - - +
{/* //for logo and social links */}
SPRING
@@ -26,22 +25,34 @@ const Footer = () => {
  • - About Us + + About Us +
  • - Culture + + Culture +
  • - Blogs + + Blogs +
  • - Terms and Policy + + Terms and Policy +
  • - Help and Support + + Help and Support +
  • - Our Contributors + + Our Contributors +
@@ -52,7 +63,11 @@ const Footer = () => { {" "} - + diff --git a/frontend/src/components/Home/Home.jsx b/frontend/src/components/Home/Home.jsx index bf175a1..e23ec56 100644 --- a/frontend/src/components/Home/Home.jsx +++ b/frontend/src/components/Home/Home.jsx @@ -58,11 +58,14 @@ function Main() { }, []); return ( -
+
{/* Top user section */} {/* Middle */} -
+
{/* Bottom */} -
-
- {/* Left section */} -
-
- -
-
- - -
+
+ {/* Left section */} +
+
+
- {/* Right section */} -
- +
+ +
+ {/* Right section */} +
+ +
); @@ -147,16 +148,16 @@ function RecentlyPlayedElement({ setCurrentSong, song, name, image, singer }) { function Genres() { return ( -
-
-
+
+
+

Genres

See all

-
-
+
+
{/* Genre boxes */} -
+
Dance/Electric
@@ -206,7 +207,7 @@ export function TopSongsElement({ >
{index}
-
+
{song.name}
@@ -244,18 +245,14 @@ function TopSongs({ currentArtist, setCurrentSong }) { // console.log(topSongs) return ( - -
- - - +
-
+

{title}

See all

{/* Top chart list */} -
+
{topSongs.slice(0, 10).map((song, index) => ( onClick(name)} > - +
-

- {name.toUpperCase()} -

+

{name.toUpperCase()}

{/*

top charts: {weeks_on_chart}

*/}
@@ -315,17 +310,13 @@ function TopArtists({ setCurrentArtist }) { }, []); return ( - -
- - - -
-
+
+
+

Top Artists

See all

-
+
{artists && artists.songs .slice(0, 8) @@ -348,8 +339,8 @@ function TopArtists({ setCurrentArtist }) { function Home({ setCurrPage }) { return ( -
-
+
+
diff --git a/frontend/src/components/MusicPlayer.jsx b/frontend/src/components/MusicPlayer.jsx index a2b03ae..fa885d8 100644 --- a/frontend/src/components/MusicPlayer.jsx +++ b/frontend/src/components/MusicPlayer.jsx @@ -40,15 +40,22 @@ function MusicPlayer({ currSong, shouldAutoPlay, setSongHasEnded }) { }; return ( -
+
{/* Image and like details */}
-
+
@@ -58,7 +65,11 @@ function MusicPlayer({ currSong, shouldAutoPlay, setSongHasEnded }) {
{/* Song Image */}
- song image + song image

{songName}

{artistName}

@@ -78,7 +89,7 @@ function MusicPlayer({ currSong, shouldAutoPlay, setSongHasEnded }) { src={audioUrl} customIcons={customIcons} onEnded={() => { - setSongHasEnded(true) + setSongHasEnded(true); }} />
diff --git a/frontend/src/components/Navbar.jsx b/frontend/src/components/Navbar.jsx index f2198e0..59da311 100644 --- a/frontend/src/components/Navbar.jsx +++ b/frontend/src/components/Navbar.jsx @@ -15,7 +15,7 @@ import { RiHome5Fill } from "react-icons/ri"; function Navbar() { return ( -
+
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index c47425e..a414f9d 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -5,10 +5,10 @@ export default { extend: { screens: { "h-md": { raw: "(max-height: 768px)" }, - sm: { max: "690px" }, - lg: { max: "1800px" }, + sm: { max: "769px" }, + lg: { max: "1280px" }, lgm: { max: "1140px" }, - md: { max: "990px" }, + md: { max: "1080px" }, xs: { max: "480px" }, minmd: "1700px", minlg: "2100px",