From 092315ccc874cac8f330c42ef95b2fba6191d183 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Thu, 18 May 2023 18:02:39 +0200 Subject: [PATCH] bozza modal --- .../Components/DoorMan/DoorList.razor | 19 +------- .../Components/DoorMan/DoorModal.razor | 46 +++++++++++++++++++ .../Components/DoorMan/DoorModal.razor.cs | 16 +++++++ .../Components/DoorMan/DoorModal.razor.css | 36 +++++++++++++++ .../Components/DoorMan/DoorModal.razor.less | 40 ++++++++++++++++ .../DoorMan/DoorModal.razor.min.css | 1 + WebDoorCreator.UI/Pages/TestModal.razor | 3 ++ WebDoorCreator.UI/Pages/TestModal.razor.cs | 6 +++ WebDoorCreator.UI/Pages/TestModal.razor.css | 1 + .../Pages/TestModal.razor.min.css | 1 + WebDoorCreator.UI/compilerconfig.json | 8 ++++ 11 files changed, 159 insertions(+), 18 deletions(-) create mode 100644 WebDoorCreator.UI/Components/DoorMan/DoorModal.razor create mode 100644 WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.cs create mode 100644 WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.css create mode 100644 WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.less create mode 100644 WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.min.css create mode 100644 WebDoorCreator.UI/Pages/TestModal.razor create mode 100644 WebDoorCreator.UI/Pages/TestModal.razor.cs create mode 100644 WebDoorCreator.UI/Pages/TestModal.razor.css create mode 100644 WebDoorCreator.UI/Pages/TestModal.razor.min.css diff --git a/WebDoorCreator.UI/Components/DoorMan/DoorList.razor b/WebDoorCreator.UI/Components/DoorMan/DoorList.razor index 43df6a8..e452a06 100644 --- a/WebDoorCreator.UI/Components/DoorMan/DoorList.razor +++ b/WebDoorCreator.UI/Components/DoorMan/DoorList.razor @@ -4,16 +4,12 @@ {
- @**@ -
- @**@
- @**@
@@ -37,20 +33,7 @@ imgPath = $"images/LogoEgw{idxCount % 5:00}.png"; idxCount++;
- @*@if (isCloneMode) - { - - - } - else if (isAddRemMode) - { - - } - else - {*@ - - - @*}*@ +
} diff --git a/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor new file mode 100644 index 0000000..b898ec4 --- /dev/null +++ b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor @@ -0,0 +1,46 @@ + +
+ + +
+
+

DOOR 198

+ × +
+
+
+
+
+ + +
+ +
+ + + +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+ +
\ No newline at end of file diff --git a/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.cs b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.cs new file mode 100644 index 0000000..514931e --- /dev/null +++ b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.cs @@ -0,0 +1,16 @@ +using Microsoft.CodeAnalysis.Text; + +namespace WebDoorCreator.UI.Components.DoorMan +{ + public partial class DoorModal + { + protected string DoorSvgContent { get; set; } = ""; + + protected async override Task OnInitializedAsync() + { + await Task.Delay(1); + string text = File.ReadAllText("temp/Logo00.svg"); + DoorSvgContent = text; + } + } +} \ No newline at end of file diff --git a/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.css b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.css new file mode 100644 index 0000000..6a4cdeb --- /dev/null +++ b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.css @@ -0,0 +1,36 @@ +/* Background scuro del modale */ +.modalOrd { + position: fixed; + z-index: 1; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: #000000; + background-color: rgba(0, 0, 0, 0.4); +} +/* Modal Content/Box */ +.modalOrd-content { + background-color: #fefefe; + margin: 15% auto; + padding: 20px; + border: 1px solid #888; + width: 50%; + border-radius: 1rem; + /* display: flex; + justify-content: space-between;*/ +} +/* The Close Button */ +.closeOrd { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; +} +.closeOrd:hover, +.closeOrd:focus { + color: black; + text-decoration: none; + cursor: pointer; +} \ No newline at end of file diff --git a/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.less b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.less new file mode 100644 index 0000000..2744e69 --- /dev/null +++ b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.less @@ -0,0 +1,40 @@ +/* Background scuro del modale */ +.modalOrd { + //display: none; + position: fixed; + z-index: 1; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: rgb(0,0,0); + background-color: rgba(0,0,0,0.4); +} + +/* Modal Content/Box */ +.modalOrd-content { + background-color: #fefefe; + margin: 15% auto; + padding: 20px; + border: 1px solid #888; + width: 50%; + border-radius: 1rem; +/* display: flex; + justify-content: space-between;*/ +} + +/* The Close Button */ +.closeOrd { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; +} + +.closeOrd:hover, +.closeOrd:focus { + color: black; + text-decoration: none; + cursor: pointer; +} diff --git a/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.min.css b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.min.css new file mode 100644 index 0000000..9a9e421 --- /dev/null +++ b/WebDoorCreator.UI/Components/DoorMan/DoorModal.razor.min.css @@ -0,0 +1 @@ +.modalOrd{position:fixed;z-index:1;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.4);}.modalOrd-content{background-color:#fefefe;margin:15% auto;padding:20px;border:1px solid #888;width:50%;border-radius:1rem;}.closeOrd{color:#aaa;float:right;font-size:28px;font-weight:bold;}.closeOrd:hover,.closeOrd:focus{color:#000;text-decoration:none;cursor:pointer;} \ No newline at end of file diff --git a/WebDoorCreator.UI/Pages/TestModal.razor b/WebDoorCreator.UI/Pages/TestModal.razor new file mode 100644 index 0000000..65a2f33 --- /dev/null +++ b/WebDoorCreator.UI/Pages/TestModal.razor @@ -0,0 +1,3 @@ +@page "/TestModal" + + \ No newline at end of file diff --git a/WebDoorCreator.UI/Pages/TestModal.razor.cs b/WebDoorCreator.UI/Pages/TestModal.razor.cs new file mode 100644 index 0000000..3968b27 --- /dev/null +++ b/WebDoorCreator.UI/Pages/TestModal.razor.cs @@ -0,0 +1,6 @@ +namespace WebDoorCreator.UI.Pages +{ + public partial class TestModal + { + } +} \ No newline at end of file diff --git a/WebDoorCreator.UI/Pages/TestModal.razor.css b/WebDoorCreator.UI/Pages/TestModal.razor.css new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/WebDoorCreator.UI/Pages/TestModal.razor.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/WebDoorCreator.UI/Pages/TestModal.razor.min.css b/WebDoorCreator.UI/Pages/TestModal.razor.min.css new file mode 100644 index 0000000..5f28270 --- /dev/null +++ b/WebDoorCreator.UI/Pages/TestModal.razor.min.css @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/WebDoorCreator.UI/compilerconfig.json b/WebDoorCreator.UI/compilerconfig.json index 04c30b1..d769aee 100644 --- a/WebDoorCreator.UI/compilerconfig.json +++ b/WebDoorCreator.UI/compilerconfig.json @@ -86,5 +86,13 @@ { "outputFile": "Components/Order/OrderDets.razor.css", "inputFile": "Components/Order/OrderDets.razor.less" + }, + { + "outputFile": "Pages/TestModal.razor.css", + "inputFile": "Pages/TestModal.razor.less" + }, + { + "outputFile": "Components/DoorMan/DoorModal.razor.css", + "inputFile": "Components/DoorMan/DoorModal.razor.less" } ] \ No newline at end of file