mirror of
https://github.com/open-webui/docs
synced 2025-06-16 11:28:36 +00:00
doc: sponsors
This commit is contained in:
21
src/components/SponsorList.js
Normal file
21
src/components/SponsorList.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Sponsor } from "@site/src/components/Sponsors/Sponsor";
|
||||
|
||||
export const SponsorList = () => {
|
||||
const sponsors = [
|
||||
{
|
||||
imgSrc: "/sponsors/sponsor.png",
|
||||
url: "https://openwebui.com",
|
||||
name: "Open WebUI",
|
||||
description:
|
||||
"On a mission to build the best open-source AI user interface.",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className=" flex gap-5 flex-wrap items-center justify-center">
|
||||
{sponsors.map((sponsor) => (
|
||||
<Sponsor sponsor={sponsor} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
32
src/components/Sponsors/Sponsor.js
Normal file
32
src/components/Sponsors/Sponsor.js
Normal file
@@ -0,0 +1,32 @@
|
||||
export const Sponsor = ({ sponsor }) => {
|
||||
return (
|
||||
<>
|
||||
<div className="flex flex-col mb-2 ">
|
||||
<div className="text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold underline mb-1.5">
|
||||
<a href={sponsor.url} target="_blank">
|
||||
{sponsor.name}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<a a href={sponsor.url} target="_blank">
|
||||
<div className="flex w-32 md:w-48 gap-2.5 items-start">
|
||||
<div className=" basis-1/2">
|
||||
<img
|
||||
className="rounded-xl "
|
||||
loading="lazy"
|
||||
alt={sponsor.name}
|
||||
src={sponsor.imgSrc}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className=" basis-1/2 flex">
|
||||
<div className=" text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold line-clamp-4 md:line-clamp-5 no-underline">
|
||||
{sponsor.description}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user