Files
ATS-HRMS/app/(public)/hrms/_components/WorkFlow.tsx
2025-12-06 00:56:15 +05:30

77 lines
2.7 KiB
TypeScript

"use client";
import React from "react";
import { motion } from "framer-motion";
import {
Card,
CardContent,
} from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import {
ArrowRight,
} from "lucide-react";
import { hrms } from "@/services/Constants";
const WorkflowProcess: React.FC = () => {
return (
<section className="py-24 px-4 bg-white">
<div className="container mx-auto max-w-7xl">
<motion.div
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
className="text-center mb-16"
>
<Badge className="mb-4 bg-green-100 text-green-700 border-green-200">
Simple Process
</Badge>
<h2 className="text-4xl md:text-5xl font-bold text-gray-900 mb-4">
How{" "}
<span className="bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
HRMS Works
</span>
</h2>
<p className="text-xl text-gray-600 max-w-3xl mx-auto">
Four simple steps to revolutionize your HR management
</p>
</motion.div>
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
{hrms.WORKFLOW_STEPS.map((step, idx) => (
<motion.div
key={idx}
initial={{ opacity: 0, y: 20 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ delay: idx * 0.15 }}
className="relative"
>
<Card className="bg-gradient-to-br from-gray-50 to-white border-2 border-gray-100 hover:border-blue-300 hover:shadow-xl transition-all duration-300 h-full">
<CardContent className="pt-8 text-center">
<div className="w-16 h-16 mx-auto mb-4 rounded-full bg-gradient-to-br from-blue-600 to-purple-600 flex items-center justify-center text-white text-2xl font-bold shadow-lg">
{step.step}
</div>
<h3 className="text-2xl font-bold text-gray-900 mb-3">
{step.title}
</h3>
<p className="text-gray-600 leading-relaxed">
{step.description}
</p>
</CardContent>
</Card>
{idx < hrms.WORKFLOW_STEPS.length - 1 && (
<div className="hidden lg:block absolute top-1/2 -right-3 transform -translate-y-1/2 z-10">
<ArrowRight className="w-6 h-6 text-blue-400" />
</div>
)}
</motion.div>
))}
</div>
</div>
</section>
);
};
export default WorkflowProcess