feat: add CoinGecko API key support with env-based attribution and docs updates

This commit is contained in:
2026-03-08 18:24:33 +01:00
parent 3c158963a5
commit 82b676d9c5
4 changed files with 78 additions and 6 deletions

View File

@@ -222,7 +222,25 @@ export function ConverterCard({
variant="outline"
className="border-border/70 bg-background/50"
>
Rates: {data.sources.fiat} {data.sources.crypto}
<span className="text-muted-foreground">Fiat rates by</span>
<a
href="https://frankfurter.dev/"
target="_blank"
rel="noreferrer"
className="ml-1 text-foreground transition-colors hover:text-cyan-100"
>
{data.sources.fiat}
</a>
<span className="mx-1 text-muted-foreground"></span>
<span className="text-muted-foreground">Price data by</span>
<a
href="https://www.coingecko.com/"
target="_blank"
rel="noreferrer"
className="ml-1 text-foreground transition-colors hover:text-cyan-100"
>
{data.sources.crypto}
</a>
</Badge>
</div>
<CardDescription className="pr-1 text-base/7 sm:text-sm">