From 82b9c673d8cf50b6b26e7bb3eba88a3442aa2202 Mon Sep 17 00:00:00 2001 From: Giovanni Baratta Date: Tue, 21 May 2024 15:52:46 +0200 Subject: [PATCH] Add Info page Signed-off-by: Giovanni Baratta --- src/App.tsx | 22 ++++++++++--- src/components/InfoComponent.tsx | 53 ++++++++++++++++++++++++++++++++ src/vite-env.d.ts | 1 + 3 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 src/components/InfoComponent.tsx create mode 100644 src/vite-env.d.ts diff --git a/src/App.tsx b/src/App.tsx index 1a18bfa..d84ede8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,6 +12,7 @@ import { ListItemIcon, ListItemText } from "@mui/material" +import InfoTwoToneIcon from "@mui/icons-material/InfoTwoTone" import {useAppSelector} from "./state/store.ts" import {getFirstDayOfNextMonthsFrom} from "./utils/date.ts" import {buildCarExpensesCalculator} from "./model/car.ts" @@ -30,6 +31,7 @@ import {buildHouseExpensesCalculator} from "./model/house.ts" import {buildFurnitureExpensesCalculator} from "./model/furniture.ts" import {buildHouseAgencyExpensesCalculator, HouseAgencyCosts} from "./model/house-agency.ts" import {HouseComponent} from "./components/HouseComponent.tsx" +import {Info} from "./components/InfoComponent.tsx" const ONE_YEAR_IN_MS = 1 * 1000 * 60 * 60 * 24 * 365 @@ -151,8 +153,19 @@ function App() { anchor="left" > - + + + + + + + + + + + + @@ -220,9 +233,10 @@ function App() { - } /> + } /> + } /> } /> } /> } /> diff --git a/src/components/InfoComponent.tsx b/src/components/InfoComponent.tsx new file mode 100644 index 0000000..a581200 --- /dev/null +++ b/src/components/InfoComponent.tsx @@ -0,0 +1,53 @@ +import React from "react" +import {Alert, Box, Container, List, ListItemText, Typography} from "@mui/material" +import logo from "../../public/logo-no-background.png" + +interface InfoComponentProps { +} + +export const Info: React.FC = () => { + return ( + + + Logo + + What can you do in this web app? + + + This web app allows you to simulate your future financial situation based on your current income, expenses, + and assets. + + + + + + + + + + The web app is still under + development, + but it + already has a + number of features that + may help you + + + + + How to use the web app + + + Use the menu on the left side of the screen to navigate through the different sections of the web app. Open + each section and fill the data based on your needs. + After you filled all the data, go to the Summary section and to Projection to see the results of your expected + financial situation. + + + + ) +} diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts new file mode 100644 index 0000000..4997750 --- /dev/null +++ b/src/vite-env.d.ts @@ -0,0 +1 @@ +declare module "*.png";