Skip to content

Commit

Permalink
Merge pull request #10 from Dave-Whiffin/LatestBlockRepositioning
Browse files Browse the repository at this point in the history
Improving layout of Latest Block
  • Loading branch information
juanfranblanco authored Jun 7, 2019
2 parents 6e2ae5e + 53a1822 commit 0173223
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions NethereumBlazor/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@

<div class="main">
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href=""></a>

<div class="card">
<div class="card-body"><span class="text-secondary">Latest Block: @NewBlockProcessingService.BlockNumber.ToString()</span></div>
</div>


<div class="form-inline">
<select class="form-control mr-sm-2" onchange="@UrlChange">
<option value="https://mainnet.infura.io/v3/7238211010344719ad14a89db874158c" selected>https://mainnet.infura.io</option>
Expand All @@ -29,16 +34,16 @@
@if (QueryError)
{

<input class="form-control is-invalid mr-sm-2" type="search" placeholder="Search Block,Txnhash" bind="@Query" aria-label="Search" required />
<input class="form-control is-invalid mr-sm-2" type="search" placeholder="Search Block, Txn Hash" bind="@Query" aria-label="Search" required />

}
else
{
<input class="form-control mr-sm-2" type="search" placeholder="Search Block,Txnhash" bind="@Query" aria-label="Search" required />
<input class="form-control mr-sm-2" type="search" placeholder="Search Block, Txn Hash" bind="@Query" aria-label="Search" required />

}
<button class="btn btn-outline-success my-2 my-sm-0" type="submit" onclick="@SearchBlockchain">Search</button>
<small> Block Number: <strong>@NewBlockProcessingService.BlockNumber.ToString()</strong> </small>

</div>

</nav>
Expand Down

0 comments on commit 0173223

Please sign in to comment.