diff --git a/app/page.module.css b/app/page.module.css index cf71c71..89583bd 100644 --- a/app/page.module.css +++ b/app/page.module.css @@ -14,7 +14,7 @@ } .description { - font-size: clamp(1.1rem, 10vw, 1.75rem); + font-size: clamp(1.1rem, 10vw, 1.5rem); } .footer { diff --git a/components/FormAmount.module.css b/components/FormAmount.module.css index 9cccca7..fa13074 100644 --- a/components/FormAmount.module.css +++ b/components/FormAmount.module.css @@ -8,16 +8,30 @@ padding-left: 0.2rem; padding-right: 0.2rem; text-align: center; - background-color: rgba(var(--foreground-rgb), 0.15); + background-color: rgba(var(--background-end-rgb), 0.4); border-radius: var(--border-radius); } .input:hover { - background-color: rgba(var(--foreground-rgb), 0.2); + background-color: rgba(var(--background-end-rgb), 0.5); } .input:focus-within { outline: none; - background-color: rgba(var(--foreground-rgb), 0.3); + background-color: rgba(var(--background-end-rgb), 0.9); color: rgb(var(--foreground-rgb-highlight)); } + +@media (prefers-color-scheme: dark) { + .input { + background-color: rgba(var(--foreground-rgb), 0.15); + } + + .input:hover { + background-color: rgba(var(--foreground-rgb), 0.2); + } + + .input:focus-within { + background-color: rgba(var(--foreground-rgb), 0.3); + } +} diff --git a/components/Prices.module.css b/components/Prices.module.css index 3248a75..1b69f7c 100644 --- a/components/Prices.module.css +++ b/components/Prices.module.css @@ -15,4 +15,5 @@ .results h3 { margin-bottom: 1.5rem; font-size: 1.1rem; + min-height: 52px; } diff --git a/components/Prices.tsx b/components/Prices.tsx index f6a70fe..07d7100 100644 --- a/components/Prices.tsx +++ b/components/Prices.tsx @@ -8,7 +8,6 @@ import { tokens, ratioOceanToAsi, ratioAgixToAsi, - exampleBuyInUsd, ratioFetToAsi } from '@/constants' import { useState } from 'react' @@ -19,6 +18,8 @@ import { Content } from '@/components/Content' export function Prices() { const [amountSwap, setAmountSwap] = useState(100) const [debouncedAmountSwap] = useDebounce(amountSwap, 500) + const [amountBuy, setAmountBuy] = useState(100) + const [debouncedAmountBuy] = useDebounce(amountBuy, 500) const { data: dataPrices } = useSWR( `/api/prices/?tokens=${tokens.toString()}`, @@ -47,7 +48,8 @@ export function Prices() {