Download Spotify-Clone/src/components/DisplayHome.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 915 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Spotify-Clone/src/components/DisplayHome.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Spotify-Clone/src/components/DisplayHome.jsx
-
curl -L -o DisplayHome.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Spotify-Clone/src/components/DisplayHome.jsx
915 Bytes
| import Navbar from "./Navbar" | |
| import { albumsData } from "../assets/assets" | |
| import AlbumItem from "./AlbumItem" | |
| import { songsData } from "../assets/assets" | |
| import SongItem from "./SongItem" | |
| const DisplayHome = () => { | |
| return ( | |
| <> | |
| <Navbar/> | |
| <div className="mb-4"> | |
| <h1 className="my-5 font-bold text-2xl">Featured Charts</h1> | |
| <div className="flex overflow-auto"> | |
| {albumsData.map((item,index)=>(<AlbumItem key={index} name={item.name} desc={item.desc} id={item.id} | |
| image={item.image}/>))} | |
| </div> | |
| </div> | |
| <div className="mb-4"> | |
| <h1 className="my-5 font-bold text-2xl">Today's biggest hits</h1> | |
| <div className="flex overflow-auto"> | |
| {songsData.map((item,index)=>(<SongItem key={index} name={item.name} desc={item.desc} id={item.id} | |
| image={item.image}/>))} | |
| </div> | |
| </div> | |
| </> | |
| ) | |
| } | |
| export default DisplayHome |