mirror of
https://github.com/open-webui/docs
synced 2025-05-18 18:32: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 = {
|
||||
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",
|
||||
|
||||
// Set the production url of your site here
|
||||
|
@ -10,14 +10,14 @@ export const TopBanner = ({ items }) => {
|
||||
|
||||
<a href={item.url} target="_blank">
|
||||
<img
|
||||
className="hidden w-full rounded-xl md:block"
|
||||
className="hidden w-full rounded-xl md:block h-16 object-cover"
|
||||
loading="lazy"
|
||||
alt={item.name}
|
||||
src={item.imgSrc}
|
||||
/>
|
||||
|
||||
<img
|
||||
className="block w-full rounded-xl md:hidden"
|
||||
className="block w-full rounded-xl md:hidden h-16 object-cover"
|
||||
loading="lazy"
|
||||
alt={item.name}
|
||||
src={item?.mobileImgSrc || item.imgSrc}
|
||||
|
@ -16,7 +16,7 @@ export const TopBanners = () => {
|
||||
url: "mailto:sales@openwebui.com?subject=Sponsorship Inquiry: Open WebUI",
|
||||
name: "Open WebUI",
|
||||
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