PragmaTwice commented on code in PR #281:
URL:
https://github.com/apache/kvrocks-controller/pull/281#discussion_r2003615349
##########
webui/src/app/ui/banner.tsx:
##########
@@ -30,18 +37,69 @@ const links = [
title: 'Namespaces'
},{
url: 'https://kvrocks.apache.org',
- title: 'community',
+ title: 'Documentation',
_blank: true
},
-]
+];
export default function Banner() {
- return (<AppBar>
- <Container maxWidth={false}>
- <Toolbar className="space-x-4">
- <Image src="/logo.svg" width={40} height={40}
alt='logo'></Image>
- <NavLinks links={links}/>
- </Toolbar>
- </Container>
- </AppBar>)
+ const { isDarkMode, toggleTheme } = useTheme();
+ const pathname = usePathname();
+
+ // Generate breadcrumb from pathname
+ const breadcrumbs = pathname.split('/').filter(Boolean);
+
+ return (
+ <AppBar position="fixed" elevation={1} className="bg-white
dark:bg-dark-paper text-gray-800 dark:text-gray-100">
+ <Container maxWidth={false}>
+ <Toolbar className="flex justify-between">
+ <div className="flex items-center">
+ <Image src="/logo.svg" width={40} height={40}
alt='logo' className="mr-4" />
+ <Typography variant="h6" component="div"
className="hidden sm:block font-medium text-primary dark:text-primary-light">
+ Kvrocks Controller
Review Comment:
```suggestion
Apache Kvrocks Controller
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]