Files
workshop8/Pages/Shared/_Layout.cshtml

49 lines
2.0 KiB
Plaintext
Raw Normal View History

2025-07-29 22:22:38 -03:00
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>@ViewData["Title"] - Workshop8</title>
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
<!-- Nosso CSS -->
<link rel="stylesheet" href="~/css/site.css" />
</head>
<body>
<!-- Navbar Bootstrap -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container-fluid">
<a class="navbar-brand" asp-page="/Index">Workshop8</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Alternar navegação">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a
class="nav-link @(ViewData["Title"]?.ToString() == "Clientes" ? "active" : "")"
asp-page="/Index">
Clientes
</a>
</li>
<!-- adicione mais itens de menu aqui -->
</ul>
</div>
</div>
</nav>
<!-- Conteúdo principal -->
<div class="container mt-4">
@RenderBody()
</div>
<!-- Bootstrap 5 Bundle (JS + Popper) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js" integrity="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q" crossorigin="anonymous"></script>
@RenderSection("Scripts", required: false)
</body>
</html>