125 lines
5.4 KiB
JavaScript
Executable File
125 lines
5.4 KiB
JavaScript
Executable File
import React from 'react';
|
|
import dynamic from 'next/dynamic';
|
|
const OwlCarousel = dynamic(import('react-owl-carousel3'));
|
|
import Link from 'next/link';
|
|
|
|
const options = {
|
|
items:1,
|
|
loop:true,
|
|
margin:0,
|
|
nav: true,
|
|
dots: true,
|
|
smartSpeed: 1000,
|
|
autoplay:false,
|
|
autoplayTimeout:9000,
|
|
autoplayHoverPause:true,
|
|
navText: [
|
|
"<i class='icofont-simple-left'></i>",
|
|
"<i class='icofont-simple-right'></i>"
|
|
],
|
|
};
|
|
|
|
const HeroSlider = () => {
|
|
const [display, setDisplay] = React.useState(false);
|
|
|
|
React.useEffect(() => {
|
|
setDisplay(true);
|
|
}, [])
|
|
|
|
let homeSlider = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida."
|
|
return (
|
|
<>
|
|
{display ? <OwlCarousel
|
|
className="home-slider owl-carousel owl-theme"
|
|
{...options}
|
|
>
|
|
<div className="slider-item slider-item-img slider-item-img-1">
|
|
<div className="d-table">
|
|
<div className="d-table-cell">
|
|
<div className="container-fluid p-0">
|
|
<div className="slider-text ">
|
|
{/* <div className="slider-shape">
|
|
<img src="/images/home-one/home-slider-1.png" alt="Shape" />
|
|
</div> */}
|
|
<div className="slider-info">
|
|
<h1>Exceptional Health Care for Pregnant Mothers & Newborn</h1>
|
|
<p>{homeSlider}</p>
|
|
|
|
<div className="common-btn">
|
|
<Link href="/appointment">
|
|
<a>Get Appointment</a>
|
|
</Link>
|
|
<Link href="/about">
|
|
<a className="cmn-btn-right">Learn More</a>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="slider-item slider-item-img slider-item-img-2">
|
|
<div className="d-table">
|
|
<div className="d-table-cell">
|
|
<div className="container-fluid p-0">
|
|
<div className="slider-text">
|
|
{/* <div className="slider-shape-two">
|
|
<img src="/images/home-one/home-slider-2.png" alt="Shape" />
|
|
</div> */}
|
|
<div className="slider-info-one">
|
|
<h1>Caring Health is Important Than All</h1>
|
|
<p>{homeSlider}</p>
|
|
|
|
<div className="common-btn">
|
|
<Link href="/appointment">
|
|
<a>Get Appointment</a>
|
|
</Link>
|
|
<Link href="/about">
|
|
<a className="cmn-btn-right">Learn More</a>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="slider-item slider-item-img slider-item-img-3">
|
|
<div className="d-table">
|
|
<div className="d-table-cell">
|
|
<div className="container-fluid p-0">
|
|
<div className="slider-text">
|
|
{/* <div className="slider-shape-three">
|
|
<img src="/images/home-one/home-slider-3.png" alt="Shape" />
|
|
</div> */}
|
|
<div className="slider-info-two">
|
|
<h1>We Offer Highly Treatments</h1>
|
|
<p>{homeSlider}</p>
|
|
|
|
<div className="common-btn">
|
|
<Link href="/appointment">
|
|
<a>Get Appointment</a>
|
|
</Link>
|
|
<Link href="/about">
|
|
<a className="cmn-btn-right">Learn More</a>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</OwlCarousel> : ''}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default HeroSlider;
|
|
|
|
|
|
|