From 0cf522f2dd608c3c7bcb078fccbe853ab0a097b9 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 6 Apr 2025 16:30:23 -0700 Subject: [PATCH] refac --- docusaurus.config.ts | 2 +- src/components/Sponsors/TopBanner.tsx | 4 ++-- src/components/TopBanners.tsx | 2 +- src/theme/Layout.tsx | 21 +++++++++++++++++++++ 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 src/theme/Layout.tsx diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 8efa918..bae2306 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -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 diff --git a/src/components/Sponsors/TopBanner.tsx b/src/components/Sponsors/TopBanner.tsx index 786c408..821bc0b 100644 --- a/src/components/Sponsors/TopBanner.tsx +++ b/src/components/Sponsors/TopBanner.tsx @@ -10,14 +10,14 @@ export const TopBanner = ({ items }) => { {item.name} {item.name} { 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", }, ]; diff --git a/src/theme/Layout.tsx b/src/theme/Layout.tsx new file mode 100644 index 0000000..671fe95 --- /dev/null +++ b/src/theme/Layout.tsx @@ -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 ( + <> + {/*
+
+
+ +
+
+
*/} + + {/* Render the original layout (which includes the navbar and the rest) */} + + + ); +}