├── react-beach-resort-dev
├── public
│ ├── _redirects
│ ├── robots.txt
│ ├── favicon.ico
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── index.html
├── src
│ ├── assets
│ │ └── img
│ │ │ ├── jpeg
│ │ │ ├── room-1.jpeg
│ │ │ ├── room-10.jpeg
│ │ │ ├── room-11.jpeg
│ │ │ ├── room-12.jpeg
│ │ │ ├── room-2.jpeg
│ │ │ ├── room-3.jpeg
│ │ │ ├── room-4.jpeg
│ │ │ ├── room-5.jpeg
│ │ │ ├── room-6.jpeg
│ │ │ ├── room-7.jpeg
│ │ │ ├── room-8.jpeg
│ │ │ ├── room-9.jpeg
│ │ │ ├── defaultBcg.jpeg
│ │ │ ├── defaultBcg2.jpg
│ │ │ ├── details-1.jpeg
│ │ │ ├── details-2.jpeg
│ │ │ ├── details-3.jpeg
│ │ │ └── details-4.jpeg
│ │ │ ├── gif
│ │ │ ├── loading-gear.gif
│ │ │ └── loading-arrow.gif
│ │ │ └── svg
│ │ │ └── logo.svg
│ ├── Components
│ │ ├── Title
│ │ │ └── Title.jsx
│ │ ├── Hero
│ │ │ └── Hero.jsx
│ │ ├── Banner
│ │ │ └── Banner.jsx
│ │ ├── Loading
│ │ │ └── Loading.jsx
│ │ ├── StyledHero
│ │ │ └── StyledHero.jsx
│ │ ├── Footer
│ │ │ └── Footer.jsx
│ │ ├── RoomsContainer
│ │ │ ├── RoomsList.jsx
│ │ │ ├── RoomsContainer.jsx
│ │ │ └── RoomsFilter.jsx
│ │ ├── FeaturedRooms
│ │ │ └── FeaturedRooms.jsx
│ │ ├── Room
│ │ │ └── Room.jsx
│ │ ├── Navbar
│ │ │ └── Navbar.jsx
│ │ └── Services
│ │ │ └── Services.jsx
│ ├── setupTests.js
│ ├── App
│ │ ├── App.test.js
│ │ ├── App.js
│ │ └── App.css
│ ├── index.css
│ ├── reportWebVitals.js
│ ├── Pages
│ │ ├── Error.jsx
│ │ ├── Room.jsx
│ │ ├── Home.jsx
│ │ └── SingleRoom.jsx
│ ├── index.js
│ ├── logo.svg
│ ├── Context
│ │ └── Context.jsx
│ └── Data
│ │ └── data.js
├── .gitignore
├── instraction_folder
│ └── instraction_file.txt
├── package.json
└── README.md
├── README.md
├── .gitignore
└── LICENSE
/react-beach-resort-dev/public/_redirects:
--------------------------------------------------------------------------------
1 | /* /index.html 200
2 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/public/favicon.ico
--------------------------------------------------------------------------------
/react-beach-resort-dev/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/public/logo192.png
--------------------------------------------------------------------------------
/react-beach-resort-dev/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/public/logo512.png
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-1.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-10.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-10.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-11.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-11.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-12.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-12.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-2.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-3.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-3.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-4.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-4.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-5.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-5.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-6.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-6.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-7.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-7.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-8.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-8.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/room-9.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/room-9.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/gif/loading-gear.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/gif/loading-gear.gif
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/defaultBcg.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/defaultBcg.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/defaultBcg2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/defaultBcg2.jpg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/details-1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/details-1.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/details-2.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/details-2.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/details-3.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/details-3.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/jpeg/details-4.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/jpeg/details-4.jpeg
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/gif/loading-arrow.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Upwork-Job32/Hotel-Room-Booking.react-project/HEAD/react-beach-resort-dev/src/assets/img/gif/loading-arrow.gif
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Title/Title.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Title({ title }) {
4 | return (
5 |
9 | );
10 | }
11 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Hero/Hero.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | function Hero({ children, hero }) {
4 | return ;
5 | }
6 |
7 | Hero.defaultProps = {
8 | hero: "defaultHero",
9 | };
10 |
11 | export default Hero;
12 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import "@testing-library/jest-dom";
6 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/App/App.test.js:
--------------------------------------------------------------------------------
1 | import { render, screen } from "@testing-library/react";
2 | import App from "./App";
3 |
4 | test("renders learn react link", () => {
5 | render();
6 | const linkElement = screen.getByText(/learn react/i);
7 | expect(linkElement).toBeInTheDocument();
8 | });
9 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Banner/Banner.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | function Banner({ children, title, subtitle }) {
4 | return (
5 |
6 |
{title}
7 |
8 |
{subtitle}
9 | {children}
10 |
11 | );
12 | }
13 |
14 | export default Banner;
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # React-Project-Hotel-Room-Booking
2 |
3 | ### 🔰 Live Preview Projects:
4 |
5 | - Complete "Beach Resort | Hotel Room Book" Project - [Click To Live Preview][beach-resort]
6 |
7 |
8 |
9 | > HAPPY DEVELOPING 🤣 >
10 |
11 |
12 |
13 | [beach-resort]: https://mukul-breach-resort-project.netlify.app/
14 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Loading/Loading.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | // import loading gif image
4 | import loadingGif from "../../assets/img/gif/loading-arrow.gif";
5 |
6 | export default function Loading() {
7 | return (
8 |
9 |
rooms data loading ...
10 |

11 |
12 | );
13 | }
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Build and Release Folders
2 | bin-debug/
3 | bin-release/
4 | [Oo]bj/
5 | [Bb]in/
6 |
7 | # Other files and folders
8 | .settings/
9 |
10 | # Executables
11 | *.swf
12 | *.air
13 | *.ipa
14 | *.apk
15 |
16 | # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
17 | # should NOT be excluded as they contain compiler settings and other important
18 | # information for Eclipse / Flash Builder.
19 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/.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 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/instraction_folder/instraction_file.txt:
--------------------------------------------------------------------------------
1 | =====> React || Beach Resort Project <=====
2 | Hotel Room Booking System
3 | -------------------------------------------
4 |
5 | 1. CREATE-A-NEW-REACT-APP - npx create-react-app react-beach-resort-dev
6 |
7 | 2. module install -
8 | i. REACT-ICONS: npm install react-icons
9 | ii. REACT-ROUTER-DOM: npm i react-router-dom --save
10 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = (onPerfEntry) => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import("web-vitals").then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/StyledHero/StyledHero.jsx:
--------------------------------------------------------------------------------
1 | import styled from "styled-components";
2 | // import assets
3 | import defaultImg from "./../../assets/img/jpeg/room-1.jpeg";
4 |
5 | const StyledHero = styled.header`
6 | min-height: 60vh;
7 | background: url(${(props) => (props.img ? props.img : defaultImg)})
8 | center/cover no-repeat;
9 | display: flex;
10 | align-items: center;
11 | justify-content: center;
12 | `;
13 |
14 | export default StyledHero;
15 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Pages/Error.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | // import react-router-dom
4 | import { Link } from "react-router-dom";
5 |
6 | // imports components
7 | import Hero from "../Components/Hero/Hero";
8 | import Banner from "../Components/Banner/Banner";
9 |
10 | function Error() {
11 | return (
12 |
13 |
14 |
15 | return home
16 |
17 |
18 |
19 | );
20 | }
21 |
22 | export default Error;
23 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/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 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Footer/Footer.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Footer() {
4 | const year = new Date().getFullYear();
5 |
6 | return (
7 |
21 | );
22 | }
23 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/RoomsContainer/RoomsList.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | // import components
4 | import Room from "../Room/Room";
5 |
6 | export default function RoomList({ rooms }) {
7 | if (rooms.length === 0) {
8 | return (
9 |
10 |
unfortunately no rooms matched your search parameters
11 |
12 | );
13 | }
14 |
15 | return (
16 |
17 |
18 | {rooms.map((item) => {
19 | return ;
20 | })}
21 |
22 |
23 | );
24 | }
25 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Pages/Room.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | // import react-router-dom
4 | import { Link } from "react-router-dom";
5 |
6 | // imports components
7 | import Hero from "../Components/Hero/Hero";
8 | import Banner from "../Components/Banner/Banner";
9 | import RoomContainer from "../Components/RoomsContainer/RoomsContainer";
10 |
11 | function Room() {
12 | return (
13 | <>
14 |
15 |
16 |
17 | return home
18 |
19 |
20 |
21 |
22 |
23 | >
24 | );
25 | }
26 |
27 | export default Room;
28 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import reportWebVitals from "./reportWebVitals";
4 | import App from "./App/App";
5 | import "./index.css";
6 |
7 | // import react-router-dom
8 | import { BrowserRouter as Router } from "react-router-dom";
9 |
10 | // import context
11 | import { RoomProvider } from "./Context/Context";
12 |
13 | ReactDOM.render(
14 |
15 |
16 |
17 |
18 | ,
19 | document.getElementById("root")
20 | );
21 |
22 | // If you want to start measuring performance in your app, pass a function
23 | // to log results (for example: reportWebVitals(console.log))
24 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
25 | reportWebVitals();
26 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Pages/Home.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | // import react-router-dom
3 | import { Link } from "react-router-dom";
4 | import Banner from "../Components/Banner/Banner";
5 | import FeaturedRooms from "../Components/FeaturedRooms/FeaturedRooms";
6 | // imports components
7 | import Hero from "../Components/Hero/Hero";
8 | import Services from "../Components/Services/Services";
9 |
10 | function Home() {
11 | return (
12 | <>
13 |
14 |
18 |
19 | our rooms
20 |
21 |
22 |
23 |
24 |
25 | >
26 | );
27 | }
28 |
29 | export default Home;
30 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/App/App.js:
--------------------------------------------------------------------------------
1 | import "./App.css";
2 |
3 | // import react-router-dom
4 | import { Route, Switch } from "react-router-dom";
5 |
6 | // imports pages
7 | import Home from "../Pages/Home";
8 | import Room from "../Pages/Room";
9 | import SingleRoom from "../Pages/SingleRoom";
10 | import Error from "../Pages/Error";
11 |
12 | // import components
13 | import Navbar from "../Components/Navbar/Navbar";
14 | import Footer from "../Components/Footer/Footer";
15 |
16 | function App() {
17 | return (
18 | <>
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | >
28 | );
29 | }
30 |
31 | export default App;
32 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/FeaturedRooms/FeaturedRooms.jsx:
--------------------------------------------------------------------------------
1 | import React, { Component } from "react";
2 |
3 | // import context
4 | import { RoomContext } from "../../Context/Context";
5 |
6 | // import components
7 | import Loading from "../Loading/Loading";
8 | import Room from "../Room/Room";
9 | import Title from "../Title/Title";
10 |
11 | export default class FeaturedRooms extends Component {
12 | static contextType = RoomContext;
13 |
14 | render() {
15 | let { loading, featuredRooms: rooms } = this.context;
16 | rooms = rooms.map((room) => {
17 | return ;
18 | });
19 |
20 | return (
21 |
22 |
23 |
24 |
25 | {loading ? : rooms}
26 |
27 |
28 | );
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-beach-resort",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^5.11.9",
7 | "@testing-library/react": "^11.2.5",
8 | "@testing-library/user-event": "^12.8.3",
9 | "react": "^17.0.1",
10 | "react-dom": "^17.0.1",
11 | "react-icons": "^4.2.0",
12 | "react-router-dom": "^5.2.0",
13 | "react-scripts": "4.0.3",
14 | "styled-components": "^5.2.3",
15 | "web-vitals": "^1.1.1"
16 | },
17 | "scripts": {
18 | "start": "react-scripts start",
19 | "build": "react-scripts build",
20 | "test": "react-scripts test",
21 | "eject": "react-scripts eject"
22 | },
23 | "eslintConfig": {
24 | "extends": [
25 | "react-app",
26 | "react-app/jest"
27 | ]
28 | },
29 | "browserslist": {
30 | "production": [
31 | ">0.2%",
32 | "not dead",
33 | "not op_mini all"
34 | ],
35 | "development": [
36 | "last 1 chrome version",
37 | "last 1 firefox version",
38 | "last 1 safari version"
39 | ]
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Room/Room.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | // import react-router-dom
4 | import { Link } from "react-router-dom";
5 |
6 | // import assets
7 | import defaultImg from "../../assets/img/jpeg/room-1.jpeg";
8 |
9 | // import prop-types
10 | import PropTypes from "prop-types";
11 |
12 | export default function Room({ room }) {
13 | const { name, slug, images, price } = room;
14 |
15 | return (
16 |
17 |
18 |

19 |
20 |
21 |
$ {price}
22 |
per night
23 |
24 |
25 |
26 | Feature
27 |
28 |
29 | {name}
30 |
31 | );
32 | }
33 |
34 | Room.prototype = {
35 | room: PropTypes.shape({
36 | name: PropTypes.string.isRequired,
37 | slug: PropTypes.string.isRequired,
38 | images: PropTypes.arrayOf(PropTypes.string).isRequired,
39 | price: PropTypes.number.isRequired,
40 | }),
41 | };
42 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Navbar/Navbar.jsx:
--------------------------------------------------------------------------------
1 | import React, { Component } from "react";
2 |
3 | // import react-router-dom
4 | import { Link } from "react-router-dom";
5 |
6 | // import assets
7 | import Logo from "../../assets/img/svg/logo.svg";
8 | import { FaAlignRight } from "react-icons/fa";
9 |
10 | export default class Navbar extends Component {
11 | state = {
12 | isOpen: false,
13 | };
14 | handleToggle = () => {
15 | this.setState({ isOpen: !this.state.isOpen });
16 | };
17 |
18 | render() {
19 | return (
20 |
50 | );
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/RoomsContainer/RoomsContainer.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | // import context
4 | import { withRoomConsumer } from "../../Context/Context";
5 |
6 | // import components
7 | import Loadings from "../Loading/Loading";
8 | import RoomFilter from "./RoomsFilter";
9 | import RoomList from "./RoomsList";
10 |
11 | function RoomContainer({ context }) {
12 | const { loading, sortedRooms, rooms } = context;
13 |
14 | if (loading) {
15 | return ;
16 | }
17 |
18 | return (
19 | <>
20 |
21 |
22 | >
23 | );
24 | }
25 |
26 | export default withRoomConsumer(RoomContainer);
27 |
28 | // import React from "react";
29 |
30 | // // import context
31 | // import { RoomConsumer } from "../../Context/Context";
32 |
33 | // // import components
34 | // import Loadings from "../Loading/Loading";
35 | // import RoomFilter from "./RoomsFilter";
36 | // import RoomList from "./RoomsList";
37 |
38 | // export default function RoomContainer() {
39 | // return (
40 | //
41 | // {(value) => {
42 | // const { loading, sortedRooms, rooms } = value;
43 |
44 | // if (loading) {
45 | // return ;
46 | // }
47 |
48 | // return (
49 | //
50 | // Hello From Rooms Container
51 | //
52 | //
53 | //
54 | // );
55 | // }}
56 | //
57 | // );
58 | // }
59 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/Services/Services.jsx:
--------------------------------------------------------------------------------
1 | import React, { Component } from "react";
2 |
3 | // imports react-icons
4 | import { FaCocktail, FaHiking, FaShuttleVan, FaBeer } from "react-icons/fa";
5 |
6 | // imports components
7 | import Title from "../Title/Title";
8 |
9 | export default class Services extends Component {
10 | state = {
11 | services: [
12 | {
13 | icon: ,
14 | title: "free cocktails",
15 | info:
16 | "Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores est eaque error provident unde eligendi.",
17 | },
18 | {
19 | icon: ,
20 | title: "endless hiking",
21 | info:
22 | "Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores est eaque error provident unde eligendi.",
23 | },
24 | {
25 | icon: ,
26 | title: "free shuttle",
27 | info:
28 | "Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores est eaque error provident unde eligendi.",
29 | },
30 | {
31 | icon: ,
32 | title: "storages beer",
33 | info:
34 | "Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores est eaque error provident unde eligendi.",
35 | },
36 | ],
37 | };
38 |
39 | render() {
40 | return (
41 |
42 |
43 |
44 |
45 | {this.state.services.map((item, index) => {
46 | return (
47 |
48 | {item.icon}
49 | {item.title}
50 | {item.info}
51 |
52 | );
53 | })}
54 |
55 |
56 | );
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | Beach Resort | Hotel Room Book
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Pages/SingleRoom.jsx:
--------------------------------------------------------------------------------
1 | import React, { Component } from "react";
2 |
3 | import { Link } from "react-router-dom";
4 |
5 | // import assets
6 | import defaultBcg from "../assets/img/jpeg/room-1.jpeg";
7 |
8 | // import components
9 | import Banner from "../Components/Banner/Banner";
10 | import { RoomContext } from "../Context/Context";
11 | import StyledHero from "../Components/StyledHero/StyledHero";
12 |
13 | export default class SingleRoom extends Component {
14 | constructor(props) {
15 | super(props);
16 | // console.log(this.props);
17 | this.state = {
18 | slug: this.props.match.params.slug,
19 | defaultBcg,
20 | };
21 | }
22 |
23 | static contextType = RoomContext;
24 | // componentDidMount() {}
25 |
26 | render() {
27 | const { getRoom } = this.context;
28 | const room = getRoom(this.state.slug);
29 |
30 | if (!room) {
31 | return (
32 |
33 |
no such room could be found!
34 |
35 | back to rooms
36 |
37 |
38 | );
39 | }
40 |
41 | const {
42 | name,
43 | description,
44 | capacity,
45 | size,
46 | price,
47 | extras,
48 | breakfast,
49 | pets,
50 | images,
51 | } = room;
52 |
53 | const [mainImg, ...defaultImg] = images;
54 |
55 | return (
56 | <>
57 |
58 |
59 |
60 | back to rooms
61 |
62 |
63 |
64 |
65 |
66 |
67 | {defaultImg.map((item, index) => {
68 | return

;
69 | })}
70 |
71 |
72 |
73 |
74 | details:
75 | {description}
76 |
77 |
78 |
79 | information:
80 | price : ${price}
81 | size : {size} SQFT
82 |
83 | max capacity :{" "}
84 | {capacity > 1 ? `${capacity} people` : `${capacity} person`}
85 |
86 | {pets ? "pets allowed" : "no pets allowed"}
87 | {breakfast && "free breakfast included"}
88 |
89 |
90 |
91 |
92 |
93 | extras:
94 |
95 | {extras.map((item, index) => {
96 | return - - {item}
;
97 | })}
98 |
99 |
100 | >
101 | );
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/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 the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will 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 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Context/Context.jsx:
--------------------------------------------------------------------------------
1 | import React, { Component } from "react";
2 |
3 | // import data
4 | import items from "../Data/data";
5 |
6 | // react context-api
7 | const RoomContext = React.createContext();
8 |
9 | class RoomProvider extends Component {
10 | state = {
11 | rooms: [],
12 | sortedRooms: [],
13 | featuredRooms: [],
14 | loading: true,
15 | type: "all",
16 | capacity: 1,
17 | price: 0,
18 | minPrice: 0,
19 | maxPrice: 0,
20 | minSize: 0,
21 | maxSize: 0,
22 | breakfast: false,
23 | pets: false,
24 | };
25 |
26 | // getDate
27 | componentDidMount() {
28 | // this.getData
29 | let rooms = this.formatDate(items);
30 | let featuredRooms = rooms.filter((room) => room.featured === true);
31 |
32 | let maxPrice = Math.max(...rooms.map((item) => item.price));
33 | let maxSize = Math.max(...rooms.map((item) => item.size));
34 |
35 | this.setState({
36 | rooms,
37 | featuredRooms,
38 | sortedRooms: rooms,
39 | loading: false,
40 | price: maxPrice,
41 | maxPrice,
42 | maxSize,
43 | });
44 | }
45 |
46 | formatDate(items) {
47 | let tempItems = items.map((item) => {
48 | let id = item.sys.id;
49 | let images = item.fields.images.map((image) => image.fields.file.url);
50 |
51 | let room = { ...item.fields, images, id };
52 | return room;
53 | });
54 | return tempItems;
55 | }
56 |
57 | getRoom = (slug) => {
58 | let tempRooms = [...this.state.rooms];
59 | const room = tempRooms.find((room) => room.slug === slug);
60 | return room;
61 | };
62 |
63 | handleChange = (event) => {
64 | /* const type = event.target.type;
65 | const name = event.target.name;
66 | const value = event.target.value; */
67 | /* console.log(
68 | `this is type: ${type}, this is name: ${name}, this is value: ${value}`
69 | ); */
70 |
71 | const target = event.target;
72 | const value = target.type === "checkbox" ? target.checked : target.value;
73 | const name = event.target.name;
74 | console.log(target, value, name);
75 |
76 | this.setState(
77 | {
78 | [name]: value,
79 | },
80 | this.filterRooms
81 | );
82 | };
83 |
84 | filterRooms = () => {
85 | let {
86 | rooms,
87 | type,
88 | capacity,
89 | price,
90 | minSize,
91 | maxSize,
92 | breakfast,
93 | pets,
94 | } = this.state;
95 |
96 | // all the room
97 | let tempRooms = [...rooms];
98 |
99 | // transform value
100 | capacity = parseInt(capacity);
101 | price = parseInt(price);
102 |
103 | // filter by type
104 | if (type !== "all") {
105 | tempRooms = tempRooms.filter((room) => room.type === type);
106 | }
107 |
108 | // filter by capacity
109 | if (capacity !== 1) {
110 | tempRooms = tempRooms.filter((room) => room.capacity >= capacity);
111 | }
112 |
113 | // filter by price
114 | tempRooms = tempRooms.filter((room) => room.price <= price);
115 |
116 | // filter bt size
117 | tempRooms = tempRooms.filter(
118 | (room) => room.size >= minSize && room.size <= maxSize
119 | );
120 |
121 | // filter by breakfast
122 | if (breakfast) {
123 | tempRooms = tempRooms.filter((room) => room.breakfast === true);
124 | }
125 |
126 | // filter by pets
127 | if (pets) {
128 | tempRooms = tempRooms.filter((room) => room.pets === true);
129 | }
130 |
131 | // change state
132 | this.setState({
133 | sortedRooms: tempRooms,
134 | });
135 | };
136 |
137 | render() {
138 | return (
139 |
146 | {this.props.children}
147 |
148 | );
149 | }
150 | }
151 |
152 | const RoomConsumer = RoomContext.Consumer;
153 |
154 | export function withRoomConsumer(Component) {
155 | return function ConsumerWrapper(props) {
156 | return (
157 |
158 | {(value) => }
159 |
160 | );
161 | };
162 | }
163 |
164 | export { RoomProvider, RoomConsumer, RoomContext };
165 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Components/RoomsContainer/RoomsFilter.jsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { useContext } from "react";
3 |
4 | // import context
5 | import { RoomContext } from "../../Context/Context";
6 |
7 | // import components
8 | import Title from "../Title/Title";
9 |
10 | // get all unique values
11 | const getUnique = (items, value) => {
12 | return [...new Set(items.map((item) => item[value]))];
13 | };
14 |
15 | export default function RoomFilter({ rooms }) {
16 | const context = useContext(RoomContext);
17 |
18 | const {
19 | handleChange,
20 | type,
21 | capacity,
22 | price,
23 | minPrice,
24 | maxPrice,
25 | minSize,
26 | maxSize,
27 | breakfast,
28 | pets,
29 | } = context;
30 |
31 | // get unique types
32 | let types = getUnique(rooms, "type");
33 | // add all
34 | types = ["all", ...types];
35 | // map to jsx
36 | types = types.map((item, index) => {
37 | return (
38 |
41 | );
42 | });
43 |
44 | // room guests filtering functionality
45 | let people = getUnique(rooms, "capacity");
46 | people = people.map((item, index) => {
47 | return (
48 |
51 | );
52 | });
53 |
54 | return (
55 |
162 | );
163 | }
164 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/App/App.css:
--------------------------------------------------------------------------------
1 | * {
2 | margin: 0;
3 | padding: 0;
4 | box-sizing: border-box;
5 | }
6 | :root {
7 | --primaryColor: #af9a7d;
8 | --mainWhite: #fff;
9 | --offWhite: #f7f7f7;
10 | --mainBlack: #222;
11 | --mainGrey: #ececec;
12 | --darkGrey: #cfcfcf;
13 | --mainTransition: all 0.3s linear;
14 | --mainSpacing: 3px;
15 | --lightShadow: 2px 5px 3px 0px rgba(0, 0, 0, 0.5);
16 | --darkShadow: 4px 10px 5px 0px rgba(0, 0, 0, 0.5);
17 | }
18 | /* globals */
19 | body {
20 | padding-top: 66px;
21 | color: var(--mainBlack);
22 | background: var(--mainWhite);
23 | font-family: Verdana, Geneva, Tahoma, sans-serif;
24 | line-height: 1.4;
25 | }
26 | h1 {
27 | font-size: 3em;
28 | line-height: 1;
29 | margin-bottom: 0.5em;
30 | }
31 | h2 {
32 | font-size: 2em;
33 | margin-bottom: 0.75em;
34 | }
35 | h3 {
36 | font-size: 1.5em;
37 | line-height: 1;
38 | margin-bottom: 1em;
39 | }
40 | h4 {
41 | font-size: 1.2em;
42 | line-height: 1.25;
43 | margin-bottom: 1.25em;
44 | }
45 | h5 {
46 | font-size: 1em;
47 | font-weight: bold;
48 | margin-bottom: 1.5em;
49 | }
50 | h6 {
51 | font-size: 1em;
52 | font-weight: bold;
53 | margin-bottom: 1.5em;
54 | }
55 |
56 | .btn-primary {
57 | display: inline-block;
58 | text-decoration: none;
59 | letter-spacing: var(--mainSpacing);
60 | color: var(--mainBlack);
61 | background: var(--primaryColor);
62 | padding: 0.4rem 0.9rem;
63 | border: 3px solid var(--primaryColor);
64 | transition: var(--mainTransition);
65 | text-transform: uppercase;
66 | cursor: pointer;
67 | }
68 | .btn-primary:hover {
69 | background: transparent;
70 | color: var(--primaryColor);
71 | }
72 | .loading {
73 | text-transform: capitalize;
74 | text-align: center;
75 | margin-top: 3rem;
76 | }
77 | .error {
78 | text-align: center;
79 | text-transform: uppercase;
80 | margin: 2rem 0;
81 | }
82 | .empty-search {
83 | text-align: center;
84 | text-transform: capitalize;
85 | margin: 2rem 0;
86 | padding: 1rem;
87 | letter-spacing: var(--mainSpacing);
88 | }
89 | /* end of globals */
90 | /* Navbar */
91 | .navbar {
92 | position: fixed;
93 | top: 0;
94 | left: 0;
95 | width: 100%;
96 | padding: 0.75rem 2rem;
97 | background: var(--offWhite);
98 | z-index: 1;
99 | }
100 | .nav-header {
101 | display: flex;
102 | justify-content: space-between;
103 | }
104 | .nav-btn {
105 | background: transparent;
106 | border: none;
107 | cursor: pointer;
108 | outline: none;
109 | }
110 | .nav-icon {
111 | font-size: 1.5rem;
112 | color: var(--primaryColor);
113 | }
114 | .nav-links {
115 | height: 0;
116 | overflow: hidden;
117 | transition: var(--mainTransition);
118 | list-style-type: none;
119 | }
120 | .nav-links a {
121 | display: block;
122 | text-decoration: none;
123 | padding: 1rem 0;
124 | color: var(--mainBlack);
125 | transition: var(--mainTransition);
126 | text-align: center;
127 | font-size: 1rem;
128 | font-weight: 600;
129 | letter-spacing: var(--mainSpacing);
130 | }
131 | .nav-links a:hover {
132 | color: var(--primaryColor);
133 | }
134 |
135 | .show-nav {
136 | height: 100px;
137 | }
138 | @media screen and (min-width: 768px) {
139 | .nav-btn {
140 | display: none;
141 | }
142 | .nav-center {
143 | max-width: 1170px;
144 | margin: 0 auto;
145 | display: flex;
146 | }
147 | .nav-links {
148 | height: auto;
149 | display: flex;
150 | margin-left: 4rem;
151 | }
152 | .nav-links a {
153 | margin: 0 1rem;
154 | padding: 0.5rem 0;
155 | }
156 | }
157 | /* end of navbar */
158 | /* Hero */
159 | .defaultHero,
160 | .roomsHero {
161 | min-height: calc(100vh - 66px);
162 | background: url("../assets/img/jpeg/defaultBcg2.jpg") center/cover no-repeat;
163 | display: flex;
164 | align-items: center;
165 | justify-content: center;
166 | }
167 | .roomsHero {
168 | background-image: url("../assets/img/jpeg/room-2.jpeg");
169 | min-height: 60vh;
170 | }
171 | /* End of Hero */
172 | /* Banner */
173 | .banner {
174 | display: inline-block;
175 | background: rgba(0, 0, 0, 0.5);
176 | color: var(--mainWhite);
177 | padding: 2rem 1rem;
178 | text-align: center;
179 | text-transform: capitalize;
180 | letter-spacing: var(--mainSpacing);
181 | }
182 | .banner h1 {
183 | font-size: 2.5rem;
184 | }
185 | .banner div {
186 | width: 10rem;
187 | height: 5px;
188 | background: var(--primaryColor);
189 | margin: 1.7rem auto;
190 | }
191 | .banner p {
192 | font-size: 1.2rem;
193 | margin-bottom: 2rem;
194 | }
195 | @media screen and (min-width: 576px) {
196 | .banner {
197 | padding: 2rem 3rem;
198 | }
199 | .banner h1 {
200 | font-size: 3rem;
201 | }
202 | }
203 | @media screen and (min-width: 992px) {
204 | .banner {
205 | padding: 2rem 6rem;
206 | }
207 | .banner h1 {
208 | font-size: 4rem;
209 | }
210 | }
211 | /* End of Banner */
212 | /* Title */
213 | .section-title {
214 | text-align: center;
215 | margin-bottom: 4rem;
216 | }
217 | .section-title h4 {
218 | font-size: 2rem;
219 | letter-spacing: var(--mainSpacing);
220 | text-transform: capitalize;
221 | margin-bottom: 1rem;
222 | }
223 | .section-title div {
224 | width: 5rem;
225 | height: 5px;
226 | margin: 0 auto;
227 | background: var(--primaryColor);
228 | }
229 | /* end of Title */
230 |
231 | /* services */
232 | .services {
233 | padding: 1rem 0;
234 | }
235 | .services {
236 | background: var(--darkGrey);
237 | text-align: center;
238 | }
239 | .services-center {
240 | width: 90vw;
241 | margin: 0 auto;
242 | display: grid;
243 | grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
244 | grid-row-gap: 2rem;
245 | grid-column-gap: 50px;
246 | }
247 | .service span {
248 | display: inline-block;
249 | color: var(--primaryColor);
250 | font-size: 2.5rem;
251 | margin-bottom: 1.5rem;
252 | }
253 | .services h6 {
254 | text-transform: capitalize;
255 | letter-spacing: var(--mainSpacing);
256 | }
257 | .services p {
258 | width: 80%;
259 | margin: 0 auto;
260 | color: var(--mainBlack);
261 | }
262 | @media screen and (min-width: 992px) {
263 | .services-center {
264 | width: 95vw;
265 | max-width: 1170px;
266 | }
267 | }
268 |
269 | @media screen and (min-width: 1200px) {
270 | .services p {
271 | width: 100%;
272 | }
273 | }
274 | /*end of services */
275 | /* featured rooms */
276 |
277 | .featured-rooms {
278 | padding: 5rem 0;
279 | }
280 | .featured-rooms-center {
281 | width: 80vw;
282 | margin: 0 auto;
283 | display: grid;
284 | grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
285 | grid-row-gap: 2rem;
286 | grid-column-gap: 40px;
287 | }
288 | @media screen and (min-width: 776px) {
289 | .featured-rooms-center {
290 | width: 90vw;
291 | grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
292 | }
293 | }
294 | @media screen and (min-width: 992px) {
295 | .featured-rooms-center {
296 | width: 95vw;
297 | max-width: 1170px;
298 | }
299 | }
300 | /* end pf featured rooms */
301 | /* room */
302 | .room {
303 | box-shadow: var(--lightShadow);
304 | transition: var(--mainTransition);
305 | }
306 | .room:hover {
307 | box-shadow: var(--darkShadow);
308 | }
309 |
310 | .img-container {
311 | position: relative;
312 | }
313 | .img-container img {
314 | width: 100%;
315 | display: block;
316 | transition: var(--mainTransition);
317 | }
318 | .price-top {
319 | position: absolute;
320 | top: 0;
321 | left: 0;
322 | background: rgba(0, 0, 0, 0.8);
323 | color: var(--mainWhite);
324 | padding: 0.3rem 0.6rem 0.5rem;
325 | border-bottom-right-radius: 1rem;
326 | font-size: 0.5rem;
327 | text-align: center;
328 | transition: var(--mainTransition);
329 | }
330 | .price-top h6 {
331 | margin-bottom: 0;
332 | font-size: 0.9rem;
333 | font-weight: 300;
334 | letter-spacing: var(--mainSpacing);
335 | }
336 | .room-link {
337 | position: absolute;
338 | top: 50%;
339 | left: 50%;
340 | transform: scale(0);
341 | transition: all 0.3s linear;
342 | }
343 | .img-container:hover {
344 | background: rgba(0, 0, 0, 0.8);
345 | }
346 | .img-container:hover img {
347 | opacity: 0.3;
348 | }
349 | .img-container:hover .price-top {
350 | opacity: 0;
351 | }
352 | .img-container:hover .room-link {
353 | transform: translate(-50%, -50%) scale(1);
354 | }
355 | .room-info {
356 | background: var(--mainBlack);
357 | text-transform: capitalize;
358 | padding: 0.5rem 0;
359 | text-align: center;
360 | font-weight: 700;
361 | letter-spacing: var(--mainSpacing);
362 | }
363 | /* end of room */
364 | /* single room*/
365 |
366 | .single-room {
367 | padding: 5rem 0 0 0;
368 | }
369 | .single-room-images {
370 | width: 80vw;
371 | margin: 0 auto;
372 | display: grid;
373 | grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
374 | grid-row-gap: 2rem;
375 | grid-column-gap: 50px;
376 | }
377 | .single-room-images img {
378 | width: 100%;
379 | display: block;
380 | }
381 | .single-room-info {
382 | width: 80vw;
383 | display: grid;
384 | grid-template-columns: 1fr;
385 | margin: 2rem auto;
386 | }
387 | .desc,
388 | .info {
389 | margin: 1rem 0;
390 | }
391 | .desc h3 {
392 | text-transform: capitalize;
393 | letter-spacing: var(--mainSpacing);
394 | }
395 | .desc p {
396 | color: #222222;
397 | line-height: 1.5;
398 | }
399 | .info h3,
400 | .info h6 {
401 | text-transform: capitalize;
402 | letter-spacing: var(--mainSpacing);
403 | }
404 |
405 | .info h6 {
406 | font-weight: 300;
407 | }
408 | .room-extras {
409 | width: 80vw;
410 | margin: 0 auto 3rem auto;
411 | }
412 | .room-extras h6 {
413 | text-transform: capitalize;
414 | letter-spacing: var(--mainSpacing);
415 | }
416 | .extras {
417 | list-style-type: none;
418 | display: grid;
419 | grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
420 | grid-column-gap: 2rem;
421 | grid-row-gap: 1rem;
422 | }
423 | @media screen and (min-width: 992px) {
424 | .single-room-images,
425 | .single-room-info,
426 | .room-extras {
427 | width: 95vw;
428 | max-width: 1170px;
429 | }
430 | .single-room-info {
431 | display: grid;
432 | grid-template-columns: 1fr 1fr;
433 | grid-column-gap: 2rem;
434 | }
435 | .info {
436 | padding-left: 3rem;
437 | }
438 | }
439 | /* end of single room*/
440 | /* roomList */
441 | .roomslist {
442 | padding: 5rem 0;
443 | }
444 | .roomslist-center {
445 | width: 80vw;
446 | margin: 0 auto;
447 | display: grid;
448 | grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
449 | grid-row-gap: 2rem;
450 | grid-column-gap: 30px;
451 | }
452 |
453 | @media screen and (min-width: 776px) {
454 | .roomslist-center {
455 | width: 90vw;
456 | }
457 | }
458 | @media screen and (min-width: 992px) {
459 | .roomslist-center {
460 | width: 95vw;
461 | max-width: 1170px;
462 | }
463 | }
464 | /* end of roomList */
465 | /* rooms filter */
466 | .filter-container {
467 | padding: 5rem 0;
468 | }
469 | .filter-form {
470 | width: 60vw;
471 | margin: 0 auto;
472 | display: grid;
473 | grid-template-columns: repeat(auto-fit, minmax(202px, 1fr));
474 | grid-row-gap: 2rem;
475 | grid-column-gap: 40px;
476 | }
477 | .form-group {
478 | text-transform: capitalize;
479 | }
480 | .form-group label {
481 | display: block;
482 | letter-spacing: var(--mainSpacing);
483 | margin-bottom: 0.5rem;
484 | }
485 | .form-control {
486 | width: 100%;
487 | background: transparent;
488 | font-size: 1rem;
489 | }
490 | .size-inputs {
491 | display: flex;
492 | }
493 | .size-input {
494 | width: 40%;
495 | padding: 0.2rem;
496 | border: 1px solid var(--mainBlack);
497 | border-radius: 0.3rem;
498 | margin-right: 0.3rem;
499 | }
500 | .single-extra label {
501 | display: inline-block;
502 | font-size: 0.8rem;
503 | margin-left: 0.5rem;
504 | }
505 | @media screen and (min-width: 776px) {
506 | .filter-form {
507 | width: 70vw;
508 | }
509 | }
510 | @media screen and (min-width: 992px) {
511 | .filter-form {
512 | width: 95vw;
513 | max-width: 1170px;
514 | }
515 | }
516 | /* end of rooms filter */
517 |
518 | /* footer style */
519 | .footer {
520 | text-align: center;
521 | padding-top: 50px;
522 | padding-bottom: 50px;
523 | background-color: #222;
524 | }
525 | .footer h2,
526 | p {
527 | color: white;
528 | }
529 | .footer a {
530 | color: white;
531 | text-decoration: none;
532 | }
533 | .footer a:hover {
534 | color: red;
535 | text-decoration: underline;
536 | transition: var(--mainTransition);
537 | -webkit-transition: var(--mainTransition);
538 | -moz-transition: var(--mainTransition);
539 | -ms-transition: var(--mainTransition);
540 | -o-transition: var(--mainTransition);
541 | }
542 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/assets/img/svg/logo.svg:
--------------------------------------------------------------------------------
1 |
19 |
--------------------------------------------------------------------------------
/react-beach-resort-dev/src/Data/data.js:
--------------------------------------------------------------------------------
1 | import room1 from "../assets/img/jpeg/details-1.jpeg";
2 | import room2 from "../assets/img/jpeg/details-2.jpeg";
3 | import room3 from "../assets/img/jpeg/details-3.jpeg";
4 | import room4 from "../assets/img/jpeg/details-4.jpeg";
5 | import img1 from "../assets/img/jpeg/room-1.jpeg";
6 | import img2 from "../assets/img/jpeg/room-2.jpeg";
7 | import img3 from "../assets/img/jpeg/room-3.jpeg";
8 | import img4 from "../assets/img/jpeg/room-4.jpeg";
9 | import img5 from "../assets/img/jpeg/room-5.jpeg";
10 | import img6 from "../assets/img/jpeg/room-6.jpeg";
11 | import img7 from "../assets/img/jpeg/room-7.jpeg";
12 | import img8 from "../assets/img/jpeg/room-8.jpeg";
13 | import img9 from "../assets/img/jpeg/room-9.jpeg";
14 | import img10 from "../assets/img/jpeg/room-10.jpeg";
15 | import img11 from "../assets/img/jpeg/room-11.jpeg";
16 | import img12 from "../assets/img/jpeg/room-12.jpeg";
17 |
18 | const data = [
19 | {
20 | sys: {
21 | id: "1",
22 | },
23 | fields: {
24 | name: "single economy",
25 | slug: "single-economy",
26 | type: "single",
27 | price: 100,
28 | size: 200,
29 | capacity: 1,
30 | pets: false,
31 | breakfast: false,
32 | featured: false,
33 | description:
34 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
35 | extras: [
36 | "Plush pillows and breathable bed linens",
37 | "Soft, oversized bath towels",
38 | "Full-sized, pH-balanced toiletries",
39 | "Complimentary refreshments",
40 | "Adequate safety/security",
41 | "Internet",
42 | "Comfortable beds",
43 | ],
44 | images: [
45 | {
46 | fields: {
47 | file: {
48 | url: img1,
49 | },
50 | },
51 | },
52 | {
53 | fields: {
54 | file: {
55 | url: room2,
56 | },
57 | },
58 | },
59 | {
60 | fields: {
61 | file: {
62 | url: room3,
63 | },
64 | },
65 | },
66 | {
67 | fields: {
68 | file: {
69 | url: room4,
70 | },
71 | },
72 | },
73 | ],
74 | },
75 | },
76 | {
77 | sys: {
78 | id: "2",
79 | },
80 | fields: {
81 | name: "single basic",
82 | slug: "single-basic",
83 | type: "single",
84 | price: 150,
85 | size: 250,
86 | capacity: 1,
87 | pets: false,
88 | breakfast: false,
89 | featured: false,
90 | description:
91 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
92 | extras: [
93 | "Plush pillows and breathable bed linens",
94 | "Soft, oversized bath towels",
95 | "Full-sized, pH-balanced toiletries",
96 | "Complimentary refreshments",
97 | "Adequate safety/security",
98 | "Internet",
99 | "Comfortable beds",
100 | ],
101 | images: [
102 | {
103 | fields: {
104 | file: {
105 | url: img2,
106 | },
107 | },
108 | },
109 | {
110 | fields: {
111 | file: {
112 | url: room2,
113 | },
114 | },
115 | },
116 | {
117 | fields: {
118 | file: {
119 | url: room3,
120 | },
121 | },
122 | },
123 | {
124 | fields: {
125 | file: {
126 | url: room4,
127 | },
128 | },
129 | },
130 | ],
131 | },
132 | },
133 | {
134 | sys: {
135 | id: "3",
136 | },
137 | fields: {
138 | name: "single standard",
139 | slug: "single-standard",
140 | type: "single",
141 | price: 250,
142 | size: 300,
143 | capacity: 1,
144 | pets: true,
145 | breakfast: false,
146 | featured: false,
147 | description:
148 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
149 | extras: [
150 | "Plush pillows and breathable bed linens",
151 | "Soft, oversized bath towels",
152 | "Full-sized, pH-balanced toiletries",
153 | "Complimentary refreshments",
154 | "Adequate safety/security",
155 | "Internet",
156 | "Comfortable beds",
157 | ],
158 | images: [
159 | {
160 | fields: {
161 | file: {
162 | url: img3,
163 | },
164 | },
165 | },
166 | {
167 | fields: {
168 | file: {
169 | url: room2,
170 | },
171 | },
172 | },
173 | {
174 | fields: {
175 | file: {
176 | url: room3,
177 | },
178 | },
179 | },
180 | {
181 | fields: {
182 | file: {
183 | url: room4,
184 | },
185 | },
186 | },
187 | ],
188 | },
189 | },
190 | {
191 | sys: {
192 | id: "4",
193 | },
194 | fields: {
195 | name: "single deluxe",
196 | slug: "single-deluxe",
197 | type: "single",
198 | price: 300,
199 | size: 400,
200 | capacity: 1,
201 | pets: true,
202 | breakfast: true,
203 | featured: false,
204 | description:
205 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
206 | extras: [
207 | "Plush pillows and breathable bed linens",
208 | "Soft, oversized bath towels",
209 | "Full-sized, pH-balanced toiletries",
210 | "Complimentary refreshments",
211 | "Adequate safety/security",
212 | "Internet",
213 | "Comfortable beds",
214 | ],
215 | images: [
216 | {
217 | fields: {
218 | file: {
219 | url: img4,
220 | },
221 | },
222 | },
223 | {
224 | fields: {
225 | file: {
226 | url: room2,
227 | },
228 | },
229 | },
230 | {
231 | fields: {
232 | file: {
233 | url: room3,
234 | },
235 | },
236 | },
237 | {
238 | fields: {
239 | file: {
240 | url: room4,
241 | },
242 | },
243 | },
244 | ],
245 | },
246 | },
247 | {
248 | sys: {
249 | id: "5",
250 | },
251 | fields: {
252 | name: "double economy",
253 | slug: "double-economy",
254 | type: "double",
255 | price: 200,
256 | size: 300,
257 | capacity: 2,
258 | pets: false,
259 | breakfast: false,
260 | featured: false,
261 | description:
262 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
263 | extras: [
264 | "Plush pillows and breathable bed linens",
265 | "Soft, oversized bath towels",
266 | "Full-sized, pH-balanced toiletries",
267 | "Complimentary refreshments",
268 | "Adequate safety/security",
269 | "Internet",
270 | "Comfortable beds",
271 | ],
272 | images: [
273 | {
274 | fields: {
275 | file: {
276 | url: img5,
277 | },
278 | },
279 | },
280 | {
281 | fields: {
282 | file: {
283 | url: room2,
284 | },
285 | },
286 | },
287 | {
288 | fields: {
289 | file: {
290 | url: room3,
291 | },
292 | },
293 | },
294 | {
295 | fields: {
296 | file: {
297 | url: room4,
298 | },
299 | },
300 | },
301 | ],
302 | },
303 | },
304 | {
305 | sys: {
306 | id: "6",
307 | },
308 | fields: {
309 | name: "double basic",
310 | slug: "double-basic",
311 | type: "double",
312 | price: 250,
313 | size: 350,
314 | capacity: 2,
315 | pets: false,
316 | breakfast: false,
317 | featured: false,
318 | description:
319 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
320 | extras: [
321 | "Plush pillows and breathable bed linens",
322 | "Soft, oversized bath towels",
323 | "Full-sized, pH-balanced toiletries",
324 | "Complimentary refreshments",
325 | "Adequate safety/security",
326 | "Internet",
327 | "Comfortable beds",
328 | ],
329 | images: [
330 | {
331 | fields: {
332 | file: {
333 | url: img6,
334 | },
335 | },
336 | },
337 | {
338 | fields: {
339 | file: {
340 | url: room2,
341 | },
342 | },
343 | },
344 | {
345 | fields: {
346 | file: {
347 | url: room3,
348 | },
349 | },
350 | },
351 | {
352 | fields: {
353 | file: {
354 | url: room4,
355 | },
356 | },
357 | },
358 | ],
359 | },
360 | },
361 | {
362 | sys: {
363 | id: "7",
364 | },
365 | fields: {
366 | name: "double standard",
367 | slug: "double-standard",
368 | type: "double",
369 | price: 300,
370 | size: 400,
371 | capacity: 2,
372 | pets: true,
373 | breakfast: false,
374 | featured: false,
375 | description:
376 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
377 | extras: [
378 | "Plush pillows and breathable bed linens",
379 | "Soft, oversized bath towels",
380 | "Full-sized, pH-balanced toiletries",
381 | "Complimentary refreshments",
382 | "Adequate safety/security",
383 | "Internet",
384 | "Comfortable beds",
385 | ],
386 | images: [
387 | {
388 | fields: {
389 | file: {
390 | url: img7,
391 | },
392 | },
393 | },
394 | {
395 | fields: {
396 | file: {
397 | url: room2,
398 | },
399 | },
400 | },
401 | {
402 | fields: {
403 | file: {
404 | url: room3,
405 | },
406 | },
407 | },
408 | {
409 | fields: {
410 | file: {
411 | url: room4,
412 | },
413 | },
414 | },
415 | ],
416 | },
417 | },
418 | {
419 | sys: {
420 | id: "8",
421 | },
422 | fields: {
423 | name: "double deluxe",
424 | slug: "double-deluxe",
425 | type: "double",
426 | price: 400,
427 | size: 500,
428 | capacity: 2,
429 | pets: true,
430 | breakfast: true,
431 | featured: true,
432 | description:
433 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
434 | extras: [
435 | "Plush pillows and breathable bed linens",
436 | "Soft, oversized bath towels",
437 | "Full-sized, pH-balanced toiletries",
438 | "Complimentary refreshments",
439 | "Adequate safety/security",
440 | "Internet",
441 | "Comfortable beds",
442 | ],
443 | images: [
444 | {
445 | fields: {
446 | file: {
447 | url: img8,
448 | },
449 | },
450 | },
451 | {
452 | fields: {
453 | file: {
454 | url: room2,
455 | },
456 | },
457 | },
458 | {
459 | fields: {
460 | file: {
461 | url: room3,
462 | },
463 | },
464 | },
465 | {
466 | fields: {
467 | file: {
468 | url: room4,
469 | },
470 | },
471 | },
472 | ],
473 | },
474 | },
475 | {
476 | sys: {
477 | id: "9",
478 | },
479 | fields: {
480 | name: "family economy",
481 | slug: "family-economy",
482 | type: "family",
483 | price: 300,
484 | size: 500,
485 | capacity: 3,
486 | pets: false,
487 | breakfast: false,
488 | featured: false,
489 | description:
490 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
491 | extras: [
492 | "Plush pillows and breathable bed linens",
493 | "Soft, oversized bath towels",
494 | "Full-sized, pH-balanced toiletries",
495 | "Complimentary refreshments",
496 | "Adequate safety/security",
497 | "Internet",
498 | "Comfortable beds",
499 | ],
500 | images: [
501 | {
502 | fields: {
503 | file: {
504 | url: img9,
505 | },
506 | },
507 | },
508 | {
509 | fields: {
510 | file: {
511 | url: room2,
512 | },
513 | },
514 | },
515 | {
516 | fields: {
517 | file: {
518 | url: room3,
519 | },
520 | },
521 | },
522 | {
523 | fields: {
524 | file: {
525 | url: room4,
526 | },
527 | },
528 | },
529 | ],
530 | },
531 | },
532 | {
533 | sys: {
534 | id: "10",
535 | },
536 | fields: {
537 | name: "family basic",
538 | slug: "family-basic",
539 | type: "family",
540 | price: 350,
541 | size: 550,
542 | capacity: 4,
543 | pets: false,
544 | breakfast: false,
545 | featured: false,
546 | description:
547 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
548 | extras: [
549 | "Plush pillows and breathable bed linens",
550 | "Soft, oversized bath towels",
551 | "Full-sized, pH-balanced toiletries",
552 | "Complimentary refreshments",
553 | "Adequate safety/security",
554 | "Internet",
555 | "Comfortable beds",
556 | ],
557 | images: [
558 | {
559 | fields: {
560 | file: {
561 | url: img10,
562 | },
563 | },
564 | },
565 | {
566 | fields: {
567 | file: {
568 | url: room2,
569 | },
570 | },
571 | },
572 | {
573 | fields: {
574 | file: {
575 | url: room3,
576 | },
577 | },
578 | },
579 | {
580 | fields: {
581 | file: {
582 | url: room4,
583 | },
584 | },
585 | },
586 | ],
587 | },
588 | },
589 | {
590 | sys: {
591 | id: "11",
592 | },
593 | fields: {
594 | name: "family standard",
595 | slug: "family-standard",
596 | type: "family",
597 | price: 400,
598 | size: 600,
599 | capacity: 5,
600 | pets: true,
601 | breakfast: false,
602 | featured: false,
603 | description:
604 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
605 | extras: [
606 | "Plush pillows and breathable bed linens",
607 | "Soft, oversized bath towels",
608 | "Full-sized, pH-balanced toiletries",
609 | "Complimentary refreshments",
610 | "Adequate safety/security",
611 | "Internet",
612 | "Comfortable beds",
613 | ],
614 | images: [
615 | {
616 | fields: {
617 | file: {
618 | url: img11,
619 | },
620 | },
621 | },
622 | {
623 | fields: {
624 | file: {
625 | url: room2,
626 | },
627 | },
628 | },
629 | {
630 | fields: {
631 | file: {
632 | url: room3,
633 | },
634 | },
635 | },
636 | {
637 | fields: {
638 | file: {
639 | url: room4,
640 | },
641 | },
642 | },
643 | ],
644 | },
645 | },
646 | {
647 | sys: {
648 | id: "12",
649 | },
650 | fields: {
651 | name: "family deluxe",
652 | slug: "family-deluxe",
653 | type: "family",
654 | price: 500,
655 | size: 700,
656 | capacity: 6,
657 | pets: true,
658 | breakfast: true,
659 | featured: true,
660 | description:
661 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
662 | extras: [
663 | "Plush pillows and breathable bed linens",
664 | "Soft, oversized bath towels",
665 | "Full-sized, pH-balanced toiletries",
666 | "Complimentary refreshments",
667 | "Adequate safety/security",
668 | "Internet",
669 | "Comfortable beds",
670 | ],
671 | images: [
672 | {
673 | fields: {
674 | file: {
675 | url: img12,
676 | },
677 | },
678 | },
679 | {
680 | fields: {
681 | file: {
682 | url: room2,
683 | },
684 | },
685 | },
686 | {
687 | fields: {
688 | file: {
689 | url: room3,
690 | },
691 | },
692 | },
693 | {
694 | fields: {
695 | file: {
696 | url: room4,
697 | },
698 | },
699 | },
700 | ],
701 | },
702 | },
703 | {
704 | sys: {
705 | id: "13",
706 | },
707 | fields: {
708 | name: "presidential",
709 | slug: "presidential-room",
710 | type: "presidential",
711 | price: 600,
712 | size: 1000,
713 | capacity: 10,
714 | pets: true,
715 | breakfast: true,
716 | featured: true,
717 | description:
718 | "Street art edison bulb gluten-free, tofu try-hard lumbersexual brooklyn tattooed pickled chambray. Actually humblebrag next level, deep v art party wolf tofu direct trade readymade sustainable hell of banjo. Organic authentic subway tile cliche palo santo, street art XOXO dreamcatcher retro sriracha portland air plant kitsch stumptown. Austin small batch squid gastropub. Pabst pug tumblr gochujang offal retro cloud bread bushwick semiotics before they sold out sartorial literally mlkshk. Vaporware hashtag vice, sartorial before they sold out pok pok health goth trust fund cray.",
719 | extras: [
720 | "Plush pillows and breathable bed linens",
721 | "Soft, oversized bath towels",
722 | "Full-sized, pH-balanced toiletries",
723 | "Complimentary refreshments",
724 | "Adequate safety/security",
725 | "Internet",
726 | "Comfortable beds",
727 | ],
728 | images: [
729 | {
730 | fields: {
731 | file: {
732 | url: room1,
733 | },
734 | },
735 | },
736 | {
737 | fields: {
738 | file: {
739 | url: room2,
740 | },
741 | },
742 | },
743 | {
744 | fields: {
745 | file: {
746 | url: room3,
747 | },
748 | },
749 | },
750 | {
751 | fields: {
752 | file: {
753 | url: room4,
754 | },
755 | },
756 | },
757 | ],
758 | },
759 | },
760 | ];
761 |
762 | export default data;
763 |
--------------------------------------------------------------------------------