Description
We need a simple widget that displays the current price of major cryptocurrencies (BTC, ETH, SOL).
Requirements
- Use a free API like CoinGecko (no key required for basic endpoints) or [Binance Public API].
- Display the coin symbol and current price.
- (Optional) Show a small green/red arrow for 24h change.
- It must be toggleable in the Settings menu.
Implementation Guide
- Create a new file:
src/lib/components/widgets/CryptoTicker.svelte
- Use Svelte 5
$state for data fetching.
- Add the widget to the grid in
src/routes/+page.svelte.
Difficulty: Beginner
Description
We need a simple widget that displays the current price of major cryptocurrencies (BTC, ETH, SOL).
Requirements
Implementation Guide
src/lib/components/widgets/CryptoTicker.svelte$statefor data fetching.src/routes/+page.svelte.Difficulty: Beginner