- Convert Global Currencies and Crypto in One Premium Workspace
+ Open-source fiat and crypto converter
- Instantly switch between fiat and digital assets with live rates, smart
- formatting, and a clean professional interface built for speed.
+ Convert fiat currencies and cryptocurrencies using live exchange
+ rates.
diff --git a/components/sections/insights-section.tsx b/components/sections/insights-section.tsx
index 930ba13..c2edbb1 100644
--- a/components/sections/insights-section.tsx
+++ b/components/sections/insights-section.tsx
@@ -1,6 +1,12 @@
"use client";
-import { ArrowRightLeft, Landmark, Layers, MoveRight, Workflow } from "lucide-react";
+import {
+ ArrowRightLeft,
+ Landmark,
+ Layers,
+ MoveRight,
+ Workflow,
+} from "lucide-react";
import { CurrencyIcon } from "@/components/converter/currency-icon";
import { Button } from "@/components/ui/button";
@@ -23,31 +29,31 @@ const popularPairs: PopularPair[] = [
{ from: "ETH", to: "SOL", fromType: "crypto", toType: "crypto" },
{ from: "XMR", to: "BTC", fromType: "crypto", toType: "crypto" },
{ from: "LTC", to: "BTC", fromType: "crypto", toType: "crypto" },
- { from: "CHF", to: "JPY", fromType: "fiat", toType: "fiat" }
+ { from: "CHF", to: "JPY", fromType: "fiat", toType: "fiat" },
];
const howItWorks = [
"Fiat rates are fetched from Frankfurter with USD as the common quote.",
"Crypto prices are fetched from CoinGecko in USD.",
- "Any pair is converted through normalized USD-per-unit pricing."
+ "Any pair is converted through normalized USD-per-unit pricing.",
];
const supportedAssets = [
{
title: "Fiat currencies",
description:
- "Supports a broad list of global government-issued currencies, including major and regional pairs."
+ "Supports a broad list of global government-issued currencies, including major and regional pairs.",
},
{
title: "Cryptocurrencies",
description:
- "Includes leading crypto assets such as BTC, ETH, LTC, XMR, SOL, USDT, and more."
+ "Includes leading crypto assets such as BTC, ETH, LTC, XMR, SOL, USDT, and more.",
},
{
title: "Cross-market pairs",
description:
- "Convert fiat-to-crypto, crypto-to-fiat, and crypto-to-crypto in one unified experience."
- }
+ "Convert fiat-to-crypto, crypto-to-fiat, and crypto-to-crypto in one unified experience.",
+ },
];
interface InsightsSectionProps {
@@ -59,7 +65,7 @@ interface InsightsSectionProps {
export function InsightsSection({
selectedFromCode,
selectedToCode,
- onSelectPopularPair
+ onSelectPopularPair,
}: InsightsSectionProps) {
return (
@@ -67,7 +73,7 @@ export function InsightsSection({
- Popular conversions
+ Common pairs
@@ -86,11 +92,15 @@ export function InsightsSection({
"h-9 rounded-full border-border/70 bg-background/50 px-3.5 font-normal transition-all",
"hover:border-cyan-400/40 hover:bg-cyan-400/10 hover:text-cyan-100",
isActive &&
- "border-cyan-400/50 bg-cyan-400/15 text-cyan-100 shadow-[0_0_0_1px_hsl(189_100%_40%_/_0.2)]"
+ "border-cyan-400/50 bg-cyan-400/15 text-cyan-100 shadow-[0_0_0_1px_hsl(189_100%_40%_/_0.2)]",
)}
>
-
+ {pair.from}
@@ -111,7 +121,10 @@ export function InsightsSection({
{howItWorks.map((line) => (
-