Skip to content

Commit 0cbfac4

Browse files
filtering Part I UI
1 parent 35f665f commit 0cbfac4

30 files changed

+1192
-200
lines changed

app/components/BarrierCard.tsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import {
2+
HelpCircle,
3+
DollarSign,
4+
Users,
5+
HelpCircleIcon,
6+
Wifi,
7+
} from "lucide-react"
8+
9+
interface BarrierCardProps {
10+
icon: "connectivity" | "awareness" | "cost" | "staff" | "tool"
11+
title: string
12+
}
13+
14+
export function BarrierCard({ icon, title }: BarrierCardProps) {
15+
const getIcon = () => {
16+
switch (icon) {
17+
case "connectivity":
18+
return <Wifi className="h-8 w-8 text-[#2D6A4F]" />
19+
case "awareness":
20+
return <HelpCircle className="h-8 w-8 text-[#2D6A4F]" />
21+
case "cost":
22+
return <DollarSign className="h-8 w-8 text-[#2D6A4F]" />
23+
case "staff":
24+
return <Users className="h-8 w-8 text-[#2D6A4F]" />
25+
case "tool":
26+
return <HelpCircleIcon className="h-8 w-8 text-[#2D6A4F]" />
27+
}
28+
}
29+
30+
return (
31+
<div className="border border-gray-200 rounded-lg p-4 flex flex-col items-center text-center">
32+
<div className="mb-2">{getIcon()}</div>
33+
<p className="text-sm">{title}</p>
34+
</div>
35+
)
36+
}

0 commit comments

Comments
 (0)