770 lines
26 KiB
Text
770 lines
26 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>@ViewData["Title"] - Web</title>
|
|
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
|
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/Web.styles.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" />
|
|
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
|
|
|
<style>
|
|
:root {
|
|
--nav-bg: rgba(4, 5, 12, 0.92);
|
|
--nav-bg-scrolled: rgba(2, 3, 8, 0.98);
|
|
--accent: #3b7bf7;
|
|
--accent-glow: rgba(59, 123, 247, 0.12);
|
|
--accent-border: rgba(59, 123, 247, 0.15);
|
|
--teal: #22c9b0;
|
|
--teal-glow: rgba(34, 201, 176, 0.10);
|
|
--text-primary: rgba(255, 255, 255, 0.93);
|
|
--text-secondary: rgba(255, 255, 255, 0.55);
|
|
--text-muted: rgba(255, 255, 255, 0.35);
|
|
--surface: rgba(255, 255, 255, 0.03);
|
|
--surface-hover: rgba(59, 123, 247, 0.08);
|
|
--border: rgba(255, 255, 255, 0.05);
|
|
--border-hover: rgba(59, 123, 247, 0.2);
|
|
--danger: #f87171;
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
font-family: 'DM Sans', sans-serif;
|
|
background: #030408;
|
|
color: var(--text-primary);
|
|
position: relative;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
inset: 0;
|
|
background:
|
|
radial-gradient(ellipse 600px 400px at 10% 20%, rgba(59, 123, 247, 0.025) 0%, transparent 100%),
|
|
radial-gradient(ellipse 500px 350px at 90% 80%, rgba(34, 201, 176, 0.02) 0%, transparent 100%);
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ══════════════════════════════════════
|
|
NAVBAR
|
|
══════════════════════════════════════ */
|
|
.site-navbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
background: var(--nav-bg);
|
|
backdrop-filter: blur(24px) saturate(1.6);
|
|
-webkit-backdrop-filter: blur(24px) saturate(1.6);
|
|
border-bottom: 1px solid var(--border);
|
|
transition: background var(--transition), box-shadow var(--transition);
|
|
}
|
|
|
|
.site-navbar.scrolled {
|
|
background: var(--nav-bg-scrolled);
|
|
box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 123, 247, 0.06);
|
|
}
|
|
|
|
.nav-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 0 32px;
|
|
height: 64px;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ── Brand ── */
|
|
.nav-brand {
|
|
font-family: 'Outfit', sans-serif;
|
|
font-weight: 800;
|
|
font-size: 1.35rem;
|
|
letter-spacing: -0.03em;
|
|
text-decoration: none;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: opacity var(--transition);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-brand:hover { opacity: 0.85; color: var(--text-primary); }
|
|
|
|
.brand-mark {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-sm);
|
|
background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
box-shadow: 0 2px 12px rgba(59, 123, 247, 0.3);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.brand-text {
|
|
background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7) 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* ── Desktop Links ── */
|
|
.nav-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.nav-links .nav-link {
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
padding: 7px 14px;
|
|
border-radius: var(--radius-sm);
|
|
text-decoration: none;
|
|
transition: color var(--transition), background var(--transition);
|
|
position: relative;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.nav-links .nav-link:hover {
|
|
color: var(--text-primary);
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.nav-links .nav-link.active {
|
|
color: var(--accent);
|
|
background: var(--accent-glow);
|
|
}
|
|
|
|
/* ── Right Section ── */
|
|
.nav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* ── Account Dropdown ── */
|
|
.account-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 5px 5px 5px 18px;
|
|
border-radius: 100px;
|
|
border: 1px solid rgba(255, 255, 255, 0.06);
|
|
background: linear-gradient(135deg, #0d1a2e 0%, #0a1322 40%, #080f1c 100%);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
font-weight: 500;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
text-decoration: none;
|
|
position: relative;
|
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
}
|
|
|
|
.account-btn:hover {
|
|
background: linear-gradient(135deg, #112240 0%, #0e1a30 40%, #0b1428 100%);
|
|
color: #fff;
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
.account-btn .avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--teal), #18a896);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 8px rgba(34, 201, 176, 0.3);
|
|
}
|
|
|
|
.account-btn .chevron {
|
|
font-size: 0.6rem;
|
|
transition: transform var(--transition);
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.account-btn[aria-expanded="true"] .chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* ── Dropdown Menu ── */
|
|
.dropdown-menu {
|
|
background: rgba(6, 8, 18, 0.98) !important;
|
|
backdrop-filter: blur(30px) saturate(1.6) !important;
|
|
-webkit-backdrop-filter: blur(30px) saturate(1.6) !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.06) !important;
|
|
border-radius: var(--radius-md) !important;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.08) !important;
|
|
padding: 6px !important;
|
|
margin-top: 10px !important;
|
|
min-width: 220px !important;
|
|
animation: menuReveal 0.2s ease-out;
|
|
}
|
|
|
|
@@keyframes menuReveal {
|
|
from { opacity: 0; transform: translateY(-6px) scale(0.98); }
|
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
}
|
|
|
|
.dropdown-user-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.dropdown-user-card .user-avatar {
|
|
width: 34px;
|
|
height: 34px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), var(--teal));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.dropdown-user-card .user-name {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.dropdown-user-card .user-role {
|
|
color: var(--text-muted);
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.6px;
|
|
}
|
|
|
|
.dropdown-section-label {
|
|
color: var(--text-muted) !important;
|
|
font-size: 0.65rem !important;
|
|
font-weight: 600 !important;
|
|
text-transform: uppercase !important;
|
|
letter-spacing: 0.8px !important;
|
|
padding: 8px 12px 4px !important;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item {
|
|
color: var(--text-secondary) !important;
|
|
font-weight: 500 !important;
|
|
font-size: 0.835rem !important;
|
|
padding: 9px 12px !important;
|
|
border-radius: var(--radius-sm) !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
gap: 10px !important;
|
|
transition: all var(--transition) !important;
|
|
border: none !important;
|
|
background: transparent !important;
|
|
width: 100%;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item:hover {
|
|
color: var(--text-primary) !important;
|
|
background: var(--surface-hover) !important;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item i {
|
|
width: 16px;
|
|
text-align: center;
|
|
font-size: 0.85rem;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item:hover i {
|
|
opacity: 1;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item.item-admin {
|
|
color: var(--teal) !important;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item.item-admin:hover {
|
|
background: var(--teal-glow) !important;
|
|
color: var(--teal) !important;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item.item-danger {
|
|
color: var(--danger) !important;
|
|
}
|
|
|
|
.dropdown-menu .dropdown-item.item-danger:hover {
|
|
background: rgba(248, 113, 113, 0.1) !important;
|
|
color: var(--danger) !important;
|
|
}
|
|
|
|
.dropdown-divider {
|
|
border-color: var(--border) !important;
|
|
margin: 4px 8px !important;
|
|
}
|
|
|
|
/* ── Sign In Button ── */
|
|
.signin-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 18px;
|
|
border-radius: 100px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
background: linear-gradient(135deg, var(--accent), #3672e8);
|
|
border: none;
|
|
text-decoration: none;
|
|
transition: all var(--transition);
|
|
box-shadow: 0 2px 12px rgba(59, 123, 247, 0.25);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.signin-btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 24px rgba(59, 123, 247, 0.35);
|
|
color: #fff;
|
|
}
|
|
|
|
.signin-btn:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* ── Mobile Toggle ── */
|
|
.nav-toggle {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
position: relative;
|
|
padding: 0;
|
|
}
|
|
|
|
.nav-toggle:hover {
|
|
background: var(--surface-hover);
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.hamburger {
|
|
width: 18px;
|
|
height: 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.hamburger span {
|
|
display: block;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: var(--text-secondary);
|
|
border-radius: 2px;
|
|
transition: all 0.3s ease;
|
|
transform-origin: center;
|
|
}
|
|
|
|
.nav-toggle.active .hamburger span:nth-child(1) {
|
|
transform: translateY(6px) rotate(45deg);
|
|
}
|
|
|
|
.nav-toggle.active .hamburger span:nth-child(2) {
|
|
opacity: 0;
|
|
transform: scaleX(0);
|
|
}
|
|
|
|
.nav-toggle.active .hamburger span:nth-child(3) {
|
|
transform: translateY(-6px) rotate(-45deg);
|
|
}
|
|
|
|
/* ── Mobile Nav ── */
|
|
.mobile-nav {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(4, 5, 14, 0.99);
|
|
backdrop-filter: blur(30px) saturate(1.6);
|
|
-webkit-backdrop-filter: blur(30px) saturate(1.6);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 12px 16px 20px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
|
|
animation: mobileSlide 0.25s ease-out;
|
|
}
|
|
|
|
@@keyframes mobileSlide {
|
|
from { opacity: 0; transform: translateY(-8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.mobile-nav.open {
|
|
display: block;
|
|
}
|
|
|
|
.mobile-nav .mobile-links {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 0 12px 0;
|
|
}
|
|
|
|
.mobile-nav .mobile-links .nav-link {
|
|
display: block;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
padding: 11px 14px;
|
|
border-radius: var(--radius-sm);
|
|
text-decoration: none;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.mobile-nav .mobile-links .nav-link:hover,
|
|
.mobile-nav .mobile-links .nav-link.active {
|
|
color: var(--text-primary);
|
|
background: var(--surface-hover);
|
|
}
|
|
|
|
.mobile-divider {
|
|
height: 1px;
|
|
background: var(--border);
|
|
margin: 8px 0 12px;
|
|
}
|
|
|
|
.mobile-user-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--surface);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.mobile-user-section .m-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), var(--teal));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mobile-user-section .m-name {
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.mobile-user-section .m-role {
|
|
color: var(--text-muted);
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.mobile-action {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
width: 100%;
|
|
padding: 11px 14px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.mobile-action i {
|
|
width: 18px;
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.mobile-action.action-admin {
|
|
color: var(--teal);
|
|
}
|
|
|
|
.mobile-action.action-admin:hover {
|
|
background: var(--teal-glow);
|
|
}
|
|
|
|
.mobile-action.action-danger {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.mobile-action.action-danger:hover {
|
|
background: rgba(248, 113, 113, 0.1);
|
|
}
|
|
|
|
.mobile-signin {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 12px;
|
|
border-radius: 100px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
background: linear-gradient(135deg, var(--accent), #3672e8);
|
|
border: none;
|
|
text-decoration: none;
|
|
box-shadow: 0 2px 16px rgba(59, 123, 247, 0.25);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.mobile-signin:hover {
|
|
box-shadow: 0 6px 24px rgba(59, 123, 247, 0.35);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ── Main Content ── */
|
|
main {
|
|
min-height: calc(100vh - 64px);
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* ══════════════════════════════════════
|
|
RESPONSIVE
|
|
══════════════════════════════════════ */
|
|
@@media (max-width: 768px) {
|
|
.nav-inner { height: 56px; padding: 0 16px; }
|
|
.nav-links { display: none !important; }
|
|
.nav-right .desktop-only { display: none !important; }
|
|
.nav-toggle { display: flex; }
|
|
|
|
.brand-mark { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 6px; }
|
|
.nav-brand { font-size: 1.2rem; gap: 8px; }
|
|
}
|
|
|
|
@@media (min-width: 769px) {
|
|
.mobile-nav { display: none !important; }
|
|
.nav-toggle { display: none !important; }
|
|
}
|
|
|
|
@@media (max-width: 480px) {
|
|
.nav-inner { padding: 0 12px; }
|
|
.nav-brand { font-size: 1.1rem; }
|
|
}
|
|
|
|
@@media (min-width: 1400px) {
|
|
.nav-inner { padding: 0 48px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav class="site-navbar" id="siteNavbar">
|
|
<div class="nav-inner">
|
|
<!-- Brand -->
|
|
<a class="nav-brand" asp-area="" asp-controller="Home" asp-action="Index">
|
|
<div class="brand-mark"><i class="bi bi-bar-chart-fill" style="font-size: 0.9rem;"></i></div>
|
|
<span class="brand-text">Online Survey</span>
|
|
</a>
|
|
|
|
<!-- Desktop Navigation Links (empty in this layout) -->
|
|
<ul class="nav-links">
|
|
</ul>
|
|
|
|
<!-- Right Section -->
|
|
<div class="nav-right">
|
|
@if (User.Identity.IsAuthenticated)
|
|
{
|
|
<!-- Desktop Account Dropdown -->
|
|
<div class="dropdown desktop-only">
|
|
<button class="account-btn" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<span>Account</span>
|
|
<i class="bi bi-chevron-down chevron"></i>
|
|
<div class="avatar">
|
|
@(User.Identity.Name?.Substring(0, 1).ToUpper() ?? "U")
|
|
</div>
|
|
</button>
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
<li>
|
|
<div class="dropdown-user-card">
|
|
<div class="user-avatar">
|
|
@(User.Identity.Name?.Substring(0, 1).ToUpper() ?? "U")
|
|
</div>
|
|
<div>
|
|
<div class="user-name">@User.Identity.Name</div>
|
|
<div class="user-role">Account Holder</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
<li><hr class="dropdown-divider"></li>
|
|
<li><h6 class="dropdown-section-label">Manage</h6></li>
|
|
<li>
|
|
<a class="dropdown-item item-admin" asp-controller="Admin" asp-action="Index" asp-area="Admin">
|
|
<i class="bi bi-grid-1x2"></i>Admin Dashboard
|
|
</a>
|
|
</li>
|
|
<li><hr class="dropdown-divider"></li>
|
|
<li>
|
|
<form asp-area="Admin" asp-controller="Admin" asp-action="Logout" method="post" class="d-inline w-100">
|
|
<button type="submit" class="dropdown-item item-danger">
|
|
<i class="bi bi-arrow-bar-left"></i>Log Out
|
|
</button>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<!-- Desktop Sign In -->
|
|
<a asp-controller="Account" asp-action="Login" class="signin-btn desktop-only">
|
|
<span>Sign In</span>
|
|
<i class="bi bi-arrow-right"></i>
|
|
</a>
|
|
}
|
|
|
|
<!-- Mobile Toggle -->
|
|
<button class="nav-toggle" id="navToggle" aria-label="Toggle navigation">
|
|
<div class="hamburger">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Mobile Navigation -->
|
|
<div class="mobile-nav" id="mobileNav">
|
|
<div class="mobile-divider"></div>
|
|
|
|
@if (User.Identity.IsAuthenticated)
|
|
{
|
|
<div class="mobile-user-section">
|
|
<div class="m-avatar">
|
|
@(User.Identity.Name?.Substring(0, 1).ToUpper() ?? "U")
|
|
</div>
|
|
<div>
|
|
<div class="m-name">@User.Identity.Name</div>
|
|
<div class="m-role">Account Holder</div>
|
|
</div>
|
|
</div>
|
|
<a class="mobile-action action-admin" asp-controller="Admin" asp-action="Index" asp-area="Admin">
|
|
<i class="bi bi-grid-1x2"></i>Admin Dashboard
|
|
</a>
|
|
<form asp-area="Admin" asp-controller="Admin" asp-action="Logout" method="post">
|
|
<button type="submit" class="mobile-action action-danger">
|
|
<i class="bi bi-arrow-bar-left"></i>Log Out
|
|
</button>
|
|
</form>
|
|
}
|
|
else
|
|
{
|
|
<a asp-controller="Account" asp-action="Login" class="mobile-signin">
|
|
<span>Sign In</span>
|
|
<i class="bi bi-arrow-right"></i>
|
|
</a>
|
|
}
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main role="main">
|
|
@RenderBody()
|
|
</main>
|
|
|
|
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
|
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="~/js/site.js" asp-append-version="true"></script>
|
|
|
|
<script>
|
|
// Scroll effect
|
|
const navbar = document.getElementById('siteNavbar');
|
|
let ticking = false;
|
|
window.addEventListener('scroll', () => {
|
|
if (!ticking) {
|
|
window.requestAnimationFrame(() => {
|
|
navbar.classList.toggle('scrolled', window.scrollY > 30);
|
|
ticking = false;
|
|
});
|
|
ticking = true;
|
|
}
|
|
});
|
|
|
|
// Mobile toggle
|
|
const toggle = document.getElementById('navToggle');
|
|
const mobileNav = document.getElementById('mobileNav');
|
|
toggle.addEventListener('click', () => {
|
|
toggle.classList.toggle('active');
|
|
mobileNav.classList.toggle('open');
|
|
});
|
|
|
|
// Close mobile nav on link click
|
|
mobileNav.querySelectorAll('a').forEach(link => {
|
|
link.addEventListener('click', () => {
|
|
toggle.classList.remove('active');
|
|
mobileNav.classList.remove('open');
|
|
});
|
|
});
|
|
|
|
// Close mobile nav on outside click
|
|
document.addEventListener('click', (e) => {
|
|
if (!navbar.contains(e.target)) {
|
|
toggle.classList.remove('active');
|
|
mobileNav.classList.remove('open');
|
|
}
|
|
});
|
|
</script>
|
|
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
</body>
|
|
</html>
|