+
+
+
+
+
+
+@section Styles {
+
+}
+
diff --git a/ASI.Basecode.WebApp/Views/Home/UserSettings.cshtml b/ASI.Basecode.WebApp/Views/Home/UserSettings.cshtml
new file mode 100644
index 0000000..22cc107
--- /dev/null
+++ b/ASI.Basecode.WebApp/Views/Home/UserSettings.cshtml
@@ -0,0 +1,63 @@
+@{
+ ViewData["Title"] = "User Settings";
+}
+
+
+@section Styles {
+
+}
\ No newline at end of file
diff --git a/ASI.Basecode.WebApp/Views/Home/ViewBookings.cshtml b/ASI.Basecode.WebApp/Views/Home/ViewBookings.cshtml
new file mode 100644
index 0000000..4bfe875
--- /dev/null
+++ b/ASI.Basecode.WebApp/Views/Home/ViewBookings.cshtml
@@ -0,0 +1,63 @@
+@{
+ ViewData["Title"] = "View Bookings";
+}
+
+
+@section Styles {
+
+}
\ No newline at end of file
diff --git a/ASI.Basecode.WebApp/Views/Shared/Index.cshtml b/ASI.Basecode.WebApp/Views/Shared/Index.cshtml
new file mode 100644
index 0000000..e1dd794
--- /dev/null
+++ b/ASI.Basecode.WebApp/Views/Shared/Index.cshtml
@@ -0,0 +1,5 @@
+@*
+ For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
+*@
+@{
+}
diff --git a/ASI.Basecode.WebApp/Views/Shared/Index1.cshtml.cs b/ASI.Basecode.WebApp/Views/Shared/Index1.cshtml.cs
new file mode 100644
index 0000000..1f21bc1
--- /dev/null
+++ b/ASI.Basecode.WebApp/Views/Shared/Index1.cshtml.cs
@@ -0,0 +1,12 @@
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+
+namespace ASI.Basecode.WebApp.Views.Shared
+{
+ public class Index1Model : PageModel
+ {
+ public void OnGet()
+ {
+ }
+ }
+}
diff --git a/ASI.Basecode.WebApp/Views/Shared/_AdminSidebar.cshtml b/ASI.Basecode.WebApp/Views/Shared/_AdminSidebar.cshtml
new file mode 100644
index 0000000..5e6290d
--- /dev/null
+++ b/ASI.Basecode.WebApp/Views/Shared/_AdminSidebar.cshtml
@@ -0,0 +1,175 @@
+@*
+ For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
+*@
+@{
+
+}
+
+
\ No newline at end of file
diff --git a/ASI.Basecode.WebApp/Views/Shared/_Header.cshtml b/ASI.Basecode.WebApp/Views/Shared/_Header.cshtml
index 02b6b55..e8dc60e 100644
--- a/ASI.Basecode.WebApp/Views/Shared/_Header.cshtml
+++ b/ASI.Basecode.WebApp/Views/Shared/_Header.cshtml
@@ -1,4 +1,4 @@
-@using Microsoft.AspNetCore.Http
+@* @using Microsoft.AspNetCore.Http
@inject IHttpContextAccessor HttpContextAccessor
+ *@
\ No newline at end of file
diff --git a/ASI.Basecode.WebApp/Views/Shared/_Layout.cshtml b/ASI.Basecode.WebApp/Views/Shared/_Layout.cshtml
index cf2c918..aaf588f 100644
--- a/ASI.Basecode.WebApp/Views/Shared/_Layout.cshtml
+++ b/ASI.Basecode.WebApp/Views/Shared/_Layout.cshtml
@@ -1,6 +1,4 @@
-@using static ASI.Basecode.Resources.Views.Screen
-
-
+
+ @{
+ var isAdmin = Context.Session.GetString("UserRole") == "Admin";
+ var isLoginOrRegister = ViewContext.RouteData.Values["Controller"].ToString() == "Account" &&
+ (ViewContext.RouteData.Values["Action"].ToString() == "Login" ||
+ ViewContext.RouteData.Values["Action"].ToString() == "Register");
+ }
+
+ @if (!isLoginOrRegister)
+ {
+ if (isAdmin)
+ {
+ @Html.Partial("_AdminSidebar")
+ }
+ else
+ {
+ @Html.Partial("_UserSidebar")
+ }
+ }
+
+
@RenderBody()
-
diff --git a/ASI.Basecode.WebApp/Views/Shared/_UserSidebar.cshtml b/ASI.Basecode.WebApp/Views/Shared/_UserSidebar.cshtml
new file mode 100644
index 0000000..aae0464
--- /dev/null
+++ b/ASI.Basecode.WebApp/Views/Shared/_UserSidebar.cshtml
@@ -0,0 +1,175 @@
+@*
+ For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
+*@
+@{
+
+}
+
+
diff --git a/ASI.Basecode.WebApp/wwwroot/css/site.css b/ASI.Basecode.WebApp/wwwroot/css/site.css
index d3f4a7a..6e695e7 100644
--- a/ASI.Basecode.WebApp/wwwroot/css/site.css
+++ b/ASI.Basecode.WebApp/wwwroot/css/site.css
@@ -84,4 +84,7 @@ body {
.w-1000px {
width: 1000px;
-}
\ No newline at end of file
+}
+
+
+
diff --git a/ASI.Basecode.WebApp/wwwroot/css/style.css b/ASI.Basecode.WebApp/wwwroot/css/style.css
index 05d1acd..1758c8a 100644
--- a/ASI.Basecode.WebApp/wwwroot/css/style.css
+++ b/ASI.Basecode.WebApp/wwwroot/css/style.css
@@ -22,7 +22,7 @@
}
body {
- background-color: var(--background-color4);
+ background-color: black;
max-width: 100%;
overflow-x: hidden;
}
diff --git a/ASI.Basecode.WebApp/wwwroot/img/book.jpg b/ASI.Basecode.WebApp/wwwroot/img/book.jpg
new file mode 100644
index 0000000..89442ac
Binary files /dev/null and b/ASI.Basecode.WebApp/wwwroot/img/book.jpg differ
diff --git a/ASI.Basecode.sln b/ASI.Basecode.sln
index e20a71f..732d818 100644
--- a/ASI.Basecode.sln
+++ b/ASI.Basecode.sln
@@ -11,7 +11,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ASI.Basecode.Services", "AS
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{65A10F5F-9790-475E-A544-DF3FF6A41A66}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASI.Basecode.Resources", "ASI.Basecode.Resources\ASI.Basecode.Resources.csproj", "{ED0C96A6-749E-413B-BF4D-8E405BEB172E}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ASI.Basecode.Resources", "ASI.Basecode.Resources\ASI.Basecode.Resources.csproj", "{ED0C96A6-749E-413B-BF4D-8E405BEB172E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution