Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving layout of Latest Block #10

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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