Skip to content

Commit

Permalink
chore: integrated more reasons section
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulmathur16 committed Aug 4, 2024
1 parent 55b4bd8 commit 1599ac3
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 5 deletions.
19 changes: 16 additions & 3 deletions src/components/home/ChooseTailcall.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react"
import {chooseTailcall} from "@site/src/constants"
import { chooseTailcall, tailcallFeatures, Theme } from "@site/src/constants"
import LinkButton from "../shared/LinkButton"

const ChooseTailcall = (): JSX.Element => {
return (
<>
<div className="flex flex-col items-center justify-center">
<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">
More reasons to choose tailcall.
</p>
Expand All @@ -24,7 +25,19 @@ const ChooseTailcall = (): JSX.Element => {
</div>
))}
</div>
</>
<div className="flex flex-col lg:flex-row py-10 gap-y-SPACE_10 gap-x-SPACE_03 flex-wrap items-center justify-center">
{tailcallFeatures.map((item) => (
<div
className="flex p-6 border border-solid border-tailCall-border-dark-300 rounded-3xl items-center justify-center cursor-pointer"
key={item.id}
>
<img src={item.image} alt={`${item.title} Image`} height={24} width={24} />
<span className="text-content-tiny text-bold ml-2">{item.title}</span>
</div>
))}
</div>
<LinkButton theme={Theme.Gray} onClick={() => console.log('hey')} title="View More" />
</div>
)
}

Expand Down
47 changes: 45 additions & 2 deletions src/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const partnerImages: PartnerImage[] = [
},
]

const Highlight = ({text}: {text: string}) => (
const Highlight = ({ text }: { text: string }) => (
<>
<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">
{text}
Expand Down Expand Up @@ -223,6 +223,49 @@ export const chooseTailcall: ChooseTailcall[] = [
},
]

export const tailcallFeatures: TailcallFeatures[] = [
{
id: 1,
title: "Powerful Batching Primitive",
image: require("@site/static/images/choose-tailcall/rocket.png").default,
},
{
id: 2,
title: "Extensions with plugins and JS support",
image: require("@site/static/images/choose-tailcall/grid.png").default,
},
{
id: 3,
title: "Field based Authentication & Authorisation",
image: require("@site/static/images/choose-tailcall/shield-tick.png").default,
},
{
id: 4,
title: "Protocol agnostic",
image: require("@site/static/images/choose-tailcall/check-done.png").default,
},
{
id: 5,
title: "Performance",
image: require("@site/static/images/choose-tailcall/line-chart-up.png").default,
},
{
id: 6,
title: "Security",
image: require("@site/static/images/choose-tailcall/lock.png").default,
},
{
id: 7,
title: "Edge Compatible",
image: require("@site/static/images/choose-tailcall/puzzle-piece.png").default,
},
{
id: 8,
title: "Compile time tracks",
image: require("@site/static/images/choose-tailcall/clock-stopwatch.png").default,
},
]

export const benefits: Benefits[] = [
{
id: 1,
Expand Down Expand Up @@ -439,7 +482,7 @@ export const pricingPlans: PricingPlans[] = [
]

export const radioOptions: RadioOptions[] = [
{id: "1", name: "Evaluating", value: "evaluating"},
{ id: "1", name: "Evaluating", value: "evaluating" },
{
id: "2",
name: "Monolith",
Expand Down
6 changes: 6 additions & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ type ChooseTailcall = {
image: string
}

type TailcallFeatures = {
id: number
title: string
image: string
}

type Benefits = {
id: number
title: string
Expand Down
Binary file added static/images/choose-tailcall/check-done.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/choose-tailcall/clock-stopwatch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/choose-tailcall/grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/choose-tailcall/line-chart-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/choose-tailcall/lock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/choose-tailcall/puzzle-piece.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/choose-tailcall/rocket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/choose-tailcall/shield-tick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1599ac3

Please sign in to comment.