From 5c536786ea64e9722a67289ab2d7e56e7a259404 Mon Sep 17 00:00:00 2001 From: MAZE Date: Fri, 13 Sep 2024 15:58:03 +0330 Subject: [PATCH] style: add style to generators --- .../modals/binaural/binaural.module.css | 73 ++++++++++++++++++- src/components/modals/binaural/binaural.tsx | 21 ++++-- .../modals/isochronic/isochornic.module.css | 73 ++++++++++++++++++- .../modals/isochronic/isochronic.tsx | 24 ++++-- 4 files changed, 174 insertions(+), 17 deletions(-) diff --git a/src/components/modals/binaural/binaural.module.css b/src/components/modals/binaural/binaural.module.css index fdbd99d..5eaf762 100644 --- a/src/components/modals/binaural/binaural.module.css +++ b/src/components/modals/binaural/binaural.module.css @@ -1 +1,72 @@ -/* WIP */ +.header { + margin-bottom: 16px; + + & .title { + margin-bottom: 4px; + font-family: var(--font-heading); + font-size: var(--font-md); + font-weight: 600; + } + + & .desc { + color: var(--color-foreground-subtle); + } +} + +.fieldWrapper { + margin-bottom: 12px; + + & label { + display: block; + font-size: var(--font-sm); + font-weight: 500; + color: var(--color-foreground); + + & input, + select { + display: block; + width: 100%; + min-width: 0; + height: 45px; + padding: 0 8px; + margin-top: 4px; + color: var(--color-foreground); + background-color: var(--color-neutral-50); + border: 1px solid var(--color-neutral-200); + border-radius: 8px; + outline: none; + } + } +} + +.buttons { + display: flex; + column-gap: 8px; + align-items: center; + margin-top: 12px; + + & button { + display: flex; + flex-grow: 1; + align-items: center; + justify-content: center; + height: 45px; + font-weight: 500; + color: var(--color-foreground); + cursor: pointer; + background-color: var(--color-neutral-200); + border: none; + border-radius: 8px; + outline: none; + + &:disabled { + cursor: not-allowed; + opacity: 0.3; + } + + &.primary { + color: var(--color-neutral-50); + background-color: var(--color-neutral-950); + } + } +} diff --git a/src/components/modals/binaural/binaural.tsx b/src/components/modals/binaural/binaural.tsx index 98cfc03..050a719 100644 --- a/src/components/modals/binaural/binaural.tsx +++ b/src/components/modals/binaural/binaural.tsx @@ -141,9 +141,12 @@ export function BinauralModal({ onClose, show }: BinauralProps) { return ( -

Binaural Beats

+
+

Binaural Beat

+

Binaural beat generator.

+
-
+
-
+