├── src ├── App.css ├── index.css ├── img │ ├── d1.png │ ├── d2.png │ ├── d3.png │ ├── d4.png │ ├── p 1.png │ ├── p 2.png │ ├── p 3.png │ ├── p 4.png │ ├── path.png │ ├── Group 2.png │ ├── Group 4.png │ ├── Group 9.png │ ├── search.png │ ├── App Store.png │ ├── MuzicLogo.png │ ├── Path 318.png │ ├── Google Play.png │ ├── Rectangle 7.png │ ├── backgraphics.png │ ├── music icon.png │ ├── Mask Group 23.png │ └── Group 8.svg ├── index.js ├── components │ ├── CenterMenu.jsx │ ├── DownloadAds.jsx │ ├── Header.jsx │ ├── Experience.jsx │ ├── Download.jsx │ ├── Footer.jsx │ ├── Feature.jsx │ ├── Hero.jsx │ ├── Search.jsx │ └── MusicPlayer.jsx └── App.js ├── public ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── manifest.json └── index.html ├── postcss.config.js ├── tailwind.config.js ├── .gitignore ├── package.json └── README.md /src/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; -------------------------------------------------------------------------------- /src/img/d1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/d1.png -------------------------------------------------------------------------------- /src/img/d2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/d2.png -------------------------------------------------------------------------------- /src/img/d3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/d3.png -------------------------------------------------------------------------------- /src/img/d4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/d4.png -------------------------------------------------------------------------------- /src/img/p 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/p 1.png -------------------------------------------------------------------------------- /src/img/p 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/p 2.png -------------------------------------------------------------------------------- /src/img/p 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/p 3.png -------------------------------------------------------------------------------- /src/img/p 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/p 4.png -------------------------------------------------------------------------------- /src/img/path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/path.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/img/Group 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/Group 2.png -------------------------------------------------------------------------------- /src/img/Group 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/Group 4.png -------------------------------------------------------------------------------- /src/img/Group 9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/Group 9.png -------------------------------------------------------------------------------- /src/img/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/search.png -------------------------------------------------------------------------------- /src/img/App Store.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/App Store.png -------------------------------------------------------------------------------- /src/img/MuzicLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/MuzicLogo.png -------------------------------------------------------------------------------- /src/img/Path 318.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/Path 318.png -------------------------------------------------------------------------------- /src/img/Google Play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/Google Play.png -------------------------------------------------------------------------------- /src/img/Rectangle 7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/Rectangle 7.png -------------------------------------------------------------------------------- /src/img/backgraphics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/backgraphics.png -------------------------------------------------------------------------------- /src/img/music icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/music icon.png -------------------------------------------------------------------------------- /src/img/Mask Group 23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZainRk/Youtube-Music-App/HEAD/src/img/Mask Group 23.png -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: [ 3 | "./src/**/*.{js,jsx,ts,tsx}", 4 | ], 5 | theme: { 6 | extend: {}, 7 | }, 8 | plugins: [], 9 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import './index.css'; 4 | import App from './App'; 5 | 6 | ReactDOM.render( 7 | , 8 | document.getElementById('root') 9 | ); 10 | 11 | // If you want to start measuring performance in your app, pass a function 12 | // to log results (for example: reportWebVitals(console.log)) 13 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 14 | -------------------------------------------------------------------------------- /src/img/Group 8.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/CenterMenu.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | function CenterMenu() { 4 | const liStyle = "mr-[3rem] hover:cursor-pointer" 5 | return ( 6 |
7 | 13 |
14 | ) 15 | } 16 | 17 | export default CenterMenu -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import './App.css'; 2 | import Download from './components/Download'; 3 | import Experience from './components/Experience'; 4 | import Footer from './components/Footer'; 5 | import Header from './components/Header'; 6 | import Hero from './components/Hero'; 7 | import Search from './components/Search'; 8 | 9 | function App() { 10 | return ( 11 |
12 |
13 | 14 | 15 | 16 | 17 |
18 |
19 | ) 20 | } 21 | 22 | export default App; 23 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /src/components/DownloadAds.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | function DownloadAds() { 4 | const downloadImgStyle = 'border-[2px] border-[#232A4E] rounded-[13px] h-[3rem] w-[10rem]' 5 | return ( 6 |
7 |
8 | 13 | 18 |
19 |
20 | ) 21 | } 22 | 23 | export default DownloadAds -------------------------------------------------------------------------------- /src/components/Header.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import CenterMenu from "./CenterMenu"; 3 | 4 | function Header() { 5 | const buttonStyle = 6 | "border-[2px] rounded-[10px] border-[#232A4E] px-[25px] py-[7px]"; 7 | return ( 8 |
9 | {/* logo */} 10 | 15 | {/* side menu */} 16 | 17 | {/* buttons */} 18 |
19 | 22 | 23 |
24 |
25 | ); 26 | } 27 | 28 | export default Header; 29 | -------------------------------------------------------------------------------- /src/components/Experience.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Feature from "./Feature"; 3 | 4 | function Experience() { 5 | return ( 6 |
7 | {/* titld icon */} 8 | 9 | {/* heading */} 10 |
11 | An Amazing App Can Change Your Daily Life 12 | 13 | Music Experience 14 | 15 |
16 | {/* features */} 17 |
18 | 19 | 20 | 21 |
22 |
23 | ); 24 | } 25 | 26 | export default Experience; 27 | -------------------------------------------------------------------------------- /src/components/Download.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import DownloadAds from "./DownloadAds"; 3 | 4 | function Download() { 5 | return ( 6 |
7 | {/* tild icon or path icon */} 8 | 9 | {/* heading */} 10 |
11 | Download The Best Music 12 | 13 | App Now! 14 | 15 | 16 | Duis feugiat congue metus, ultrices vulputate nibh viverra eget. 17 | Vestibulum ullamcorper volutpat varius. 18 | 19 |
20 | {/* dowload ads */} 21 |
22 | 23 |
24 |
25 | ); 26 | } 27 | 28 | export default Download; 29 | -------------------------------------------------------------------------------- /src/components/Footer.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import CenterMenu from "./CenterMenu"; 3 | import { Facebook, Twitter, YouTube, LinkedIn } from "@material-ui/icons"; 4 | 5 | function Footer() { 6 | const SocialStyle = "rounded-full border-2 border-whit p-2 mr-[5rem]" 7 | return ( 8 |
9 | 10 | {/* Social icons */} 11 |
12 |
13 | 14 |
{" "} 15 |
16 | 17 |
{" "} 18 |
19 | 20 |
{" "} 21 |
22 | 23 |
24 |
25 | {/* detail */} 26 | 27 | Duis feugiat congue metus, ultrices vulputate nibh viverra eget. 28 | Vestibulum ullamcorper volutpat varius. 29 | 30 |
31 | ); 32 | } 33 | 34 | export default Footer; 35 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "musicapp", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@material-ui/core": "^4.12.3", 7 | "@material-ui/icons": "^4.11.2", 8 | "@testing-library/jest-dom": "^5.16.2", 9 | "@testing-library/react": "^12.1.3", 10 | "@testing-library/user-event": "^13.5.0", 11 | "framer-motion": "^6.2.8", 12 | "react": "^17.0.2", 13 | "react-dom": "^17.0.2", 14 | "react-scripts": "5.0.0", 15 | "react-visibility-sensor": "^5.1.1", 16 | "web-vitals": "^2.1.4" 17 | }, 18 | "scripts": { 19 | "start": "react-scripts start", 20 | "build": "react-scripts build", 21 | "test": "react-scripts test", 22 | "eject": "react-scripts eject" 23 | }, 24 | "eslintConfig": { 25 | "extends": [ 26 | "react-app", 27 | "react-app/jest" 28 | ] 29 | }, 30 | "browserslist": { 31 | "production": [ 32 | ">0.2%", 33 | "not dead", 34 | "not op_mini all" 35 | ], 36 | "development": [ 37 | "last 1 chrome version", 38 | "last 1 firefox version", 39 | "last 1 safari version" 40 | ] 41 | }, 42 | "devDependencies": { 43 | "autoprefixer": "^10.4.2", 44 | "postcss": "^8.4.7", 45 | "tailwindcss": "^3.0.23" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/components/Feature.jsx: -------------------------------------------------------------------------------- 1 | import {React, useState} from "react"; 2 | import { motion } from "framer-motion"; 3 | import VisibilitySensor from "react-visibility-sensor"; 4 | 5 | function Feature({ icon, title }) { 6 | const variant = { 7 | true: { 8 | transform: "scale(1)", 9 | }, 10 | false: { 11 | transform: "scale(0.5)", 12 | }, 13 | }; 14 | const [elementIsVisible, setElementIsVisible] = useState(false); 15 | 16 | return ( 17 | setElementIsVisible(isVisible)} 19 | // minTopValue={100} 20 | > 21 |
22 | {/* icon */} 23 | 32 | 37 | 38 | 39 | {title} 40 | 41 | 42 | Nunc elementum, dolor vitae lacinia pulvinar, augue felis scelerisque 43 | libero, sit amet laoreet lorem. 44 | 45 | 46 | 47 | Learn more 48 | 49 |
50 |
51 | ); 52 | } 53 | 54 | export default Feature; 55 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 37 | 38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. 39 | 40 | You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /src/components/Hero.jsx: -------------------------------------------------------------------------------- 1 | import { React, useState } from "react"; 2 | import DownloadAds from "./DownloadAds"; 3 | import VisibilitySensor from "react-visibility-sensor"; 4 | import { motion } from "framer-motion"; 5 | 6 | function Hero() { 7 | const [elementIsVisible, setElementIsVisible] = useState(false); 8 | const bg = { 9 | true: { 10 | left: "7rem", 11 | }, 12 | false: { 13 | left: "19rem", 14 | }, 15 | }; 16 | const musicPlayer = { 17 | true: { 18 | left: "295px", 19 | }, 20 | false: { 21 | left: "235px", 22 | }, 23 | }; 24 | const rect = { 25 | true: { 26 | left: "11rem", 27 | }, 28 | false: { 29 | left: "13rem", 30 | }, 31 | } 32 | const heart = { 33 | true: { 34 | left: "9rem", 35 | }, 36 | false: { 37 | left: "12.5rem", 38 | }, 39 | }; 40 | return ( 41 | setElementIsVisible(isVisible)} 43 | minTopValue={300} 44 | > 45 |
46 | {/* left side */} 47 |
48 | Experience The{" "} 49 | 50 | Best Qulaity Music 51 | 52 | 53 | Donec laoreet nec velit vitae aliquam. Ut quis tincidunt purus. 54 |
55 | Suspendisse in leo non risus tincidunt lobortis. 56 |
57 | {/* download ads */} 58 |
59 | Download now on IOS and Android 60 | 61 |
62 |
63 | {/* right side */} 64 |
65 | 73 | 78 | 89 | 100 | 111 |
112 |
113 |
114 | ); 115 | } 116 | 117 | export default Hero; 118 | -------------------------------------------------------------------------------- /src/components/Search.jsx: -------------------------------------------------------------------------------- 1 | import { React, useState } from "react"; 2 | import MusicPlayer from "./MusicPlayer"; 3 | import { motion } from "framer-motion"; 4 | import VisibilitySensor from "react-visibility-sensor"; 5 | function Search() { 6 | const [elementIsVisible, setElementIsVisible] = useState(false); 7 | const bg = { 8 | true: { 9 | left: "-44rem", 10 | }, 11 | false: { 12 | left: "-50rem", 13 | }, 14 | }; 15 | const redimg = { 16 | true: { 17 | left: "18rem", 18 | }, 19 | false: { 20 | left: "16rem", 21 | }, 22 | }; 23 | const musicimg = { 24 | true: { 25 | left: "2rem", 26 | }, 27 | false: { 28 | left: "6rem", 29 | }, 30 | }; 31 | return ( 32 |
33 | {/* left side */} 34 |
35 | 46 | {" "} 51 | {" "} 56 | 67 | 78 |
79 | {/* right side */} 80 |
81 | {/* Search */} 82 |
83 | 88 | {/* SearchIcon */} 89 |
90 | 95 |
96 |
97 | {/* tild icon */} 98 |
99 | 104 |
105 | 106 | {/* paragraph */} 107 |
108 | Search Music by 109 | 110 | Name or Direct URL 111 | 112 | 113 | Duis feugiat congue metus, ultrices vulputate
nibh viverra 114 | eget. Vestibulum ullamcorper
volutpat varius. 115 |
116 |
117 | {/* Music Player */} 118 | setElementIsVisible(isVisible)} 120 | > 121 | 122 | 123 |
124 |
125 | ); 126 | } 127 | 128 | export default Search; 129 | -------------------------------------------------------------------------------- /src/components/MusicPlayer.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | function MusicPlayer() { 4 | return ( 5 |
6 | {/* Upper Part */} 7 |
8 | {/* profile */} 9 |
10 | 15 |
16 | Tristam Bone Dry 17 | Unknown Artist 18 |
19 |
20 |
21 | 22 |
23 |
24 | {/* lower part */} 25 |
26 | {/* track */} 27 |
28 | 2: 30 29 | 34 | 4: 30 35 |
36 | {/* Controls */} 37 |
38 | {/* previous arrow */} 39 | 40 | 45 | 54 | 55 | {/* pauseButton */} 56 |
57 | {/* cicrle */} 58 | 59 | 60 | 67 | 68 | 69 | 70 | 71 | 78 | 79 | {/* pause */} 80 | 86 | 87 | 95 | 96 | 97 | 98 | 99 | 108 | 117 | 118 |
119 | {/* next arrow */} 120 | 121 | 128 | 137 | 138 |
139 |
140 |
141 | ); 142 | } 143 | 144 | export default MusicPlayer; 145 | --------------------------------------------------------------------------------