Skip to content

Commit

Permalink
Supported By section done
Browse files Browse the repository at this point in the history
  • Loading branch information
Smitkhobragade committed Nov 18, 2024
1 parent cf7b5e8 commit 7002d34
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
Binary file added public/assets/SupportedBy/GitBookLight_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src/Page/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,56 @@ const TechFeatures = () => {
);
};

const supporters = [
{ name: 'Digital Ocean', logo: '/assets/SupportedBy/DigitalOcean.png' },
{ name: 'Git Book', logo: '/assets/SupportedBy/GitBookLight_1.png' },
{ name: 'Melt CD', logo: '/assets/SupportedBy/meltcd.png' },
{ name: 'Microsoft for Startups', logo: '/assets/SupportedBy/MicrosoftForStartups.png' },
{ name: 'MSME', logo: '/assets/SupportedBy/MSME.png' },
{ name: 'Notion', logo: '/assets/SupportedBy/Notion.png' },
{ name: 'Peerlist', logo: '/assets/SupportedBy/Peerlist.png' },
{ name: 'Product Hunt', logo: '/assets/SupportedBy/ProductHunt.png' },
{ name: 'Vercel', logo: '/assets/SupportedBy/Vercel.png' },
];

const SupportedBy = () => {
return (
<div className="my-10 py-10">
<h2 className="my-10 text-center text-4xl font-bold text-[#00a6fb]">Supported By</h2>

<div className="relative mx-auto flex max-w-[99vw] overflow-x-hidden">
{/* First Marquee */}
<div className="animate-marquee flex space-x-8">
{supporters.map((sponsor, index) => (
<div key={index} className="flex h-[100px] w-[200px] flex-shrink-0 items-center justify-center">
<img src={sponsor.logo} alt={sponsor.name} className="h-full w-auto object-contain" />
</div>
))}
</div>

{/* Second Marquee */}
<div className="animate-marquee2 absolute top-0 flex space-x-8">
{supporters.map((sponsor, index) => (
<div
key={index + supporters.length}
className="flex h-[100px] w-[200px] flex-shrink-0 items-center justify-center"
>
<img src={sponsor.logo} alt={sponsor.name} className="h-full w-auto object-contain" />
</div>
))}
</div>
</div>
</div>
);
};

const Home = () => {
return (
<div className="background-wrapper bg-gray-400">
<Navbar />
<Hero />
<TechFeatures />
<SupportedBy />
</div>
);
};
Expand Down
26 changes: 26 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,29 @@ code {
animation-play-state: paused;
}
}

@keyframes marquee {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(-100%);
}
}

@keyframes marquee2 {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(0%);
}
}

.animate-marquee {
animation: marquee 25s linear infinite;
}

.animate-marquee2 {
animation: marquee2 25s linear infinite;
}

0 comments on commit 7002d34

Please sign in to comment.