blazing-console/Layout/MainLayout.razor

46 lines
2.2 KiB
Text

@*
* Copyright 2024 Ivy Collective <sys@ivycollective.dev>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*@
@inherits LayoutComponentBase
<RequiresAuth>
<FluentLayout>
<BlazingHeader />
<FluentStack Orientation="Orientation.Horizontal" Width="100%">
<FluentNavMenu Width="250" Collapsible="true">
<FluentNavLink Href="/" Match="NavLinkMatch.All" Icon="@(new Icons.Regular.Size24.Home())">Home</FluentNavLink>
<FluentNavLink Href="/computers" Icon="@(new Icons.Regular.Size24.TabDesktopMultiple())">Computers</FluentNavLink>
<FluentNavGroup Title="Computer Docs" Href="/docs" Icon="@(new Icons.Regular.Size24.BracesVariable())">
<FluentNavLink Href="https://blazingsite.surge.sh/" Icon="@(new Icons.Regular.Size24.Book())">BlazingSite</FluentNavLink>
<FluentNavLink Href="https://blazing-api.bedcrab.dev/#docs" Icon="@(new Icons.Regular.Size24.Code())">BlazingAPI Docs</FluentNavLink>
</FluentNavGroup>
<FluentNavLink Href="/settings" Icon="@(new Icons.Regular.Size24.Settings())">Settings</FluentNavLink>
<FluentNavLink Href="/about" Icon="@(new Icons.Regular.Size24.Info())">About</FluentNavLink>
</FluentNavMenu>
<FluentBodyContent style="padding-top: 1rem">
@Body
</FluentBodyContent>
</FluentStack>
</FluentLayout>
</RequiresAuth>
@* <FluentDesignTheme StorageName="theme" /> jaujgaejigae fucking hell //redo
<FluentToastProvider />
<FluentDialogProvider />
<FluentTooltipProvider />
<FluentMessageBarProvider />
<FluentMenuProvider /> *@