Compare commits
3
Commits
810d554cb9
...
dfb031949b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dfb031949b | ||
|
|
b030e133a2 | ||
|
|
2e6bd2a781 |
@@ -56,7 +56,7 @@ pub fn home_component() -> Html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
html! {
|
html! {
|
||||||
<div>
|
<div class="rundbg">
|
||||||
<crate::utilities::TicketCount/>
|
<crate::utilities::TicketCount/>
|
||||||
|
|
||||||
<p>{ "You are logged in as: " }</p>
|
<p>{ "You are logged in as: " }</p>
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ pub fn submit_ticket_component() -> Html {
|
|||||||
let room_valid = (*room).is_some();
|
let room_valid = (*room).is_some();
|
||||||
|
|
||||||
html! {
|
html! {
|
||||||
<form {onsubmit}>
|
<form class="rundbg" {onsubmit}>
|
||||||
<label>{ "Betreff:" }
|
<label>{ "Betreff:" }
|
||||||
<input type="text" value={(*betreff).clone()} oninput={betreff_change}/>
|
<input type="text" value={(*betreff).clone()} oninput={betreff_change}/>
|
||||||
</label>
|
</label>
|
||||||
@@ -674,9 +674,9 @@ pub fn all_tickets_component() -> Html {
|
|||||||
html! { <p>{ format!("Error: {}", e) }</p> }
|
html! { <p>{ format!("Error: {}", e) }</p> }
|
||||||
} else {
|
} else {
|
||||||
html! {
|
html! {
|
||||||
<ul>
|
<ul class= "postits">
|
||||||
{ for tickets.iter().filter(|t| t.status != "Archived" && (if user.is_admin { true } else if let Some(uid) = user.id { t.user_id == uid } else { false })).map(|t| html! {
|
{ for tickets.iter().filter(|t| t.status != "Archived" && (if user.is_admin { true } else if let Some(uid) = user.id { t.user_id == uid } else { false })).map(|t| html! {
|
||||||
<div>
|
<div class="ticketbox">
|
||||||
<li key={t.id.to_string()}>
|
<li key={t.id.to_string()}>
|
||||||
<Link<crate::Route> to={crate::Route::TicketById{id: t.id}}><h3>{ format!("{} - #{}", t.betreff, t.id) }</h3></Link<crate::Route>>
|
<Link<crate::Route> to={crate::Route::TicketById{id: t.id}}><h3>{ format!("{} - #{}", t.betreff, t.id) }</h3></Link<crate::Route>>
|
||||||
<p>{ &t.description }</p>
|
<p>{ &t.description }</p>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
$color-bg: #ffffff;
|
$color-bg: #ffffff;
|
||||||
$color-sidebar: #0f172a;
|
$color-sidebar: #570000;
|
||||||
$color-accent: #2563eb;
|
$color-accent: #2563eb;
|
||||||
$color-muted: #6b7280;
|
$color-muted: #6b7280;
|
||||||
$spacing-sm: 8px;
|
$spacing-sm: 8px;
|
||||||
$spacing-md: 16px;
|
$spacing-md: 16px;
|
||||||
$border-radius: 6px;
|
$border-radius: 6px;
|
||||||
|
$rundbgbackgroundcolor: #a0a0a0;
|
||||||
|
|||||||
@@ -130,7 +130,7 @@
|
|||||||
|
|
||||||
.room-bar {
|
.room-bar {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #f97316;
|
background-color: #570000;
|
||||||
transition: width 0.3s ease;
|
transition: width 0.3s ease;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,24 +4,26 @@
|
|||||||
.sidebar {
|
.sidebar {
|
||||||
width: 260px;
|
width: 260px;
|
||||||
background: $color-sidebar;
|
background: $color-sidebar;
|
||||||
color: #fff;
|
color: #fffefe;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
padding: $spacing-md;
|
padding: $spacing-md;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: $spacing-sm; flex: 1; }
|
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: $spacing-sm; flex: 1; }
|
||||||
|
|
||||||
a, .menu-toggle {
|
a, .menu-toggle {
|
||||||
color: #fff;
|
color: #ffffff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
border-radius: 4px;
|
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 {
|
.submenu {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
@@ -38,9 +40,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logout-button {
|
.logout-button {
|
||||||
background: rgba(255,255,255,0.1);
|
background: rgba(255, 93, 43, 0.527);
|
||||||
color: #fff;
|
color: #ffffff;
|
||||||
border: 1px solid rgba(255,255,255,0.2);
|
border: 1px solid rgba(255, 255, 255, 0.801);
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@@ -7,7 +7,31 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: $spacing-sm;
|
gap: $spacing-sm;
|
||||||
|
|
||||||
.meta { color: $color-muted; font-size: 0.9rem; }
|
.meta { color: $color-muted; font-size: 0.9rem; }
|
||||||
.title { font-weight: 600; }
|
.title { font-weight: 600; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ticketbox {
|
||||||
|
max-width: auto;
|
||||||
|
margin:0 0;
|
||||||
|
margin-top: 96px;
|
||||||
|
background-color: #ffec3f;
|
||||||
|
padding-bottom: 96px;
|
||||||
|
padding-left: 32px;
|
||||||
|
padding-right: 32px;
|
||||||
|
padding-top: 96px;
|
||||||
|
border-radius: 20px;
|
||||||
|
border-color: #000000;
|
||||||
|
border-style: double;
|
||||||
|
box-shadow: 20px 20px 10px;
|
||||||
|
box-shadow: rgb(43, 43, 43);
|
||||||
|
font-size: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.postits {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto auto auto;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
@use "components/tickets";
|
@use "components/tickets";
|
||||||
@use "components/diagnostics";
|
@use "components/diagnostics";
|
||||||
@use "components/frontpage";
|
@use "components/frontpage";
|
||||||
|
@use "components/home";
|
||||||
@use "components/icon";
|
@use "components/icon";
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -47,7 +48,7 @@ body {
|
|||||||
max-width: 40%;
|
max-width: 40%;
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
margin-top: 96px;
|
margin-top: 96px;
|
||||||
background-color:#a0a0a0;
|
background-color: variables.$rundbgbackgroundcolor;
|
||||||
padding-bottom: 96px;
|
padding-bottom: 96px;
|
||||||
padding-left: 32px;
|
padding-left: 32px;
|
||||||
padding-right: 32px;
|
padding-right: 32px;
|
||||||
@@ -58,6 +59,8 @@ body {
|
|||||||
border-style: double;
|
border-style: double;
|
||||||
box-shadow: 20px 20px 10px;
|
box-shadow: 20px 20px 10px;
|
||||||
box-shadow: rgb(43, 43, 43);
|
box-shadow: rgb(43, 43, 43);
|
||||||
|
font-size: 26px;
|
||||||
|
|
||||||
|
|
||||||
input, button {
|
input, button {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
@@ -69,4 +72,7 @@ body {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
margin: 16px 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user