1+ import React from "react" ;
2+ import Image from "next/image" ;
3+ import { withBasePath } from "@/lib/utils" ;
4+
5+ export const departmentCards = {
6+ "Full-Stack" : {
7+ title : "Full-Stack Developer" ,
8+ desc : "They possess a broad skill set covering the entire software development stack." ,
9+ img : "ABOUT-carousel-frontend.jpg"
10+ } ,
11+ "Front-End" : {
12+ title : "Front-End Developer" ,
13+ desc : "Designs interactive user interfaces." ,
14+ img : "ABOUT-carousel-frontend.jpg"
15+ } ,
16+ "Back-End" : {
17+ title : "Back-End Developer" ,
18+ desc : "Manages databases and server logic." ,
19+ img : "ABOUT-carousel-backend.jpg"
20+ } ,
21+ "UI/UX" : {
22+ title : "UI/UX Designer" ,
23+ desc : "Crafts intuitive user experiences." ,
24+ img : "ABOUT-carousel-uiux.jpg"
25+ } ,
26+ "Creatives" : {
27+ title : "Creatives" ,
28+ desc : "Produces engaging visual and multimedia content such as graphics, layouts, and branding materials." ,
29+ img : "ABOUT-carousel-creatives.png"
30+ } ,
31+ "Project Manager" : {
32+ title : "Project Manager" ,
33+ desc : "Oversees timelines and stakeholder communication." ,
34+ img : "ABOUT-carousel-projectmanager.png"
35+ } ,
36+ "QA" : {
37+ title : "Quality Assurance" ,
38+ desc : "Tests applications for bugs, errors, and performance issues to maintain software reliability." ,
39+ img : "ABOUT-carousel-qualityassurance.png"
40+ } ,
41+ "DevOps" : {
42+ title : "DevOps Engineer" ,
43+ desc : "Automates deployment, monitors infrastructure, and bridges development and operations for efficiency." ,
44+ img : "ABOUT-carousel-devops.png"
45+ }
46+ } ;
47+
48+ export interface DepartmentCardProps {
49+ title : string ;
50+ desc : string ;
51+ img : string ;
52+ }
53+
54+ export const DepartmentCard : React . FC < DepartmentCardProps > = ( { title, desc, img } ) => (
55+ < div className = "relative w-full md:w-3/4 md:max-w-3xl h-56 md:h-72 lg:h-80 rounded-3xl lg:rounded-4xl overflow-hidden mb-10 mt-10" >
56+ < Image
57+ src = { withBasePath ( `/images/${ img } ` ) }
58+ alt = { title }
59+ fill
60+ className = "object-cover"
61+ priority
62+ />
63+ < div className = "absolute inset-0 bg-blue-950/50 flex flex-col justify-center items-center z-10" >
64+ < h1 className = "text-2xl md:text-4xl font-bold text-yellow2 mb-2" > { title } </ h1 >
65+ < p className = "text-lg md:text-2xl text-white text-center max-w-xl" > { desc } </ p >
66+ </ div >
67+ </ div >
68+ ) ;
0 commit comments