diff --git a/Front/src/App.tsx b/Front/src/App.tsx
index c0e1ce2..57f49ae 100644
--- a/Front/src/App.tsx
+++ b/Front/src/App.tsx
@@ -5,6 +5,7 @@ import Box from '@mui/material/Box';
import Grid from '@mui/material/Grid';
import Container from '@mui/material/Container';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import { teal } from '@mui/material/colors';
import Header from './Header'
import CoinList from './coinList/coinList';
@@ -27,8 +28,22 @@ function App() {
const theme = React.useMemo(
() =>
createTheme({
+ typography: {
+ h1: {
+ fontSize: 28,
+ fontWeight: 500,
+ },
+ h2: {
+ fontSize: 24,
+ fontWeight: 200,
+ paddingBottom: 20,
+ }
+ },
palette: {
mode,
+ primary: {
+ main: teal[700],
+ },
},
}),
[mode],
@@ -37,25 +52,25 @@ function App() {
return (
-
-
-
-
-
-
-
- } />
- } />
-
-
-
-
-
-
+
+
+
+
+
+
+
+ } />
+ } />
+
+
+
+
+
+
);
diff --git a/Front/src/Header.tsx b/Front/src/Header.tsx
index 0367366..a8decab 100644
--- a/Front/src/Header.tsx
+++ b/Front/src/Header.tsx
@@ -5,23 +5,11 @@ import Box from '@mui/material/Box';
import AppBar from '@mui/material/AppBar';
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
-import IconButton from '@mui/material/IconButton';
-import Brightness4Icon from '@mui/icons-material/Brightness4';
-import Brightness7Icon from '@mui/icons-material/Brightness7';
import { useTheme } from '@mui/material/styles';
const ColorModeContext = React.createContext({ toggleColorMode: () => { } });
-interface HeaderProps {
- colorMode: {
- toggleColorMode: () => void;
- }
- theme: any;
-}
-
-const Header = (props: HeaderProps): JSX.Element => {
- const theme = useTheme();
- const colorMode = React.useContext(ColorModeContext);
+const Header = (): JSX.Element => {
return (
@@ -31,9 +19,6 @@ const Header = (props: HeaderProps): JSX.Element => {
CoinGecko Data
-
- {props.theme.palette.mode === 'dark' ? : }
-
diff --git a/Front/src/coinDetails/coinChart.tsx b/Front/src/coinDetails/coinChart.tsx
index 5e3b5b9..73b15f6 100644
--- a/Front/src/coinDetails/coinChart.tsx
+++ b/Front/src/coinDetails/coinChart.tsx
@@ -14,6 +14,7 @@ import { Line } from 'react-chartjs-2';
import { useGetCoinChartQuery } from '../coinApi';
import { format } from 'date-fns';
+import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import ButtonGroup from '@mui/material/ButtonGroup';
import Grid from '@mui/material/Grid';
@@ -45,7 +46,6 @@ export interface IDurationOptions extends Array { }
const CoinChart = (props: ICoinChartProps): JSX.Element => {
- const ref = React.useRef(null);
const [duration, setDuration] = React.useState('max')
const [redraw, setRedraw] = React.useState(false);
@@ -117,10 +117,7 @@ const CoinChart = (props: ICoinChartProps): JSX.Element => {
};
return (
-
+
{
data && <>
@@ -150,7 +147,7 @@ const CoinChart = (props: ICoinChartProps): JSX.Element => {
>
}
-
+
)
}
diff --git a/Front/src/coinDetails/coinDetails.tsx b/Front/src/coinDetails/coinDetails.tsx
index 727b284..320f2b5 100644
--- a/Front/src/coinDetails/coinDetails.tsx
+++ b/Front/src/coinDetails/coinDetails.tsx
@@ -4,6 +4,7 @@ import { useGetCoinInfoQuery } from '../coinApi';
import Box from '@mui/material/Box';
import Grid from '@mui/material/Grid';
+import Typography from '@mui/material/Typography';
import CoinChart from './coinChart';
import CoinStats from './coinStats';
@@ -20,34 +21,35 @@ const CoinDetails = (): JSX.Element => {
} = useGetCoinInfoQuery(id ? id : '');
return (
-
+
{isLoading && Loading...
}
{
data && isSuccess && <>
-
-

-
{data.name}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {data.name}
+
+
+
+
+
-
- >
+
+
+
+
+
+
+
+
+
+
+
+ >
}
-
+
)
}
- export default CoinDetails;
+export default CoinDetails;
diff --git a/Front/src/coinDetails/coinInfo.tsx b/Front/src/coinDetails/coinInfo.tsx
index 8cd1772..84c148a 100644
--- a/Front/src/coinDetails/coinInfo.tsx
+++ b/Front/src/coinDetails/coinInfo.tsx
@@ -6,6 +6,8 @@ import TwitterIcon from '@mui/icons-material/Twitter';
import LinkIcon from '@mui/icons-material/Link';
import Button from '@mui/material/Button';
import Grid from '@mui/material/Grid';
+import Typography from '@mui/material/Typography';
+import Box from '@mui/material/Box';
import { ICoinInfoProps } from './coinDetails-types'
@@ -14,8 +16,8 @@ const CoinInfo = (props: ICoinInfoProps): JSX.Element => {
console.log("CoinInfo props.data: ", data)
return (
-
-
Info
+
+ Info
Rank: #{data.market_cap_rank}
@@ -66,7 +68,7 @@ const CoinInfo = (props: ICoinInfoProps): JSX.Element => {
)
}
-
+
)
}
diff --git a/Front/src/coinDetails/coinStats.tsx b/Front/src/coinDetails/coinStats.tsx
index 6411919..bb89cb0 100644
--- a/Front/src/coinDetails/coinStats.tsx
+++ b/Front/src/coinDetails/coinStats.tsx
@@ -3,6 +3,8 @@ import TableBody from '@mui/material/TableBody';
import TableCell from '@mui/material/TableCell';
import TableContainer from '@mui/material/TableContainer';
import TableRow from '@mui/material/TableRow';
+import Typography from '@mui/material/Typography';
+import Box from '@mui/material/Box';
import { ICoinStatsProps, ICoinInfoProps, IStatsRow } from './coinDetails-types'
@@ -24,8 +26,8 @@ const CoinStats = (props: ICoinStatsProps): JSX.Element => {
]
return (
-
-
Statistics
+
+ Statistics
@@ -40,7 +42,7 @@ const CoinStats = (props: ICoinStatsProps): JSX.Element => {
-
+
)
}
diff --git a/Front/src/coinList/coinList.tsx b/Front/src/coinList/coinList.tsx
index 9a75e98..54c8225 100644
--- a/Front/src/coinList/coinList.tsx
+++ b/Front/src/coinList/coinList.tsx
@@ -1,6 +1,7 @@
import { useSearchParams } from 'react-router-dom';
import { Link } from "react-router-dom";
+import Box from '@mui/material/Box';
import Table from '@mui/material/Table';
import TableBody from '@mui/material/TableBody';
import TableCell from '@mui/material/TableCell';
@@ -26,7 +27,7 @@ const CoinList = (): JSX.Element => {
const { data: globalData, isLoading: globalIsLoading, isSuccess: lobalSuccess } = useGetGlobalQuery();
return (
-
+
{isLoading || globalIsLoading && Loading...
}
{
globalData &&
@@ -117,7 +118,7 @@ const CoinList = (): JSX.Element => {
}
-
+
)
}
diff --git a/Front/src/index.css b/Front/src/index.css
index 9dac1fe..dc2257f 100644
--- a/Front/src/index.css
+++ b/Front/src/index.css
@@ -10,15 +10,13 @@ body {
a {
text-decoration: none;
- color: #1976d2;
+ color: #44a37d;
}
.coin-list a {
color: #444444;
}
-h2 { color: #888888; font-weight: lighter;}
-
header a {
color: #fff;
text-decoration: none;
@@ -44,31 +42,3 @@ header a {
color: #777777;
text-transform: uppercase;
}
-
-.globalText {
- font-weight: normal;
- font-size: 0.9em;
- font-style: italic;
- margin-left: 5px;
- color: #777777;
- margin-bottom: 20px;
-}
-
-.chart-container {
- height: inherit;
-}
-
-
-.details-title {
- display:flex;
- align-items:center;
- justify-content:start;
-}
-
-.details-title img {
- margin-right: 15px;
-}
-
-.details h2 {
- margin-top: 0px;
-}
\ No newline at end of file
diff --git a/screenshot.png b/screenshot.png
index 20d24d5..9200ffe 100644
Binary files a/screenshot.png and b/screenshot.png differ