Skip to content

Commit

Permalink
Merge pull request #1020 from pkuehnel/feat/christmas
Browse files Browse the repository at this point in the history
feat(IndexRazor): update info texts
  • Loading branch information
pkuehnel authored Dec 8, 2023
2 parents fb56e0f + 4ffb15f commit 38bc40a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions TeslaSolarCharger/Client/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@

<PageTitle>Tesla Solar Charger</PageTitle>

@if(_serverTime != default)
{
if (_serverTime.Value is { Day: 24, Month: 12, Hour: > 15 } or { Day: 25, Month: 12 })
{
<div class="alert alert-info" role="alert">
Merry Christmas! &#127876; &#127877; &#127873;
</div>

}
if(_serverTime.Value is { Day: 31, Month: 12, Hour: > 15 } or { Day: 1, Month: 1})
{
<div class="alert alert-info" role="alert">
Happy New Year! &#127878; &#127881; &#127882;
</div>
}
}

<BackendIssueValidation></BackendIssueValidation>

@if (_pvValues != null)
Expand Down

0 comments on commit 38bc40a

Please sign in to comment.