From 2f98b1c4ace8bddef3e1746a12318d7a787f50e0 Mon Sep 17 00:00:00 2001 From: Julien LEICHER Date: Mon, 21 Dec 2020 19:50:29 +0100 Subject: [PATCH] some styles --- Apps/Website/Models/RegisterViewModel.cs | 1 + Apps/Website/Startup.cs | 2 +- Apps/Website/Views/Accounts/Login.cshtml | 21 +- Apps/Website/Views/Accounts/Register.cshtml | 30 ++- Apps/Website/Views/Links/Create.cshtml | 7 +- Apps/Website/Views/Links/Index.cshtml | 5 +- .../Shared/Components/Login/Default.cshtml | 4 +- .../Shared/Components/Login/LoggedIn.cshtml | 10 +- Apps/Website/Views/Shared/_Layout.cshtml | 54 ++--- Apps/Website/Views/Shared/_LinkItem.cshtml | 31 ++- Apps/Website/wwwroot/css/site.css | 202 ++++++++++++------ 11 files changed, 227 insertions(+), 140 deletions(-) diff --git a/Apps/Website/Models/RegisterViewModel.cs b/Apps/Website/Models/RegisterViewModel.cs index ae41de5..a3fae33 100644 --- a/Apps/Website/Models/RegisterViewModel.cs +++ b/Apps/Website/Models/RegisterViewModel.cs @@ -12,6 +12,7 @@ namespace Website.Models [Required] [Compare(nameof(Password))] + [Display(Name = "Password confirmation")] public string PasswordConfirm { get; set; } } } \ No newline at end of file diff --git a/Apps/Website/Startup.cs b/Apps/Website/Startup.cs index 5aa2e61..b2ca043 100644 --- a/Apps/Website/Startup.cs +++ b/Apps/Website/Startup.cs @@ -107,7 +107,7 @@ namespace Website { endpoints.MapControllerRoute( name: "default", - pattern: "{controller=Home}/{action=Index}/{id?}"); + pattern: "{controller=Links}/{action=Index}/{id?}"); }); } diff --git a/Apps/Website/Views/Accounts/Login.cshtml b/Apps/Website/Views/Accounts/Login.cshtml index 3644db5..f4ede90 100644 --- a/Apps/Website/Views/Accounts/Login.cshtml +++ b/Apps/Website/Views/Accounts/Login.cshtml @@ -1,13 +1,20 @@ @model LoginViewModel +@{ + ViewData["Title"] = "Login"; +} -
- - - + +
+ + + +
- - - +
+ + + +
diff --git a/Apps/Website/Views/Accounts/Register.cshtml b/Apps/Website/Views/Accounts/Register.cshtml index efc99ba..1f0a344 100644 --- a/Apps/Website/Views/Accounts/Register.cshtml +++ b/Apps/Website/Views/Accounts/Register.cshtml @@ -1,17 +1,27 @@ @model RegisterViewModel +@{ + ViewData["Title"] = "Register"; +} -
- - - + - - - +
+ + + +
- - - +
+ + + +
+ +
+ + + +
\ No newline at end of file diff --git a/Apps/Website/Views/Links/Create.cshtml b/Apps/Website/Views/Links/Create.cshtml index 2161b0d..2512895 100644 --- a/Apps/Website/Views/Links/Create.cshtml +++ b/Apps/Website/Views/Links/Create.cshtml @@ -3,15 +3,16 @@ ViewData["Title"] = "Post a new link"; } -
-
- @* @Html.LabelFor(m => m.Url) + + @* @Html.LabelFor(m => m.Url) @Html.EditorFor(m => m.Url) @Html.ValidationMessageFor(m => m.Url) *@ +
+ diff --git a/Apps/Website/Views/Links/Index.cshtml b/Apps/Website/Views/Links/Index.cshtml index ffd5c2c..c569ab4 100644 --- a/Apps/Website/Views/Links/Index.cshtml +++ b/Apps/Website/Views/Links/Index.cshtml @@ -3,10 +3,9 @@ ViewData["Title"] = "Latest Links"; } -Post a new super duber link +Share a link with the world! -

Here are the links

-
    +