Skip to content

Commit

Permalink
improved styling and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
splican committed Oct 21, 2024
1 parent 56fff4e commit 31de0bd
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ function BreakTimeNotificationThumbnailSection({
controller: IBreakTimeNotificationOverviewController;
}) {
return (
<div>
<h1>{title}</h1>
<div className="grid grid-cols-5 gap-5">
<div className="">
<h1 className="text-lg pt-2">{title}</h1>
<div className="grid grid-cols-5 gap-5 pt-4 bg-whitetrans rounded-lg p-4">
{notifications.map((notification) => (
<BreakTimeNotificationThumbnail
key={notification.titleKey}
Expand Down Expand Up @@ -72,25 +72,25 @@ export default function BreakTimeNotificationOverview() {

return (
<StyledModal
title={translate("overviewTitle")!}
title={translate("Pausenhinweise")!}
onClose={controller.closeModal}
showModal={showModal}
>
{/* Selection */}
{!selectedNotification && (
<div className="">
<div className="text-md font-bold text-adlerdarkblue pl-1">
<BreakTimeNotificationThumbnailSection
title={translate("shortBreaks")}
title={translate("30 Minuten Pausenhinweise")}
notifications={viewModel.shortBreakTimeNotifications}
controller={controller}
/>
<BreakTimeNotificationThumbnailSection
title={translate("mediumBreaks")}
title={translate("2 Stunden Pausenhinweise")}
notifications={viewModel.mediumBreakTimeNotifications}
controller={controller}
/>
<BreakTimeNotificationThumbnailSection
title={translate("longBreaks")}
title={translate("4 Stunden Pausenhinweise")}
notifications={viewModel.longBreakTimeNotifications}
controller={controller}
/>
Expand All @@ -99,12 +99,15 @@ export default function BreakTimeNotificationOverview() {

{/* Single Notification */}
{selectedNotification && (
<div>
<div className="flex flex-col items-end">
<BreakTimeNotificationContent
breakTimeNotification={selectedNotification!}
/>
<StyledButton onClick={controller.returnToOverview}>
{"<"}
<StyledButton
shape="freeFloatCenter"
onClick={controller.returnToOverview}
>
{"Zurück zur Übersicht"}
</StyledButton>
</div>
)}
Expand Down

0 comments on commit 31de0bd

Please sign in to comment.