Skip to content

Commit

Permalink
Feat: add option to modify knowledge partner logo sizes and style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThulinaWickramasinghe committed Sep 19, 2024
1 parent 6efc16f commit 348c826
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/2024/src/components/landing/knowledge-partners/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const partners = [
{
name: 'CNCF',
logo: CNCF,
link: 'https://www.cncf.io/'
link: 'https://www.cncf.io/',
classNames: 'scale-y-110'
}
];
5 changes: 3 additions & 2 deletions apps/2024/src/components/landing/knowledge-partners/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { RxQuestionMark } from 'react-icons/rx';
import { twMerge } from 'tailwind-merge';
import { SectionBadge } from '@/components/common/badges';
import { partners } from './data';

Expand All @@ -7,15 +8,15 @@ const KnowledgePartners = () => {
<div className="w-full flex flex-col py-6 px-10 lg:px-24 gap-y-10">
<SectionBadge id="knowledge-partners">Knowledge Partners</SectionBadge>
<div className="grid grid-cols-1 xxs:grid-cols-2 sm:grid-cols-4 gap-8">
{partners.map(({ name, logo: Logo, link }) => (
{partners.map(({ name, logo: Logo, link, classNames }) => (
<a
key={name}
href={link}
target="_blank"
rel="noopener noreferrer"
className="bg-white w-full aspect-square flex flex-col items-center justify-center rounded-3xl p-8 xxs:p-4 xs:p-6 md:p-7 xl:p-12 text-white animated-border from-black to-white">
{name && Logo ? (
<Logo className="w-full" />
<Logo className={twMerge('w-full', classNames)} />
) : (
<RxQuestionMark className="h-full w-7/12 text-black" strokeWidth={0} />
)}
Expand Down

0 comments on commit 348c826

Please sign in to comment.