MCPcopy
hub / github.com/adrianhajdin/brainwave / PricingList

Function PricingList

src/components/PricingList.jsx:5–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import Button from "./Button";
4
5const PricingList = () => {
6 return (
7 <div className="flex gap-[1rem] max-lg:flex-wrap">
8 {pricing.map((item) => (
9 <div
10 key={item.id}
11 className="w-[19rem] max-lg:w-full h-full px-6 bg-n-8 border border-n-6 rounded-[2rem] lg:w-auto even:py-14 odd:py-8 odd:my-4 [&>h4]:first:text-color-2 [&>h4]:even:text-color-1 [&>h4]:last:text-color-3"
12 >
13 <h4 className="h4 mb-4">{item.title}</h4>
14
15 <p className="body-2 min-h-[4rem] mb-3 text-n-1/50">
16 {item.description}
17 </p>
18
19 <div className="flex items-center h-[5.5rem] mb-6">
20 {item.price && (
21 <>
22 <div className="h3">$</div>
23 <div className="text-[5.5rem] leading-none font-bold">
24 {item.price}
25 </div>
26 </>
27 )}
28 </div>
29
30 <Button
31 className="w-full mb-6"
32 href={item.price ? "/pricing" : "mailto:contact@jsmastery.pro"}
33 white={!!item.price}
34 >
35 {item.price ? "Get started" : "Contact us"}
36 </Button>
37
38 <ul>
39 {item.features.map((feature, index) => (
40 <li
41 key={index}
42 className="flex items-start py-5 border-t border-n-6"
43 >
44 <img src={check} width={24} height={24} alt="Check" />
45 <p className="body-2 ml-4">{feature}</p>
46 </li>
47 ))}
48 </ul>
49 </div>
50 ))}
51 </div>
52 );
53};
54
55export default PricingList;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected