Skip to content

Commit

Permalink
#22 Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-hedley committed Jul 12, 2023
1 parent 441d46c commit c58574e
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 23 deletions.
Binary file modified docs/images/progress/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/progress/demo_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/Blashing.Client/Blashing.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.8" PrivateAssets="all" />
<PackageReference Include="Excubo.Blazor.Grids" Version="3.1.14" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Blashing.Core\Blashing.Core.csproj">
<GlobalPropertiesToRemove></GlobalPropertiesToRemove>
</ProjectReference>
</ItemGroup>

<!--<ItemGroup>
<None Update="Pages/*.razor.css" CssScope="inherit-scope" />
</ItemGroup>-->
</Project>
60 changes: 37 additions & 23 deletions src/Blashing.Client/Pages/Demo.razor
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
@using Excubo.Blazor.Grids

@page "/demo"

<PageTitle>Demo</PageTitle>

<h3>Demo</h3>

<div class="container">
@*<div class="container">
<div class="row">
<div class="col-md-9">
<div class="row">
<div class="col-md-9">
<TextWidget Title="Hello" Text="This is your shiny new dashboard" MoreInfo="Protio: You can drag the widgets around!" UpdatedAtMessage=""/>
</div>
<div class="col-md-3">
<MeterWidget Title="Synergy" MoreInfo="" UpdatedAtMessage="Last updated at 0:00" />
</div>
</div>
<div class="row">
<div class="col-md-3">
<NumberWidget Title="Current Valuation" Current="$27" Difference="⬇️ 46%" MoreInfo="in billions" UpdatedAtMessage="Last updated at 0:00"/>
</div>
<div class="col-md-9">
<GraphWidget Title="Convergence" MoreInfo=""/>
</div>
</div>
</div>
<div class="col-md-3">
<ListWidget Title="Buzzwords" MoreInfo="# of times said around the office" UpdatedAtMessage="Last updated at 0:00" Items="@Items" />
</div>
<div class="col">*@

<Dashboard AspectRatio="1.5" style="height: 750px" ColumnCount="4">

<Element Row="0" Column="0" ColumnSpan="2" style="border: none; box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12)">
@*<div style="height: 100%; width: 100%; background-color: #ec663c"></div>*@
<TextWidget Title="Hello" Text="This is your shiny new dashboard" MoreInfo="Protip: You can drag the widgets around!" UpdatedAtMessage="" />
</Element>

<Element Row="0" Column="2" style="border: none; box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12)">
@*<div style="height: 100%; width: 100%; background-color: #9c4274"></div>*@
<MeterWidget Title="Synergy" MoreInfo="" UpdatedAtMessage="Last updated at 0:00" />
</Element>

<Element Row="0" Column="3" RowSpan="2" style="border: none; box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12)">
@*<div style="height: 100%; width: 100%; background-color: #12b0c5"></div>*@
<ListWidget Title="Buzzwords" MoreInfo="# of times said around the office" UpdatedAtMessage="Last updated at 0:00" Items="@Items" />
</Element>

<Element Row="1" Column="0" style="border: none; box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12)">
@*<div style="height: 100%; width: 100%; background-color: #47bbb3"></div>*@
<NumberWidget Title="Current Valuation" Current="$27" Difference="⬇️ 46%" MoreInfo="in billions" UpdatedAtMessage="Last updated at 0:00" />
</Element>

<Element Row="1" Column="1" ColumnSpan="2" style="border: none; box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12)">
@*<div style="height: 100%; width: 100%; background-color: #dc5945"></div>*@
<GraphWidget Title="Convergence" MoreInfo="" />
</Element>

</Dashboard>

@*</div>
</div>
</div>
</div>*@

@code {
List<(string label, string value)>? Items = new() { ("Turn-key", "0"), ("Synergy", "4"), ("Exit strategy", "11"), ("Paridigm shift", "3"), ("Enterprise", "20"), ("Pivoting", "7"), ("Web 2.0", "16"), ("Leverage", "25"), ("Streamlininess", "9") };
Expand Down

0 comments on commit c58574e

Please sign in to comment.