Skip to content

Commit

Permalink
Better mobile UI
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelMichels committed Apr 26, 2024
1 parent 2f370cc commit 56dd617
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
@inherits LayoutComponentBase

<header class="p-4 pb-3 d-flex align-items-center">
<div class="me-auto">
<h1 class="m-0 fw-bold lh-1">Michel</h1>
<h1 class="m-0 fw-bold lh-1">Michels</h1>
</div>

<div class="p-2">
<a href="https://github.com/MichelMichels" class="btn btn-outline-secondary" role="button">
<div class="hstack gap-2">
<i class="bi-github" />
<span>Profile</span>
</div>
</a>
</div>
</header>

<div class="wavy-line bg-secondary"></div>

@Body

<div id="blazor-error-ui">
Expand Down
24 changes: 3 additions & 21 deletions src/MichelMichels.ViesSharp.Demo/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,15 @@
<PageTitle>ViesSharp | Demo</PageTitle>

<div>
<header class="p-4 pb-3 d-flex align-items-center">
<div class="me-auto">
<h1 class="m-0 fw-bold lh-1">Michel</h1>
<h1 class="m-0 fw-bold lh-1">Michels</h1>
</div>

<div class="p-2">
<a href="https://github.com/MichelMichels" class="btn btn-outline-secondary" role="button">
<div class="hstack gap-2">
<i class="bi-github" />
<span>Profile</span>
</div>
</a>
</div>
</header>

<div class="wavy-line bg-secondary"></div>

<div class="container p-4 ">
<div class="row g-4">
<div class="col-12 d-flex align-items-center gap-3">
<h2 class="display-2">ViesSharp</h2>

<a href="https://github.com/MichelMichels/ViesSharp" class="btn btn-primary" role="button">
<a href="https://github.com/MichelMichels/ViesSharp" class="btn btn-outline-primary" role="button">
<div class="hstack gap-2">
<i class="bi-github" />
<span>Repository</span>
<span class="d-none d-sm-block">Repository</span>
</div>
</a>
</div>
Expand Down Expand Up @@ -78,7 +60,7 @@

<input type="text" class="form-control" placeholder="VAT no." @bind="@VatNumber" />

<div class="d-grid col-8 mx-auto">
<div class="d-grid">
<button class="btn btn-primary @(string.IsNullOrEmpty(SelectedCountryCode) ? "disabled" : "")" type="button" @onclick="Lookup">
<span class="@(IsLookingUp ? "d-none" : "")">Lookup</span>
<div class="spinner-border spinner-border-sm @(!IsLookingUp ? "d-none" : "")" role="status">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
h1, h2, h3 {
font-family: 'Montserrat', 'sans-serif';
}

a {
text-decoration: none;
}

8 changes: 8 additions & 0 deletions src/MichelMichels.ViesSharp.Demo/wwwroot/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ body {
overflow-y: scroll;
}

h1, h2, h3 {
font-family: 'Montserrat', 'sans-serif';
}

a {
text-decoration: none;
}

.wavy-line {
--s: 8px; /* size of the wave */
--b: 2px; /* thickness of the line */
Expand Down

0 comments on commit 56dd617

Please sign in to comment.