From 929b8eb719ebd4f443eb064a7565c3cbda987632 Mon Sep 17 00:00:00 2001 From: Triston Date: Sat, 6 Apr 2024 01:28:33 -0500 Subject: [PATCH] (feat): update ui styles and layout --- src-tauri/tauri.conf.json | 6 ++--- src/App.tsx | 57 ++++++++++++++++++++++++++++++++------- src/styles.css | 5 ++-- 3 files changed, 53 insertions(+), 15 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 242f2ee..f05cea8 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -44,12 +44,12 @@ "windows": [ { "title": "KlectrRadio", - "width": 1200, + "width": 800, "height": 600, "decorations": false, "resizable": true, - "min-width": 800, - "min-height": 600 + "minWidth": 800, + "minHeight": 600 } ], "security": { diff --git a/src/App.tsx b/src/App.tsx index fdcc505..facc067 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,15 +13,17 @@ export function App() { }, []) return ( -
-
+
+ + {/* Left Section __________*/} +

Music

    -
  • +
  • @@ -35,27 +37,62 @@ export function App() {
-
- -
+
{/* Right Section __________*/} -
+
-
-

Music Player

+ + {/* Music Player __________*/} +
+
+ station art +
+

Camden to Chinatown

+

Loafy Building, Raimu

+
+
+ +
+
+ + + +
+ +
+

0:40

+ +

1:44

+
+
+ +
+ + + + + +
-
+ + {/* Popular Section __________*/} +

Popular

+ + {/* Bottom Section __________*/}
+ {/* Local Radio __________*/}

Local Radio

+ + {/* Recommended Radio __________*/}

Recommended For You

diff --git a/src/styles.css b/src/styles.css index 646d6f9..2d04baf 100644 --- a/src/styles.css +++ b/src/styles.css @@ -26,7 +26,7 @@ body { } .titlebar { - height: 20px; + height: 30px; user-select: none; display: flex; justify-content: flex-start; @@ -35,7 +35,8 @@ body { top: 0; left: 0; right: 0; - padding: 10px; + padding: 5px; + cursor: grab; } .titlebar-button { display: inline-flex;