41 lines
958 B
Plaintext
41 lines
958 B
Plaintext
@using WebDoorCreator.UI.Components.SvgComp
|
|
@page "/TestPage"
|
|
|
|
<h3>TestPage</h3>
|
|
|
|
|
|
<div class="row mx-2">
|
|
@for (int i = 0; i < 8; i++)
|
|
{
|
|
stepText = $"Block_{idxObj:00}";
|
|
<div class="col px-0">
|
|
<StepArrow ObjId="@idxObj" StepText="@stepText" BlockStyle="@blockStyle(idxObj)" ObjW="500" ObjH="100"></StepArrow>
|
|
</div>
|
|
idxObj++;
|
|
}
|
|
</div>
|
|
|
|
@code {
|
|
protected int idxObj { get; set; } = 1;
|
|
protected string stepText { get; set; } = "---";
|
|
protected string blockStyle(int idx)
|
|
{
|
|
string answ = "";
|
|
int resto = idx % 3;
|
|
switch (resto)
|
|
{
|
|
case 1:
|
|
answ = "fill:rgb(0,255,0);";
|
|
break;
|
|
case 2:
|
|
answ = "fill:rgb(0,0,255);";
|
|
break;
|
|
case 0:
|
|
default:
|
|
answ = "fill:rgb(255,0,0)";
|
|
break;
|
|
}
|
|
return answ;
|
|
}
|
|
}
|