docs/src/components/TopBanners.tsx
Timothy Jaeryang Baek b3b2e2fe5b Update TopBanners.tsx
2025-03-27 19:38:12 -07:00

28 lines
944 B
TypeScript

import { TopBanner } from "@site/src/components/Sponsors/TopBanner";
export const TopBanners = () => {
const items = [
{
imgSrc: "/sponsors/banners/openwebui-banner.png",
mobileImgSrc: "/sponsors/banners/openwebui-banner-mobile.png",
url: "https://openwebui.com",
name: "Open WebUI Community",
description:
"Join our growing community! Sign up to gain access to exclusive models, tools, and functions.",
},
{
imgSrc: "/sponsors/banners/placeholder.png",
mobileImgSrc: "/sponsors/banners/placeholder-mobile.png",
url: "mailto:sales@openwebui.com?subject=Sponsorship Inquiry: Open WebUI",
name: "Open WebUI",
description:
"The top banner spot is reserved for only two Enterprise sponsors on a first-come, first-served basis",
},
];
// Randomly select an item to display
let selectedItemIdx = Math.floor(Math.random() * items.length);
return <TopBanner items={[items[selectedItemIdx]]} />;
};