diff --git a/.gitignore b/.gitignore index 97ce011..2501731 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,7 @@ go.work.sum **__debug* *_templ.txt +DB/pg_data + +.env +.env.* diff --git a/Backend/static/css/styles.css b/Backend/static/css/styles.css index 04deaa6..285c98d 100644 --- a/Backend/static/css/styles.css +++ b/Backend/static/css/styles.css @@ -556,24 +556,12 @@ .col-span-3 { grid-column: span 3 / span 3; } - .col-span-5 { - grid-column: span 5 / span 5; - } .col-span-full { grid-column: 1 / -1; } - .row-span-3 { - grid-row: span 3 / span 3; - } - .row-span-full { - grid-row: 1 / -1; - } .-my-1 { margin-block: calc(var(--spacing) * -1); } - .my-2 { - margin-block: calc(var(--spacing) * 2); - } .mt-1 { margin-top: calc(var(--spacing) * 1); } @@ -627,9 +615,6 @@ .w-full { width: 100%; } - .max-w-\[70\%\] { - max-width: 70%; - } .flex-grow { flex-grow: 1; } @@ -648,9 +633,6 @@ .resize { resize: both; } - .grid-cols-4 { - grid-template-columns: repeat(4, minmax(0, 1fr)); - } .grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } @@ -695,11 +677,6 @@ border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); } } - .divide-neutral-300 { - :where(& > :not(:last-child)) { - border-color: var(--color-neutral-300); - } - } .divide-neutral-400 { :where(& > :not(:last-child)) { border-color: var(--color-neutral-400); @@ -718,24 +695,13 @@ border-style: var(--tw-border-style); border-width: 1px; } - .border-0 { - border-style: var(--tw-border-style); - border-width: 0px; - } .border-r-0 { border-right-style: var(--tw-border-style); border-right-width: 0px; } - .border-b-0 { - border-bottom-style: var(--tw-border-style); - border-bottom-width: 0px; - } .border-neutral-200 { border-color: var(--color-neutral-200); } - .border-neutral-400 { - border-color: var(--color-neutral-400); - } .border-neutral-900 { border-color: var(--color-neutral-900); } @@ -786,9 +752,6 @@ .text-accent { color: var(--color-accent); } - .text-black { - color: var(--color-black); - } .text-neutral-500 { color: var(--color-neutral-500); } @@ -832,11 +795,6 @@ --tw-duration: 300ms; transition-duration: 300ms; } - .group-\[\.edit\]\:block { - &:is(:where(.group):is(.edit) *) { - display: block; - } - } .group-\[\.edit\]\:hidden { &:is(:where(.group):is(.edit) *) { display: none; @@ -847,16 +805,6 @@ display: inline; } } - .peer-\[\.edit\]\:block { - &:is(:where(.peer):is(.edit) ~ *) { - display: block; - } - } - .peer-\[\.edit\]\:hidden { - &:is(:where(.peer):is(.edit) ~ *) { - display: none; - } - } .placeholder\:text-neutral-400 { &::placeholder { color: var(--color-neutral-400); @@ -869,6 +817,20 @@ } } } + .hover\:bg-neutral-200 { + &:hover { + @media (hover: hover) { + background-color: var(--color-neutral-200); + } + } + } + .hover\:bg-neutral-300 { + &:hover { + @media (hover: hover) { + background-color: var(--color-neutral-300); + } + } + } .hover\:bg-neutral-700 { &:hover { @media (hover: hover) { @@ -956,13 +918,6 @@ } } } - .md\:group-\[\.edit\]\:block { - @media (width >= 48rem) { - &:is(:where(.group):is(.edit) *) { - display: block; - } - } - } .print\:hidden { @media print { display: none; diff --git a/Backend/templates/timeComponents.templ b/Backend/templates/timeComponents.templ index d4b948b..28ba16a 100644 --- a/Backend/templates/timeComponents.templ +++ b/Backend/templates/timeComponents.templ @@ -13,6 +13,7 @@ templ inputForm(){ urlParams := ctx.Value("urlParams").(url.Values) user := ctx.Value("user").(models.User) }} +
{user.Vorname + " " + user.Name}
Überstunden
@@ -22,7 +23,7 @@ templ inputForm(){ // @lineComponent()") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(user.Vorname + " " + user.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/timeComponents.templ`, Line: 17, Col: 64} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/timeComponents.templ`, Line: 18, Col: 64} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -68,26 +68,26 @@ func inputForm() templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(urlParams.Get("time_from")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/timeComponents.templ`, Line: 25, Col: 55} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/timeComponents.templ`, Line: 26, Col: 55} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "\" name=\"time_from\" class=\"w-full bg-neutral-100 placeholder:text-neutral-400 text-neutral-700 text-sm border border-neutral-200 rounded-md px-3 py-2 transition duration-300 ease focus:outline-none focus:border-neutral-400 hover:border-neutral-300\" placeholder=\"Zeitraum von...\">