Skip to content

Commit

Permalink
Sync project assets
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoFoxCZ committed May 9, 2024
1 parent 50a5f7e commit 9ec2514
Show file tree
Hide file tree
Showing 31 changed files with 1,199 additions and 471 deletions.
7 changes: 3 additions & 4 deletions HackatonApp/Components/App.razor
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" class="light scroll-smooth">

<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<base href="/"/>
<link rel="stylesheet" href="app.css"/>
<link rel="stylesheet" href="HackatonApp.styles.css"/>
<link rel="stylesheet" href="tailwind/tailwind.min.css"/>
<link rel="icon" type="image/png" href="favicon.png"/>

<HeadOutlet/>
</head>

<body class="antialiased bg-body text-body font-body">
<Routes/>
<body class="dark:bg-slate-900 antialiased">
<Routes />
<script src="_framework/blazor.web.js"></script>
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
</body>
Expand Down
189 changes: 108 additions & 81 deletions HackatonApp/Components/Layout/MainLayout.razor

Large diffs are not rendered by default.

267 changes: 120 additions & 147 deletions HackatonApp/Components/Layout/NavMenu.razor

Large diffs are not rendered by default.

105 changes: 0 additions & 105 deletions HackatonApp/Components/Layout/NavMenu.razor.css

This file was deleted.

20 changes: 20 additions & 0 deletions HackatonApp/Components/Pages/Admin/Dashboard.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@page "/admin"
@inject Blazored.LocalStorage.ILocalStorageService localStorage
@inject NavigationManager NavigationManager

@code {

protected override async Task OnAfterRenderAsync(bool firstRender)
{
var token = await localStorage.GetItemAsStringAsync("token");

if (string.IsNullOrEmpty(token))
{
//redirect to login page
NavigationManager.NavigateTo("/");
}
}

}

JSI NA ADMINU a jsi přihlášen!! :))
Loading

0 comments on commit 9ec2514

Please sign in to comment.