Adding custom favicon, and titles to alle pages

This commit is contained in:
Benjamin
2024-11-20 11:17:20 +01:00
parent 8c0136b09a
commit bf6377168a
15 changed files with 23 additions and 17 deletions

View File

@@ -1,3 +1,6 @@
<div class="d-flex"> @{
ViewData["Title"] = "Access denied...";
}
<div class="d-flex">
<h1 class="mx-auto">Hovsa du, det har du vidst ikke helt rettigheder til ;)</h1> <h1 class="mx-auto">Hovsa du, det har du vidst ikke helt rettigheder til ;)</h1>
</div> </div>

View File

@@ -1,6 +1,6 @@
@model pointMaster.Controllers.HomePageViewModel @model pointMaster.Controllers.HomePageViewModel
@{ @{
ViewData["Title"] = "Home Page"; ViewData["Title"] = "Point";
} }
<div> <div>

View File

@@ -1,5 +1,5 @@
@{ @{
ViewData["Title"] = "Privacy Policy"; ViewData["Title"] = "Privatpolitik";
} }
<h1>@ViewData["Title"]</h1> <h1>@ViewData["Title"]</h1>

View File

@@ -1,9 +1,7 @@
@model pointMaster.Models.PatruljeMedlem @model pointMaster.Models.PatruljeMedlem
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{ @{
ViewData["Title"] = "Tilføj medlem";
} }
<form asp-action="AddMedlem" method="post"> <form asp-action="AddMedlem" method="post">

View File

@@ -1,6 +1,6 @@
@model pointMaster.Models.Patrulje @model pointMaster.Models.Patrulje
@{ @{
ViewData["Title"] = "Create patrulje"; ViewData["Title"] = "Opret patrulje";
} }
<h1>Create Patrulje</h1> <h1>Create Patrulje</h1>

View File

@@ -1,5 +1,7 @@
@model pointMaster.Controllers.PatruljeController.IndexViewModel @model pointMaster.Controllers.PatruljeController.IndexViewModel
@{
ViewData["Title"] = "Patruljer";
}
<h1>Patruljer</h1> <h1>Patruljer</h1>
<a asp-action="Create" asp-controller="Patrulje" class="btn btn-primary">Opret patrulje</a> <a asp-action="Create" asp-controller="Patrulje" class="btn btn-primary">Opret patrulje</a>
@foreach (var patrulje in Model.patruljeModels) @foreach (var patrulje in Model.patruljeModels)

View File

@@ -1,6 +1,7 @@
@model pointMaster.Controllers.GivPointViewModel; @model pointMaster.Controllers.GivPointViewModel;
@{ @{
Layout = "_Point"; Layout = "_Point";
ViewData["Title"] = "Giv Point";
} }
<div class="Frame"> <div class="Frame">

View File

@@ -1,8 +1,6 @@
@model pointMaster.Controllers.PointViewModel; @model pointMaster.Controllers.PointViewModel;
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{ @{
ViewData["Title"] = "Point";
} }
<a asp-action="GivPoint" asp-controller="Point" class="btn btn-primary">Giv point</a> <a asp-action="GivPoint" asp-controller="Point" class="btn btn-primary">Giv point</a>
<table class="table table-striped"> <table class="table table-striped">

View File

@@ -1,8 +1,6 @@
@model pointMaster.Controllers.SelectPostViewModel @model pointMaster.Controllers.SelectPostViewModel
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{ @{
ViewData["Title"] = "Vælg post";
} }
<h1>Vælg post</h1> <h1>Vælg post</h1>
@foreach(var item in Model.Poster) @foreach(var item in Model.Poster)

View File

@@ -1,4 +1,7 @@
@model pointMaster.Controllers.SkiftPatruljeViewModel; @model pointMaster.Controllers.SkiftPatruljeViewModel;
@{
ViewData["Title"] = "Vælg patrulje";
}
@if (Model.post != null) @if (Model.post != null)
{ {
<h3>Du giver point som: @Model.post.Name</h3> <h3>Du giver point som: @Model.post.Name</h3>

View File

@@ -1,5 +1,6 @@
@model pointMaster.Models.Post @model pointMaster.Models.Post
@{ @{
ViewData["Title"] = "Opret post";
} }
<form asp-action="Create"> <form asp-action="Create">

View File

@@ -1,8 +1,6 @@
@model pointMaster.Controllers.PosterController.RundeViewModel @model pointMaster.Controllers.PosterController.RundeViewModel
@*
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{ @{
ViewData["Title"] = "Poster";
} }
<div> <div>

View File

@@ -3,6 +3,7 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/favicon.svg" />
<title>@ViewData["Title"] - pointMaster</title> <title>@ViewData["Title"] - pointMaster</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /> <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="~/css/site.css" asp-append-version="true" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-feather" viewBox="0 0 16 16">
<path d="M15.807.531c-.174-.177-.41-.289-.64-.363a3.8 3.8 0 0 0-.833-.15c-.62-.049-1.394 0-2.252.175C10.365.545 8.264 1.415 6.315 3.1S3.147 6.824 2.557 8.523c-.294.847-.44 1.634-.429 2.268.005.316.05.62.154.88q.025.061.056.122A68 68 0 0 0 .08 15.198a.53.53 0 0 0 .157.72.504.504 0 0 0 .705-.16 68 68 0 0 1 2.158-3.26c.285.141.616.195.958.182.513-.02 1.098-.188 1.723-.49 1.25-.605 2.744-1.787 4.303-3.642l1.518-1.55a.53.53 0 0 0 0-.739l-.729-.744 1.311.209a.5.5 0 0 0 .443-.15l.663-.684c.663-.68 1.292-1.325 1.763-1.892.314-.378.585-.752.754-1.107.163-.345.278-.773.112-1.188a.5.5 0 0 0-.112-.172M3.733 11.62C5.385 9.374 7.24 7.215 9.309 5.394l1.21 1.234-1.171 1.196-.027.03c-1.5 1.789-2.891 2.867-3.977 3.393-.544.263-.99.378-1.324.39a1.3 1.3 0 0 1-.287-.018Zm6.769-7.22c1.31-1.028 2.7-1.914 4.172-2.6a7 7 0 0 1-.4.523c-.442.533-1.028 1.134-1.681 1.804l-.51.524zm3.346-3.357C9.594 3.147 6.045 6.8 3.149 10.678c.007-.464.121-1.086.37-1.806.533-1.535 1.65-3.415 3.455-4.976 1.807-1.561 3.746-2.36 5.31-2.68a8 8 0 0 1 1.564-.173"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB