%PDF- %PDF-
Direktori : /var/www/html/src/Components/ |
Current File : /var/www/html/src/Components/ChooseTour.js |
import Image from "next/image"; import Link from "next/link"; import parse from "html-react-parser"; //icons import { ArrowsRightBlack } from "./Icons"; //bg import { ToursBg } from "./Backgrounds"; function ChooseTour({ data }) { return ( <div className="mainTour"> <div className="intro"> <div className="toursBackground"> <ToursBg /> </div> <div className="animationWrap"> <div className="animate"> <div className="items"> <span>{data.small_title_tours}</span> <span>{data.small_title_tours}</span> </div> <div className="items"> <span>{data.small_title_tours}</span> <span>{data.small_title_tours}</span> </div> </div> </div> <div className="tourDiv"> <h4>{data.small_title_tours}</h4> </div> <>{parse(data.title_tours)}</> </div> <div className="tours"> {data.tours.map((tour, id) => { return ( <div key={id} className="group"> <div className="indexWrap"> <span className="index">0{id + 1}</span> </div> <div className="main"> <h1>{tour.title}</h1> <p>{tour.description}</p> <div className="specs"> <div className="first"> {tour.bullets.slice(0, 3).map((bullet, id) => { return ( <div className="iconWrap" key={id}> <div className="atvIcon"> <Image src={`${bullet.icon}`} width={20} height={20} // layout="responsive" /> </div>{" "} <span>{bullet.text}</span> </div> ); })} </div> <div className="second"> {tour.bullets.slice(3, 6).map((bullet, id) => { return ( <div className="iconWrap" key={id}> <div className="atvIcon"> <Image src={`${bullet.icon}`} width={20} height={20} /> </div> <span>{bullet.text}</span> </div> ); })} </div> </div> <div className="price"> <div className="startFrom"> <div className="price-block"> <span>{tour.single_price_label}</span> <h3>{parse(tour.price)}</h3> </div> <div className="price-block"> <span>{tour.double_price_label}</span> <h3>{parse(tour.double_price)}</h3> </div> </div> <Link href={`/tours/${tour.slug}`}> <div className="book"> <div className="arrows"> <ArrowsRightBlack /> </div> <span>Book Now</span> </div> </Link> </div> </div> <div className="image"> <Image src={tour.image} alt="" layout="responsive" width={517} height={689} quality={100} /> </div> </div> ); })} </div> </div> ); } export default ChooseTour;