Skip to content

Commit

Permalink
added version to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
jocon15 committed Feb 16, 2025
1 parent ac0af01 commit 23b1b71
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
1 change: 1 addition & 0 deletions TreeClimber/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@*Custom CSS Files*@
<link href="@AppendVersion("Buttons.css")" rel="stylesheet" />
<link href="@AppendVersion("Climb.css")" rel="stylesheet" />
<link href="@AppendVersion("Home.css")" rel="stylesheet" />
<link href="@AppendVersion("Inputs.css")" rel="stylesheet" />
<link href="@AppendVersion("Modal.css")" rel="stylesheet" />
<link href="@AppendVersion("Page.css")" rel="stylesheet" />
Expand Down
6 changes: 1 addition & 5 deletions TreeClimber/Components/Layout/NavMenu.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">Tree Climber @_version</a>
<a class="navbar-brand" href="">Tree Climber</a>
</div>
</div>

Expand All @@ -16,7 +16,3 @@
</nav>
</div>

@code{
private string _version = "0.1.0";
}

7 changes: 6 additions & 1 deletion TreeClimber/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@

<PageTitle>Home</PageTitle>

<h3 class="climb-header">Welcome to Tree Climber!</h3>
<div class="inline-header-container">
<h3 class="home-header">Welcome to Tree Climber!</h3>
<text class="hint inline-hint">v@_version</text>
</div>

<p>
<text class="hint">10MB limit</text>
Expand All @@ -32,6 +35,8 @@
}

@code {
private string _version = "0.1.0";

private List<IBrowserFile> loadedFiles = [];
private IBrowserFile? _file;
private long maxFileSize = 1024 * 10; // 1024 bytes in a kibibyte, * 238 ~= 250MB
Expand Down
20 changes: 20 additions & 0 deletions TreeClimber/wwwroot/Home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.inline-header-container{
display: flex;
}

.inline-hint {
display: grid;
align-items: end;
padding-bottom: 8px;
margin-left: 10px;
}

.home-header {
display: inline-block;
color: #fff;
background-color: #404040;
width: fit-content;
font-family: var(--application-font-family);
padding: 15px;
border-radius: 20px;
}

0 comments on commit 23b1b71

Please sign in to comment.