├── .gitignore
├── README.md
├── package-lock.json
├── package.json
├── public
    ├── favicon.ico
    ├── index.html
    ├── logo192.png
    ├── logo512.png
    ├── manifest.json
    └── robots.txt
├── src
    ├── App.css
    ├── App.styles.ts
    ├── App.test.tsx
    ├── App.tsx
    ├── components
    │   ├── InfoArea
    │   │   ├── index.tsx
    │   │   └── styles.ts
    │   ├── InputArea
    │   │   ├── index.tsx
    │   │   └── styles.ts
    │   ├── ResumeItem
    │   │   ├── index.tsx
    │   │   └── styles.ts
    │   ├── TableArea
    │   │   ├── index.tsx
    │   │   └── styles.ts
    │   └── TableItem
    │   │   ├── index.tsx
    │   │   └── styles.ts
    ├── data
    │   ├── categories.ts
    │   └── items.ts
    ├── helpers
    │   └── dateFilter.ts
    ├── index.css
    ├── index.tsx
    ├── logo.svg
    ├── react-app-env.d.ts
    ├── reportWebVitals.ts
    ├── setupTests.ts
    └── types
    │   ├── Category.ts
    │   └── Item.ts
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
 2 | 
 3 | # dependencies
 4 | /node_modules
 5 | /.pnp
 6 | .pnp.js
 7 | 
 8 | # testing
 9 | /coverage
10 | 
11 | # production
12 | /build
13 | 
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 | 
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 | 
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
 1 | # Expense Tracker with React
 2 | 
 3 | This project was made in React during a challenge called "5 Projetos em 5 Dias" by [B7Web](https://b7web.com.br).
 4 | 
 5 | ## First Steps
 6 | 
 7 | `npm install`
 8 | 
 9 | ## Available Scripts
10 | 
11 | In the project directory, you can run:
12 | 
13 | ### `npm start`
14 | 
15 | Runs the app in the development mode.\
16 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
17 | 
18 | The page will reload if you make edits.\
19 | You will also see any lint errors in the console.
20 | 
21 | ### `npm test`
22 | 
23 | Launches the test runner in the interactive watch mode.\
24 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
25 | 
26 | ### `npm run build`
27 | 
28 | Builds the app for production to the `build` folder.\
29 | It correctly bundles React in production mode and optimizes the build for the best performance.
30 | 
31 | The build is minified and the filenames include the hashes.\
32 | Your app is ready to be deployed!
33 | 
34 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
35 | 
36 | ### `npm run eject`
37 | 
38 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
39 | 
40 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
41 | 
42 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
43 | 
44 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "name": "expense-tracker",
 3 |   "version": "0.1.0",
 4 |   "private": true,
 5 |   "dependencies": {
 6 |     "@testing-library/jest-dom": "^5.14.1",
 7 |     "@testing-library/react": "^11.2.7",
 8 |     "@testing-library/user-event": "^12.8.3",
 9 |     "@types/jest": "^26.0.24",
10 |     "@types/node": "^12.20.27",
11 |     "@types/react": "^17.0.27",
12 |     "@types/react-dom": "^17.0.9",
13 |     "react": "^17.0.2",
14 |     "react-dom": "^17.0.2",
15 |     "react-scripts": "4.0.3",
16 |     "styled-components": "^5.3.1",
17 |     "typescript": "^4.4.3",
18 |     "web-vitals": "^1.1.2"
19 |   },
20 |   "scripts": {
21 |     "start": "react-scripts start",
22 |     "build": "react-scripts build",
23 |     "test": "react-scripts test",
24 |     "eject": "react-scripts eject"
25 |   },
26 |   "eslintConfig": {
27 |     "extends": [
28 |       "react-app",
29 |       "react-app/jest"
30 |     ]
31 |   },
32 |   "browserslist": {
33 |     "production": [
34 |       ">0.2%",
35 |       "not dead",
36 |       "not op_mini all"
37 |     ],
38 |     "development": [
39 |       "last 1 chrome version",
40 |       "last 1 firefox version",
41 |       "last 1 safari version"
42 |     ]
43 |   },
44 |   "devDependencies": {
45 |     "@types/styled-components": "^5.1.14"
46 |   }
47 | }
48 | 
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/suporteb7web/expense-tracker-react/3325532b493169351e780c4337eb95d9ddfe25ca/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     React App 
28 |   
29 |   
30 |     You need to enable JavaScript to run this app. 
31 |     
32 |     
42 |   
43 | 
44 | 
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/suporteb7web/expense-tracker-react/3325532b493169351e780c4337eb95d9ddfe25ca/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/suporteb7web/expense-tracker-react/3325532b493169351e780c4337eb95d9ddfe25ca/public/logo512.png
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
 1 | {
 2 |   "short_name": "React App",
 3 |   "name": "Create React App Sample",
 4 |   "icons": [
 5 |     {
 6 |       "src": "favicon.ico",
 7 |       "sizes": "64x64 32x32 24x24 16x16",
 8 |       "type": "image/x-icon"
 9 |     },
10 |     {
11 |       "src": "logo192.png",
12 |       "type": "image/png",
13 |       "sizes": "192x192"
14 |     },
15 |     {
16 |       "src": "logo512.png",
17 |       "type": "image/png",
18 |       "sizes": "512x512"
19 |     }
20 |   ],
21 |   "start_url": ".",
22 |   "display": "standalone",
23 |   "theme_color": "#000000",
24 |   "background_color": "#ffffff"
25 | }
26 | 
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 | 
--------------------------------------------------------------------------------
/src/App.css:
--------------------------------------------------------------------------------
 1 | .App {
 2 |   text-align: center;
 3 | }
 4 | 
 5 | .App-logo {
 6 |   height: 40vmin;
 7 |   pointer-events: none;
 8 | }
 9 | 
10 | @media (prefers-reduced-motion: no-preference) {
11 |   .App-logo {
12 |     animation: App-logo-spin infinite 20s linear;
13 |   }
14 | }
15 | 
16 | .App-header {
17 |   background-color: #282c34;
18 |   min-height: 100vh;
19 |   display: flex;
20 |   flex-direction: column;
21 |   align-items: center;
22 |   justify-content: center;
23 |   font-size: calc(10px + 2vmin);
24 |   color: white;
25 | }
26 | 
27 | .App-link {
28 |   color: #61dafb;
29 | }
30 | 
31 | @keyframes App-logo-spin {
32 |   from {
33 |     transform: rotate(0deg);
34 |   }
35 |   to {
36 |     transform: rotate(360deg);
37 |   }
38 | }
39 | 
--------------------------------------------------------------------------------
/src/App.styles.ts:
--------------------------------------------------------------------------------
 1 | import styled from 'styled-components';
 2 | 
 3 | export const Container = styled.div``;
 4 | 
 5 | export const Header = styled.div`
 6 |     background-color: darkblue;
 7 |     height: 150px;
 8 |     text-align: center;
 9 | `;
10 | 
11 | export const HeaderText = styled.h1`
12 |     margin: 0;
13 |     padding: 0;
14 |     color: #FFF;
15 |     padding-top: 30px;
16 | `;
17 | 
18 | export const Body = styled.div`
19 |     margin: auto;
20 |     max-width: 980px;
21 |     margin-bottom: 50px;
22 | `;
--------------------------------------------------------------------------------
/src/App.test.tsx:
--------------------------------------------------------------------------------
 1 | import React from 'react';
 2 | import { render, screen } from '@testing-library/react';
 3 | import App from './App';
 4 | 
 5 | test('renders learn react link', () => {
 6 |   render(- ([]);
14 |   const [currentMonth, setCurrentMonth] = useState(getCurrentMonth());
15 |   const [income, setIncome] = useState(0);
16 |   const [expense, setExpense] = useState(0);
17 | 
18 |   useEffect(()=>{
19 |     setFilteredList( filterListByMonth(list, currentMonth) );
20 |   }, [list, currentMonth]);
21 | 
22 |   useEffect(()=>{
23 |     let incomeCount = 0;
24 |     let expenseCount = 0;
25 | 
26 |     for(let i in filteredList) {
27 |       if(categories[filteredList[i].category].expense) {
28 |         expenseCount += filteredList[i].value;
29 |       } else {
30 |         incomeCount += filteredList[i].value;
31 |       }
32 |     }
33 | 
34 |     setIncome(incomeCount);
35 |     setExpense(expenseCount);
36 |   }, [filteredList]);
37 | 
38 |   const handleMonthChange = (newMonth: string) => {
39 |     setCurrentMonth(newMonth);
40 |   }
41 | 
42 |   const handleAddItem = (item: Item) => {
43 |     let newList = [...list];
44 |     newList.push(item);
45 |     setList(newList);
46 |   }
47 | 
48 |   return (
49 |     
50 |       
51 |         Sistema Financeiro 52 |
 53 |
54 |         
55 |          67 |
 68 |   );
69 | }
70 | 
71 | export default App;
72 | 
--------------------------------------------------------------------------------
/src/components/InfoArea/index.tsx:
--------------------------------------------------------------------------------
 1 | import * as C from './styles';
 2 | import { formatCurrentMonth } from '../../helpers/dateFilter';
 3 | import { ResumeItem } from '../ResumeItem';
 4 | 
 5 | type Props = {
 6 |     currentMonth: string;
 7 |     onMonthChange: (newMonth: string) => void;
 8 |     income: number;
 9 |     expense: number;
10 | }
11 | 
12 | export const InfoArea = ({ currentMonth, onMonthChange, income, expense }: Props) => {
13 |     
14 |     const handlePrevMonth = () => {
15 |         let [year, month] = currentMonth.split('-');
16 |         let currentDate = new Date(parseInt(year), parseInt(month) - 1, 1);
17 |         currentDate.setMonth( currentDate.getMonth() - 1 );
18 |         onMonthChange(`${currentDate.getFullYear()}-${currentDate.getMonth() + 1}`);
19 |     }
20 | 
21 |     const handleNextMonth = () => {
22 |         let [year, month] = currentMonth.split('-');
23 |         let currentDate = new Date(parseInt(year), parseInt(month) - 1, 1);
24 |         currentDate.setMonth( currentDate.getMonth() + 1 );
25 |         onMonthChange(`${currentDate.getFullYear()}-${currentDate.getMonth() + 1}`);
26 |     }
27 | 
28 |     return (
29 |
30 |             
31 |                 ⬅️ 32 |{formatCurrentMonth(currentMonth)} 33 |➡️ 34 |
 35 |
36 |                  44 |
 45 |     );
46 | }
--------------------------------------------------------------------------------
/src/components/InfoArea/styles.ts:
--------------------------------------------------------------------------------
 1 | import styled from "styled-components";
 2 | 
 3 | export const Container = styled.div`
 4 |     background-color: #FFF;
 5 |     box-shadow: 0px 0px 5px #CCC;
 6 |     border-radius: 10px;
 7 |     padding: 20px;
 8 |     margin-top: -40px;
 9 |     display: flex;
10 |     align-items: center;
11 | `;
12 | 
13 | export const MonthArea = styled.div`
14 |     flex: 1;
15 |     display: flex;
16 |     align-items: center;
17 | `;
18 | 
19 | export const MonthArrow = styled.div`
20 |     width: 40px;
21 |     text-align: center;
22 |     font-size: 25px;
23 |     cursor: pointer;
24 | `;
25 | 
26 | export const MonthTitle = styled.div`
27 |     flex: 1;
28 |     text-align: center;
29 | `;
30 | 
31 | export const ResumeArea = styled.div`
32 |     flex: 2;
33 |     display: flex;
34 | `;
--------------------------------------------------------------------------------
/src/components/InputArea/index.tsx:
--------------------------------------------------------------------------------
 1 | import { useState } from 'react';
 2 | import * as C from './styles';
 3 | import { Item } from '../../types/Item';
 4 | 
 5 | import { categories } from '../../data/categories';
 6 | import { newDateAdjusted } from '../../helpers/dateFilter';
 7 | 
 8 | type Props = {
 9 |   onAdd: (item: Item) => void;
10 | };
11 | 
12 | export const InputArea = ({ onAdd }: Props) => {
13 |   const [dateField, setDateField] = useState('');
14 |   const [categoryField, setCategoryField] = useState('');
15 |   const [titleField, setTitleField] = useState('');
16 |   const [valueField, setValueField] = useState(0);
17 | 
18 |   let categoryKeys: string[] = Object.keys(categories);
19 | 
20 |   const handleAddEvent = () => {
21 |     let errors: string[] = [];
22 | 
23 |     if(isNaN(new Date(dateField).getTime())) {
24 |       errors.push('Data inválida!');
25 |     }
26 |     if(!categoryKeys.includes(categoryField)) {
27 |       errors.push('Categoria inválida!');
28 |     }
29 |     if(titleField === '') {
30 |       errors.push('Título vazio!');
31 |     }
32 |     if(valueField <= 0) {
33 |       errors.push('Valor inválido!');
34 |     }
35 | 
36 |     if(errors.length > 0) {
37 |       alert(errors.join("\n"));
38 |     } else {
39 |       onAdd({
40 |         date: newDateAdjusted(dateField),
41 |         category: categoryField,
42 |         title: titleField,
43 |         value: valueField
44 |       });
45 |       clearFields();
46 |     }
47 |   }
48 | 
49 |   const clearFields = () => {
50 |     setDateField('');
51 |     setCategoryField('');
52 |     setTitleField('');
53 |     setValueField(0);
54 |   }
55 | 
56 |   return (
57 |
58 |         
59 |           Data 60 | setDateField(e.target.value)} />
61 |          
 62 |
63 |           Categoria 64 | setCategoryField(e.target.value)}>
65 |             <>
66 |               {categories[key].title} 69 |               ))}
70 |             >
71 |
 72 |
 73 |
74 |           Título 75 | setTitleField(e.target.value)} />
76 |          
 77 |
78 |           Valor 79 | setValueField(parseFloat(e.target.value))} />
80 |          
 81 |
82 |             83 |Adicionar 84 |
 85 |
 86 |   );
87 | }
--------------------------------------------------------------------------------
/src/components/InputArea/styles.ts:
--------------------------------------------------------------------------------
 1 | import styled from 'styled-components';
 2 | 
 3 | export const Container = styled.div`
 4 |     background-color: #FFF;
 5 |     box-shadow: 0px 0px 5px #CCC;
 6 |     border-radius: 10px;
 7 |     padding: 20px;
 8 |     margin-top: 20px;
 9 |     display: flex;
10 |     align-items: center;
11 | `;
12 | export const InputLabel = styled.label`
13 |     flex: 1;
14 |     margin: 10px;
15 | `;
16 | export const InputTitle = styled.div`
17 |     font-weight: bold;
18 |     margin-bottom: 5px;
19 | `;
20 | export const Input = styled.input`
21 |     width: 100%;
22 |     height: 30px;
23 |     padding: 0 5px;
24 |     border: 1px solid lightblue;
25 |     border-radius: 5px;
26 | `;
27 | export const Select = styled.select`
28 |     width: 100%;
29 |     height: 30px;
30 |     padding: 0 5px;
31 |     border: 1px solid lightblue;
32 |     border-radius: 5px;
33 | `;
34 | export const Button = styled.button`
35 |     width: 100%;
36 |     height: 30px;
37 |     padding: 0 5px;
38 |     border: 1px solid lightblue;
39 |     border-radius: 5px;
40 |     background-color: lightblue;
41 |     color: black;
42 |     cursor: pointer;
43 | 
44 |     &:hover {
45 |         background-color: blue;
46 |         color: white;
47 |     }
48 | `;
49 | 
--------------------------------------------------------------------------------
/src/components/ResumeItem/index.tsx:
--------------------------------------------------------------------------------
 1 | import * as C from './styles';
 2 | 
 3 | type Props = {
 4 |     title: string;
 5 |     value: number;
 6 |     color?: string;
 7 | }
 8 | 
 9 | export const ResumeItem = ({ title, value, color }: Props) => {
10 |     return (
11 |
12 |             {title} 13 |R$ {value} 14 |
 15 |     );
16 | }
--------------------------------------------------------------------------------
/src/components/ResumeItem/styles.ts:
--------------------------------------------------------------------------------
 1 | import styled from "styled-components";
 2 | 
 3 | export const Container = styled.div`
 4 |     flex: 1;
 5 | `;
 6 | 
 7 | export const Title = styled.div`
 8 |     text-align: center;
 9 |     font-weight: bold;
10 |     color: #888;
11 |     margin-bottom: 5px;
12 | `;
13 | 
14 | export const Info = styled.div<{ color?: string }>`
15 |     text-align: center;
16 |     font-weight: bold;
17 |     color: ${props => props.color ?? '#000'};
18 | `;
--------------------------------------------------------------------------------
/src/components/TableArea/index.tsx:
--------------------------------------------------------------------------------
 1 | import * as C from './styles';
 2 | import { Item } from '../../types/Item';
 3 | import { TableItem } from '../TableItem';
 4 | 
 5 | type Props = {
 6 |     list: Item[]
 7 | }
 8 | 
 9 | export const TableArea = ({ list }: Props) => {
10 |     return (
11 |
12 |             
13 |                 
14 |                     Data 15 |Categoria 16 |Título 17 |Valor 18 |
 19 |
 20 |
21 |                 {list.map((item, index)=>(
22 |                      25 |
 26 |     );
27 | }
--------------------------------------------------------------------------------
/src/components/TableArea/styles.ts:
--------------------------------------------------------------------------------
 1 | import styled from 'styled-components';
 2 | 
 3 | export const Table = styled.table`
 4 |     width: 100%;
 5 |     background-color: #FFF;
 6 |     padding: 20px;
 7 |     box-shadow: 0px 0px 5px #CCC;
 8 |     border-radius: 10px;
 9 |     margin-top: 20px;
10 | `;
11 | 
12 | export const TableHeadColumn = styled.th<{ width?: number }>`
13 |     width: ${props => props.width ? `${props.width}px` : 'auto'};
14 |     padding: 10px 0;
15 |     text-align: left;
16 | `;
--------------------------------------------------------------------------------
/src/components/TableItem/index.tsx:
--------------------------------------------------------------------------------
 1 | import * as C from './styles';
 2 | import { Item } from '../../types/Item';
 3 | import { formatDate } from '../../helpers/dateFilter';
 4 | import { categories } from '../../data/categories';
 5 | 
 6 | type Props = {
 7 |     item: Item
 8 | }
 9 | 
10 | export const TableItem = ({ item }: Props) => {
11 |     return (
12 |
13 |             {formatDate(item.date)} 14 |
15 |                 
16 |                     {categories[item.category].title}
17 |                  18 |
 19 |{item.title} 20 |
21 |                 
22 |                     R$ {item.value}
23 |                  24 |
 25 |
 26 |     );
27 | }
--------------------------------------------------------------------------------
/src/components/TableItem/styles.ts:
--------------------------------------------------------------------------------
 1 | import styled from 'styled-components';
 2 | 
 3 | export const TableLine = styled.tr``;
 4 | 
 5 | export const TableColumn = styled.td`
 6 |     padding: 10px 0;
 7 | `;
 8 | 
 9 | export const Category = styled.div<{ color: string }>`
10 |     display: inline-block;
11 |     padding: 5px 10px;
12 |     border-radius: 5px;
13 |     color: #FFF;
14 |     background-color: ${props => props.color};
15 | `;
16 | 
17 | export const Value = styled.div<{ color: string }>`
18 |     color: ${props => props.color};
19 | `;
--------------------------------------------------------------------------------
/src/data/categories.ts:
--------------------------------------------------------------------------------
1 | import { Category } from '../types/Category';
2 | 
3 | export const categories: Category = {
4 |     food: { title: 'Alimentação', color: 'blue', expense: true },
5 |     rent: { title: 'Aluguel', color: 'brown', expense: true },
6 |     salary: { title: 'Salário', color: 'green', expense: false }
7 | }
--------------------------------------------------------------------------------
/src/data/items.ts:
--------------------------------------------------------------------------------
1 | import { Item } from '../types/Item';
2 | 
3 | export const items: Item[] = [
4 |     { date: new Date(2021, 9, 6), category: 'food', title: 'McDonalds', value: 32.12 },
5 |     { date: new Date(2021, 9, 15), category: 'food', title: 'Burger King', value: 28 },
6 |     { date: new Date(2021, 9, 16), category: 'rent', title: 'Aluguel Apt', value: 2300 },
7 |     { date: new Date(2021, 10, 18), category: 'salary', title: 'Salário ACME', value: 4500 },
8 | ];
--------------------------------------------------------------------------------
/src/helpers/dateFilter.ts:
--------------------------------------------------------------------------------
 1 | import { Item } from '../types/Item';
 2 | 
 3 | export const getCurrentMonth = () => {
 4 |     let now = new Date();
 5 |     return `${now.getFullYear()}-${now.getMonth()+1}`;
 6 | }
 7 | 
 8 | export const filterListByMonth = (list: Item[], date: string): Item[] => {
 9 |     let newList: Item[] = [];
10 |     let [year, month] = date.split('-');
11 | 
12 |     for(let i in list) {
13 |         if(
14 |             list[i].date.getFullYear() === parseInt(year) &&
15 |             (list[i].date.getMonth() + 1) === parseInt(month)
16 |         ) {
17 |             newList.push(list[i]);
18 |         }
19 |     }
20 | 
21 |     return newList;
22 | }
23 | 
24 | export const formatDate = (date: Date): string => {
25 |     let year = date.getFullYear();
26 |     let month = date.getMonth() + 1;
27 |     let day = date.getDate();
28 | 
29 |     return `${addZeroToDate(day)}/${addZeroToDate(month)}/${year}`;
30 | }
31 | const addZeroToDate = (n: number): string => n < 10 ? `0${n}` : `${n}`;
32 | 
33 | export const formatCurrentMonth = (currentMonth: string): string => {
34 |     let [year, month] = currentMonth.split('-');
35 |     let months = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
36 |     return `${months[parseInt(month) - 1]} de ${year}`;
37 | }
38 | 
39 | export const newDateAdjusted = (dateField: string) => {
40 |     let [year, month, day] = dateField.split('-')
41 |     return new Date(parseInt(year), parseInt(month) - 1, parseInt(day))
42 |   }
43 | 
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
 1 | body {
 2 |   margin: 0;
 3 |   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
 4 |     'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
 5 |     sans-serif;
 6 |   -webkit-font-smoothing: antialiased;
 7 |   -moz-osx-font-smoothing: grayscale;
 8 | }
 9 | 
10 | code {
11 |   font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 |     monospace;
13 | }
14 | 
--------------------------------------------------------------------------------
/src/index.tsx:
--------------------------------------------------------------------------------
 1 | import React from 'react';
 2 | import ReactDOM from 'react-dom';
 3 | import './index.css';
 4 | import App from './App';
 5 | import reportWebVitals from './reportWebVitals';
 6 | 
 7 | ReactDOM.render(
 8 |
 9 |      ,
11 |   document.getElementById('root')
12 | );
13 | 
14 | // If you want to start measuring performance in your app, pass a function
15 | // to log results (for example: reportWebVitals(console.log))
16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17 | reportWebVitals();
18 | 
--------------------------------------------------------------------------------
/src/logo.svg:
--------------------------------------------------------------------------------
1 |