mirror of
https://github.com/open-webui/docs
synced 2025-05-19 10:52:14 +00:00
refac
This commit is contained in:
parent
a9117d6483
commit
0cf522f2dd
@ -5,7 +5,7 @@ import { themes as prismThemes } from "prism-react-renderer";
|
|||||||
|
|
||||||
const config: Config = {
|
const config: Config = {
|
||||||
title: "Open WebUI",
|
title: "Open WebUI",
|
||||||
tagline: "ChatGPT-Style WebUI for LLMs (Formerly Ollama WebUI)",
|
tagline: "On a mission to build the best AI interface",
|
||||||
favicon: "images/favicon.png",
|
favicon: "images/favicon.png",
|
||||||
|
|
||||||
// Set the production url of your site here
|
// Set the production url of your site here
|
||||||
|
@ -10,14 +10,14 @@ export const TopBanner = ({ items }) => {
|
|||||||
|
|
||||||
<a href={item.url} target="_blank">
|
<a href={item.url} target="_blank">
|
||||||
<img
|
<img
|
||||||
className="hidden w-full rounded-xl md:block"
|
className="hidden w-full rounded-xl md:block h-16 object-cover"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
alt={item.name}
|
alt={item.name}
|
||||||
src={item.imgSrc}
|
src={item.imgSrc}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<img
|
<img
|
||||||
className="block w-full rounded-xl md:hidden"
|
className="block w-full rounded-xl md:hidden h-16 object-cover"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
alt={item.name}
|
alt={item.name}
|
||||||
src={item?.mobileImgSrc || item.imgSrc}
|
src={item?.mobileImgSrc || item.imgSrc}
|
||||||
|
@ -16,7 +16,7 @@ export const TopBanners = () => {
|
|||||||
url: "mailto:sales@openwebui.com?subject=Sponsorship Inquiry: Open WebUI",
|
url: "mailto:sales@openwebui.com?subject=Sponsorship Inquiry: Open WebUI",
|
||||||
name: "Open WebUI",
|
name: "Open WebUI",
|
||||||
description:
|
description:
|
||||||
"The top banner spot is reserved for only two Enterprise sponsors on a first-come, first-served basis",
|
"The top banner spot is reserved for Emerald+ Enterprise sponsors on a first-come, first-served basis",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
21
src/theme/Layout.tsx
Normal file
21
src/theme/Layout.tsx
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
import React from 'react';
|
||||||
|
import Layout from '@theme-original/Layout';
|
||||||
|
import { TopBanners } from '../components/TopBanners';
|
||||||
|
|
||||||
|
export default function CustomLayout(props) {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{/* <div className=' z-[1000]' >
|
||||||
|
<div className='w-full flex justify-center'>
|
||||||
|
<div className=' px-2 py-1'>
|
||||||
|
<TopBanners />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> */}
|
||||||
|
|
||||||
|
{/* Render the original layout (which includes the navbar and the rest) */}
|
||||||
|
<Layout {...props} />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user