diff --git a/src/Components/LaunchBrowser.razor b/src/Components/LaunchBrowser.razor deleted file mode 100644 index cccffc3..0000000 --- a/src/Components/LaunchBrowser.razor +++ /dev/null @@ -1,18 +0,0 @@ -@inject IJSRuntime JsRuntime - -@Text - -@code { - - [Parameter] - [Required] - public string? Text { get; set; } - - [Parameter] - [Required] - public string? Address { get; set; } - private async Task OpenBrowserAsync() - { - await JsRuntime.InvokeAsync("__TAURI__.tauri.invoke", "open_browser", new { address = Address }); - } -} \ No newline at end of file diff --git a/src/Components/OpenBrowser.razor b/src/Components/OpenBrowser.razor new file mode 100644 index 0000000..b7dbf07 --- /dev/null +++ b/src/Components/OpenBrowser.razor @@ -0,0 +1,24 @@ +@inject IJSRuntime JsRuntime + +@if (IsButton) +{ + +} +else +{ + @Text +} + +@code { + + [Parameter] public string? Text { get; set; } + + [Parameter] public string? Address { get; set; } + + [Parameter] public bool IsButton { get; set; } + + private async Task OpenBrowserAsync() + { + await JsRuntime.InvokeAsync("__TAURI__.tauri.invoke", "open_browser", new { address = Address }); + } +} \ No newline at end of file diff --git a/src/Components/StationInput.razor b/src/Components/StationForm.razor similarity index 80% rename from src/Components/StationInput.razor rename to src/Components/StationForm.razor index c072e35..d6b924a 100644 --- a/src/Components/StationInput.razor +++ b/src/Components/StationForm.razor @@ -5,6 +5,9 @@ +

Search + +

@code { diff --git a/src/Pages/Home.razor b/src/Pages/Home.razor index 85cc228..1b1f99b 100644 --- a/src/Pages/Home.razor +++ b/src/Pages/Home.razor @@ -1,43 +1,44 @@ @page "/" + + + + +
-
- - -

Search - -

-
-
- + +
+
+ +
+
+ +
+
+ +
-
- -
-
- +
+
+ + + +
+
+ + + +
-
-
- - - -
-
- - - -
-
-
-
- - -

-
Status Boards by - -

-
-
-
+
+ + +

+
Status Boards by + +

+
+
+
+ diff --git a/src/wwwroot/css/app.css b/src/wwwroot/css/app.css index 6b42ba1..8a52680 100644 --- a/src/wwwroot/css/app.css +++ b/src/wwwroot/css/app.css @@ -1,3 +1,5 @@ +@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css'; + .logo.blazor:hover { filter: drop-shadow(0 0 2em #5c2d91); } @@ -33,40 +35,6 @@ footer { bottom: 0; } -/* The sidebar menu */ -.sidenav { - height: 100%; - /* Full-height: remove this if you want "auto" height */ - width: 160px; - /* Set the width of the sidebar */ - position: fixed; - /* Fixed Sidebar (stay in place on scroll) */ - z-index: 1; - /* Stay on top */ - top: 0; - /* Stay at the top */ - left: 0; - background-color: #111; - /* Black */ - overflow-x: hidden; - /* Disable horizontal scroll */ - padding-top: 20px; -} - -/* The navigation menu links */ -.sidenav a { - padding: 6px 8px 6px 16px; - text-decoration: none; - font-size: 25px; - color: #818181; - display: block; -} - -/* When you mouse over the navigation links, change their color */ -.sidenav a:hover { - color: #f1f1f1; -} - .logo { height: 6em; padding: 1.5em; @@ -126,7 +94,7 @@ button { outline: none; } -@media (prefers-color-scheme: dark) { +/* @media (prefers-color-scheme: dark) { :root { color: #f6f6f6; background-color: #2f2f2f; @@ -145,4 +113,4 @@ button { button:active { background-color: #0f0f0f69; } -} \ No newline at end of file +} */ \ No newline at end of file diff --git a/src/wwwroot/index.html b/src/wwwroot/index.html index 1bc4ca7..627bf3d 100644 --- a/src/wwwroot/index.html +++ b/src/wwwroot/index.html @@ -7,6 +7,9 @@ Tauri + Blazor + +