diff --git a/frontend/common/CustomCardDashboard.tsx b/frontend/common/CustomCardDashboard.tsx index 860c8cd..46309c7 100644 --- a/frontend/common/CustomCardDashboard.tsx +++ b/frontend/common/CustomCardDashboard.tsx @@ -1,6 +1,6 @@ import {Box, Card, Typography} from '@mui/material'; -import FloodRoundedIcon from '@mui/icons-material/FloodRounded'; import {FC} from 'react'; + interface Props { title: string; amount: string; @@ -11,13 +11,13 @@ const CustomCardDashboard: FC = ({title, amount, icons}) => { = ({title, amount, icons}) => { flexDirection: 'column', borderRadius: '20px', border: '1px solid #F0EEEF', - width: '180px', }}> = ({title, subTitle}) => { {subTitle} diff --git a/frontend/common/CustomCardMyWallet2.tsx b/frontend/common/CustomCardMyWallet2.tsx index 925f2ac..3ff2c59 100644 --- a/frontend/common/CustomCardMyWallet2.tsx +++ b/frontend/common/CustomCardMyWallet2.tsx @@ -18,18 +18,18 @@ const CustomCardMyWallet2: FC = ({title, amount, icons}) => { display: 'flex', background: '#fff', borderRadius: '20px', - border: '1px solid #F0EEEF', + border: '2px solid #F0EEEF', justifyContent: 'space-between', alignItems: 'center', + p: '10px', }}> = ({title, amount, icons}) => { {icons} - + {title} = ({title, amount, icons}) => { display: 'flex', alignItems: 'end', justifyContent: 'right', - pr: '10px', }}> + ); +}; +export default CustomActionButtonComponent; diff --git a/frontend/common/button/CustomBackButton.tsx b/frontend/common/button/CustomBackButton.tsx new file mode 100644 index 0000000..58d5ca2 --- /dev/null +++ b/frontend/common/button/CustomBackButton.tsx @@ -0,0 +1,37 @@ +import {Button} from '@mui/material'; +import KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace'; +import React from 'react'; +import {useRouter} from 'next/navigation'; + +const CustomBackButton = () => { + const Router = useRouter(); + const handleBack = () => { + return Router.back(); + }; + + return ( + + ); +}; +export default CustomBackButton; diff --git a/frontend/component/AddNewBudget.tsx b/frontend/component/AddNewBudget.tsx index 20cdc08..32194ed 100644 --- a/frontend/component/AddNewBudget.tsx +++ b/frontend/component/AddNewBudget.tsx @@ -1,47 +1,31 @@ 'use client'; -import { - Button, - Container, - Grid, - MenuItem, - TextField, - Typography, -} from '@mui/material'; -import KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace'; +import {Container, Grid, MenuItem, TextField, Typography} from '@mui/material'; import React from 'react'; import {budget, currencies, wallets} from '@/common/ListedData'; -import {useRouter} from 'next/navigation'; +import CustomActionButtonComponent from '@/common/button/CustomActionButtonComponent'; +import {CustomStyles} from '@/core/enums'; +import CustomBackButton from '@/common/button/CustomBackButton'; const AddNewBudget = () => { - const Router = useRouter(); - const handleBack = () => { - return Router.back(); + const handleClick = () => { + return console.log('Add a budget page'); }; return ( - - - + disableGutters={true} + sx={{ + minHeight: '100vh', + backgroundColor: '#FEFEFF', + pt: CustomStyles.CONTAINER_TOP, + pl: CustomStyles.CONTAINER_LEFT, + pr: CustomStyles.CONTAINER_RIGHT, + pb: '100px', + position: 'relative', + }}> + + + @@ -55,27 +39,9 @@ const AddNewBudget = () => { Budget Name - - - - Amount - - { }} /> - - - Budget Name - - - {currencies.map((option) => ( - - {option.label} - - ))} - + + + + + Amount + + + + + + Budget Name + + + {currencies.map((option) => ( + + {option.label} + + ))} + + + + Budget Name { Budget Name { ))} - - + diff --git a/frontend/component/AddTransaction.tsx b/frontend/component/AddTransaction.tsx index 71770ce..b4bccef 100644 --- a/frontend/component/AddTransaction.tsx +++ b/frontend/component/AddTransaction.tsx @@ -1,17 +1,17 @@ 'use client'; -import {Box, Button, Container, Grid, Typography} from '@mui/material'; +import {Box, Container, Grid, Typography} from '@mui/material'; import ArrowDownwardRoundedIcon from '@mui/icons-material/ArrowDownwardRounded'; import CustomBottomIcons from '@/common/CustomBottomIcons'; import HomeRoundedIcon from '@mui/icons-material/HomeRounded'; -import KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace'; import React, {useState} from 'react'; import CustomCardHorizonatlIconAndTitle from '@/common/addTransaction/CustomCardHorizontalIconAndTiTle'; import CustomButtonIcon1 from '@/common/addTransaction/CustomButtonWithIcon'; import CustomButtonText from '@/common/addTransaction/CustomButtonText'; -import {useRouter} from 'next/navigation'; +import CustomActionButtonComponent from '@/common/button/CustomActionButtonComponent'; +import CustomBackButton from '@/common/button/CustomBackButton'; +import {CustomStyles, Fonts} from '@/core/enums'; const AddTransaction = () => { - const Router = useRouter(); const [selectedIndex, setSelectedIndex] = useState(0); const handleWalletClick = (active: number) => { setSelectedIndex(active); @@ -28,72 +28,71 @@ const AddTransaction = () => { return; }; - const handleBack = () => { - return Router.back(); + const handleTransaction = () => { + return console.log('This is transaction'); }; return ( - + disableGutters={true} + sx={{ + minHeight: '100vh', + backgroundColor: '#FEFEFF', + pt: CustomStyles.CONTAINER_TOP, + pl: CustomStyles.CONTAINER_LEFT, + pr: CustomStyles.CONTAINER_RIGHT, + pb: '100px', + position: 'relative', + }}> + - + - + Add Transaction - + handleWalletClick(0)}> Expenses handleWalletClick(1)}> Incomes handleWalletClick(2)}> Savings - + { justifyContent: 'end', pr: '5px', }}> - USD + + USD + { - + { Wallet - + @@ -179,7 +187,7 @@ const AddTransaction = () => { - + { xs={12} sx={{ border: '2px solid #F0EFF0', - borderRadius: '30px', - m: '15px', + borderRadius: '20px', + p: '15px', + mb: '16px', }}> - + { color: '#333333', backgroundColor: 'white', borderRadius: '8px', - border: '2px solid #393939', + border: '3px solid #393939', p: '5px', fontSize: '230%', }} @@ -317,8 +326,15 @@ const AddTransaction = () => { - - + + { Today - + { Yestarday - + { borderRadius: '8px', p: '5px', fontSize: '230%', - mt: '12px', - border: '2px solid #B1AFB1', + border: '2px solid #F2F1F2', }} /> } @@ -353,20 +368,10 @@ const AddTransaction = () => { - - + diff --git a/frontend/component/Dashboard.tsx b/frontend/component/Dashboard.tsx index c0193a2..0746982 100644 --- a/frontend/component/Dashboard.tsx +++ b/frontend/component/Dashboard.tsx @@ -1,9 +1,7 @@ 'use client'; import {Box, Container, Grid, Typography} from '@mui/material'; -import FloodRoundedIcon from '@mui/icons-material/FloodRounded'; import CustomCardDashboard from '@/common/CustomCardDashboard'; import AccountBalanceIcon from '@mui/icons-material/AccountBalance'; -import InventoryIcon from '@mui/icons-material/Inventory'; import CustomCardDashboardTwo from '@/common/CustomCardDashboardTwo'; import ArrowDownwardRoundedIcon from '@mui/icons-material/ArrowDownwardRounded'; import SouthWestRoundedIcon from '@mui/icons-material/SouthWestRounded'; @@ -11,23 +9,37 @@ import TurnSlightRightRoundedIcon from '@mui/icons-material/TurnSlightRightRound import RadarRoundedIcon from '@mui/icons-material/RadarRounded'; import CustomHorizontalCard from '@/common/CustomHorizontalCard'; import Footer from '@/common/footer/Footer'; +import {CustomStyles} from '@/core/enums'; const DashBoard = () => { return ( - + disableGutters={true} + sx={{ + minHeight: '100vh', + backgroundColor: '#FEFEFF', + // pt: CustomStyles.CONTAINER_TOP, + // pl: CustomStyles.CONTAINER_LEFT, + // pr: CustomStyles.CONTAINER_RIGHT, + pb: '100px', + position: 'relative', + }}> + - + @@ -40,9 +52,9 @@ const DashBoard = () => { $2,600 - - - + + + { /> } /> - {' '} - + + { /> } /> - {' '} - + + { /> } /> - {' '} - + + { /> } /> - {' '} - + + { } /> - {/**/} - {/* }*/} - {/*/>*/} - {/**/} - {/* }*/} - {/*/>*/} - {/**/} - {/* }*/} - {/*/>*/} - + { - + { See all {'>'} - + { amount={'$1000'} /> - + { amount={'$1000'} /> - + { amount={'$1000'} /> - + { -