refac
Some checks are pending
Deploy site to Pages / build (push) Waiting to run
Deploy site to Pages / deploy (push) Blocked by required conditions

This commit is contained in:
Timothy Jaeryang Baek 2025-04-06 16:30:23 -07:00
parent a9117d6483
commit 0cf522f2dd
4 changed files with 25 additions and 4 deletions

View File

@ -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

View File

@ -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}

View File

@ -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
View 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} />
</>
);
}