diff --git a/src/apps/UnitConverter/UnitConverter.css b/src/apps/UnitConverter/UnitConverter.css index 1c1c5a4..711ac06 100644 --- a/src/apps/UnitConverter/UnitConverter.css +++ b/src/apps/UnitConverter/UnitConverter.css @@ -44,3 +44,58 @@ border: 1px solid var(--color-border); border-radius: 6px; } + +.converter.app-design { + padding: 24px; + gap: 20px; +} + +.converter > label { + flex: 0; +} + +.converter__units { + padding: 18px; + border: 1px solid var(--color-border); + border-radius: 18px; + background: var(--color-surface); + gap: 18px; +} + +.converter label { + color: var(--color-text-dim); + gap: 9px; +} + +.converter__units label { + min-width: 130px; +} + +.converter__result { + padding: 24px; + background: linear-gradient(120deg, var(--app-tint), var(--color-surface)); + border: 1px solid + color-mix(in srgb, var(--color-accent) 35%, var(--color-border)); + border-radius: 18px; + font-size: clamp(28px, 8cqw, 42px); + font-weight: 650; + letter-spacing: -0.04em; + box-shadow: 0 8px 20px #0001; +} + +.converter__actions button { + flex: 1; + font-weight: 600; +} + +.converter > p { + font-size: 12px; + color: var(--color-text-dim); + line-height: 1.6; +} + +@media (max-width: 600px) { + .converter.app-design { + padding: 14px; + } +} diff --git a/src/apps/UnitConverter/UnitConverter.tsx b/src/apps/UnitConverter/UnitConverter.tsx index 392b8c1..5bbe9e6 100644 --- a/src/apps/UnitConverter/UnitConverter.tsx +++ b/src/apps/UnitConverter/UnitConverter.tsx @@ -1,3 +1,5 @@ +import { AppHeading } from "../shared/AppHeading"; +import { ArrowLeftRight } from "lucide-react"; import { useState } from "react"; import type { AppProps } from "../../types"; import { useConverterStore } from "../../stores/useConverterStore"; @@ -30,7 +32,12 @@ export function UnitConverter(_props: AppProps) { } return ( -
+
+