diff --git a/backend/src/handlers/auth.rs b/backend/src/handlers/auth.rs index 4d251cb..b58c717 100644 --- a/backend/src/handlers/auth.rs +++ b/backend/src/handlers/auth.rs @@ -275,7 +275,7 @@ pub async fn get_current_user( /// - `404 Not Found` if user doesn't exist /// - `500 Internal Server Error` if database error occurs pub async fn delete_user( - Path(id): Path, + Path(id): Path, State(data): State>, ) -> Result)> { let query = sqlx::query(r#"DELETE FROM users WHERE id = $1"#) @@ -414,7 +414,7 @@ pub async fn get_user_by_id( /// - Passwords are hashed using Argon2 before storage. /// - This endpoint typically requires admin privileges (enforced by middleware). pub async fn update_user( - Path(id): Path, + Path(id): Path, State(data): State>, Json(body): Json, ) -> Result)> { diff --git a/frontend/src/pages/basic_pages.rs b/frontend/src/pages/basic_pages.rs index c918599..b9247f2 100644 --- a/frontend/src/pages/basic_pages.rs +++ b/frontend/src/pages/basic_pages.rs @@ -56,7 +56,7 @@ pub fn home_component() -> Html { } html! { -
+

{ "You are logged in as: " }

diff --git a/frontend/src/pages/ticket.rs b/frontend/src/pages/ticket.rs index 9d7573b..be911dd 100644 --- a/frontend/src/pages/ticket.rs +++ b/frontend/src/pages/ticket.rs @@ -297,7 +297,7 @@ pub fn submit_ticket_component() -> Html { let room_valid = (*room).is_some(); html! { -
+ diff --git a/frontend/src/styles/_variables.scss b/frontend/src/styles/_variables.scss index 1e2e305..1e0b0a1 100644 --- a/frontend/src/styles/_variables.scss +++ b/frontend/src/styles/_variables.scss @@ -1,8 +1,8 @@ $color-bg: #ffffff; -$color-sidebar: #0f172a; +$color-sidebar: #570000; $color-accent: #2563eb; $color-muted: #6b7280; $spacing-sm: 8px; $spacing-md: 16px; $border-radius: 6px; - +$rundbgbackgroundcolor: #a0a0a0; diff --git a/frontend/src/styles/components/_diagnostics.scss b/frontend/src/styles/components/_diagnostics.scss index ec73468..6628de7 100644 --- a/frontend/src/styles/components/_diagnostics.scss +++ b/frontend/src/styles/components/_diagnostics.scss @@ -130,7 +130,7 @@ .room-bar { height: 100%; - background-color: #f97316; + background-color: #570000; transition: width 0.3s ease; } } diff --git a/frontend/src/styles/components/_home.scss b/frontend/src/styles/components/_home.scss new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/styles/components/_sidebar.scss b/frontend/src/styles/components/_sidebar.scss index 110eaab..9686a1f 100644 --- a/frontend/src/styles/components/_sidebar.scss +++ b/frontend/src/styles/components/_sidebar.scss @@ -4,24 +4,26 @@ .sidebar { width: 260px; background: $color-sidebar; - color: #fff; + color: #fffefe; min-height: 100%; padding: $spacing-md; display: flex; flex-direction: column; + + ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: $spacing-sm; flex: 1; } a, .menu-toggle { - color: #fff; + color: #ffffff; text-decoration: none; display: block; padding: 8px 12px; border-radius: 4px; - &:hover { background: rgba(255,255,255,0.04); } + &:hover { background: rgba(158, 45, 1, 0.842); } } - .menu-toggle { background: transparent; border: none; text-align: left; width: 100%; cursor: pointer; } + .menu-toggle { background: #ff5a316c; border: none; text-align: left; width: 100%; cursor: pointer; } .submenu { margin-left: 8px; @@ -38,9 +40,9 @@ } .logout-button { - background: rgba(255,255,255,0.1); - color: #fff; - border: 1px solid rgba(255,255,255,0.2); + background: rgba(255, 93, 43, 0.527); + color: #ffffff; + border: 1px solid rgba(255, 255, 255, 0.801); padding: 8px 12px; border-radius: 4px; width: 100%; diff --git a/frontend/src/styles/components/_tickets.scss b/frontend/src/styles/components/_tickets.scss index 928e663..bf6b9fb 100644 --- a/frontend/src/styles/components/_tickets.scss +++ b/frontend/src/styles/components/_tickets.scss @@ -7,6 +7,7 @@ display: flex; flex-direction: column; gap: $spacing-sm; + .meta { color: $color-muted; font-size: 0.9rem; } .title { font-weight: 600; } } diff --git a/frontend/src/styles/main.scss b/frontend/src/styles/main.scss index 0a2830a..97eb764 100644 --- a/frontend/src/styles/main.scss +++ b/frontend/src/styles/main.scss @@ -5,6 +5,7 @@ @use "components/tickets"; @use "components/diagnostics"; @use "components/frontpage"; +@use "components/home"; body { background: variables.$color-bg; @@ -46,7 +47,7 @@ body { max-width: 40%; margin:0 auto; margin-top: 96px; - background-color:#a0a0a0; + background-color: variables.$rundbgbackgroundcolor; padding-bottom: 96px; padding-left: 32px; padding-right: 32px; @@ -57,6 +58,7 @@ body { border-style: double; box-shadow: 20px 20px 10px; box-shadow: rgb(43, 43, 43); + input, button { padding: 16px; @@ -68,4 +70,7 @@ body { } + button { + margin: 16px 0; + } } \ No newline at end of file