Skip to content

Commit

Permalink
doc: sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 29, 2024
1 parent 073ed0c commit 439eb3d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ hide_title: true
---

import { TopBanners } from "@site/src/components/TopBanners";
import { SponsorList } from "@site/src/components/SponsorList";

<TopBanners />

Expand Down Expand Up @@ -147,3 +148,9 @@ docker run --rm --volume /var/run/docker.sock:/var/run/docker.sock containrrr/wa
In the last part of the command, replace `open-webui` with your container name if it is different.
Continue with the full [getting started guide](/getting-started).
## Sponsors 🙌
We are incredibly grateful for the generous support of our sponsors. Their contributions help us to maintain and improve our project, ensuring we can continue to deliver quality work to our community. Thank you!
<SponsorList />
21 changes: 21 additions & 0 deletions src/components/SponsorList.js
Original file line number Diff line number Diff line change
@@ -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 changes: 32 additions & 0 deletions src/components/Sponsors/Sponsor.js
Original file line number Diff line number Diff line change
@@ -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>
</>
);
};
Binary file added static/sponsors/sponsor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 439eb3d

Please sign in to comment.