Skip to content

Commit 1599ac3

Browse files
committed
chore: integrated more reasons section
1 parent 55b4bd8 commit 1599ac3

File tree

11 files changed

+67
-5
lines changed

11 files changed

+67
-5
lines changed

src/components/home/ChooseTailcall.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from "react"
2-
import {chooseTailcall} from "@site/src/constants"
2+
import { chooseTailcall, tailcallFeatures, Theme } from "@site/src/constants"
3+
import LinkButton from "../shared/LinkButton"
34

45
const ChooseTailcall = (): JSX.Element => {
56
return (
6-
<>
7+
<div className="flex flex-col items-center justify-center">
78
<p className="text-title-large max-w-lg mx-auto sm:text-display-tiny lg:text-display-medium text-center my-SPACE_14 sm:mb-SPACE_16 sm:my-32">
89
More reasons to choose tailcall.
910
</p>
@@ -24,7 +25,19 @@ const ChooseTailcall = (): JSX.Element => {
2425
</div>
2526
))}
2627
</div>
27-
</>
28+
<div className="flex flex-col lg:flex-row py-10 gap-y-SPACE_10 gap-x-SPACE_03 flex-wrap items-center justify-center">
29+
{tailcallFeatures.map((item) => (
30+
<div
31+
className="flex p-6 border border-solid border-tailCall-border-dark-300 rounded-3xl items-center justify-center cursor-pointer"
32+
key={item.id}
33+
>
34+
<img src={item.image} alt={`${item.title} Image`} height={24} width={24} />
35+
<span className="text-content-tiny text-bold ml-2">{item.title}</span>
36+
</div>
37+
))}
38+
</div>
39+
<LinkButton theme={Theme.Gray} onClick={() => console.log('hey')} title="View More" />
40+
</div>
2841
)
2942
}
3043

src/constants/index.tsx

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const partnerImages: PartnerImage[] = [
3737
},
3838
]
3939

40-
const Highlight = ({text}: {text: string}) => (
40+
const Highlight = ({ text }: { text: string }) => (
4141
<>
4242
<span className="text-content-tiny font-bold sm:text-title-tiny lg:text-title-small bg-tailCall-yellow rounded-[4px] sm:rounded-md px-SPACE_01">
4343
{text}
@@ -223,6 +223,49 @@ export const chooseTailcall: ChooseTailcall[] = [
223223
},
224224
]
225225

226+
export const tailcallFeatures: TailcallFeatures[] = [
227+
{
228+
id: 1,
229+
title: "Powerful Batching Primitive",
230+
image: require("@site/static/images/choose-tailcall/rocket.png").default,
231+
},
232+
{
233+
id: 2,
234+
title: "Extensions with plugins and JS support",
235+
image: require("@site/static/images/choose-tailcall/grid.png").default,
236+
},
237+
{
238+
id: 3,
239+
title: "Field based Authentication & Authorisation",
240+
image: require("@site/static/images/choose-tailcall/shield-tick.png").default,
241+
},
242+
{
243+
id: 4,
244+
title: "Protocol agnostic",
245+
image: require("@site/static/images/choose-tailcall/check-done.png").default,
246+
},
247+
{
248+
id: 5,
249+
title: "Performance",
250+
image: require("@site/static/images/choose-tailcall/line-chart-up.png").default,
251+
},
252+
{
253+
id: 6,
254+
title: "Security",
255+
image: require("@site/static/images/choose-tailcall/lock.png").default,
256+
},
257+
{
258+
id: 7,
259+
title: "Edge Compatible",
260+
image: require("@site/static/images/choose-tailcall/puzzle-piece.png").default,
261+
},
262+
{
263+
id: 8,
264+
title: "Compile time tracks",
265+
image: require("@site/static/images/choose-tailcall/clock-stopwatch.png").default,
266+
},
267+
]
268+
226269
export const benefits: Benefits[] = [
227270
{
228271
id: 1,
@@ -439,7 +482,7 @@ export const pricingPlans: PricingPlans[] = [
439482
]
440483

441484
export const radioOptions: RadioOptions[] = [
442-
{id: "1", name: "Evaluating", value: "evaluating"},
485+
{ id: "1", name: "Evaluating", value: "evaluating" },
443486
{
444487
id: "2",
445488
name: "Monolith",

src/types/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ type ChooseTailcall = {
3131
image: string
3232
}
3333

34+
type TailcallFeatures = {
35+
id: number
36+
title: string
37+
image: string
38+
}
39+
3440
type Benefits = {
3541
id: number
3642
title: string
459 Bytes
Loading
652 Bytes
Loading
248 Bytes
Loading
331 Bytes
Loading
479 Bytes
Loading
581 Bytes
Loading
704 Bytes
Loading
589 Bytes
Loading

0 commit comments

Comments
 (0)