Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
600 changes: 179 additions & 421 deletions webui/src/app/globals.css

Large diffs are not rendered by default.

15 changes: 5 additions & 10 deletions webui/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import Banner from "./ui/banner";
import { Container } from "@mui/material";
import { ThemeProvider } from "./theme-provider";
import Footer from "./ui/footer";
import Breadcrumb from "./ui/breadcrumb";
import SpotlightSearch from "./ui/spotlight-search";

const inter = Inter({ subsets: ["latin"] });
const inter = Inter({ subsets: ["latin"], display: "swap" });

export const metadata: Metadata = {
title: "Apache Kvrocks Controller",
Expand All @@ -42,21 +41,17 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<body
className={`${inter.className} min-h-screen bg-light dark:bg-dark`}
className={`${inter.className} min-h-screen bg-surface-base text-text-primary antialiased dark:bg-surface-dark-base dark:text-text-dark-primary`}
suppressHydrationWarning
>
<ThemeProvider>
<SpotlightSearch />
<Banner />
<Container
sx={{ marginTop: "64px", height: "calc(100vh - 64px)" }}
maxWidth={false}
disableGutters
>
<div className="flex min-h-screen flex-col pt-[var(--lin-topbar-height)]">
<Breadcrumb />
{children}
<main className="flex-1">{children}</main>
<Footer />
</Container>
</div>
</ThemeProvider>
</body>
</html>
Expand Down
Loading
Loading