You can see the result in this link: https://mail-inbox.netlify.com/
yarn install
yarn start
yarn test
- Clicking a mail item will toggle its
background-color
and its mail icon - Clicking a trash icon will remove the mail item from the list
- The breakpoint is
576px
screen width. All screens more than this breakpoint are considered Desktop. Otherwise, they are considered Mobile. - The Desktop layout has max-width limitation, i.e. all elements in the page will not expand more than
768px
width. - The difference between Desktop and Mobile are the following.
- Header's
color
,background-color
,font-size
andbox-shadow
font-weight
of each mail's subject- Icon size,
margin
andpadding
- Header's
- This project uses TypeScript with React.js framework
- There are both unit test and integration test, e.g.
App.test.tsx
is an integration test whereasinitialState.test.ts
is a unit test - Data from backend is mocked in
data.json
file