Skip to content

Commit 8f4b83d

Browse files
committed
up5
1 parent 789fdf1 commit 8f4b83d

1 file changed

Lines changed: 61 additions & 2 deletions

File tree

src/components/home/our-projects-section.tsx

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,50 @@ interface Project {
1111
description: string
1212
image: string
1313
category: string
14+
url?: string
1415
}
1516

1617
const projects: Project[] = [
18+
{
19+
id: "tms-sicip",
20+
title: "TMS SICIP",
21+
description: "Government Transport Management System for SICIP Bangladesh. A comprehensive platform for managing transportation logistics and operations efficiently.",
22+
image: "https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=800&q=80",
23+
category: "Government",
24+
url: "https://tms.sicip.gov.bd/"
25+
},
26+
{
27+
id: "dhamaka-express",
28+
title: "Dhamaka Express",
29+
description: "Premium e-commerce platform delivering quality products across Bangladesh. Fast shipping, secure payments, and exceptional customer service.",
30+
image: "https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?w=800&q=80",
31+
category: "E-commerce",
32+
url: "https://dhamakaexpress.com"
33+
},
34+
{
35+
id: "walkinroom",
36+
title: "WalkInRoom",
37+
description: "Modern room booking and hotel reservation platform. Find and book your perfect accommodation with ease and convenience.",
38+
image: "https://images.unsplash.com/photo-1566073771259-6a8506099945?w=800&q=80",
39+
category: "Hospitality",
40+
url: "https://walkinroom.com/"
41+
},
42+
{
43+
id: "shesafe",
44+
title: "SheSafe Sisterhood Hub",
45+
description: "A safe space and community platform for women empowerment, safety resources, and sisterhood connections. Building stronger communities together.",
46+
image: "https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=800&q=80",
47+
category: "Community",
48+
url: "https://shesafe-sisterhood-hub.vercel.app/"
49+
},
50+
{
51+
id: "cleancrew",
52+
title: "CleanCrew Dhaka Sparkle",
53+
description: "Professional cleaning services platform for Dhaka city. Book reliable and efficient cleaning services for your home or office.",
54+
image: "https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=800&q=80",
55+
category: "Services",
56+
url: "https://cleancrew-dhaka-sparkle.vercel.app/"
57+
},
1758
{
1859
id: "wanderlust",
1960
title: "Wanderlust Travel",
@@ -93,8 +134,18 @@ export default function OurProjectsSection({ className }: OurProjectsSectionProp
93134
}
94135

95136
function ProjectCard({ project }: { project: Project }) {
137+
const CardWrapper = project.url ? 'a' : 'div'
138+
const cardProps = project.url ? {
139+
href: project.url,
140+
target: "_blank",
141+
rel: "noopener noreferrer"
142+
} : {}
143+
96144
return (
97-
<div className="group relative overflow-hidden rounded-xl bg-card border border-border shadow-md transition-all duration-300 hover:shadow-xl hover:-translate-y-1">
145+
<CardWrapper
146+
{...cardProps}
147+
className="group relative overflow-hidden rounded-xl bg-card border border-border shadow-md transition-all duration-300 hover:shadow-xl hover:-translate-y-1 block cursor-pointer"
148+
>
98149
{/* Image Container */}
99150
<div className="relative aspect-[16/10] overflow-hidden">
100151
<Image
@@ -130,11 +181,19 @@ function ProjectCard({ project }: { project: Project }) {
130181
<p className="text-muted-foreground text-sm leading-relaxed line-clamp-3">
131182
{project.description}
132183
</p>
184+
{project.url && (
185+
<div className="mt-3 flex items-center text-primary text-sm font-medium">
186+
Visit Site
187+
<svg className="ml-1 h-4 w-4 transition-transform group-hover:translate-x-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
188+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 8l4 4m0 0l-4 4m4-4H3" />
189+
</svg>
190+
</div>
191+
)}
133192
</div>
134193

135194
{/* Hover Border Effect */}
136195
<div className="absolute inset-0 rounded-xl border-2 border-transparent group-hover:border-primary/30 transition-colors pointer-events-none" />
137-
</div>
196+
</CardWrapper>
138197
)
139198
}
140199

0 commit comments

Comments
 (0)