Removed stat component

- Slight redesign and clean up
This commit is contained in:
Tony Bark 2024-09-09 05:42:36 -04:00
parent ab6a929add
commit f21e9f658d
5 changed files with 24 additions and 19 deletions

View file

@ -4,7 +4,7 @@
Amtrak Status Boards, or AMTK Status, is a desktop front-end for accessing Dixieland Software's [station status boards](https://dixielandsoftware.net/Amtrak/solari/).
**WARNING: RESOLUTION IS LARGE.**
**WARNING: LARGE RESOLUTION.**
## Background
@ -19,4 +19,8 @@ Before you begin, ensure you have the latest versions of the following installed
## License
I license this project under the GPL-2.0 license - see [LICENSE](LICENSE) for details.
I license this project under the GPL-2.0 license - see [LICENSE](LICENSE) for details.
## Disclaimer
*This project is not in any way affiliated with Amtrak or Dixieland Software.*

View file

@ -8,7 +8,7 @@
},
"package": {
"productName": "AMTK Status",
"version": "0.1.100"
"version": "0.1.101"
},
"tauri": {
"allowlist": {

View file

@ -4,22 +4,26 @@
<div class="container">
<form class="row" @onsubmit="GreetAsync" @onsubmit:preventDefault="true">
<input id="greet-input" placeholder="Write in 3-character Station Code..." @bind="GreetInput" />
<button type="submit">Greet</button>
<input id="greet-input" placeholder="3-character Station Code" @bind="CodeInput" />
<button type="submit">Submit</button>
</form>
<p>Status Maps by Dixieland Software</p>
<sub>
<i>
<p>Status Boards by Dixieland Software</p>
</i>
</sub>
</div>
@code
{
private string? GreetInput { get; set; }
private string? CodeInput { get; set; }
private string? GreetMsg { get; set; }
private string? StationCode { get; set; }
private async Task GreetAsync()
{
GreetMsg = await JsRuntime.InvokeAsync<string>("__TAURI__.tauri.invoke", "greet", new { name = GreetInput });
StationCode = await JsRuntime.InvokeAsync<string>("__TAURI__.tauri.invoke", "greet", new { name = CodeInput });
NavigationManager.NavigateTo(GreetMsg);
NavigationManager.NavigateTo(StationCode);
}
}

View file

@ -1,7 +0,0 @@
@page "/stats"
<iframe width="99%" height="99%" src=@Navigate frameborder="0"></iframe>
@code {
[Parameter] public string Navigate { get; set; } = string.Empty;
}

View file

@ -1,6 +1,7 @@
.logo.blazor:hover {
filter: drop-shadow(0 0 2em #5c2d91);
}
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
@ -17,7 +18,8 @@
-webkit-text-size-adjust: 100%;
}
.container {
.container,
footer {
margin: 0;
padding-top: 10vh;
display: flex;
@ -77,6 +79,7 @@ button {
button:hover {
border-color: #396cd8;
}
button:active {
border-color: #396cd8;
background-color: #e8e8e8;
@ -106,7 +109,8 @@ button {
color: #ffffff;
background-color: #0f0f0f98;
}
button:active {
background-color: #0f0f0f69;
}
}
}