more content

This commit is contained in:
Matthias Kretschmann 2024-03-30 17:45:12 +00:00
parent a9ee907ba1
commit 5d2a805995
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 24 additions and 10 deletions

View File

@ -41,6 +41,7 @@ body {
rgb(var(--background-start-rgb)); rgb(var(--background-start-rgb));
line-height: 1.5; line-height: 1.5;
min-height: 100vh; min-height: 100vh;
height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 2rem; padding: 2rem;

View File

@ -24,9 +24,11 @@
.calculationBase { .calculationBase {
border: 1px solid rgba(var(--foreground-rgb), 0.2); border: 1px solid rgba(var(--foreground-rgb), 0.2);
border-bottom: none;
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
border-radius: var(--border-radius); border-radius: var(--border-radius);
margin-top: 2rem;
} }
.calculationBase li { .calculationBase li {
@ -35,10 +37,6 @@
font-size: 0.8rem; font-size: 0.8rem;
} }
.calculationBase li:first-child { .calculationBase li:nth-child(odd) {
border-right: 1px solid rgba(var(--foreground-rgb), 0.2); border-right: 1px solid rgba(var(--foreground-rgb), 0.2);
} }
.calculationBase li:last-child {
border-bottom: none;
}

View File

@ -11,13 +11,17 @@ export function Content({ prices }: Props) {
return ( return (
<div className={styles.content}> <div className={styles.content}>
<p> <p>
Calculations are based on the{' '} The displayed values should be seen as estimates. Except for the{' '}
<a href="https://blog.oceanprotocol.com/ocean-protocol-is-joining-the-superintelligence-alliance-767c82693f24#3c8e"> <a href="https://blog.oceanprotocol.com/ocean-protocol-is-joining-the-superintelligence-alliance-767c82693f24#3c8e">
fixed ASI exchange rate fixed ASI exchange rate
</a> </a>
, the fluctuating fiat values fetched from <a href="">Coingecko</a>, and , the fiat values fetched from <a href="">Coingecko</a> and the token
token swap quotes from <a href="https://uniswap.org">Uniswap</a> v3 swap quotes from <a href="https://uniswap.org">Uniswap</a> v3 routes are
routes. constantly changing.
</p>
<p>
There is no guarantee they reflect the value of your investment once the
actual ASI swap mechanism is released. Use at your own risk.
</p> </p>
<ul className={styles.calculationBase}> <ul className={styles.calculationBase}>
@ -34,6 +38,10 @@ export function Content({ prices }: Props) {
<li> <li>
1 Fet = {ratioFetToAsi} ASI 1 Fet = {ratioFetToAsi} ASI
<span className={styles.label}>fixed</span> <span className={styles.label}>fixed</span>
<br />= ${prices.fet}
</li>
<li>
1 ASI
<br />= ${prices.asi} <br />= ${prices.asi}
</li> </li>
</ul> </ul>

View File

@ -148,7 +148,14 @@ export function Prices() {
/> />
</div> </div>
</div> </div>
<Content prices={{ ocean: priceOcean, agix: priceAgix, asi: priceAsi }} /> <Content
prices={{
ocean: priceOcean,
agix: priceAgix,
asi: priceAsi,
fet: priceFet
}}
/>
</> </>
) )
} }