mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
styling tweaks
This commit is contained in:
parent
3a8b0e4e92
commit
e85bf4f6e4
@ -4,16 +4,26 @@
|
|||||||
|
|
||||||
--foreground-rgb: 20, 20, 20;
|
--foreground-rgb: 20, 20, 20;
|
||||||
--foreground-rgb-highlight: 0, 0, 0;
|
--foreground-rgb-highlight: 0, 0, 0;
|
||||||
--background-start-rgb: 225, 230, 230;
|
--background-rgb: 255, 255, 255;
|
||||||
--background-end-rgb: 255, 255, 255;
|
--background-gradient: radial-gradient(
|
||||||
|
circle at 30% 0%,
|
||||||
|
rgb(216, 225, 242) 0%,
|
||||||
|
rgb(176, 187, 240) 30%,
|
||||||
|
rgb(255, 255, 255) 100%
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--foreground-rgb: 220, 220, 220;
|
--foreground-rgb: 220, 220, 220;
|
||||||
--foreground-rgb-highlight: 255, 255, 255;
|
--foreground-rgb-highlight: 255, 255, 255;
|
||||||
--background-start-rgb: 25, 25, 25;
|
--background-rgb: 0, 0, 0;
|
||||||
--background-end-rgb: 0, 0, 0;
|
--background-gradient: radial-gradient(
|
||||||
|
circle at 30% 0%,
|
||||||
|
rgb(27, 40, 62) 0%,
|
||||||
|
rgb(15, 18, 33) 30%,
|
||||||
|
rgb(0, 0, 0) 100%
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,12 +43,7 @@ body {
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
color: rgb(var(--foreground-rgb));
|
color: rgb(var(--foreground-rgb));
|
||||||
background: linear-gradient(
|
background: var(--background-gradient) rgb(var(--background-rgb));
|
||||||
to bottom,
|
|
||||||
transparent,
|
|
||||||
rgb(var(--background-end-rgb))
|
|
||||||
)
|
|
||||||
rgb(var(--background-start-rgb));
|
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -21,7 +21,12 @@
|
|||||||
.grid {
|
.grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 400px) {
|
||||||
|
.grid {
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.breakout {
|
.breakout {
|
||||||
|
@ -2,7 +2,7 @@ import styles from './page.module.css'
|
|||||||
import { metadata } from './layout'
|
import { metadata } from './layout'
|
||||||
import { Swap, Buy } from '@/components/Strategies'
|
import { Swap, Buy } from '@/components/Strategies'
|
||||||
import { Content } from '@/components/Content'
|
import { Content } from '@/components/Content'
|
||||||
import { CalculationBase } from '@/components/CalculationBase'
|
import { CalculationBase } from '@/components/CalculationBaseOutput'
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
.calculationBase {
|
.calculationBase {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||||
|
justify-content: center;
|
||||||
border-top: 1px solid rgba(var(--foreground-rgb), 0.2);
|
border-top: 1px solid rgba(var(--foreground-rgb), 0.2);
|
||||||
border-left: 1px solid rgba(var(--foreground-rgb), 0.2);
|
border-left: 1px solid rgba(var(--foreground-rgb), 0.2);
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
}
|
}
|
@ -13,6 +13,11 @@ export function CalculationBase() {
|
|||||||
1 ASI
|
1 ASI
|
||||||
<br />= ${prices.asi}
|
<br />= ${prices.asi}
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
1 Fet = {ratioFetToAsi} ASI
|
||||||
|
<span className={styles.label}>fixed</span>
|
||||||
|
<br />= ${prices.fet}
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
1 OCEAN = {ratioOceanToAsi} ASI
|
1 OCEAN = {ratioOceanToAsi} ASI
|
||||||
<span className={styles.label}>fixed</span>
|
<span className={styles.label}>fixed</span>
|
||||||
@ -23,11 +28,6 @@ export function CalculationBase() {
|
|||||||
<span className={styles.label}>fixed</span>
|
<span className={styles.label}>fixed</span>
|
||||||
<br />= ${prices.agix}
|
<br />= ${prices.agix}
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
1 Fet = {ratioFetToAsi} ASI
|
|
||||||
<span className={styles.label}>fixed</span>
|
|
||||||
<br />= ${prices.fet}
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
)
|
)
|
||||||
}
|
}
|
@ -3,8 +3,14 @@
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content p {
|
.content p,
|
||||||
margin-bottom: 1rem;
|
.content ul,
|
||||||
|
.content ol,
|
||||||
|
.content h2,
|
||||||
|
.content h3,
|
||||||
|
.content h4,
|
||||||
|
.content h5 {
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content a {
|
.content a {
|
||||||
@ -12,15 +18,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content ul {
|
.content ul {
|
||||||
list-style-type: disc;
|
list-style-type: square;
|
||||||
margin-left: 4rem;
|
margin-left: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content ol {
|
.content ol {
|
||||||
list-style-type: decimal;
|
list-style-type: decimal;
|
||||||
margin-left: 4rem;
|
margin-left: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content li {
|
.content li {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
|
padding-left: 0.25rem;
|
||||||
}
|
}
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
.input {
|
.input {
|
||||||
all: unset;
|
all: unset;
|
||||||
width: 70px;
|
width: 70px;
|
||||||
padding-left: 0.2rem;
|
padding: 0 0.2rem;
|
||||||
padding-right: 0.2rem;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: rgba(var(--background-end-rgb), 0.4);
|
background-color: rgba(var(--background-rgb), 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.input:hover {
|
.input:hover {
|
||||||
background-color: rgba(var(--background-end-rgb), 0.5);
|
background-color: rgba(var(--background-rgb), 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.input:focus-within {
|
.input:focus-within {
|
||||||
outline: none;
|
outline: none;
|
||||||
background-color: rgba(var(--background-end-rgb), 0.9);
|
background-color: rgba(var(--background-rgb), 0.9);
|
||||||
color: rgb(var(--foreground-rgb-highlight));
|
color: rgb(var(--foreground-rgb-highlight));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,4 +8,5 @@
|
|||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
min-height: 52px;
|
min-height: 52px;
|
||||||
|
line-height: 1.75;
|
||||||
}
|
}
|
||||||
|
10
content.md
10
content.md
@ -1,11 +1,15 @@
|
|||||||
|
The **→ lines** show what you would get with the displayed token amount at the moment of the ASI swap, along with the converted value based on the current market price of FET.
|
||||||
|
|
||||||
The fiat values are fetched from [Coingecko](https://coingecko.com), and the token swap estimations directly from [Uniswap](https://uniswap.org) v3 swap routes.
|
The fiat values are fetched from [Coingecko](https://coingecko.com), and the token swap estimations directly from [Uniswap](https://uniswap.org) v3 swap routes.
|
||||||
|
|
||||||
All displayed values should be seen as estimates. Except for the [fixed ASI exchange rate](https://blog.oceanprotocol.com/ocean-protocol-is-joining-the-superintelligence-alliance-767c82693f24#3c8e), all other values are constantly changing based on market conditions.
|
### All About Token Merge
|
||||||
|
|
||||||
There is no guarantee the displayed values reflect the value of your investment once the actual ASI swap mechanism is released. Use at your own risk.
|
|
||||||
|
|
||||||
Find everything about the token merger in every team's announcement posts:
|
Find everything about the token merger in every team's announcement posts:
|
||||||
|
|
||||||
- [Ocean Protocol: Ocean Protocol is joining the Superintelligence Alliance](https://blog.oceanprotocol.com/ocean-protocol-is-joining-the-superintelligence-alliance-767c82693f24)
|
- [Ocean Protocol: Ocean Protocol is joining the Superintelligence Alliance](https://blog.oceanprotocol.com/ocean-protocol-is-joining-the-superintelligence-alliance-767c82693f24)
|
||||||
- [Fetch.ai: Superintelligence Alliance Token Merge $ASI](https://fetch.ai/blog/superintelligence-alliance-token-merge-asi)
|
- [Fetch.ai: Superintelligence Alliance Token Merge $ASI](https://fetch.ai/blog/superintelligence-alliance-token-merge-asi)
|
||||||
- [SingularityNET: Introducing the Artificial Superintelligence Alliance](https://blog.singularitynet.io/introducing-the-artificial-superintelligence-alliance-40a4dea01e62)
|
- [SingularityNET: Introducing the Artificial Superintelligence Alliance](https://blog.singularitynet.io/introducing-the-artificial-superintelligence-alliance-40a4dea01e62)
|
||||||
|
|
||||||
|
### Disclaimer
|
||||||
|
|
||||||
|
All displayed values should be seen as estimates. Except for the [fixed ASI exchange rate](https://blog.oceanprotocol.com/ocean-protocol-is-joining-the-superintelligence-alliance-767c82693f24#3c8e), all other values are constantly changing based on market conditions. There is no guarantee the displayed values reflect the value of your investment once the actual ASI swap mechanism is released. Use at your own risk.
|
||||||
|
Loading…
Reference in New Issue
Block a user