From 77e2ec5e798771b7719b36882bc68c10265c06f6 Mon Sep 17 00:00:00 2001 From: MAZE Date: Mon, 29 Apr 2024 00:43:35 +0330 Subject: [PATCH] feat: add description for sleep timer --- .../modals/sleep-timer/sleep-timer.module.css | 14 ++++++++------ src/components/modals/sleep-timer/sleep-timer.tsx | 8 ++++++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/modals/sleep-timer/sleep-timer.module.css b/src/components/modals/sleep-timer/sleep-timer.module.css index 3291906..b6039c4 100644 --- a/src/components/modals/sleep-timer/sleep-timer.module.css +++ b/src/components/modals/sleep-timer/sleep-timer.module.css @@ -1,12 +1,14 @@ .header { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 8px; + margin-bottom: 16px; & .title { - font-size: var(--font-sm); - font-weight: 500; + margin-bottom: 8px; + font-family: var(--font-heading); + font-size: var(--font-md); + font-weight: 600; + } + + & .desc { color: var(--color-foreground-subtle); } } diff --git a/src/components/modals/sleep-timer/sleep-timer.tsx b/src/components/modals/sleep-timer/sleep-timer.tsx index 45271c7..03e769f 100644 --- a/src/components/modals/sleep-timer/sleep-timer.tsx +++ b/src/components/modals/sleep-timer/sleep-timer.tsx @@ -73,7 +73,11 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) {

Sleep Timer

+

+ Stop sounds after a certain amount of time. +

+
{!running && (
@@ -92,6 +96,7 @@ export function SleepTimerModal({ onClose, show }: SleepTimerModalProps) { />
)} + {!running && (
)} + {running ? : null} +