-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from shibasarkar/develop
feat:#110 Added a Service page
- Loading branch information
Showing
5 changed files
with
140 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Heart, Stethoscope,PhoneCall, Ambulance,Clipboard,Hospital} from 'lucide-react'; | ||
export const services = [ | ||
{ | ||
icon: Clipboard, | ||
title: "Easy Registration", | ||
details: "Quickly and easily register for your OPD appointment with just a few simple steps. Save time by avoiding long waits and secure your preferred time slot hassle-free." | ||
}, | ||
{ | ||
icon: Hospital, | ||
title: "Medical Resource Data Sharing", | ||
details: "Stay updated on the latest data regarding hospital equipment to ensure you have access to the most current information." | ||
}, | ||
{ | ||
icon: PhoneCall, | ||
title: "24/7 Support", | ||
details: "We are here to assist you at any time of the day, ensuring you receive the support you need whenever it's convenient for you." | ||
}, | ||
{ | ||
icon: Heart, | ||
title: "Cardiology", | ||
details: "fact that a reader will be distracted by the readable page when looking at its layout." | ||
}, | ||
{ | ||
icon: Stethoscope, | ||
title: "Diagnosis", | ||
details: "fact that a reader will be distracted by the readable page when looking at its layout." | ||
}, | ||
{ | ||
icon: Ambulance, | ||
title: "Surgery", | ||
details: "fact that a reader will be distracted by the readable page when looking at its layout." | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import React from 'react'; | ||
import { motion } from 'framer-motion'; | ||
import FloatingIcons from '../common/FloatingIcons'; | ||
import { services } from '../../data'; | ||
import { Link } from 'react-router-dom'; | ||
const ServiceCard = ({ icon: Icon, title, details }) => ( | ||
<> | ||
<motion.div | ||
className="bg-white rounded-lg shadow-lg p-6 flex flex-col items-end justify-between hover:shadow-xl transition-transform transform-gpu" | ||
whileHover={{ scale: 1.05 }} | ||
whileTap={{ scale: 0.95 }} | ||
initial={{ opacity: 0, y: 50 }} | ||
whileInView={{ opacity: 1, y: 0 }} | ||
viewport={{ once: true }} | ||
transition={{ type: 'spring', stiffness: 500 }} | ||
> | ||
<div className='flex flex-col items-center text-center'> | ||
<Icon size={48} className="text-blue-500 mb-4" /> | ||
<h3 className="text-xl font-semibold mb-2">{title}</h3> | ||
<p className="text-gray-600 mb-8">{details}</p> | ||
</div> | ||
<diV className="flex items-end"> | ||
<Link>Read more</Link> | ||
</diV> | ||
</motion.div> | ||
</> | ||
); | ||
export default function ServicePage() { | ||
return ( | ||
<> | ||
<header className="relative text-black py-16 sm:py-24 md:py-32 px-4 sm:px-6 lg:px-8 bg-gradient-to-br from-blue-100 to-white overflow-hidden"> | ||
<div className="absolute inset-0"> | ||
<svg | ||
className="absolute bottom-0 left-0 right-0" | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 1440 320" | ||
> | ||
<path | ||
fill="#e1f3f7" | ||
fillOpacity="1" | ||
d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,128C960,149,1056,171,1152,165.3C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z" | ||
></path> | ||
</svg> | ||
</div> | ||
|
||
<div className="max-w-7xl mx-auto relative z-10"> | ||
<div class="department_container"> | ||
<div class="container "> | ||
<div class="heading_container heading_center"> | ||
<motion.h2 | ||
className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-extrabold mb-6 leading-tight" | ||
initial={{ opacity: 0, y: -50 }} | ||
animate={{ opacity: 1, y: 0 }} | ||
transition={{ duration: 1, type: 'spring' }} | ||
> | ||
<span>Our Servives</span> | ||
</motion.h2> | ||
<motion.p className="flex flex-col items-center text-center mb-12"> | ||
<span> A better life starts with a beautiful smile</span> | ||
</motion.p> | ||
</div> | ||
<motion.div | ||
className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" | ||
initial="hidden" | ||
whileInView="visible" | ||
viewport={{ once: false }} | ||
transition={{ staggerChildren: 0.2 }} | ||
> | ||
{services.map((service, index) => ( | ||
<ServiceCard key={index} {...service} /> | ||
))} | ||
</motion.div> | ||
</div> | ||
</div> | ||
</div> | ||
<FloatingIcons /> | ||
</header> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters