
Theme is set in Oqtane.Client\Themes\OqtaneTheme\Default.razor ``` protected override async Task OnParametersSetAsync() { // go to https://www.bootstrapcdn.com/bootswatch/ and take your favorite theme //<link href="https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cyborg/bootstrap.min.css" rel="stylesheet" integrity="sha384-l7xaoY0cJM4h9xh1RfazbgJVUZvdtyLWPueWNtLAphf/UbBgOVzqbOTogxPwYLHM" crossorigin="anonymous"> await LoadBootstrapTheme("https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cyborg/bootstrap.min.css","sha384-l7xaoY0cJM4h9xh1RfazbgJVUZvdtyLWPueWNtLAphf/UbBgOVzqbOTogxPwYLHM"); await IncludeCSS("Theme.css"); } ```
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
@namespace Oqtane.Themes.OqtaneTheme
|
|
@inherits ThemeBase
|
|
|
|
<main role="main">
|
|
<nav class="navbar navbar-expand-md navbar-dark bg-primary fixed-top">
|
|
<Logo /><Menu Orientation="Horizontal" /><div class="ml-md-auto"><UserProfile /> <Login /> <ControlPanel ButtonClass="btn-outline-secondary" CardClass="bg-light" /></div>
|
|
</nav>
|
|
<div class="container">
|
|
<PaneLayout />
|
|
<div class="row px-4">
|
|
<Pane Name="Admin" />
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
@code {
|
|
public override string Panes => string.Empty;
|
|
|
|
protected override async Task OnParametersSetAsync()
|
|
{
|
|
// go to https://www.bootstrapcdn.com/bootswatch/ and take your favorite theme
|
|
//<link href="https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cyborg/bootstrap.min.css" rel="stylesheet" integrity="sha384-l7xaoY0cJM4h9xh1RfazbgJVUZvdtyLWPueWNtLAphf/UbBgOVzqbOTogxPwYLHM" crossorigin="anonymous">
|
|
await LoadBootstrapTheme("https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cyborg/bootstrap.min.css","sha384-l7xaoY0cJM4h9xh1RfazbgJVUZvdtyLWPueWNtLAphf/UbBgOVzqbOTogxPwYLHM");
|
|
await IncludeCSS("Theme.css");
|
|
}
|
|
}
|