Skip to content

Commit

Permalink
update logos and position
Browse files Browse the repository at this point in the history
  • Loading branch information
amitksingh1490 committed Dec 11, 2024
1 parent 7ac83df commit e7dd6af
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 33 deletions.
9 changes: 2 additions & 7 deletions src/components/home/Partners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ const Partners = () => {
window.open("/docs/deploy-graphql-github-actions/", "_blank")
}

return (
<TrustedByMarquee
logos={partnerImages}
onClick={handleClick}
/>
)
return <TrustedByMarquee logos={partnerImages} onClick={handleClick} />
}

export default Partners
export default Partners
5 changes: 1 addition & 4 deletions src/components/home/Testimonials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const Testimonials = () => {
<span className="bg-tailCall-yellow rounded-lg text-black px-SPACE_01 ml-SPACE_02">love us!</span>
</Heading>
</div>
<TrustedByMarquee title="Trusted by developers at" logos={companies} />
<div className="flex flex-col space-y-SPACE_10 md:flex-row md:space-x-SPACE_02 md:space-y-0 mt-SPACE_18">
{testimonials.map((feedback) => (
<CustomerFeedbackCard
Expand All @@ -49,10 +50,6 @@ const Testimonials = () => {
/>
))}
</div>
<TrustedByMarquee
title="Trusted by Developers at"
logos={companies}
/>
</Section>
)
}
Expand Down
33 changes: 13 additions & 20 deletions src/components/home/TrustedByMarquee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ interface TrustedByMarqueeProps {
}

const TrustedByMarquee: React.FC<TrustedByMarqueeProps> = ({
title = "Deploy Anywhere",
logos,
onClick,
titleClassName = "text-content-small font-bold sm:text-title-tiny lg:text-title-small text-tailCall-light-500 text-center space-x-1",
desktopClassName = "hidden sm:flex space-x-SPACE_16 mt-SPACE_10 overflow-hidden",
mobileClassName = "sm:hidden flex items-center justify-around flex-wrap mt-SPACE_06 space-y-SPACE_02"
}) => {
title = "Deploy Anywhere",
logos,
onClick,
titleClassName = "text-content-small font-bold sm:text-title-tiny lg:text-title-small text-tailCall-light-500 text-center space-x-1",
desktopClassName = "hidden sm:flex space-x-SPACE_16 mt-SPACE_10 overflow-hidden",
mobileClassName = "sm:hidden flex items-center justify-around flex-wrap mt-SPACE_06 space-y-SPACE_02",
}) => {
const handleClick = () => {
if (onClick) {
onClick();
onClick()
}
}

Expand All @@ -41,29 +41,22 @@ const TrustedByMarquee: React.FC<TrustedByMarqueeProps> = ({
<img src={partner.logo} alt={partner.name} className="max-w-[152px]" />
)}
</div>
);
)

return (
<section
className={`px-10 md:px-0 ${onClick ? 'cursor-pointer' : ''}`}
onClick={handleClick}
>
<section className={`px-10 md:px-0 ${onClick ? "cursor-pointer" : ""}`} onClick={handleClick}>
<div className={titleClassName}>
<GreaterThanUnderscoreIcon className="h-4 w-6" />
<span>{title}</span>
</div>

<Marquee autoFill>
<div className={desktopClassName}>
{logos.map(renderLogo)}
</div>
<div className={desktopClassName}>{logos.map(renderLogo)}</div>
</Marquee>

<div className={mobileClassName}>
{logos.map(renderLogo)}
</div>
<div className={mobileClassName}>{logos.map(renderLogo)}</div>
</section>
)
}

export default TrustedByMarquee
export default TrustedByMarquee
2 changes: 0 additions & 2 deletions src/constants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export const companies: PartnerImage[] = [
{name: "Sinch", logo: require("@site/static/icons/companies/sinch.png").default},
]



export const partnerImages: PartnerImage[] = [
{
name: "Digital Ocean",
Expand Down
Binary file modified static/icons/companies/aftership.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 modified static/icons/companies/dream11.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 modified static/icons/companies/optum.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 modified static/icons/companies/sinch.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 e7dd6af

Please sign in to comment.