This commit is contained in:
DrMelone
2025-12-20 18:28:11 +01:00
parent 96df144336
commit 40c38b5ef6
5 changed files with 25 additions and 25 deletions

View File

@@ -4,19 +4,19 @@ import { useEffect, useState } from "react";
export const SidebarBanners = () => {
const items = [
{
imgSrc: '/sponsors/banners/openwebui-banner.png',
mobileImgSrc: '/sponsors/banners/openwebui-banner-mobile.png',
url: 'https://docs.openwebui.com/enterprise',
name: 'Open WebUI Inc.',
imgSrc: "/sponsors/banners/openwebui-banner.png",
mobileImgSrc: "/sponsors/banners/openwebui-banner-mobile.png",
url: "https://docs.openwebui.com/enterprise",
name: "Open WebUI Inc.",
description:
'Upgrade to a licensed plan for enhanced capabilities, including custom theming and branding, and dedicated support.'
"Upgrade to a licensed plan for enhanced capabilities, including custom theming and branding, and dedicated support."
},
{
imgSrc: '/sponsors/banners/openwebui-banner.png',
mobileImgSrc: '/sponsors/banners/openwebui-banner-mobile.png',
url: 'https://careers.openwebui.com',
name: 'Open WebUI Inc.',
description: '**We are hiring!** Shape the way humanity engages with _intelligence_.'
imgSrc: "/sponsors/banners/openwebui-banner.png",
mobileImgSrc: "/sponsors/banners/openwebui-banner-mobile.png",
url: "https://careers.openwebui.com",
name: "Open WebUI Inc.",
description: "**We are hiring!** Shape the way humanity engages with _intelligence_."
},
];

View File

@@ -1,4 +1,4 @@
import {marked} from 'marked';
import { marked } from "marked";
export const SidebarBanner = ({ item }) => {
return (
@@ -18,7 +18,7 @@ export const SidebarBanner = ({ item }) => {
</a>
<div className="mt-1 line-clamp-2 text-right text-xs font-medium text-gray-600 dark:text-gray-300">
<div dangerouslySetInnerHTML={{__html: marked(item.description)}} />
<div dangerouslySetInnerHTML={{ __html: marked(item.description) }} />
</div>
</div>
</div>

View File

@@ -1,4 +1,4 @@
import {marked} from 'marked';
import { marked } from "marked";
export const TopBanner = ({
item,
@@ -51,7 +51,7 @@ export const TopBanner = ({
{description && (
<div className="mt-1 line-clamp-1 text-right text-xs font-semibold text-gray-600 dark:text-gray-300">
<div dangerouslySetInnerHTML={{__html: marked(item.description)}} />
<div dangerouslySetInnerHTML={{ __html: marked(item.description) }} />
</div>
)}
</div>

View File

@@ -9,19 +9,19 @@ export const TopBanners = ({
}) => {
const items = [
{
imgSrc: '/sponsors/banners/openwebui-banner.png',
mobileImgSrc: '/sponsors/banners/openwebui-banner-mobile.png',
url: 'https://docs.openwebui.com/enterprise',
name: 'Open WebUI Inc.',
imgSrc: "/sponsors/banners/openwebui-banner.png",
mobileImgSrc: "/sponsors/banners/openwebui-banner-mobile.png",
url: "https://docs.openwebui.com/enterprise",
name: "Open WebUI Inc.",
description:
'Upgrade to a licensed plan for enhanced capabilities, including custom theming and branding, and dedicated support.'
"Upgrade to a licensed plan for enhanced capabilities, including custom theming and branding, and dedicated support."
},
{
imgSrc: '/sponsors/banners/openwebui-banner.png',
mobileImgSrc: '/sponsors/banners/openwebui-banner-mobile.png',
url: 'https://careers.openwebui.com',
name: 'Open WebUI Inc.',
description: '**We are hiring!** Shape the way humanity engages with _intelligence_.'
imgSrc: "/sponsors/banners/openwebui-banner.png",
mobileImgSrc: "/sponsors/banners/openwebui-banner-mobile.png",
url: "https://careers.openwebui.com",
name: "Open WebUI Inc.",
description: "**We are hiring!** Shape the way humanity engages with _intelligence_."
},
];

View File

@@ -16,7 +16,7 @@ export default function ContentWrapper(props: Props): JSX.Element {
</div>
<div className="mt-3 min-[996px]:hidden">
<TopBanners bannerClassName={"h-10"} label={false} mobile={false} />
<TopBanners bannerClassName="h-10" label={false} mobile={false} />
</div>
</div>
</div>