Skip to content

Commit

Permalink
Cleanup views
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJustLink committed Sep 18, 2023
1 parent 2d5f99b commit 499d211
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 22 deletions.
2 changes: 1 addition & 1 deletion FileShare/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
<p>Index page</p>
</div>
28 changes: 8 additions & 20 deletions FileShare/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,18 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>@ViewData["Title"] - FileShare</title>

<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
<link rel="stylesheet" href="~/FileShare.styles.css" asp-append-version="true" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
<div class="container-fluid">
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">FileShare</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
</li>
</ul>
</div>
</div>
</nav>

</header>

<div class="container">
<main role="main" class="pb-3">
@RenderBody()
Expand All @@ -38,12 +23,15 @@

<footer class="border-top footer text-muted">
<div class="container">
&copy; 2023 - FileShare - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
&copy; 2023 - FileShare
</div>
</footer>

<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>

@await RenderSectionAsync("Scripts", required: false)

</body>
</html>
1 change: 0 additions & 1 deletion FileShare/Views/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
@using FileShare
@using FileShare.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

0 comments on commit 499d211

Please sign in to comment.