https://github.com/haquanq-frontendmentor/expenses-chart-component
Solution for frontendmentor.io challenge: expense-chart-component
https://github.com/haquanq-frontendmentor/expenses-chart-component
accessibility bem-css frontendmentor frontendmentor-junior html postcss
Last synced: 18 days ago
JSON representation
Solution for frontendmentor.io challenge: expense-chart-component
- Host: GitHub
- URL: https://github.com/haquanq-frontendmentor/expenses-chart-component
- Owner: haquanq-frontendmentor
- License: mit
- Created: 2024-07-19T06:43:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-02T10:58:28.000Z (6 months ago)
- Last Synced: 2025-11-02T12:13:30.400Z (6 months ago)
- Topics: accessibility, bem-css, frontendmentor, frontendmentor-junior, html, postcss
- Language: CSS
- Homepage: https://haquanq-frontendmentor.github.io/expenses-chart-component/
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Frontend Mentor - Expenses Chart Component Solution
This is a solution to the [Expenses chart component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/expenses-chart-component-e7yJBUdjwt). Frontend Mentor challenges help you improve your coding skills by building realistic projects.

## Table of Contents
- [Project Overview](#sunrise-project-overview)
- [Tech Stack and Approach](#stars-tech-stack-and-approach)
- [Local Development](#leaves-local-development)
- [Deployment](#maple_leaf-deployment)
## :sunrise: Project Overview
### Challenge Requirements
- View the bar chart and hover over the individual bars to see the correct amounts for each day
- See the current day’s bar highlighted in a different colour to the other bars
- View the optimal layout for the content depending on their device’s screen size
- See hover states for all interactive elements on the page
- **Bonus**: Use the JSON data file provided to dynamically size the bars on the chart
### Status
Features
- [x] Accessible bar charts with keyboard navigation
Accessibility
- [x] Responsive accross different screen sizes
- [x] Interactive elements have clear focus indicator
## :stars: Tech Stack and Approach
### Built With
- **HTML5** – Semantic structure
- **CSS Grid & Flexbox** – Layout
- **PostCSS** – Nested rules, custom media queries, future CSS features, minification
- **Stylelint** – CSS linting, code style consistency
- **TypeScript** - Interactivity and application logic
- **Vite** - Fast development server, production build and easy configuration
### Approach
- Mobile-first workflow for better performance on smaller devices
- Accessibility guided by [ARIA Authoring Practices Guide (APG)](https://www.w3.org/WAI/ARIA/apg/)
## :leaves: Local Development
### Prerequisites
Install the following:
- Git (latest version)
- Node.js (latest LTS recommended)
- pnpm (latest version)
### Setup
```
git clone https://github.com/haquanq-frontendmentor/expenses-chart-component.git
cd expenses-chart-component
pnpm install
```
### Start Development Server
```
pnpm dev
```
## :maple_leaf: Deployment
Deployed to Github Pages via Github Action.