Skip to content

Commit c82aeee

Browse files
committed
menu update
1 parent 61f4386 commit c82aeee

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

ui/components/dashboard-layout.tsx

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,42 @@ export function DashboardLayout({ children }: DashboardLayoutProps) {
120120
<div className="flex h-screen bg-background">
121121
{/* Sidebar */}
122122
<div className={`${sidebarOpen ? 'w-64' : 'w-0'} transition-all duration-300 overflow-hidden bg-card border-r flex flex-col h-screen`}>
123-
<div className="p-4 flex items-center gap-3">
124-
{/* Kubernetes Logo SVG */}
125-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" className="flex-shrink-0">
126-
<path d="M15.9998 1.04004L15.6998 1.17004C15.0398 1.43004 14.5298 2.04004 14.3798 2.73004L13.0798 8.93004C11.5798 9.24004 10.1598 9.78004 8.84976 10.51L3.44976 8.05004C2.78976 7.74004 1.99976 7.82004 1.42976 8.25004C0.859756 8.68004 0.579756 9.39004 0.709756 10.09L1.85976 15.81C0.809756 17.46 0.809756 19.54 1.85976 21.19L0.709756 26.91C0.579756 27.61 0.859756 28.32 1.42976 28.75C1.99976 29.18 2.78976 29.26 3.44976 28.95L8.84976 26.49C10.1598 27.22 11.5798 27.76 13.0798 28.07L14.3798 31.27C14.5298 31.96 15.0398 32.57 15.6998 32.83L15.9998 32.96L16.2998 32.83C16.9598 32.57 17.4698 31.96 17.6198 31.27L18.9198 28.07C20.4198 27.76 21.8398 27.22 23.1498 26.49L28.5498 28.95C29.2098 29.26 29.9998 29.18 30.5698 28.75C31.1398 28.32 31.4198 27.61 31.2898 26.91L30.1398 21.19C31.1898 19.54 31.1898 17.46 30.1398 15.81L31.2898 10.09C31.4198 9.39004 31.1398 8.68004 30.5698 8.25004C29.9998 7.82004 29.2098 7.74004 28.5498 8.05004L23.1498 10.51C21.8398 9.78004 20.4198 9.24004 18.9198 8.93004L17.6198 2.73004C17.4698 2.04004 16.9598 1.43004 16.2998 1.17004L15.9998 1.04004Z" fill="#326CE5"/>
127-
<path d="M15.9998 11C13.2398 11 10.9998 13.24 10.9998 16C10.9998 18.76 13.2398 21 15.9998 21C18.7598 21 20.9998 18.76 20.9998 16C20.9998 13.24 18.7598 11 15.9998 11Z" fill="white"/>
123+
<div className="p-4 flex w-full items-center justify-center">
124+
<svg
125+
xmlns="http://www.w3.org/2000/svg"
126+
width={172}
127+
height={54}
128+
fill="none"
129+
className="text-foreground"
130+
>
131+
<path
132+
fill="currentColor"
133+
d="M111.602 45.092c0-.578.118-1.09.355-1.536a2.654 2.654 0 0 1 2.371-1.41c.376 0 .745.084 1.107.251.369.16.661.376.877.648v-2.779h1.201v7.73h-1.201v-.868a2.218 2.218 0 0 1-.814.69 2.485 2.485 0 0 1-1.181.271c-.501 0-.961-.125-1.378-.376a2.792 2.792 0 0 1-.982-1.065 3.345 3.345 0 0 1-.355-1.556Zm4.71.02c0-.396-.083-.74-.25-1.033a1.678 1.678 0 0 0-1.494-.898 1.67 1.67 0 0 0-.856.23 1.68 1.68 0 0 0-.648.657c-.16.286-.24.627-.24 1.024s.08.745.24 1.044c.167.3.383.53.648.69a1.716 1.716 0 0 0 1.712 0c.265-.154.477-.377.638-.669.167-.3.25-.647.25-1.044Zm2.368-.02c0-.578.119-1.09.355-1.536a2.654 2.654 0 0 1 2.361-1.41c.452 0 .846.09 1.18.272.341.174.613.393.815.658v-.836h1.201v5.755h-1.201v-.856a2.365 2.365 0 0 1-.825.679 2.546 2.546 0 0 1-1.191.271c-.494 0-.947-.125-1.358-.376a2.792 2.792 0 0 1-.982-1.065 3.357 3.357 0 0 1-.355-1.556Zm4.711.02a2.05 2.05 0 0 0-.251-1.033 1.69 1.69 0 0 0-.637-.669 1.682 1.682 0 0 0-.857-.23 1.68 1.68 0 0 0-.856.23c-.265.146-.48.366-.648.658-.16.286-.24.627-.24 1.024s.08.745.24 1.044c.168.3.383.53.648.69a1.719 1.719 0 0 0 1.713 0 1.69 1.69 0 0 0 .637-.669c.167-.3.251-.647.251-1.044Zm4.853 2.977c-.452 0-.859-.08-1.222-.24a2.21 2.21 0 0 1-.846-.668 1.698 1.698 0 0 1-.334-.95h1.233a.86.86 0 0 0 .344.615c.216.16.484.24.805.24.334 0 .591-.062.772-.187.188-.133.282-.3.282-.502 0-.216-.104-.376-.313-.48-.202-.105-.526-.22-.971-.345a9.377 9.377 0 0 1-1.055-.345 1.89 1.89 0 0 1-.71-.511c-.195-.23-.293-.533-.293-.909 0-.306.091-.585.272-.836.181-.257.438-.459.773-.605a2.93 2.93 0 0 1 1.169-.22c.655 0 1.181.167 1.578.502.403.327.619.776.647 1.347h-1.191a.844.844 0 0 0-.313-.616c-.188-.153-.442-.23-.762-.23-.314 0-.554.06-.721.178a.55.55 0 0 0-.251.47.51.51 0 0 0 .167.386c.112.105.248.188.408.25.16.056.397.13.71.22a6.84 6.84 0 0 1 1.024.345c.271.111.504.278.699.501.195.223.296.519.303.888 0 .327-.09.62-.271.877-.181.258-.439.46-.773.606-.327.146-.714.22-1.16.22Zm6.467-5.943c.439 0 .829.094 1.17.282.348.188.62.467.815.836.202.369.303.815.303 1.337v3.394h-1.181v-3.217c0-.515-.128-.908-.386-1.18-.258-.278-.609-.418-1.055-.418-.445 0-.801.14-1.065.418-.258.272-.387.665-.387 1.18v3.217h-1.19v-7.728h1.19v2.642c.202-.244.456-.432.763-.564a2.6 2.6 0 0 1 1.023-.199Zm4.997.95c.202-.278.477-.504.825-.678a2.56 2.56 0 0 1 1.18-.272c.509 0 .968.122 1.379.366.411.244.735.592.971 1.044.237.446.355.958.355 1.536 0 .578-.118 1.096-.355 1.556a2.685 2.685 0 0 1-.981 1.065c-.411.25-.867.376-1.369.376a2.64 2.64 0 0 1-1.19-.26 2.293 2.293 0 0 1-.815-.67v.836h-1.191v-7.728h1.191v2.83Zm3.499 1.996c0-.397-.084-.738-.251-1.024a1.595 1.595 0 0 0-.647-.658 1.716 1.716 0 0 0-1.713 0 1.758 1.758 0 0 0-.648.669c-.16.292-.24.637-.24 1.034s.08.745.24 1.044c.167.293.383.515.648.669a1.716 1.716 0 0 0 1.713 0c.271-.16.487-.39.647-.69.167-.3.251-.647.251-1.044Zm4.885 2.997a2.983 2.983 0 0 1-1.473-.365 2.717 2.717 0 0 1-1.034-1.045c-.25-.452-.376-.974-.376-1.566 0-.585.129-1.104.387-1.557.257-.452.609-.8 1.055-1.044a3.057 3.057 0 0 1 1.493-.366c.55 0 1.048.122 1.494.366a2.68 2.68 0 0 1 1.055 1.044c.257.453.386.972.386 1.557 0 .584-.132 1.103-.397 1.556a2.768 2.768 0 0 1-1.086 1.055 3.122 3.122 0 0 1-1.504.365Zm0-1.034c.306 0 .592-.073.856-.22a1.65 1.65 0 0 0 .658-.657c.168-.292.251-.648.251-1.065 0-.418-.08-.77-.24-1.055a1.617 1.617 0 0 0-.637-.658 1.744 1.744 0 0 0-.857-.22c-.306 0-.591.074-.856.22a1.566 1.566 0 0 0-.616.658c-.153.285-.23.637-.23 1.055 0 .62.157 1.1.47 1.44.32.335.721.502 1.201.502Zm3.767-1.963c0-.578.119-1.09.355-1.536a2.654 2.654 0 0 1 2.361-1.41c.452 0 .846.09 1.18.272.341.174.613.393.815.658v-.836h1.201v5.755h-1.201v-.856a2.365 2.365 0 0 1-.825.679 2.546 2.546 0 0 1-1.191.271c-.494 0-.947-.125-1.358-.376a2.792 2.792 0 0 1-.982-1.065 3.357 3.357 0 0 1-.355-1.556Zm4.711.02a2.05 2.05 0 0 0-.251-1.033 1.69 1.69 0 0 0-.637-.669 1.682 1.682 0 0 0-.857-.23 1.68 1.68 0 0 0-.856.23c-.265.146-.48.366-.648.658-.16.286-.24.627-.24 1.024s.08.745.24 1.044c.168.3.383.53.648.69a1.719 1.719 0 0 0 1.713 0 1.69 1.69 0 0 0 .637-.669c.167-.3.251-.647.251-1.044Zm3.955-2.036c.174-.293.404-.519.69-.679.292-.167.637-.25 1.034-.25v1.232h-.303c-.467 0-.822.118-1.066.355-.236.237-.355.648-.355 1.232v3.03h-1.19V42.24h1.19v.836Zm2.421 2.016c0-.578.119-1.09.355-1.536a2.654 2.654 0 0 1 2.371-1.41c.376 0 .745.084 1.107.251.369.16.662.376.878.648v-2.779h1.201v7.73h-1.201v-.868a2.222 2.222 0 0 1-.815.69 2.481 2.481 0 0 1-1.18.271 2.63 2.63 0 0 1-1.379-.376 2.792 2.792 0 0 1-.982-1.065 3.357 3.357 0 0 1-.355-1.556Zm4.711.02a2.05 2.05 0 0 0-.251-1.033 1.69 1.69 0 0 0-.637-.669 1.682 1.682 0 0 0-.857-.23 1.68 1.68 0 0 0-.856.23 1.68 1.68 0 0 0-.648.658c-.16.286-.24.627-.24 1.024s.08.745.24 1.044c.167.3.383.53.648.69a1.716 1.716 0 0 0 1.713 0 1.69 1.69 0 0 0 .637-.669c.167-.3.251-.647.251-1.044Z"
134+
/>
135+
<path
136+
fill="url(#a)"
137+
fillRule="evenodd"
138+
d="M7.41 41.348V17.575l5.736-4.063v12.292l7.411-5.18V0L0 14.223v32.306l7.41-5.181ZM26.192 12.19v23.772l-5.736 4.064V27.734l-7.41 5.182v20.623l20.557-14.223V7.01l-7.41 5.18Z"
139+
clipRule="evenodd"
140+
/>
141+
<path
142+
fill="currentColor"
143+
d="M61.754 18.716v17.01h-3.411V28.49h-7.287v7.238h-3.412v-17.01h3.412v6.994h7.287v-6.995h3.411Zm16.274 3.51L69.67 42.112h-3.632l2.925-6.727-5.41-13.16h3.826l3.485 9.432 3.533-9.431h3.631Zm5.251 1.95c.44-.618 1.04-1.13 1.804-1.536.78-.422 1.665-.634 2.656-.634 1.154 0 2.194.285 3.12.853.942.569 1.681 1.381 2.217 2.437.553 1.04.829 2.25.829 3.631 0 1.381-.276 2.608-.829 3.68-.536 1.056-1.275 1.877-2.217 2.462-.926.585-1.966.877-3.12.877-.99 0-1.868-.203-2.632-.61a5.648 5.648 0 0 1-1.828-1.535v8.36h-3.411V22.225h3.412v1.95Zm7.14 4.751c0-.812-.17-1.51-.51-2.095-.326-.602-.764-1.056-1.317-1.365a3.455 3.455 0 0 0-1.754-.463c-.618 0-1.203.162-1.755.487-.536.309-.975.764-1.316 1.365-.325.601-.487 1.308-.487 2.12 0 .813.162 1.52.487 2.12.341.602.78 1.064 1.316 1.39a3.543 3.543 0 0 0 1.755.463c.633 0 1.218-.163 1.754-.488a3.503 3.503 0 0 0 1.316-1.389c.341-.601.512-1.316.512-2.145Zm18.516-.243c0 .487-.033.926-.098 1.316h-9.87c.082.974.423 1.738 1.024 2.29.601.553 1.34.83 2.218.83 1.267 0 2.168-.545 2.705-1.634h3.68c-.39 1.3-1.138 2.372-2.243 3.217-1.104.829-2.461 1.243-4.069 1.243-1.3 0-2.47-.284-3.51-.853a6.277 6.277 0 0 1-2.412-2.461c-.569-1.056-.853-2.275-.853-3.656 0-1.397.284-2.624.853-3.68a5.951 5.951 0 0 1 2.388-2.437c1.024-.568 2.201-.853 3.534-.853 1.283 0 2.429.277 3.436.829a5.723 5.723 0 0 1 2.364 2.364c.568 1.007.853 2.169.853 3.485Zm-3.534-.975c-.016-.877-.333-1.576-.95-2.096-.618-.536-1.373-.804-2.267-.804-.845 0-1.559.26-2.144.78-.569.503-.918 1.21-1.048 2.12h6.409Zm9.436-3.387a4.82 4.82 0 0 1 1.706-1.682c.715-.406 1.527-.61 2.437-.61v3.583h-.902c-1.072 0-1.885.252-2.437.756-.536.503-.804 1.38-.804 2.632v6.726h-3.412V22.226h3.412v2.096Zm25.157-2.096-3.948 13.5h-3.68l-2.461-9.43-2.462 9.43h-3.704l-3.972-13.5h3.46l2.389 10.284 2.583-10.284h3.607l2.534 10.26 2.388-10.26h3.266Zm14.396 6.458c0 .487-.032.926-.097 1.316h-9.87c.081.974.423 1.738 1.024 2.29.601.553 1.34.83 2.217.83 1.268 0 2.169-.545 2.705-1.634h3.68c-.39 1.3-1.137 2.372-2.242 3.217-1.105.829-2.461 1.243-4.07 1.243-1.3 0-2.469-.284-3.509-.853a6.274 6.274 0 0 1-2.412-2.461c-.569-1.056-.853-2.275-.853-3.656 0-1.397.284-2.624.853-3.68a5.944 5.944 0 0 1 2.388-2.437c1.023-.568 2.201-.853 3.533-.853 1.284 0 2.429.277 3.437.829a5.723 5.723 0 0 1 2.364 2.364c.568 1.007.852 2.169.852 3.485Zm-3.533-.975c-.016-.877-.333-1.576-.951-2.096-.617-.536-1.372-.804-2.266-.804-.845 0-1.56.26-2.145.78-.568.503-.918 1.21-1.047 2.12h6.409Zm9.436-3.51c.438-.65 1.039-1.177 1.803-1.583.78-.407 1.665-.61 2.656-.61 1.154 0 2.194.285 3.12.853.942.569 1.681 1.381 2.217 2.437.553 1.04.829 2.25.829 3.631 0 1.381-.276 2.608-.829 3.68-.536 1.056-1.275 1.877-2.217 2.462-.926.585-1.966.877-3.12.877-1.007 0-1.892-.195-2.656-.585-.747-.406-1.348-.926-1.803-1.56v1.926h-3.412V17.693h3.412V24.2Zm7.14 4.728c0-.812-.171-1.51-.512-2.095-.325-.602-.763-1.056-1.316-1.365a3.454 3.454 0 0 0-1.754-.463c-.618 0-1.203.162-1.755.487-.536.309-.975.764-1.316 1.365-.325.601-.487 1.308-.487 2.12 0 .813.162 1.52.487 2.12.341.602.78 1.064 1.316 1.39a3.542 3.542 0 0 0 1.755.463c.633 0 1.218-.163 1.754-.488a3.5 3.5 0 0 0 1.316-1.389c.341-.601.512-1.316.512-2.145Z"
144+
/>
145+
<defs>
146+
<linearGradient
147+
id="a"
148+
x1={16.801}
149+
x2={16.801}
150+
y1={0}
151+
y2={53.539}
152+
gradientUnits="userSpaceOnUse"
153+
>
154+
<stop stopColor="#1EC9FF" />
155+
<stop offset={1} stopColor="#1E78FF" />
156+
</linearGradient>
157+
</defs>
128158
</svg>
129-
<h1 className="text-2xl font-bold text-primary">K8s Dashboard</h1>
130159
</div>
131160
<nav className="flex-1 mt-8 pb-4 overflow-y-auto">
132161
{navigationItems.map((item) => {

0 commit comments

Comments
 (0)