├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.js ├── components ├── Card.js ├── Hero.js └── Navbar.js ├── data.js ├── images ├── Group 77.png ├── Star 1.png ├── airbnb 1.png ├── image 12.png ├── mountain-bike 1 (1).png ├── mountain-bike 1.png └── wedding-photography 1.png ├── index.css └── index.js /.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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with air bnb clone (don't forget to star the project) 2 | 3 | ![image](https://user-images.githubusercontent.com/42828778/150352215-ec95c492-9cd9-46b4-bf23-bdbf8798d066.png) 4 | 5 | ![image](https://user-images.githubusercontent.com/42828778/150352296-b14e4c41-fbfb-4dbd-a265-f03c5eeabbe0.png) 6 | 7 | 8 | ## Available Scripts 9 | 10 | First clone the project. 11 | In the project directory, you can run: 12 | 13 | ### `npm start` 14 | 15 | Runs the app in the development mode.\ 16 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 17 | 18 | The page will reload when you make changes.\ 19 | You may also see any lint errors in the console. 20 | 21 | ### `npm test` 22 | 23 | Launches the test runner in the interactive watch mode.\ 24 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 25 | 26 | ### `npm run build` 27 | 28 | Builds the app for production to the `build` folder.\ 29 | It correctly bundles React in production mode and optimizes the build for the best performance. 30 | 31 | The build is minified and the filenames include the hashes.\ 32 | Your app is ready to be deployed! 33 | 34 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 35 | 36 | ### `npm run eject` 37 | 38 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 39 | 40 | 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. 41 | 42 | 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. 43 | 44 | 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. 45 | 46 | ## Learn More 47 | 48 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 49 | 50 | To learn React, check out the [React documentation](https://reactjs.org/). 51 | 52 | ### Code Splitting 53 | 54 | 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) 55 | 56 | ### Analyzing the Bundle Size 57 | 58 | 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) 59 | 60 | ### Making a Progressive Web App 61 | 62 | 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) 63 | 64 | ### Advanced Configuration 65 | 66 | 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) 67 | 68 | ### Deployment 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 71 | 72 | ### `npm run build` fails to minify 73 | 74 | 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) 75 | 76 | ## Open for contributions. 77 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "my-app", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.16.1", 7 | "@testing-library/react": "^12.1.2", 8 | "@testing-library/user-event": "^13.5.0", 9 | "react": "^17.0.2", 10 | "react-dom": "^17.0.2", 11 | "react-scripts": "5.0.0", 12 | "web-vitals": "^2.1.3" 13 | }, 14 | "scripts": { 15 | "start": "react-scripts start", 16 | "build": "react-scripts build", 17 | "test": "react-scripts test", 18 | "eject": "react-scripts eject" 19 | }, 20 | "eslintConfig": { 21 | "extends": [ 22 | "react-app", 23 | "react-app/jest" 24 | ] 25 | }, 26 | "browserslist": { 27 | "production": [ 28 | ">0.2%", 29 | "not dead", 30 | "not op_mini all" 31 | ], 32 | "development": [ 33 | "last 1 chrome version", 34 | "last 1 firefox version", 35 | "last 1 safari version" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 29 | React App 30 | 31 | 32 | 33 | 34 |
35 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/public/logo512.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Navbar from "./components/Navbar"; 3 | import Hero from "./components/Hero" 4 | import Card from "./components/Card" 5 | import arr from "./data.js"; 6 | 7 | export default function App() { 8 | const cards = arr.map(item => { 9 | return ( 10 | 14 | ) 15 | }) 16 | 17 | console.log(cards) 18 | 19 | return ( 20 |
21 | 22 | 23 |
{cards}
24 |
25 | 26 |
27 | ) 28 | } -------------------------------------------------------------------------------- /src/components/Card.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import star from "../images/Star 1.png" 3 | 4 | 5 | export default function Card(props) { 6 | const imgAddress = require("../images/" + props.coverImg) 7 | 8 | return ( 9 |
10 | 11 |
12 | 13 | 14 |   {props.stats.rating}   15 | 16 | 17 | ({props.stats.reviewCount}) • {props.location} 18 | 19 | 20 |
21 |

{props.title}

22 |
23 | From ${props.price} 24 | / person 25 |
26 |
27 | ) 28 | } -------------------------------------------------------------------------------- /src/components/Hero.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import mainImage from "../images/Group 77.png" 3 | 4 | export default function Hero() { 5 | return ( 6 |
7 |
8 | 9 |
10 |

Online Experiences

11 |

Join unique interactive activities led by one-of-a-kind hosts—all without leaving home. 12 |

13 |
14 | ) 15 | } -------------------------------------------------------------------------------- /src/components/Navbar.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import logo from "../images/airbnb 1.png" 3 | 4 | export default function Navbar() { 5 | return ( 6 | 9 | ) 10 | } -------------------------------------------------------------------------------- /src/data.js: -------------------------------------------------------------------------------- 1 | const arr = [ 2 | { 3 | id: 1, 4 | title: "Life Lessons with Katie Zaferes", 5 | description: "I will share with you what I call \"Positively Impactful Moments of Disappointment.\" Throughout my career, many of my highest moments only came after setbacks and losses. But learning from those difficult moments is what gave me the ability to rise above them and reach my goals.", 6 | price: 136, 7 | coverImg: "image 12.png", 8 | stats: { 9 | rating: 5.0, 10 | reviewCount: 6 11 | }, 12 | location: "Online", 13 | openSpots: 0, 14 | }, 15 | { 16 | id: 2, 17 | title: "Learn Wedding Photography", 18 | description: "Interested in becoming a wedding photographer? For beginner and experienced photographers alike, join us in learning techniques required to leave the happy couple with memories that'll last a lifetime.", 19 | price: 125, 20 | coverImg: "wedding-photography 1.png", 21 | stats: { 22 | rating: 5.0, 23 | reviewCount: 30 24 | }, 25 | location: "Online", 26 | openSpots: 27, 27 | }, 28 | { 29 | id: 3, 30 | title: "Group Mountain Biking", 31 | description: "Experience the beautiful Norwegian landscape and meet new friends all while conquering rugged terrain on your mountain bike. (Bike provided!)", 32 | price: 50, 33 | coverImg: "mountain-bike 1.png", 34 | stats: { 35 | rating: 4.8, 36 | reviewCount: 2 37 | }, 38 | location: "Norway", 39 | openSpots: 3, 40 | } 41 | ] 42 | 43 | export default arr; -------------------------------------------------------------------------------- /src/images/Group 77.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/src/images/Group 77.png -------------------------------------------------------------------------------- /src/images/Star 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/src/images/Star 1.png -------------------------------------------------------------------------------- /src/images/airbnb 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/src/images/airbnb 1.png -------------------------------------------------------------------------------- /src/images/image 12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/src/images/image 12.png -------------------------------------------------------------------------------- /src/images/mountain-bike 1 (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/src/images/mountain-bike 1 (1).png -------------------------------------------------------------------------------- /src/images/mountain-bike 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/src/images/mountain-bike 1.png -------------------------------------------------------------------------------- /src/images/wedding-photography 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anipnwr7777/AirBnb-clone-frontend-project-idea-for-college-using-react-/38fa4753bc68b9f52e56363f08045b91b266a142/src/images/wedding-photography 1.png -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | /* -----------------navbar------------------------ */ 2 | 3 | *{ 4 | margin: 0; 5 | box-sizing: border-box; 6 | } 7 | 8 | body{ 9 | min-height: 100vh; 10 | font-family: 'Poppins', sans-serif; 11 | font-weight: 500; 12 | } 13 | 14 | nav{ 15 | height: 70px; 16 | box-shadow: 0px 2.98256px 7.4564px rgba(0, 0, 0, 0.1); 17 | display: flex; 18 | align-items: center; 19 | } 20 | 21 | .nav--img{ 22 | margin: 1rem 1.5rem; 23 | width: 82.02px; 24 | height: 25.35px; 25 | } 26 | 27 | /* -----------------navbar------------------------ */ 28 | 29 | 30 | /* --------------------hero------------------------ */ 31 | .hero--img-wrapper{ 32 | display: flex; 33 | justify-content: center; 34 | 35 | } 36 | 37 | .hero--image{ 38 | margin: 2rem 0; 39 | max-width: 700px; 40 | } 41 | 42 | .hero--wrapper{ 43 | padding: 0 2rem; 44 | margin: 4rem 0; 45 | margin-bottom: 6rem; 46 | } 47 | 48 | .hero--wrapper > h1{ 49 | font-size: 72px; 50 | margin-top: 4rem; 51 | } 52 | /* --------------------hero------------------------ */ 53 | 54 | /* --------------------card------------------------ */ 55 | 56 | .card--content-container{ 57 | display: flex; 58 | justify-content: center; 59 | } 60 | 61 | .card--wrapper{ 62 | padding: 1rem; 63 | font-size: 12px; 64 | } 65 | 66 | .card--main-image{ 67 | height: 250px; 68 | width: 180px; 69 | /* width: 100%; */ 70 | } 71 | 72 | .card--star{ 73 | height: 12px; 74 | } 75 | 76 | .card--review-count{ 77 | color: gray; 78 | } 79 | 80 | .card--desc{ 81 | font-weight: 400; 82 | } 83 | 84 | .card--price{ 85 | font-weight: bold; 86 | } 87 | /* --------------------card------------------------ */ 88 | 89 | /* --------------------footer------------------------ */ 90 | 91 | footer{ 92 | height: 20vh; 93 | } 94 | 95 | /* --------------------footer------------------------ */ 96 | 97 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDom from "react-dom"; 3 | import App from "./App.js"; 4 | import "./index.css" 5 | 6 | ReactDom.render(, document.getElementById("root")); --------------------------------------------------------------------------------