https://www.figma.com/embed?embed_host=notion&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FVRj5MqVPoQdj5N7AwmYc98%2FKoinX---Frontend-Intern-Assignment%3Ftype%3Ddesign%26node-id%3D0-1%26mode%3Ddesign%26t%3Dx8gdUiF5gA3sjRd3-0
Implement all the components as given in the Figma design.
Use Coingecko’s /simple/price
API to fetch the price of bitcoin in USD and INR.
ids
: bitcoin
vs_currencies
: inr,usd
include_24hr_change
: true
{
"bitcoin": {
"inr": 5697177,
"inr_24h_change": 3.6596920153414336,
"usd": 68726,
"usd_24h_change": 3.6767559459431545
}
}
You can embed TradingView’s charts of BTCUSD in place of the chart component in the Figma design: https://www.tradingview.com/widget-docs/widgets/charts/advanced-chart/. You don’t have to implement the chart component from scratch, just use the TradingView widget. Try modifying the widget values to bring the widget design as close as the one in the Figma design.
Use Coingecko’s /search/trending
API to fetch the list of top 3 trending coins to be displayed in the “Trending Coins (24h)” component on the right. (Sample API Response)
For the “You May Also Like” section, show the logo, symbol, price, price change and price graph of the “Trending Coins” that we fetched from the previous API.
sparkline
property in the “Trending Coins” API response which gives the graph image for each coin.Ensure that the UI is responsive according to the Figma design.
The components that only contain text/images and are not dependent on any of the above mentioned APIs or integrations, please use any placeholder text/images according to the design.
Host your code on GitHub.
Deploy your code using tools like Netlify or Vercel.
/bitcoin
should show Bitcoin’s data and chart, /ethereum
should show Ethereum’s data and chart and so on.