mirror of
https://github.com/open-webui/docs
synced 2025-05-20 03:08:56 +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={[
|
items={[
|
||||||
{
|
{
|
||||||
imgSrc: "/ads/pipelines-banner.png",
|
imgSrc: "/ads/pipelines-banner.png",
|
||||||
|
mobileImgSrc: "/ads/pipelines-banner-mobile.png",
|
||||||
url: "https://github.com/open-webui/pipelines",
|
url: "https://github.com/open-webui/pipelines",
|
||||||
name: "Open WebUI Pipelines",
|
name: "Open WebUI Pipelines",
|
||||||
description:
|
description:
|
||||||
@ -18,6 +19,7 @@ import { TopBanner } from "@site/src/components/Sponsors/TopBanner";
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
imgSrc: "/ads/placeholder.png",
|
imgSrc: "/ads/placeholder.png",
|
||||||
|
mobileImgSrc: "/ads/placeholder-mobile.png",
|
||||||
url: "https://github.com/sponsors/tjbck",
|
url: "https://github.com/sponsors/tjbck",
|
||||||
name: "Open WebUI",
|
name: "Open WebUI",
|
||||||
description:
|
description:
|
||||||
|
@ -10,14 +10,21 @@ export const TopBanner = ({ items }) => {
|
|||||||
|
|
||||||
<a href={item.url} target="_blank">
|
<a href={item.url} target="_blank">
|
||||||
<img
|
<img
|
||||||
className="w-full rounded-xl"
|
className="w-full rounded-xl hidden md:block"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
alt={item.name}
|
alt={item.name}
|
||||||
src={item.imgSrc}
|
src={item.imgSrc}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<img
|
||||||
|
className="w-full rounded-xl block md:hidden"
|
||||||
|
loading="lazy"
|
||||||
|
alt={item.name}
|
||||||
|
src={item?.mobileImgSrc || item.imgSrc}
|
||||||
|
/>
|
||||||
</a>
|
</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}
|
{item.description}
|
||||||
</div>
|
</div>
|
||||||
</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