From 180b261d370b0db6a64093363a43fd8f482f3ef6 Mon Sep 17 00:00:00 2001 From: Dimitar Byalkov Date: Sun, 14 May 2023 14:36:48 +0200 Subject: [PATCH] Landing page --- .../WebApp/Pages/Index.cshtml | 19 +++++++++++--- .../WebApp/Pages/Index.cshtml.cs | 1 - .../WebApp/Pages/Shared/_Layout.cshtml | 25 ++++++++++--------- 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/StudentHouseDashboard/WebApp/Pages/Index.cshtml b/StudentHouseDashboard/WebApp/Pages/Index.cshtml index 0fc1d5c..3180466 100644 --- a/StudentHouseDashboard/WebApp/Pages/Index.cshtml +++ b/StudentHouseDashboard/WebApp/Pages/Index.cshtml @@ -4,7 +4,18 @@ ViewData["Title"] = "Home page"; } -
-

Student House Dashboard

- Announcements -
\ No newline at end of file +
+

Student House Dashboard

+

+ The student square for housemates! This site is currently under construction. +

+ @if (!User.Identity.IsAuthenticated) + { + Login + } + else + { + Announcements + } +
+Image: pexels.com \ No newline at end of file diff --git a/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs b/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs index 78bf0a5..266a117 100644 --- a/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs +++ b/StudentHouseDashboard/WebApp/Pages/Index.cshtml.cs @@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Mvc.RazorPages; namespace WebApp.Pages { - [Authorize] public class IndexModel : PageModel { private readonly ILogger _logger; diff --git a/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml b/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml index 012f34f..6113aee 100644 --- a/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml +++ b/StudentHouseDashboard/WebApp/Pages/Shared/_Layout.cshtml @@ -22,25 +22,17 @@ - @if (!User.Identity.IsAuthenticated) - { - - - } - else + @if (User.Identity.IsAuthenticated) { } +