Skip to content

Commit

Permalink
chore: update home
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Feb 9, 2024
1 parent c9c6981 commit 61d4e49
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 37 deletions.
15 changes: 2 additions & 13 deletions src/components/home/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ import {features} from "@site/src/constants"
import GreaterThanUnderscoreIcon from "@site/static/icons/basic/gt-underscore.svg"

type FeatureProps = {
feature: {
id: number
logo: string
title: string
description1: string
highlightedText: string
description2: string
}
feature: Feature
}

const Feature = ({feature}: FeatureProps): JSX.Element => {
Expand All @@ -37,11 +30,7 @@ const Feature = ({feature}: FeatureProps): JSX.Element => {
>
<div className="bg-gradient-to-b from-tailCall-light-100 from-3% via-[#E4E5E9] via-67% to-tailCall-light-100 absolute -left-SPACE_04 sm:-left-SPACE_06 w-[2px] h-full" />
<p className="text-content-tiny sm:text-content-small lg:text-content-medium max-w-md">
<span>{feature.description1}</span>
<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">
{feature.highlightedText}
</span>
<span>{feature.description2}</span>
<span>{feature.content}</span>
</p>
<div className="sm:mt-SPACE_20">
<img src={feature.logo} alt="" />
Expand Down
67 changes: 46 additions & 21 deletions src/constants/index.ts → src/constants/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react"

export const githubRepoURL = "https://github.com/tailcallhq/tailcall"
export const tailCallBenchmarkUrl = "https://github.com/tailcallhq/graphql-benchmarks#benchmark-results"
export const tailCallBlogUrl = "https://blog.tailcall.run/"
Expand Down Expand Up @@ -42,52 +44,75 @@ export const partnerImages: PartnerImage[] = [
},
]

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}
</span>
</>
)

export const features: Feature[] = [
{
id: 1,
logo: require("@site/static/images/home/orchestration.png").default,
title: "Orchestration",
description1:
"Harness the power of Tailcall's advanced orchestration primitives, designed for large-scale API management. Effortlessly interface with ",
highlightedText: "gRPC, REST, GraphQL,",
description2:
" and more, ensuring seamless communication and complex data transformations for enterprise operations.",
content: (
<>
Harness the power of Tailcall's advanced orchestration primitives, designed for large-scale API management.
Effortlessly interface with <Highlight text="gRPC, REST, GraphQL," /> and more, ensuring seamless communication
and complex data transformations for enterprise operations.
</>
),
},
{
id: 2,
logo: require("@site/static/images/home/governance.png").default,
title: "Governance",
description1: "Implement robust governance and security across your API landscape using our ",
highlightedText: "code-based governance",
description2:
" and comprehensive security framework. Enjoy precise control mechanisms that ensure compliance, standardization, operational consistency, and safeguard against evolving digital threats.",
content: (
<>
Implement robust governance and security across your API landscape using our{" "}
<Highlight text="code-based governance" /> and comprehensive security framework. Enjoy precise control
mechanisms that ensure compliance, standardization, operational consistency, and safeguard against evolving
digital threats.
</>
),
},
{
id: 3,
logo: require("@site/static/images/home/efficiency.png").default,
title: "Efficiency",
description1: "Tailcall brings breakthrough performance optimizations, integrating ",
highlightedText: "enterprise-specific tuning ",
description2:
" for high-speed and low-latency. Expect unmatched response times, lower resource utilization, and adaptability to your unique operational needs and workload demands.",
content: (
<>
Tailcall brings breakthrough performance optimizations, integrating{" "}
<Highlight text="enterprise-specific tuning " /> for high-speed and low-latency. Expect unmatched response
times, lower resource utilization, and adaptability to your unique operational needs and workload demands.
</>
),
},
{
id: 4,
logo: require("@site/static/images/home/resiliency.png").default,
title: "Resiliency",
description1:
"Engineered for enterprise resilience, Tailcall guarantees robust performance under any conditions. Our platform is designed for ",
highlightedText: "high availability and fault tolerance,",
description2: " ensuring uninterrupted service and reliability at scale.",
content: (
<>
Engineered for enterprise resilience, Tailcall guarantees robust performance under any conditions. Our platform
is designed for <Highlight text="high availability and fault tolerance," /> ensuring uninterrupted service and
reliability at scale.
</>
),
},
{
id: 5,
logo: require("@site/static/images/home/extendability.png").default,
title: "Extendability",
description1: "Tailcall's ",
highlightedText: "plugin-centric",
description2:
" extendability empowers enterprises to craft custom solutions. Design and integrate bespoke plugins that precisely fit your unique requirements, enhancing the platform's functionality to align with your specific business objectives.",
content: (
<>
Tailcall's <Highlight text="plugin-centric" /> extendability empowers enterprises to craft custom solutions.
Design and integrate bespoke plugins that precisely fit your unique requirements, enhancing the platform's
functionality to align with your specific business objectives.
</>
),
},
]

Expand Down
4 changes: 1 addition & 3 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ type Feature = {
id: number
logo: string
title: string
description1: string
highlightedText: string
description2: string
content: React.JSX.Element
}

type MoreFeatures = {
Expand Down

0 comments on commit 61d4e49

Please sign in to comment.