Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(SponsorsTable): adds current community sponsors #551

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function Layout({
<div className='image-background'>
<Header />
<section className='content'>{children}</section>
{/* <SponsorTable isVisible={areSponsorVisible()}/> */}
<SponsorTable isVisible={areSponsorVisible()}/>
</div>
</main>
<Footer />
Expand Down
52 changes: 52 additions & 0 deletions components/SponsorTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,37 @@ type TSponsorTable = {
isVisible: boolean
};

interface CommunitySponsor {
href: string;
src: string;
alt: string;
width?: number;
height?: number;
}

const communitySponsors: CommunitySponsor[] = [
{
href: "https://www.theredcode.it/",
src: "/the-red-code.png",
alt: "TheRedCode",
width: 300,
},
{
href: "https://kube.events/",
src: "/kube-events.svg",
alt: "KubeEvents Logo",
width: 100,
height: 100
},
{
href: "https://kube.careers/",
src: "/kube-careers.svg",
alt: "KubeCareers Logo",
width: 80,
height: 80
}
];

const SponsorTable = ({isVisible}: TSponsorTable) => {
if (isVisible) {
return (
Expand Down Expand Up @@ -216,6 +247,27 @@ const SponsorTable = ({isVisible}: TSponsorTable) => {
<a href="https://www.securitycert.it/" target="_blank" rel="noreferrer">
<Image width={150} height={150} src="/Logo_Securitycert.svg" alt="SecurityCert"/>
</a>
<a href="https://www.stickermule.com/it/adesivi-personalizzati" target="_blank" rel="noreferrer">
<Image width={200} height={200} src="/stickermule_logo.svg" alt="Stickermule"/>
</a>
<a href="https://www.treedom.net/" target="_blank" rel="noreferrer">
<Image width={175} height={100} src="/treedom_logo.png" alt="Treedom" />
</a>
</div> */}
<h3 className="sponsors_tier">Community</h3>
<div className="sponsors_logo">
{communitySponsors.map(({ href, src, alt, width, height }) => {
return (
<a key={href} href={href} target="_blank" rel="noreferrer">
<Image
width={width ?? 80}
height={height ?? 80}
src={src}
alt={alt}
/>
</a>
);
})}
</div>
{/*
<h3 className="sponsors_tier">Patronage</h3>
Expand Down
File renamed without changes
File renamed without changes
Binary file added public/the-red-code.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 removed public/the-red-code_logo.png
Binary file not shown.