cindex1a

bookingInfromation.js

Feb 27th, 2021 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from "react";
  2. import Fade from "react-reveal/Fade";
  3.  
  4. import { InputText } from "elements/Form";
  5.  
  6. export default function BookingInformation(props) {
  7.   const { data, ItemDetails, checkout } = props;
  8.   return (
  9.     <Fade>
  10.       <div className="container" style={{ marginBottom: 30 }}>
  11.         <div className="row justify-content-center align-item-center">
  12.           <div className="col-5 border-right py-5" style={{ paddingRight: 80 }}>
  13.             <Fade delay={300}>
  14.               <div className="card">
  15.                 <figure className="img-wrapper" style={{ height: 270 }}>
  16.                   <img
  17.                     className="img-cover"
  18.                     src={ItemDetails.imageUrls[0].url}
  19.                     alt={ItemDetails.name}
  20.                   />
  21.                 </figure>
  22.                 <div className="row align-items-center">
  23.                   <div className="col">
  24.                     <div className="meta-wrapper">
  25.                       <h5>{ItemDetails.name}</h5>
  26.                       <span className="text-gray-500">
  27.                         {ItemDetails.city} {ItemDetails.country}
  28.                       </span>
  29.                     </div>
  30.                   </div>
  31.                   <div className="col-auto">
  32.                     <span>
  33.                       ${+checkout.duration * ItemDetails.price} USD
  34.                       <span classNam="text-gray-500">per</span>
  35.                       {checkout.duration} {ItemDetails.unit}
  36.                       {+checkout.duration > 1 ? "s" : ""}
  37.                     </span>
  38.                   </div>
  39.                 </div>
  40.               </div>
  41.             </Fade>
  42.           </div>
  43.           <div className="col-5 py-5" style={{ paddingRight: 80 }}>
  44.             <Fade delay={600}>
  45.               <label htmlFor="firstName">First Name</label>
  46.               <InputText
  47.                 id="firstName"
  48.                 name="firstName"
  49.                 value={data.firstName}
  50.                 onChange={props.onChange}
  51.               />
  52.               <label htmlFor="lastName">Last Name </label>
  53.               <InputText
  54.                 id="lastName"
  55.                 name="lastName"
  56.                 value={data.lastName}
  57.                 onChange={props.onChange}
  58.               />
  59.               <label htmlFor="email">Email Address</label>
  60.               <InputText
  61.                 id="email"
  62.                 name="email"
  63.                 type="email"
  64.                 value={data.email}
  65.                 onChange={props.onChange}
  66.               />
  67.               <label htmlFor="phone">Phone Number</label>
  68.               <InputText
  69.                 id="phone"
  70.                 name="phone"
  71.                 type="tel"
  72.                 value={data.phone}
  73.                 onChange={data.onChange}
  74.               />
  75.             </Fade>
  76.           </div>
  77.         </div>
  78.       </div>
  79.     </Fade>
  80.   );
  81. }
  82.  
Add Comment
Please, Sign In to add comment