mirror of
https://github.com/tonytins/amtkstat.git
synced 2025-03-22 14:42:19 +00:00
Removed stat component
- Slight redesign and clean up
This commit is contained in:
parent
ab6a929add
commit
f21e9f658d
5 changed files with 24 additions and 19 deletions
|
@ -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/).
|
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
|
## Background
|
||||||
|
|
||||||
|
@ -20,3 +20,7 @@ Before you begin, ensure you have the latest versions of the following installed
|
||||||
## License
|
## 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.*
|
|
@ -8,7 +8,7 @@
|
||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "AMTK Status",
|
"productName": "AMTK Status",
|
||||||
"version": "0.1.100"
|
"version": "0.1.101"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|
|
@ -4,22 +4,26 @@
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<form class="row" @onsubmit="GreetAsync" @onsubmit:preventDefault="true">
|
<form class="row" @onsubmit="GreetAsync" @onsubmit:preventDefault="true">
|
||||||
<input id="greet-input" placeholder="Write in 3-character Station Code..." @bind="GreetInput" />
|
<input id="greet-input" placeholder="3-character Station Code" @bind="CodeInput" />
|
||||||
<button type="submit">Greet</button>
|
<button type="submit">Submit</button>
|
||||||
</form>
|
</form>
|
||||||
<p>Status Maps by Dixieland Software</p>
|
<sub>
|
||||||
|
<i>
|
||||||
|
<p>Status Boards by Dixieland Software</p>
|
||||||
|
</i>
|
||||||
|
</sub>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@code
|
@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()
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
|
@ -1,6 +1,7 @@
|
||||||
.logo.blazor:hover {
|
.logo.blazor:hover {
|
||||||
filter: drop-shadow(0 0 2em #5c2d91);
|
filter: drop-shadow(0 0 2em #5c2d91);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
@ -17,7 +18,8 @@
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container,
|
||||||
|
footer {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-top: 10vh;
|
padding-top: 10vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -77,6 +79,7 @@ button {
|
||||||
button:hover {
|
button:hover {
|
||||||
border-color: #396cd8;
|
border-color: #396cd8;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:active {
|
button:active {
|
||||||
border-color: #396cd8;
|
border-color: #396cd8;
|
||||||
background-color: #e8e8e8;
|
background-color: #e8e8e8;
|
||||||
|
@ -106,6 +109,7 @@ button {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
background-color: #0f0f0f98;
|
background-color: #0f0f0f98;
|
||||||
}
|
}
|
||||||
|
|
||||||
button:active {
|
button:active {
|
||||||
background-color: #0f0f0f69;
|
background-color: #0f0f0f69;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue