Author SHA1 Message Date
schn33fuchs 177e959bbd Center 2026-06-06 18:53:44 +02:00
schn33fuchs 3d68064b33 Resize 2026-06-06 18:50:56 +02:00
schn33fuchs 52ca6ec96f Home button
now has an svg
2026-06-06 18:48:14 +02:00
schn33fuchs 7f3913dcfb Post merge fix 2026-06-06 18:44:40 +02:00
schn33fuchs 31e98c0936 Merge branch 'ticket_background' 2026-06-06 18:36:31 +02:00
TheDiluTek 2a15f77f4f so ein bisschen buttons und links und non admin user tests 2026-06-06 18:13:40 +02:00
6 changed files with 41 additions and 7 deletions
+12 -2
View File
@@ -381,7 +381,12 @@ pub fn sidebar() -> Html {
<SidebarStateProvider> <SidebarStateProvider>
<nav class="sidebar user"> <nav class="sidebar user">
<ul> <ul>
<Link<crate::Route> to={crate::Route::Home}>{ "󰟒" }</Link<crate::Route>> <Link<crate::Route> to={crate::Route::Home} classes="home">
<svg xmlns="http://www.w3.org/2000/svg" class="home-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
<polyline points="9 22 9 12 15 12 15 22"/>
</svg>
</Link<crate::Route>>
<TicketMenu/> <TicketMenu/>
<li class="logout-item"> <li class="logout-item">
<button <button
@@ -401,7 +406,12 @@ pub fn sidebar() -> Html {
<SidebarStateProvider> <SidebarStateProvider>
<nav class="sidebar admin"> <nav class="sidebar admin">
<ul> <ul>
<Link<crate::Route> to={crate::Route::Home}>{ "󰟒" }</Link<crate::Route>> <Link<crate::Route> to={crate::Route::Home} classes="home">
<svg xmlns="http://www.w3.org/2000/svg" class="home-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>
<polyline points="9 22 9 12 15 12 15 22"/>
</svg>
</Link<crate::Route>>
<TicketMenu/> <TicketMenu/>
<UsersMenu/> <UsersMenu/>
<Link<crate::Route> to={crate::Route::Diagnostics}>{ "Statistiken" }</Link<crate::Route>> <Link<crate::Route> to={crate::Route::Diagnostics}>{ "Statistiken" }</Link<crate::Route>>
+1 -1
View File
@@ -313,7 +313,7 @@ pub fn submit_ticket_component() -> Html {
{ {
if !room_valid { if !room_valid {
html! { html! {
<p style="color: red;">{ "Ungültiger oder nicht erlaubter Raum (z. B. 101, K12, D5)" }</p> <p class="warning" >{ "Ungültiger / nicht erlaubter Raum (z. B. 101, K12, D5)" }</p>
} }
} else { } else {
html! {} html! {}
+1 -1
View File
@@ -425,7 +425,7 @@ pub fn all_users_component() -> Html {
html! { <p>{ format!("Error: {}", e) }</p> } html! { <p>{ format!("Error: {}", e) }</p> }
} else { } else {
html! { html! {
<ul class="posti8s"> <ul class="postits">
{ for users.iter().map(|t| html! { { for users.iter().map(|t| html! {
<li key={t.id.to_string()} class="listbox"> <li key={t.id.to_string()} class="listbox">
<Link<crate::Route> to={crate::Route::UserByID{id: t.id}}><h3>{ format!("{} {}- #{}", t.first_name, t.last_name, t.id) }</h3></Link<crate::Route>> <Link<crate::Route> to={crate::Route::UserByID{id: t.id}}><h3>{ format!("{} {}- #{}", t.first_name, t.last_name, t.id) }</h3></Link<crate::Route>>
+12 -1
View File
@@ -53,5 +53,16 @@
} }
&.user { width: 220px; background: darken($color-sidebar, 6%); } &.user { width: 220px; background: darken($color-sidebar, 6%); }
}
.home-svg {
width: 24px;
height: 24px;
vertical-align: middle;
margin: 0 auto;
}
.home {
display: flex;
justify-content: center;
}
}
@@ -16,6 +16,7 @@
.listbox { .listbox {
max-width: auto; max-width: auto;
margin:0 0; margin:0 0;
background-color: #90ff82;
background-color: $rundbgbackgroundcolor; background-color: $rundbgbackgroundcolor;
padding-bottom: 96px; padding-bottom: 96px;
color: white; color: white;
@@ -51,4 +52,8 @@
display: grid; display: grid;
grid-template-columns: auto auto auto; grid-template-columns: auto auto auto;
gap: 8px; gap: 8px;
margin-top: 96px;
}
.warning {
color: #570000;
} }
+10 -2
View File
@@ -61,7 +61,7 @@ body {
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
max-width: 40%; max-width: 40%;
margin:0 auto; margin: 0 auto;
background-color: variables.$rundbgbackgroundcolor; background-color: variables.$rundbgbackgroundcolor;
padding-bottom: 96px; padding-bottom: 96px;
padding-left: 32px; padding-left: 32px;
@@ -80,7 +80,7 @@ body {
box-sizing: border-box; box-sizing: border-box;
} }
input, select, button { input, select, button, a {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 16px; padding: 16px;
@@ -98,6 +98,12 @@ body {
margin: 16px 0; margin: 16px 0;
} }
a {
color: #000000;
text-align: center;
border-style: dashed;
}
&.login { &.login {
margin-top: 96px; margin-top: 96px;
} }
@@ -107,3 +113,5 @@ body {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }