Hosted Link π: https://carboncell-ten.vercel.app
This project showcases the completion of tasks as part of a web development assessment. Each task focuses on implementing specific features and functionalities using React JS and relevant libraries.
- Implement a responsive side navigation bar with at least three navigation items. The navigation bar should collapse into a hamburger menu on smaller screens and highlight the active navigation item.
- Fetch population data from the provided API and create a graph using React JS and Chart.js library. The graph should display population data for different nations with appropriate labels, legends, and axis titles.
- Fetch cryptocurrency prices from the provided API and display them in visually appealing cards. Prices of Bitcoin should be displayed in multiple currencies (e.g., USD and Euro) using React JS and asynchronous data fetching techniques.
- Implement a feature to connect the MetaMask wallet using Web3 JS library. Display appropriate feedback/messages for successful/unsuccessful wallet connection attempts and ensure compatibility with modern browsers and MetaMask extension.
- HTML5
- CSS3
- JavaScript (ES6+)
- ReactJS
To get a local copy of the code, clone it using git:
git clone https://github.com/zehan12/carbon-cell-frontend-task.git
cd carbon-cell-frontend-task
Install dependencies:
npm install
Now, you can start a local web server by running:
npm run dev
And then open http://localhost:5173 to view it in the browser.
.
βββ index.html
βββ package.json
βββ package-lock.json
βββ postcss.config.js
βββ public
β βββ assets
β β βββ carbonCell.png
β β βββ MetaMask_Fox.png
β βββ favicon.ico
β βββ vite.svg
βββ readme.md
βββ src
β βββ App.tsx
β βββ assets
β β βββ react.svg
β βββ components
β β βββ CryptoCurrency
β β β βββ CryptoLoding.tsx
β β β βββ CyptoCard.tsx
β β β βββ index.tsx
β β βββ Greeting
β β β βββ index.tsx
β β βββ Home
β β β βββ HomeCard.tsx
β β β βββ index.tsx
β β βββ index.ts
β β βββ Population
β β β βββ index.tsx
β β βββ Sidebar
β β β βββ index.tsx
β β β βββ MobileMenu.tsx
β β βββ Wallet
β β βββ index.tsx
β β βββ WalletDetailCard.tsx
β βββ constants
β β βββ api.ts
β β βββ routes.ts
β βββ index.css
β βββ main.tsx
β βββ routes
β β βββ index.tsx
β βββ services
β β βββ api.ts
β βββ types
β β βββ index.d.ts
β βββ utils
β β βββ general.utils.ts
β βββ vite-env.d.ts
βββ tailwind.config.js
βββ tsconfig.json
βββ tsconfig.node.json
βββ vite.config.ts
Library | Description |
---|---|
React | Utilize React to build out a well-designed front-end experience. |
React Router | Use React Router for client-side routing |
Axios | Use for fetch data from API |
react-hot-toast | Utilize Toaster to show notification of error and message |
Tailwind CSS | Utilize Tailwind to style all react components |
lucide-react | Use for showing icons |
React Apex Chart | Use for showing charts data in charts |
Any feature requests and pull requests are welcome!
Give a βοΈ if this project helped you!
The project is under MIT license.
@zehan12