From cf057e3a2caa0f668887d680a3fb7ff1ae860dbf Mon Sep 17 00:00:00 2001 From: Aldin296 <99395958+Aldin296@users.noreply.github.com> Date: Wed, 1 Feb 2023 07:30:38 +0100 Subject: [PATCH] =?UTF-8?q?Sidebar=20angepasst=20und=20im=20Dashboard=20di?= =?UTF-8?q?e=20Plug=20Liste=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Layout/SideMenu.razor | 34 +++++----- .../Elektrifikatsiya/Pages/Dashboard.razor | 63 ++++++++++--------- .../Elektrifikatsiya/Pages/Dashboard.razor.cs | 28 +++++++++ 3 files changed, 77 insertions(+), 48 deletions(-) create mode 100644 src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor.cs diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor b/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor index 7450e71..9c3955f 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Components/Layout/SideMenu.razor @@ -15,33 +15,27 @@ Dashboard + + + + + + Admin - - - - Pages - - - Simple Form - - + + + Add Plug + - - - - Apps - - - - Todo - - - + + + Setting + diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor index d918c4b..102f6ba 100644 --- a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor @@ -1,31 +1,38 @@ @page "/" @inject IVersionProvider VersionProvider -Blazorise + + + + @for (int i = 0; i < 3; i++) + { + + + + + + Plug #@i + + + 60W + + + + + User: .... +
+ Room: .... +
+
+
+ + + +
+
+ } +
+
+
- - Blazorise is a component library built on top of Blazor and CSS frameworks like Bootstrap, Bulma, Ant Design, and Material. It can be used to build responsive, single-page web applications. - - - - - This is a Blazorise Starting Template allowing you to quickly get started building your project! - - - - The bare minimum has been installed for you: - - However Blazorise has many more extensions at your disposal. - You can find them here. - - - - Please visit the official Blazorise Demo for component examples. - - - Please visit the official Blazorise Documentation to learn more about the available components. - - diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor.cs b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor.cs new file mode 100644 index 0000000..ed25e93 --- /dev/null +++ b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Dashboard.razor.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Components; +using System.Net.Http; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Components.Authorization; +using Microsoft.AspNetCore.Components.Forms; +using Microsoft.AspNetCore.Components.Routing; +using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components.Web.Virtualization; +using Microsoft.JSInterop; +using Elektrifikatsiya; +using Blazorise; + +namespace Elektrifikatsiya.Pages +{ + public partial class Dashboard + { + string bgcolor { get; set; } = "00f"; // (starting value) + void SetColor() + { + bgcolor = "#fd7"; + StateHasChanged(); // may not be required, but I'm at work right now, so can't check + } + } +} \ No newline at end of file