-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Tushar Mathur <[email protected]> Co-authored-by: mehulmathur001 <[email protected]> Co-authored-by: mehulmathur16 <[email protected]>
- Loading branch information
1 parent
de4d947
commit eebac60
Showing
22 changed files
with
389 additions
and
128 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react" | ||
import Heading from "@theme/Heading" | ||
import SectionTitle from "../shared/SectionTitle" | ||
import Partners from "./Partners" | ||
import BenefitsCard from "./BenefitsCard" | ||
|
||
const Benefits = (): JSX.Element => { | ||
return ( | ||
<section className="w-full pt-20 p-6 md:pb-20 lg:px-SPACE_16 bg-[#1C1D1F] grid-background"> | ||
<div className="sm:max-w-7xl mx-SPACE_04 sm:mx-SPACE_10 lg:mx-auto py-SPACE_08 sm:py-SPACE_20"> | ||
<div> | ||
<SectionTitle title="Benefits" /> | ||
<div className=" h-fit sm:flex-row sm:items-center sm:space-x-SPACE_10 lg:space-x-SPACE_20"> | ||
<Heading | ||
as="h3" | ||
className="text-title-large sm:text-display-tiny lg:text-display-small text-white md:w-[65%]" | ||
> | ||
Tailcall gives you a best-practice GraphQL backend that checks all the boxes. | ||
</Heading> | ||
</div> | ||
</div> | ||
<BenefitsCard /> | ||
<Partners /> | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
export default Benefits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from "react" | ||
import {benefits} from "@site/src/constants" | ||
import {ArrowRight} from "lucide-react" | ||
|
||
const BenefitsCard = (): JSX.Element => { | ||
const handleClick = (url: string) => { | ||
window.open(url, "_blank") | ||
} | ||
|
||
return ( | ||
<div className="mt-16 md:mb-0 mb-10"> | ||
<div className="md:flex md:flex-wrap justify-center gap-10 w-[100%]"> | ||
{benefits.map((item) => ( | ||
<div | ||
className="group border border-solid border-tailCall-border-dark-300 rounded-3xl md:w-[40%] lg:w-[45%] md:px-10 px-4 py-2 pt-4 lg:flex benefits-drop-shadow hover:border-[#FDEA2E] md:mb-0 mb-6 cursor-pointer" | ||
key={item.id} | ||
onClick={() => handleClick(item.redirection_url)} | ||
> | ||
<div className="mr-4 md:mt-4"> | ||
<img | ||
src={item.image} | ||
alt="Image Describing Why Tailcall" | ||
className="max-w-[72px] lg:w-[64px] sm:max-w-[110px]" | ||
/> | ||
</div> | ||
<div className="mt-4 flex flex-col"> | ||
<p className="text-title-small text-white sm:text-title-large mb-SPACE_02 sm:mb-0 flex flex-start"> | ||
{item.title}{" "} | ||
<span className="ml-4 md:text-gray-400 group-hover:text-white"> | ||
<ArrowRight /> | ||
</span> | ||
</p> | ||
<p className="text-content-tiny sm:text-content-small text-tailCall-light-600">{item.description}</p> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default BenefitsCard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from "react" | ||
// @site/src/utils/index.ts | ||
|
||
type CustomerFeedbackCardProps = { | ||
classNames?: string | ||
citation: string | ||
designation: string | ||
name?: string | ||
department?: string | ||
isCenterCard: boolean | ||
display: string | ||
} | ||
|
||
const CustomerFeedbackCard: React.FC<CustomerFeedbackCardProps> = ({ | ||
classNames, | ||
citation, | ||
designation, | ||
name, | ||
department, | ||
isCenterCard, | ||
display, | ||
}) => { | ||
return ( | ||
<div | ||
className={`customer-feedback-card md:w-[33%] flex flex-col items-center justify-between bg-tailCall-dark-600 tailcall-light-100 text-white py-SPACE_06 px-SPACE_06 text-center text-content-small gap-y-SPACE_06 pb-10 ${classNames} ${ | ||
isCenterCard && "md:!relative md:-top-10" | ||
}`} | ||
> | ||
{display === "Show" && department && ( | ||
<> | ||
<span className={`sm:text-content-medium lg:text-content-large !font-bold !text-title-large`}> | ||
{`Loved by `} | ||
<span className={isCenterCard ? `text-tailCall-yellow` : ""}>{department}</span> | ||
</span> | ||
</> | ||
)} | ||
<span className="text-content-small sm:text-content-medium">{`“${citation}”`}</span> | ||
<span className="flex flex-col"> | ||
{display === "Show" && name && ( | ||
<span className="text-content-small sm:text-content-medium lg:text-content-large !font-bold">{name}</span> | ||
)} | ||
<span className="text-content-tiny sm:text-content-small">{designation}</span> | ||
</span> | ||
</div> | ||
) | ||
} | ||
|
||
export default CustomerFeedbackCard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import React from "react" | ||
import Heading from "@theme/Heading" | ||
import CustomerFeedbackCard from "./CustomerFeedbackCard" | ||
import {customerFeedbacks} from "@site/src/constants" | ||
|
||
export enum TestimonialDisplay { | ||
Hide = "Hide", | ||
Show = "Show", | ||
Anon = "Anon", | ||
} | ||
|
||
interface AppConfig { | ||
testimonials: TestimonialDisplay | ||
} | ||
|
||
const config: AppConfig = { | ||
testimonials: TestimonialDisplay.Hide, // Default value | ||
} | ||
|
||
const Testimonials = () => { | ||
if (config.testimonials === TestimonialDisplay.Hide) { | ||
return null | ||
} | ||
|
||
return ( | ||
<section className="customer-container !bg-tailCall-dark-600 h-full w-full text-tailCall-light-100 lg:px-SPACE_16 !bg-contain md:!bg-center"> | ||
<div className="sm:max-w-7xl mx-SPACE_04 sm:mx-SPACE_10 lg:mx-auto sm:py-SPACE_20 py-SPACE_20 md:pt-SPACE_21 md:pb-SPACE_20"> | ||
<div className="flex flex-row items-center justify-center"> | ||
<Heading | ||
as="h5" | ||
className="text-title-large sm:text-display-tiny lg:text-display-medium flex flex-col items-center md:flex-row" | ||
> | ||
<span>Our Customers</span> | ||
<span className="bg-tailCall-yellow rounded-lg text-black px-SPACE_01 ml-SPACE_02">love us!</span> | ||
</Heading> | ||
</div> | ||
<div className="flex flex-col space-y-SPACE_10 md:flex-row md:space-x-SPACE_02 md:space-y-0 mt-SPACE_18"> | ||
{customerFeedbacks.map((feedback) => ( | ||
<CustomerFeedbackCard | ||
key={feedback.id} | ||
isCenterCard={feedback.id === 2} | ||
citation={feedback.citation} | ||
designation={feedback.designation} | ||
name={feedback?.name} | ||
department={feedback?.department} | ||
display={config.testimonials} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
||
export default Testimonials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.