Skip to content

Commit

Permalink
feat: add dicoding logo (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
interstellardeer authored Oct 11, 2024
1 parent ab32296 commit 4236940
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Binary file added src/assets/sponsors/LogoDicoding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions src/components/common/sponsor-media-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import LogoAlloBank from "@/assets/sponsors/LogoAlloBank.png";
import LogoKahf from "@/assets/sponsors/LogoKahf.png"
import LogoRuru from "@/assets/sponsors/LogoRuru.jpg"
import LogoMenyala from "@/assets/sponsors/LogoMenyala.png"
import LogoDicoding from "@/assets/sponsors/LogoDicoding.png"

type SponsorMediaPartner = {
name: string;
Expand All @@ -20,6 +21,10 @@ const sponsorMediaPartners: SponsorMediaPartner[] = [
name: "PT Allo Bank Indonesia Tbk",
logo: LogoAlloBank,
},
{
name: "PT Dicoding Akademi Indonesia",
logo: LogoDicoding,
},
{
name: "Menyala by OCBC",
logo: LogoRuru,
Expand All @@ -28,19 +33,20 @@ const sponsorMediaPartners: SponsorMediaPartner[] = [
name: "Ruru Snack",
logo: LogoMenyala,
},

];

const firstRow = sponsorMediaPartners.slice(0, sponsorMediaPartners.length / 2);
const secondRow = sponsorMediaPartners.slice(sponsorMediaPartners.length / 2);

const SponsorMediaPartnerCard = ({ logo }: { logo: StaticImageData | null }) => {
return (
<figure className="relative aspect-video h full h-32 w-full w-auto cursor-pointer object-contain object-center overflow-hidden flex items-center justify-center rounded-xl p-4">
<figure className="relative aspect-video h-36 w-full w-auto cursor-pointer object-center overflow-hidden flex items-center justify-center rounded-xl p-4">
{logo &&
<Image
src={logo}
alt="Sponsor or Media Partner Logo"
style={{ maxHeight: '150%', maxWidth: '100%' }}
style={{ maxHeight: '100%', maxWidth: '100%' }}
/>}
</figure>
);
Expand Down

0 comments on commit 4236940

Please sign in to comment.