mirror of
https://github.com/open-webui/docs
synced 2025-05-19 18:58:41 +00:00
feat: mobile banner
This commit is contained in:
parent
37e211c23d
commit
25235fb30d
@ -11,6 +11,7 @@ import { TopBanner } from "@site/src/components/Sponsors/TopBanner";
|
||||
items={[
|
||||
{
|
||||
imgSrc: "/ads/pipelines-banner.png",
|
||||
mobileImgSrc: "/ads/pipelines-banner-mobile.png",
|
||||
url: "https://github.com/open-webui/pipelines",
|
||||
name: "Open WebUI Pipelines",
|
||||
description:
|
||||
@ -18,6 +19,7 @@ import { TopBanner } from "@site/src/components/Sponsors/TopBanner";
|
||||
},
|
||||
{
|
||||
imgSrc: "/ads/placeholder.png",
|
||||
mobileImgSrc: "/ads/placeholder-mobile.png",
|
||||
url: "https://github.com/sponsors/tjbck",
|
||||
name: "Open WebUI",
|
||||
description:
|
||||
|
@ -10,14 +10,21 @@ export const TopBanner = ({ items }) => {
|
||||
|
||||
<a href={item.url} target="_blank">
|
||||
<img
|
||||
className="w-full rounded-xl"
|
||||
className="w-full rounded-xl hidden md:block"
|
||||
loading="lazy"
|
||||
alt={item.name}
|
||||
src={item.imgSrc}
|
||||
/>
|
||||
|
||||
<img
|
||||
className="w-full rounded-xl block md:hidden"
|
||||
loading="lazy"
|
||||
alt={item.name}
|
||||
src={item?.mobileImgSrc || item.imgSrc}
|
||||
/>
|
||||
</a>
|
||||
|
||||
<div className="text-right text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold -mt-1 line-clamp-1">
|
||||
<div className="text-right text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold line-clamp-1">
|
||||
{item.description}
|
||||
</div>
|
||||
</div>
|
||||
|
BIN
static/ads/pipelines-banner-mobile.png
Normal file
BIN
static/ads/pipelines-banner-mobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
static/ads/placeholder-mobile.png
Normal file
BIN
static/ads/placeholder-mobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 33 KiB |
Loading…
Reference in New Issue
Block a user