diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/wwwroot/css/site.css b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/wwwroot/css/site.css
index 546810a185..6c8ea25327 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/wwwroot/css/site.css
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/wwwroot/css/site.css
@@ -8,6 +8,12 @@ a {
color: #0366d6;
}
+.btn-primary {
+ color: #fff;
+ background-color: #1b6ec2;
+ border-color: #1861ac;
+}
+
app {
position: relative;
display: flex;
@@ -24,66 +30,66 @@ app {
flex: 1;
}
- .main .top-row {
- background-color: #e6e6e6;
- border-bottom: 1px solid #d6d5d5;
- justify-content: flex-end;
- }
+.main .top-row {
+ background-color: #f7f7f7;
+ border-bottom: 1px solid #d6d5d5;
+ justify-content: flex-end;
+}
- .main .top-row > a {
- margin-left: 1.5rem;
- }
+.main .top-row > a {
+ margin-left: 1.5rem;
+}
.sidebar {
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}
- .sidebar .top-row {
- background-color: rgba(0,0,0,0.4);
- }
+.sidebar .top-row {
+ background-color: rgba(0,0,0,0.4);
+}
- .sidebar .navbar-brand {
- font-size: 1.1rem;
- }
+.sidebar .navbar-brand {
+ font-size: 1.1rem;
+}
- .sidebar .oi {
- width: 2rem;
- font-size: 1.1rem;
- vertical-align: text-top;
- top: -2px;
- }
+.sidebar .oi {
+ width: 2rem;
+ font-size: 1.1rem;
+ vertical-align: text-top;
+ top: -2px;
+}
.nav-item {
font-size: 0.9rem;
padding-bottom: 0.5rem;
}
- .nav-item:first-of-type {
- padding-top: 1rem;
- }
+.nav-item:first-of-type {
+ padding-top: 1rem;
+}
- .nav-item:last-of-type {
- padding-bottom: 1rem;
- }
+.nav-item:last-of-type {
+ padding-bottom: 1rem;
+}
- .nav-item a {
- color: #d7d7d7;
- border-radius: 4px;
- height: 3rem;
- display: flex;
- align-items: center;
- line-height: 3rem;
- }
+.nav-item a {
+ color: #d7d7d7;
+ border-radius: 4px;
+ height: 3rem;
+ display: flex;
+ align-items: center;
+ line-height: 3rem;
+}
- .nav-item a.active {
- background-color: rgba(255,255,255,0.25);
- color: white;
- }
+.nav-item a.active {
+ background-color: rgba(255,255,255,0.25);
+ color: white;
+}
- .nav-item a:hover {
- background-color: rgba(255,255,255,0.1);
- color: white;
- }
+.nav-item a:hover {
+ background-color: rgba(255,255,255,0.1);
+ color: white;
+}
.content {
padding-top: 1.1rem;
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Error.cshtml.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Error.cshtml.cs
index 9cb1d63663..dc4b9b8028 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Error.cshtml.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Error.cshtml.cs
@@ -5,6 +5,7 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
+using Microsoft.Extensions.Logging;
namespace Company.WebApplication1.Pages
{
@@ -15,6 +16,12 @@ namespace Company.WebApplication1.Pages
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
+ private readonly ILogger
logger;
+
+ public ErrorModel(ILogger _logger)
+ {
+ logger = _logger;
+ }
public void OnGet()
{
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Index.cshtml.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Index.cshtml.cs
index 1c86e8c152..293b9fa78b 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Index.cshtml.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Index.cshtml.cs
@@ -4,11 +4,18 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
+using Microsoft.Extensions.Logging;
namespace Company.WebApplication1.Pages
{
public class IndexModel : PageModel
{
+ private readonly ILogger logger;
+
+ public IndexModel(ILogger _logger)
+ {
+ logger = _logger;
+ }
public void OnGet()
{
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Privacy.cshtml.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Privacy.cshtml.cs
index 4d01da1849..6262f55647 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Privacy.cshtml.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Privacy.cshtml.cs
@@ -4,11 +4,18 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
+using Microsoft.Extensions.Logging;
namespace Company.WebApplication1.Pages
{
public class PrivacyModel : PageModel
{
+ private readonly ILogger logger;
+
+ public PrivacyModel(ILogger _logger)
+ {
+ logger = _logger;
+ }
public void OnGet()
{
}
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml
index 198a48ef80..03faa34a5d 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Shared/_Layout.cshtml
@@ -34,9 +34,12 @@
-