From 9450b7107c6509ada5719158e6fb2ce59783705b Mon Sep 17 00:00:00 2001
From: Matthias Kretschmann
Date: Sat, 30 Mar 2024 01:20:15 +0000
Subject: [PATCH] reorg
---
app/page.module.css | 5 ++-
app/page.tsx | 8 +++-
components/Prices.module.css | 2 +-
components/Prices.tsx | 72 +++++++++++++++++++++---------------
components/Result.tsx | 8 ++--
5 files changed, 58 insertions(+), 37 deletions(-)
diff --git a/app/page.module.css b/app/page.module.css
index 6734b36..eadfc05 100644
--- a/app/page.module.css
+++ b/app/page.module.css
@@ -14,12 +14,13 @@
}
.description {
- margin-bottom: 2rem;
font-size: clamp(1.1rem, 10vw, 1.75rem);
}
.footer {
- margin-top: 2rem;
flex-shrink: 0;
font-size: 0.8rem;
+ width: 100%;
+ max-width: calc(var(--max-width) * 1.5);
+ margin: 3rem auto 0 auto;
}
diff --git a/app/page.tsx b/app/page.tsx
index abbca06..11463b9 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -5,12 +5,16 @@ import { metadata } from './layout'
export default function Home() {
return (
<>
-
+
+
-
+
>
)
}
diff --git a/components/Prices.module.css b/components/Prices.module.css
index 617733d..3248a75 100644
--- a/components/Prices.module.css
+++ b/components/Prices.module.css
@@ -13,6 +13,6 @@
}
.results h3 {
- margin-bottom: 1rem;
+ margin-bottom: 1.5rem;
font-size: 1.1rem;
}
diff --git a/components/Prices.tsx b/components/Prices.tsx
index 9c13584..93811ac 100644
--- a/components/Prices.tsx
+++ b/components/Prices.tsx
@@ -48,35 +48,6 @@ export function Prices() {
return (
<>
-
-
Buying with ${exampleBuyInUsd} right now gets you:
-
-
-
-
-
Swapping{' '}
@@ -131,6 +102,49 @@ export function Prices() {
}
/>
+
+
+
Buying with ${exampleBuyInUsd} right now gets you:
+
+
+
+
>
diff --git a/components/Result.tsx b/components/Result.tsx
index e44e2db..8aef644 100644
--- a/components/Result.tsx
+++ b/components/Result.tsx
@@ -29,12 +29,14 @@ export function Result({
/>
- {formatNumber(amount, tokenSymbol)}
+ {formatNumber(amount || 0, tokenSymbol)}
→{' '}
- {formatNumber(amountAsi, 'ASI')}{' '}
- = {formatNumber(amountFiat, 'USD')}
+
+ {formatNumber(amountAsi || 0, 'ASI')}
+ {' '}
+ = {formatNumber(amountFiat || 0, 'USD')}
)