41 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| @using DysonNetwork.Sphere.Auth
 | |
| <!DOCTYPE html>
 | |
| <html lang="en" class="h-full">
 | |
| <head>
 | |
|     <meta charset="utf-8"/>
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
 | |
|     <title>@ViewData["Title"]</title>
 | |
|     <link rel="stylesheet" href="~/css/styles.css" asp-append-version="true"/>
 | |
| </head>
 | |
| <body class="h-[calc(100dvh-118px)] mt-[64px] bg-white dark:bg-gray-900">
 | |
| <header class="bg-white dark:bg-gray-800 shadow-sm fixed left-0 right-0 top-0 z-50">
 | |
|     <nav class="container-default">
 | |
|         <div class="flex justify-between h-16 items-center">
 | |
|             <div class="flex">
 | |
|                 <a href="/" class="text-xl font-bold text-gray-900 dark:text-white">Solar Network</a>
 | |
|             </div>
 | |
|             <div class="flex items-center ml-auto">
 | |
|                 @if (Context.Request.Cookies.TryGetValue(AuthConstants.CookieTokenName, out _))
 | |
|                 {
 | |
|                     <a href="/web/account/profile" class="text-gray-900 dark:text-white hover:text-gray-700 dark:hover:text-gray-300 px-3 py-2 rounded-md text-sm font-medium">Profile</a>
 | |
|                     <form method="post" asp-page="/Account/Profile" asp-page-handler="Logout" class="inline">
 | |
|                         <button type="submit" class="text-gray-900 dark:text-white hover:text-gray-700 dark:hover:text-gray-300 px-3 py-2 rounded-md text-sm font-medium">Logout</button>
 | |
|                     </form>
 | |
|                 }
 | |
|                 else
 | |
|                 {
 | |
|                     <a href="/web/auth/login" class="text-gray-900 dark:text-white hover:text-gray-700 dark:hover:text-gray-300 px-3 py-2 rounded-md text-sm font-medium">Login</a>
 | |
|                 }
 | |
|             </div>
 | |
|         </div>
 | |
|     </nav>
 | |
| </header>
 | |
| 
 | |
| @* The header 64px *@
 | |
| <main class="h-full">
 | |
|     @RenderBody()
 | |
| </main>
 | |
| 
 | |
| @await RenderSectionAsync("Scripts", required: false)
 | |
| </body>
 | |
| </html>  |