first commit
This commit is contained in:
@@ -0,0 +1,247 @@
|
||||
import React from "react";
|
||||
import { Box } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import { Typography } from "@mui/material";
|
||||
import InputLabel from "@mui/material/InputLabel";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import FormControl from "@mui/material/FormControl";
|
||||
import Select from "@mui/material/Select";
|
||||
import TrendingUpIcon from "@mui/icons-material/TrendingUp";
|
||||
import TrendingDownIcon from "@mui/icons-material/TrendingDown";
|
||||
|
||||
const CurrentRate = () => {
|
||||
// Select Form
|
||||
const [select, setSelect] = React.useState("");
|
||||
const handleChange = (event) => {
|
||||
setSelect(event.target.value);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 25px 10px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
{/* Header */}
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Current Rate
|
||||
</Typography>
|
||||
<Box>
|
||||
<FormControl sx={{ minWidth: 120 }} size="small">
|
||||
<InputLabel id="demo-select-small" sx={{ fontSize: "14px" }}>
|
||||
Select
|
||||
</InputLabel>
|
||||
<Select
|
||||
labelId="demo-select-small"
|
||||
id="demo-select-small"
|
||||
value={select}
|
||||
label="Select"
|
||||
onChange={handleChange}
|
||||
sx={{ fontSize: "14px" }}
|
||||
className="select"
|
||||
>
|
||||
<MenuItem value={0} sx={{ fontSize: "14px" }}>
|
||||
Latest Coin
|
||||
</MenuItem>
|
||||
<MenuItem value={1} sx={{ fontSize: "14px" }}>
|
||||
Old Coin
|
||||
</MenuItem>
|
||||
<MenuItem value={4} sx={{ fontSize: "14px" }}>
|
||||
All Coin
|
||||
</MenuItem>
|
||||
</Select>
|
||||
</FormControl>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
{/* Card */}
|
||||
<Grid
|
||||
container
|
||||
justifyContent="center"
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 2, md: 2 }}
|
||||
>
|
||||
<Grid item xs={12} sm={6} md={4} lg={4}>
|
||||
<Card
|
||||
sx={{
|
||||
background: "rgba(117, 127, 239, .1)",
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
mb: "30px",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<img src="/images/matic.png" alt="matic" />
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
style={{
|
||||
color: "#00B69B",
|
||||
fontSize: "15px",
|
||||
display: "flex",
|
||||
}}
|
||||
>
|
||||
<TrendingUpIcon style={{ marginRight: "5px" }} /> +1.3%
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<Box fontSize={15} fontWeight="500">
|
||||
0.451269
|
||||
</Box>
|
||||
|
||||
<Box fontSize={15} fontWeight="500">
|
||||
$12,06547.00
|
||||
</Box>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} sm={6} md={4} lg={4}>
|
||||
<Card
|
||||
sx={{
|
||||
background: "rgba(247, 147, 26, .1)",
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
mb: "30px",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<img src="/images/btc.png" alt="btc" />
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
style={{
|
||||
color: "#00B69B",
|
||||
fontSize: "15px",
|
||||
display: "flex",
|
||||
}}
|
||||
>
|
||||
<TrendingUpIcon style={{ marginRight: "5px" }} /> +2.48%
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<Box fontSize={15} fontWeight="500">
|
||||
1.111211
|
||||
</Box>
|
||||
|
||||
<Box fontSize={15} fontWeight="500">
|
||||
$14,32522.00
|
||||
</Box>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} sm={6} md={4} lg={4}>
|
||||
<Card
|
||||
sx={{
|
||||
background: "rgba(117, 127, 239, .1)",
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
mb: "30px",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<img src="/images/comp.png" alt="comp" />
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
style={{
|
||||
color: "#EE368C",
|
||||
fontSize: "15px",
|
||||
display: "flex",
|
||||
}}
|
||||
>
|
||||
<TrendingDownIcon style={{ marginRight: "5px" }} /> -0.5%
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<Box fontSize={15} fontWeight="500">
|
||||
0.451269
|
||||
</Box>
|
||||
|
||||
<Box fontSize={15} fontWeight="500">
|
||||
$12,06547.00
|
||||
</Box>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default CurrentRate;
|
||||
@@ -0,0 +1,120 @@
|
||||
import React from "react";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Box from "@mui/material/Box";
|
||||
import Card from "@mui/material/Card";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import TrendingUpIcon from "@mui/icons-material/TrendingUp";
|
||||
import TrendingDownIcon from "@mui/icons-material/TrendingDown";
|
||||
|
||||
const FeaturesData = [
|
||||
{
|
||||
id: "1",
|
||||
amount: "$25,890",
|
||||
title: "Total Invested",
|
||||
image: "/images/icon5.png",
|
||||
icon: <TrendingUpIcon />,
|
||||
growth: "+1.3%",
|
||||
growthText: "Up from past week",
|
||||
color: "successColor",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
amount: "$10,324",
|
||||
title: "Total Changed",
|
||||
image: "/images/icon6.png",
|
||||
icon: <TrendingDownIcon />,
|
||||
growth: "-2.5%",
|
||||
growthText: "Up from past week",
|
||||
color: "dangerColor",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
amount: "$100",
|
||||
title: "Day Changed",
|
||||
image: "/images/icon7.png",
|
||||
icon: <TrendingUpIcon />,
|
||||
growth: "+0.4%",
|
||||
growthText: "Up from past week",
|
||||
color: "successColor",
|
||||
},
|
||||
];
|
||||
|
||||
const Features = () => {
|
||||
return (
|
||||
<>
|
||||
<Grid
|
||||
container
|
||||
justifyContent="center"
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 2, md: 2 }}
|
||||
>
|
||||
{FeaturesData.map((feature) => (
|
||||
<Grid item xs={12} sm={6} md={4} lg={4} key={feature.id}>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px 20px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box>
|
||||
<Typography variant="h4" fontSize={16} fontWeight="500">
|
||||
{feature.title}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<img src={feature.image} alt="Graph" />
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Typography
|
||||
variant="h1"
|
||||
color="primary"
|
||||
sx={{
|
||||
fontSize: 28,
|
||||
fontWeight: 700,
|
||||
mb: "20px",
|
||||
textAlign: "center",
|
||||
}}
|
||||
>
|
||||
{feature.amount}
|
||||
</Typography>
|
||||
|
||||
<Box>
|
||||
<Typography
|
||||
sx={{
|
||||
fontSize: "13px",
|
||||
fontWeight: "500",
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<span>{feature.growthText}</span>
|
||||
<span
|
||||
style={{ display: "flex", alignItems: "center" }}
|
||||
className={feature.color}
|
||||
>
|
||||
{feature.icon}{" "}
|
||||
<span style={{ marginLeft: "5px" }}>{feature.growth}</span>
|
||||
</span>
|
||||
</Typography>
|
||||
</Box>
|
||||
</Card>
|
||||
</Grid>
|
||||
))}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Features;
|
||||
@@ -0,0 +1,24 @@
|
||||
.marketGraphList {
|
||||
text-align: end;
|
||||
}
|
||||
.marketGraphList p {
|
||||
margin-right: 20px;
|
||||
}
|
||||
.marketGraphList p:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 599px) {
|
||||
.marketGraphList {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/* For RTL Style */
|
||||
[dir="rtl"] .marketGraphList p {
|
||||
margin-right: 0;
|
||||
margin-left: 20px;
|
||||
}
|
||||
[dir="rtl"] .marketGraphList p:last-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
@@ -0,0 +1,703 @@
|
||||
import React, { Component } from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Button from "@mui/material/Button";
|
||||
import Card from "@mui/material/Card";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
import styles from "../../Crypto/MarketGraph/MarketGraph.module.css";
|
||||
|
||||
class MarketGraph extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
series: [
|
||||
{
|
||||
name: "Price",
|
||||
data: [
|
||||
[1327359600000, 30.95],
|
||||
[1327446000000, 31.34],
|
||||
[1327532400000, 31.18],
|
||||
[1327618800000, 31.05],
|
||||
[1327878000000, 31.0],
|
||||
[1327964400000, 30.95],
|
||||
[1328050800000, 31.24],
|
||||
[1328137200000, 31.29],
|
||||
[1328223600000, 31.85],
|
||||
[1328482800000, 31.86],
|
||||
[1328569200000, 32.28],
|
||||
[1328655600000, 32.1],
|
||||
[1328742000000, 32.65],
|
||||
[1328828400000, 32.21],
|
||||
[1329087600000, 32.35],
|
||||
[1329174000000, 32.44],
|
||||
[1329260400000, 32.46],
|
||||
[1329346800000, 32.86],
|
||||
[1329433200000, 32.75],
|
||||
[1329778800000, 32.54],
|
||||
[1329865200000, 32.33],
|
||||
[1329951600000, 32.97],
|
||||
[1330038000000, 33.41],
|
||||
[1330297200000, 33.27],
|
||||
[1330383600000, 33.27],
|
||||
[1330470000000, 32.89],
|
||||
[1330556400000, 33.1],
|
||||
[1330642800000, 33.73],
|
||||
[1330902000000, 33.22],
|
||||
[1330988400000, 31.99],
|
||||
[1331074800000, 32.41],
|
||||
[1331161200000, 33.05],
|
||||
[1331247600000, 33.64],
|
||||
[1331506800000, 33.56],
|
||||
[1331593200000, 34.22],
|
||||
[1331679600000, 33.77],
|
||||
[1331766000000, 34.17],
|
||||
[1331852400000, 33.82],
|
||||
[1332111600000, 34.51],
|
||||
[1332198000000, 33.16],
|
||||
[1332284400000, 33.56],
|
||||
[1332370800000, 33.71],
|
||||
[1332457200000, 33.81],
|
||||
[1332712800000, 34.4],
|
||||
[1332799200000, 34.63],
|
||||
[1332885600000, 34.46],
|
||||
[1332972000000, 34.48],
|
||||
[1333058400000, 34.31],
|
||||
[1333317600000, 34.7],
|
||||
[1333404000000, 34.31],
|
||||
[1333490400000, 33.46],
|
||||
[1333576800000, 33.59],
|
||||
[1333922400000, 33.22],
|
||||
[1334008800000, 32.61],
|
||||
[1334095200000, 33.01],
|
||||
[1334181600000, 33.55],
|
||||
[1334268000000, 33.18],
|
||||
[1334527200000, 32.84],
|
||||
[1334613600000, 33.84],
|
||||
[1334700000000, 33.39],
|
||||
[1334786400000, 32.91],
|
||||
[1334872800000, 33.06],
|
||||
[1335132000000, 32.62],
|
||||
[1335218400000, 32.4],
|
||||
[1335304800000, 33.13],
|
||||
[1335391200000, 33.26],
|
||||
[1335477600000, 33.58],
|
||||
[1335736800000, 33.55],
|
||||
[1335823200000, 33.77],
|
||||
[1335909600000, 33.76],
|
||||
[1335996000000, 33.32],
|
||||
[1336082400000, 32.61],
|
||||
[1336341600000, 32.52],
|
||||
[1336428000000, 32.67],
|
||||
[1336514400000, 32.52],
|
||||
[1336600800000, 31.92],
|
||||
[1336687200000, 32.2],
|
||||
[1336946400000, 32.23],
|
||||
[1337032800000, 32.33],
|
||||
[1337119200000, 32.36],
|
||||
[1337205600000, 32.01],
|
||||
[1337292000000, 31.31],
|
||||
[1337551200000, 32.01],
|
||||
[1337637600000, 32.01],
|
||||
[1337724000000, 32.18],
|
||||
[1337810400000, 31.54],
|
||||
[1337896800000, 31.6],
|
||||
[1338242400000, 32.05],
|
||||
[1338328800000, 31.29],
|
||||
[1338415200000, 31.05],
|
||||
[1338501600000, 29.82],
|
||||
[1338760800000, 30.31],
|
||||
[1338847200000, 30.7],
|
||||
[1338933600000, 31.69],
|
||||
[1339020000000, 31.32],
|
||||
[1339106400000, 31.65],
|
||||
[1339365600000, 31.13],
|
||||
[1339452000000, 31.77],
|
||||
[1339538400000, 31.79],
|
||||
[1339624800000, 31.67],
|
||||
[1339711200000, 32.39],
|
||||
[1339970400000, 32.63],
|
||||
[1340056800000, 32.89],
|
||||
[1340143200000, 31.99],
|
||||
[1340229600000, 31.23],
|
||||
[1340316000000, 31.57],
|
||||
[1340575200000, 30.84],
|
||||
[1340661600000, 31.07],
|
||||
[1340748000000, 31.41],
|
||||
[1340834400000, 31.17],
|
||||
[1340920800000, 32.37],
|
||||
[1341180000000, 32.19],
|
||||
[1341266400000, 32.51],
|
||||
[1341439200000, 32.53],
|
||||
[1341525600000, 31.37],
|
||||
[1341784800000, 30.43],
|
||||
[1341871200000, 30.44],
|
||||
[1341957600000, 30.2],
|
||||
[1342044000000, 30.14],
|
||||
[1342130400000, 30.65],
|
||||
[1342389600000, 30.4],
|
||||
[1342476000000, 30.65],
|
||||
[1342562400000, 31.43],
|
||||
[1342648800000, 31.89],
|
||||
[1342735200000, 31.38],
|
||||
[1342994400000, 30.64],
|
||||
[1343080800000, 30.02],
|
||||
[1343167200000, 30.33],
|
||||
[1343253600000, 30.95],
|
||||
[1343340000000, 31.89],
|
||||
[1343599200000, 31.01],
|
||||
[1343685600000, 30.88],
|
||||
[1343772000000, 30.69],
|
||||
[1343858400000, 30.58],
|
||||
[1343944800000, 32.02],
|
||||
[1344204000000, 32.14],
|
||||
[1344290400000, 32.37],
|
||||
[1344376800000, 32.51],
|
||||
[1344463200000, 32.65],
|
||||
[1344549600000, 32.64],
|
||||
[1344808800000, 32.27],
|
||||
[1344895200000, 32.1],
|
||||
[1344981600000, 32.91],
|
||||
[1345068000000, 33.65],
|
||||
[1345154400000, 33.8],
|
||||
[1345413600000, 33.92],
|
||||
[1345500000000, 33.75],
|
||||
[1345586400000, 33.84],
|
||||
[1345672800000, 33.5],
|
||||
[1345759200000, 32.26],
|
||||
[1346018400000, 32.32],
|
||||
[1346104800000, 32.06],
|
||||
[1346191200000, 31.96],
|
||||
[1346277600000, 31.46],
|
||||
[1346364000000, 31.27],
|
||||
[1346709600000, 31.43],
|
||||
[1346796000000, 32.26],
|
||||
[1346882400000, 32.79],
|
||||
[1346968800000, 32.46],
|
||||
[1347228000000, 32.13],
|
||||
[1347314400000, 32.43],
|
||||
[1347400800000, 32.42],
|
||||
[1347487200000, 32.81],
|
||||
[1347573600000, 33.34],
|
||||
[1347832800000, 33.41],
|
||||
[1347919200000, 32.57],
|
||||
[1348005600000, 33.12],
|
||||
[1348092000000, 34.53],
|
||||
[1348178400000, 33.83],
|
||||
[1348437600000, 33.41],
|
||||
[1348524000000, 32.9],
|
||||
[1348610400000, 32.53],
|
||||
[1348696800000, 32.8],
|
||||
[1348783200000, 32.44],
|
||||
[1349042400000, 32.62],
|
||||
[1349128800000, 32.57],
|
||||
[1349215200000, 32.6],
|
||||
[1349301600000, 32.68],
|
||||
[1349388000000, 32.47],
|
||||
[1349647200000, 32.23],
|
||||
[1349733600000, 31.68],
|
||||
[1349820000000, 31.51],
|
||||
[1349906400000, 31.78],
|
||||
[1349992800000, 31.94],
|
||||
[1350252000000, 32.33],
|
||||
[1350338400000, 33.24],
|
||||
[1350424800000, 33.44],
|
||||
[1350511200000, 33.48],
|
||||
[1350597600000, 33.24],
|
||||
[1350856800000, 33.49],
|
||||
[1350943200000, 33.31],
|
||||
[1351029600000, 33.36],
|
||||
[1351116000000, 33.4],
|
||||
[1351202400000, 34.01],
|
||||
[1351638000000, 34.02],
|
||||
[1351724400000, 34.36],
|
||||
[1351810800000, 34.39],
|
||||
[1352070000000, 34.24],
|
||||
[1352156400000, 34.39],
|
||||
[1352242800000, 33.47],
|
||||
[1352329200000, 32.98],
|
||||
[1352415600000, 32.9],
|
||||
[1352674800000, 32.7],
|
||||
[1352761200000, 32.54],
|
||||
[1352847600000, 32.23],
|
||||
[1352934000000, 32.64],
|
||||
[1353020400000, 32.65],
|
||||
[1353279600000, 32.92],
|
||||
[1353366000000, 32.64],
|
||||
[1353452400000, 32.84],
|
||||
[1353625200000, 33.4],
|
||||
[1353884400000, 33.3],
|
||||
[1353970800000, 33.18],
|
||||
[1354057200000, 33.88],
|
||||
[1354143600000, 34.09],
|
||||
[1354230000000, 34.61],
|
||||
[1354489200000, 34.7],
|
||||
[1354575600000, 35.3],
|
||||
[1354662000000, 35.4],
|
||||
[1354748400000, 35.14],
|
||||
[1354834800000, 35.48],
|
||||
[1355094000000, 35.75],
|
||||
[1355180400000, 35.54],
|
||||
[1355266800000, 35.96],
|
||||
[1355353200000, 35.53],
|
||||
[1355439600000, 37.56],
|
||||
[1355698800000, 37.42],
|
||||
[1355785200000, 37.49],
|
||||
[1355871600000, 38.09],
|
||||
[1355958000000, 37.87],
|
||||
[1356044400000, 37.71],
|
||||
[1356303600000, 37.53],
|
||||
[1356476400000, 37.55],
|
||||
[1356562800000, 37.3],
|
||||
[1356649200000, 36.9],
|
||||
[1356908400000, 37.68],
|
||||
[1357081200000, 38.34],
|
||||
[1357167600000, 37.75],
|
||||
[1357254000000, 38.13],
|
||||
[1357513200000, 37.94],
|
||||
[1357599600000, 38.14],
|
||||
[1357686000000, 38.66],
|
||||
[1357772400000, 38.62],
|
||||
[1357858800000, 38.09],
|
||||
[1358118000000, 38.16],
|
||||
[1358204400000, 38.15],
|
||||
[1358290800000, 37.88],
|
||||
[1358377200000, 37.73],
|
||||
[1358463600000, 37.98],
|
||||
[1358809200000, 37.95],
|
||||
[1358895600000, 38.25],
|
||||
[1358982000000, 38.1],
|
||||
[1359068400000, 38.32],
|
||||
[1359327600000, 38.24],
|
||||
[1359414000000, 38.52],
|
||||
[1359500400000, 37.94],
|
||||
[1359586800000, 37.83],
|
||||
[1359673200000, 38.34],
|
||||
[1359932400000, 38.1],
|
||||
[1360018800000, 38.51],
|
||||
[1360105200000, 38.4],
|
||||
[1360191600000, 38.07],
|
||||
[1360278000000, 39.12],
|
||||
[1360537200000, 38.64],
|
||||
[1360623600000, 38.89],
|
||||
[1360710000000, 38.81],
|
||||
[1360796400000, 38.61],
|
||||
[1360882800000, 38.63],
|
||||
[1361228400000, 38.99],
|
||||
[1361314800000, 38.77],
|
||||
[1361401200000, 38.34],
|
||||
[1361487600000, 38.55],
|
||||
[1361746800000, 38.11],
|
||||
[1361833200000, 38.59],
|
||||
[1361919600000, 39.6],
|
||||
],
|
||||
},
|
||||
],
|
||||
options: {
|
||||
chart: {
|
||||
id: "area-datetime",
|
||||
type: "area",
|
||||
height: 350,
|
||||
zoom: {
|
||||
autoScaleYaxis: true,
|
||||
},
|
||||
toolbar: {
|
||||
show: false,
|
||||
},
|
||||
},
|
||||
annotations: {
|
||||
yaxis: [
|
||||
{
|
||||
y: 30,
|
||||
borderColor: "#ddd",
|
||||
label: {
|
||||
show: true,
|
||||
text: "",
|
||||
style: {
|
||||
color: "#fff",
|
||||
background: "#00E396",
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
xaxis: [
|
||||
{
|
||||
x: new Date("14 Nov 2012").getTime(),
|
||||
borderColor: "#ddd",
|
||||
yAxisIndex: 0,
|
||||
label: {
|
||||
show: true,
|
||||
text: "",
|
||||
style: {
|
||||
color: "#fff",
|
||||
background: "#775DD0",
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: false,
|
||||
},
|
||||
markers: {
|
||||
size: 0,
|
||||
style: "hollow",
|
||||
},
|
||||
xaxis: {
|
||||
type: "datetime",
|
||||
min: new Date("01 Mar 2012").getTime(),
|
||||
tickAmount: 6,
|
||||
labels: {
|
||||
style: {
|
||||
fontSize: "13px",
|
||||
},
|
||||
},
|
||||
},
|
||||
yaxis: {
|
||||
labels: {
|
||||
style: {
|
||||
fontSize: "13px",
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
x: {
|
||||
format: "dd MMM yyyy",
|
||||
},
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return "$" + val + "";
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: {
|
||||
show: true,
|
||||
borderColor: "#EDEFF5",
|
||||
strokeDashArray: 5,
|
||||
},
|
||||
colors: ["#757FEF"],
|
||||
fill: {
|
||||
type: "gradient",
|
||||
gradient: {
|
||||
shadeIntensity: 1,
|
||||
opacityFrom: 0.7,
|
||||
opacityTo: 0.9,
|
||||
stops: [0, 100],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
selection: "one_year",
|
||||
};
|
||||
}
|
||||
|
||||
updateData(timeline) {
|
||||
this.setState({
|
||||
selection: timeline,
|
||||
});
|
||||
|
||||
switch (timeline) {
|
||||
case "one_month":
|
||||
ApexCharts.exec(
|
||||
"area-datetime",
|
||||
"zoomX",
|
||||
new Date("28 Jan 2013").getTime(),
|
||||
new Date("27 Feb 2013").getTime()
|
||||
);
|
||||
break;
|
||||
case "six_months":
|
||||
ApexCharts.exec(
|
||||
"area-datetime",
|
||||
"zoomX",
|
||||
new Date("27 Sep 2012").getTime(),
|
||||
new Date("27 Feb 2013").getTime()
|
||||
);
|
||||
break;
|
||||
case "one_year":
|
||||
ApexCharts.exec(
|
||||
"area-datetime",
|
||||
"zoomX",
|
||||
new Date("27 Feb 2012").getTime(),
|
||||
new Date("27 Feb 2013").getTime()
|
||||
);
|
||||
break;
|
||||
case "ytd":
|
||||
ApexCharts.exec(
|
||||
"area-datetime",
|
||||
"zoomX",
|
||||
new Date("01 Jan 2013").getTime(),
|
||||
new Date("27 Feb 2013").getTime()
|
||||
);
|
||||
break;
|
||||
case "all":
|
||||
ApexCharts.exec(
|
||||
"area-datetime",
|
||||
"zoomX",
|
||||
new Date("23 Jan 2012").getTime(),
|
||||
new Date("27 Feb 2013").getTime()
|
||||
);
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "15px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Market Graph
|
||||
</Typography>
|
||||
|
||||
<Box>
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Hour
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Day
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Week
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Month
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Grid
|
||||
container
|
||||
alignItems="center"
|
||||
rowSpacing={1}
|
||||
columnSpacing={{ xs: 1, sm: 2, md: 2 }}
|
||||
>
|
||||
<Grid item xs={12} sm={4} md={3} lg={3}>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/bitcoin.png" alt="bitcoin" />
|
||||
<Box className="ml-10px">
|
||||
<Typography sx={{ fontSize: "13px", display: "flex" }}>
|
||||
Bitcoin (BTC) 6.5%{" "}
|
||||
<KeyboardArrowUpIcon color="success" sx={{ ml: "5px" }} />
|
||||
</Typography>
|
||||
<Typography as="h3" sx={{fontSize: "17px", fontWeight: "500", mb: "0px"}}>
|
||||
$35,294.90
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} sm={8} md={9} lg={9}>
|
||||
<div className={styles.marketGraphList}>
|
||||
<Typography
|
||||
sx={{
|
||||
background: "#EBEBF0",
|
||||
p: "8px 35px 8px 15px",
|
||||
borderRadius: "3px",
|
||||
display: "inline-block",
|
||||
my: "5px",
|
||||
textAlign: 'left'
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<span style={{ fontWeight: 500, display: 'block', marginBottom: '2px' }}>Market Cap:</span> 0.546218602
|
||||
</Typography>
|
||||
|
||||
<Typography
|
||||
sx={{
|
||||
background: "#EBEBF0",
|
||||
p: "8px 35px 8px 15px",
|
||||
borderRadius: "3px",
|
||||
display: "inline-block",
|
||||
my: "5px",
|
||||
textAlign: 'left'
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<span style={{ fontWeight: 500, display: 'block', marginBottom: '2px' }}>Supply:</span> 0.546218602
|
||||
</Typography>
|
||||
</div>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Box sx={{ mt: '10px' }}>
|
||||
<div id="chart">
|
||||
<div className="toolbar">
|
||||
<Button
|
||||
id="one_month"
|
||||
onClick={() => this.updateData("one_month")}
|
||||
className={this.state.selection === "one_month" ? "active" : ""}
|
||||
sx={{
|
||||
fontSize: 13,
|
||||
fontWeight: "normal",
|
||||
padding: "5px 10px",
|
||||
lineHeight: '1',
|
||||
minWidth: "auto",
|
||||
border: '1px solid #eee'
|
||||
}}
|
||||
>
|
||||
1M
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
id="six_months"
|
||||
onClick={() => this.updateData("six_months")}
|
||||
className={
|
||||
this.state.selection === "six_months" ? "active" : ""
|
||||
}
|
||||
sx={{
|
||||
fontSize: 13,
|
||||
fontWeight: "normal",
|
||||
padding: "5px 10px",
|
||||
lineHeight: '1',
|
||||
minWidth: "auto",
|
||||
border: '1px solid #eee'
|
||||
}}
|
||||
>
|
||||
6M
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
id="one_year"
|
||||
onClick={() => this.updateData("one_year")}
|
||||
className={this.state.selection === "one_year" ? "active" : ""}
|
||||
sx={{
|
||||
fontSize: 13,
|
||||
fontWeight: "normal",
|
||||
padding: "5px 10px",
|
||||
lineHeight: '1',
|
||||
minWidth: "auto",
|
||||
border: '1px solid #eee'
|
||||
}}
|
||||
>
|
||||
1Y
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
id="ytd"
|
||||
onClick={() => this.updateData("ytd")}
|
||||
className={this.state.selection === "ytd" ? "active" : ""}
|
||||
sx={{
|
||||
fontSize: 13,
|
||||
fontWeight: "normal",
|
||||
padding: "5px 10px",
|
||||
lineHeight: '1',
|
||||
minWidth: "auto",
|
||||
border: '1px solid #eee'
|
||||
}}
|
||||
>
|
||||
YTD
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
id="all"
|
||||
onClick={() => this.updateData("all")}
|
||||
className={this.state.selection === "all" ? "active" : ""}
|
||||
sx={{
|
||||
fontSize: 13,
|
||||
fontWeight: "normal",
|
||||
padding: "5px 10px",
|
||||
lineHeight: '1',
|
||||
minWidth: "auto",
|
||||
border: '1px solid #eee'
|
||||
}}
|
||||
>
|
||||
ALL
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div id="chart-timeline">
|
||||
<Chart
|
||||
options={this.state.options}
|
||||
series={this.state.series}
|
||||
type="area"
|
||||
height={300}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Box>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default MarketGraph;
|
||||
@@ -0,0 +1,590 @@
|
||||
import React from "react";
|
||||
import { Box } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Button from "@mui/material/Button";
|
||||
import { Typography } from "@mui/material";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import TrendingUpIcon from "@mui/icons-material/TrendingUp";
|
||||
import TrendingDownIcon from "@mui/icons-material/TrendingDown";
|
||||
|
||||
const MyCurrencies = () => {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
{/* Card Header */}
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
marginBottom: "15px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
My Currencies
|
||||
</Typography>
|
||||
|
||||
<Box>
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Buy
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Sell
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
All
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
{/* Table */}
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "450px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 750 }}
|
||||
aria-label="My Currencies"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Coin Name
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Price
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
24h Change
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Total Balance
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Total Coin
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Operation
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img
|
||||
src="/images/bitcoin4.png"
|
||||
alt="bitcoin"
|
||||
style={{
|
||||
width: '45px',
|
||||
height: '45px',
|
||||
borderRadius: '100%'
|
||||
}}
|
||||
/>
|
||||
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Bitcoin
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
$48,568.025
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
align="center"
|
||||
>
|
||||
<Typography
|
||||
as="p"
|
||||
className="successColor"
|
||||
fontSize="14px"
|
||||
display="flex"
|
||||
>
|
||||
<TrendingUpIcon sx={{ mr: "5px" }} /> +2.48%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>12,565.75</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.2040</b> BTC
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<Button
|
||||
size="small"
|
||||
color="primary"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "500",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Trade
|
||||
</Button>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/ethereum3.png" alt="ethereum" style={{
|
||||
width: '45px',
|
||||
height: '45px',
|
||||
borderRadius: '100%'
|
||||
}} />
|
||||
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Ethereum
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
$1,876.76
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
align="center"
|
||||
>
|
||||
<Typography
|
||||
as="p"
|
||||
className="dangerColor"
|
||||
fontSize="14px"
|
||||
display="flex"
|
||||
>
|
||||
<TrendingDownIcon sx={{ mr: "5px" }} /> -3.48%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>4,565.75</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.2040</b> ETH
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<Button
|
||||
size="small"
|
||||
color="primary"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "500",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Trade
|
||||
</Button>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/binance.png" alt="binance" style={{
|
||||
width: '45px',
|
||||
height: '45px',
|
||||
borderRadius: '100%'
|
||||
}} />
|
||||
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Binance
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
$278.87
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
align="center"
|
||||
>
|
||||
<Typography
|
||||
as="p"
|
||||
className="successColor"
|
||||
fontSize="14px"
|
||||
display="flex"
|
||||
>
|
||||
<TrendingUpIcon sx={{ mr: "5px" }} /> +1.08%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>20,565.75</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.2040</b> BTC
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<Button
|
||||
size="small"
|
||||
color="primary"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "500",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Trade
|
||||
</Button>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/litecoin3.png" alt="litecoin" style={{
|
||||
width: '45px',
|
||||
height: '45px',
|
||||
borderRadius: '100%'
|
||||
}} />
|
||||
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Litecoin
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
$89.98
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
align="center"
|
||||
>
|
||||
<Typography
|
||||
as="p"
|
||||
className="successColor"
|
||||
fontSize="14px"
|
||||
display="flex"
|
||||
>
|
||||
<TrendingUpIcon sx={{ mr: "5px" }} /> +2.05%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>7,565.75</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.2040</b> LTC
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<Button
|
||||
size="small"
|
||||
color="primary"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "500",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Trade
|
||||
</Button>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/cardano.png" alt="cardano" style={{
|
||||
width: '45px',
|
||||
height: '45px',
|
||||
borderRadius: '100%'
|
||||
}} />
|
||||
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Cardano
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
$37.32
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF" }}
|
||||
align="center"
|
||||
>
|
||||
<Typography
|
||||
as="p"
|
||||
className="dangerColor"
|
||||
fontSize="14px"
|
||||
display="flex"
|
||||
>
|
||||
<TrendingDownIcon sx={{ mr: "5px" }} /> -1.01%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>1,431.75</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.2040</b> CDR
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<Button
|
||||
size="small"
|
||||
color="primary"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "500",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Trade
|
||||
</Button>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default MyCurrencies;
|
||||
@@ -0,0 +1,51 @@
|
||||
.myProfileChart {
|
||||
position: relative;
|
||||
}
|
||||
.myProfileChart .content {
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
top: 50%;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.myProfileChart .content h5 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 5px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.myProfileChart .content p {
|
||||
color: #5b5b98;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.list {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
.list li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.list li {
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.list li:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .list li {
|
||||
border-bottom: 1px solid var(--borderColor);
|
||||
}
|
||||
[class="dark"] .list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
import React, { Component } from "react";
|
||||
import dynamic from "next/dynamic";
|
||||
const Chart = dynamic(() => import("react-apexcharts"), {
|
||||
ssr: false,
|
||||
});
|
||||
import styles from "../../Crypto/MyProfile/MyProfile.module.css";
|
||||
|
||||
class MyProfileChart extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
series: [1000, 800, 1500, 761, 871],
|
||||
options: {
|
||||
colors: ["#757fef", "#2db6f5", "#00b69b", "#f7931a", "#f4f4f4"],
|
||||
chart: {
|
||||
type: "donut",
|
||||
},
|
||||
tooltip: {
|
||||
y: {
|
||||
formatter: function (val) {
|
||||
return "$" + val;
|
||||
},
|
||||
},
|
||||
},
|
||||
plotOptions: {
|
||||
pie: {
|
||||
donut: {
|
||||
size: "88%",
|
||||
},
|
||||
},
|
||||
},
|
||||
stroke: {
|
||||
width: 0,
|
||||
show: true,
|
||||
},
|
||||
dataLabels: {
|
||||
enabled: false,
|
||||
},
|
||||
legend: {
|
||||
offsetY: 0,
|
||||
show: false,
|
||||
fontSize: "14px",
|
||||
position: "bottom",
|
||||
horizontalAlign: "center",
|
||||
},
|
||||
labels: ["Bitcoin", "Ethereum", "Comp Bidr", "Matic", "Litecoin"],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<div className={styles.myProfileChart}>
|
||||
<Chart
|
||||
options={this.state.options}
|
||||
series={this.state.series}
|
||||
type="donut"
|
||||
height={260}
|
||||
/>
|
||||
<div className={styles.content}>
|
||||
<h5>$1025465</h5>
|
||||
<p>Total Value</p>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default MyProfileChart;
|
||||
@@ -0,0 +1,284 @@
|
||||
import React from "react";
|
||||
import { Box, Typography } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Menu from "@mui/material/Menu";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
||||
import MyProfileChart from "./MyProfileChart";
|
||||
import styles from "../../Crypto/MyProfile/MyProfile.module.css";
|
||||
|
||||
const MyProfile = () => {
|
||||
// Dropdown
|
||||
const [anchorEl, setAnchorEl] = React.useState(null);
|
||||
const open = Boolean(anchorEl);
|
||||
const handleClick = (event) => {
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
const handleClose = () => {
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
My Profile
|
||||
</Typography>
|
||||
|
||||
<Box>
|
||||
<IconButton
|
||||
onClick={handleClick}
|
||||
size="small"
|
||||
aria-controls={open ? "account-menu" : undefined}
|
||||
aria-haspopup="true"
|
||||
aria-expanded={open ? "true" : undefined}
|
||||
>
|
||||
<MoreHorizIcon />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<Menu
|
||||
anchorEl={anchorEl}
|
||||
id="account-menu"
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
onClick={handleClose}
|
||||
PaperProps={{
|
||||
elevation: 0,
|
||||
sx: {
|
||||
overflow: "visible",
|
||||
filter: "drop-shadow(0px 2px 8px rgba(0,0,0,0.32))",
|
||||
mt: 1.5,
|
||||
"& .MuiAvatar-root": {
|
||||
width: 32,
|
||||
height: 32,
|
||||
ml: -0.5,
|
||||
mr: 1,
|
||||
},
|
||||
"&:before": {
|
||||
content: '""',
|
||||
display: "block",
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
right: 14,
|
||||
width: 10,
|
||||
height: 10,
|
||||
bgcolor: "background.paper",
|
||||
transform: "translateY(-50%) rotate(45deg)",
|
||||
zIndex: 0,
|
||||
},
|
||||
},
|
||||
}}
|
||||
transformOrigin={{ horizontal: "right", vertical: "top" }}
|
||||
anchorOrigin={{ horizontal: "right", vertical: "bottom" }}
|
||||
>
|
||||
<MenuItem sx={{ fontSize: "14px" }}>Edit Profile</MenuItem>
|
||||
<MenuItem sx={{ fontSize: "14px" }}>Settings</MenuItem>
|
||||
</Menu>
|
||||
</Box>
|
||||
|
||||
{/* MyProfileChart */}
|
||||
<MyProfileChart />
|
||||
|
||||
{/* list */}
|
||||
<ul className={styles.list}>
|
||||
<li>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/bitcoin2.png" alt="bitcoin" />
|
||||
<Box sx={{ ml: "10px" }}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontSize: 15,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Bitcoin
|
||||
</Typography>
|
||||
|
||||
<Typography as="span">(BTC) 3.8%</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box textAlign="right">
|
||||
<Typography as="p" fontWeight="500">
|
||||
BTC 0.00251068
|
||||
</Typography>
|
||||
<Typography as="p" fontWeight="500" color="#00B69B">
|
||||
$13,6218602
|
||||
</Typography>
|
||||
</Box>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/ethereum.png" alt="ethereum" />
|
||||
<Box sx={{ ml: "10px" }}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontSize: 15,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Ethereum
|
||||
</Typography>
|
||||
|
||||
<Typography as="span">(ETH) 0.25%</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box textAlign="right">
|
||||
<Typography as="p" fontWeight="500">
|
||||
ETH 0.00251068
|
||||
</Typography>
|
||||
<Typography as="p" fontWeight="500" color="#00B69B">
|
||||
$13,6218602
|
||||
</Typography>
|
||||
</Box>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/comp-bidr.png" alt="comp-bidr" />
|
||||
<Box sx={{ ml: "10px" }}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontSize: 15,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Comp Bidr
|
||||
</Typography>
|
||||
|
||||
<Typography as="span">(BDR) 3.8%</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box textAlign="right">
|
||||
<Typography as="p" fontWeight="500">
|
||||
BDR 0.001068
|
||||
</Typography>
|
||||
<Typography as="p" fontWeight="500" color="#00B69B">
|
||||
$13,6218602
|
||||
</Typography>
|
||||
</Box>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/matic2.png" alt="matic2" />
|
||||
<Box sx={{ ml: "10px" }}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontSize: 15,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Matic
|
||||
</Typography>
|
||||
|
||||
<Typography as="span">(MTC) 3.02%</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box textAlign="right">
|
||||
<Typography as="p" fontWeight="500">
|
||||
MTC 0.00251068
|
||||
</Typography>
|
||||
<Typography as="p" fontWeight="500" color="#00B69B">
|
||||
$13,6218602
|
||||
</Typography>
|
||||
</Box>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<img src="/images/litecoin.png" alt="litecoin" />
|
||||
<Box sx={{ ml: "10px" }}>
|
||||
<Typography
|
||||
as="h5"
|
||||
sx={{
|
||||
fontSize: 15,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Litecoin
|
||||
</Typography>
|
||||
|
||||
<Typography as="span">(LTC) 1.8%</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box textAlign="right">
|
||||
<Typography as="p" fontWeight="500">
|
||||
LTC 0.00251068
|
||||
</Typography>
|
||||
<Typography as="p" fontWeight="500" color="#00B69B">
|
||||
$13,6218602
|
||||
</Typography>
|
||||
</Box>
|
||||
</li>
|
||||
</ul>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default MyProfile;
|
||||
@@ -0,0 +1,635 @@
|
||||
import React from "react";
|
||||
import { Box } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Button from "@mui/material/Button";
|
||||
import { Typography } from "@mui/material";
|
||||
import Table from "@mui/material/Table";
|
||||
import TableBody from "@mui/material/TableBody";
|
||||
import TableCell from "@mui/material/TableCell";
|
||||
import TableContainer from "@mui/material/TableContainer";
|
||||
import TableHead from "@mui/material/TableHead";
|
||||
import TableRow from "@mui/material/TableRow";
|
||||
import Paper from "@mui/material/Paper";
|
||||
import ProgressBar from "@ramonak/react-progress-bar";
|
||||
import Avatar from "@mui/material/Avatar";
|
||||
import AvatarGroup from "@mui/material/AvatarGroup";
|
||||
|
||||
const OrdersActivities = () => {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
{/* Card Header */}
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
marginBottom: "15px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Orders Activities
|
||||
</Typography>
|
||||
|
||||
<Box>
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Buy
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
Sell
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="small"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
textTransform: "capitalize",
|
||||
fontWeight: "normal",
|
||||
color: "#5B5B98",
|
||||
padding: "0",
|
||||
padding: "2px 10px",
|
||||
minWidth: "auto",
|
||||
}}
|
||||
>
|
||||
All
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
{/* Table */}
|
||||
<TableContainer
|
||||
component={Paper}
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
maxHeight: "440px",
|
||||
overflowY: "auto",
|
||||
}}
|
||||
>
|
||||
<Table
|
||||
sx={{ minWidth: 1050 }}
|
||||
aria-label="Orders Activities"
|
||||
className="dark-table"
|
||||
>
|
||||
<TableHead sx={{ background: "#F7FAFF" }}>
|
||||
<TableRow>
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Type
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
>
|
||||
Change
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Date
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Time
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
USD Amount
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Supply
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Amount
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "13.5px" }}
|
||||
align="center"
|
||||
>
|
||||
Operation
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
<TableBody>
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<AvatarGroup sx={{ justifyContent: "flex-end" }} max={2}>
|
||||
<Avatar src="/images/dollar.png" alt="dollar" />
|
||||
<Avatar src="/images/bitcoin3.png" alt="bitcoin" />
|
||||
</AvatarGroup>
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Bitcoin{" "}
|
||||
<span style={{ fontWeight: "400", color: "#5B5B98" }}>
|
||||
(BTC)
|
||||
</span>
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Typography as="p" className="successColor" fontSize="14px">
|
||||
+2.48%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
04 June 2023
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
11:37 PM
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>12,565.75</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Box>
|
||||
<Typography fontSize="13px" textAlign="end" mb="2px">
|
||||
180548.00 BTC
|
||||
</Typography>
|
||||
|
||||
<ProgressBar
|
||||
completed={70}
|
||||
height="5px"
|
||||
labelSize="0px"
|
||||
baseBgColor="#eeeeee"
|
||||
bgColor="#757FEF"
|
||||
/>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.2040</b> BTC
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
<span className="successBadge">Buy</span>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<AvatarGroup sx={{ justifyContent: "flex-end" }} max={2}>
|
||||
<Avatar src="/images/matic3.png" alt="matic" />
|
||||
<Avatar src="/images/ethereum2.png" alt="ethereum" />
|
||||
</AvatarGroup>
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Ethereum{" "}
|
||||
<span style={{ fontWeight: "400", color: "#5B5B98" }}>
|
||||
(ETH)
|
||||
</span>
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Typography as="p" className="dangerColor" fontSize="14px">
|
||||
-1.11%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
05 June 2023
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
12:00 PM
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>11,232.22</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Box>
|
||||
<Typography fontSize="13px" textAlign="end" mb="2px">
|
||||
220548.22 ETH
|
||||
</Typography>
|
||||
|
||||
<ProgressBar
|
||||
completed={55}
|
||||
height="5px"
|
||||
labelSize="0px"
|
||||
baseBgColor="#eeeeee"
|
||||
bgColor="#757FEF"
|
||||
/>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.4453</b> ETH
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
<span className="dangerBadge">Transfer</span>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<AvatarGroup sx={{ justifyContent: "flex-end" }} max={2}>
|
||||
<Avatar src="/images/dollar.png" alt="dollar" />
|
||||
<Avatar src="/images/dash.png" alt="dash" />
|
||||
</AvatarGroup>
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Dash{" "}
|
||||
<span style={{ fontWeight: "400", color: "#5B5B98" }}>
|
||||
(DASH)
|
||||
</span>
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Typography as="p" className="successColor" fontSize="14px">
|
||||
+0.32%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
04 June 2023
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
09:33 AM
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>32,222.23</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Box>
|
||||
<Typography fontSize="13px" textAlign="end" mb="2px">
|
||||
110148.43 DASH
|
||||
</Typography>
|
||||
|
||||
<ProgressBar
|
||||
completed={70}
|
||||
height="5px"
|
||||
labelSize="0px"
|
||||
baseBgColor="#eeeeee"
|
||||
bgColor="#757FEF"
|
||||
/>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 0.3421</b> DASH
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
<span className="primaryBadge">Sell</span>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<AvatarGroup sx={{ justifyContent: "flex-end" }} max={2}>
|
||||
<Avatar src="/images/bitcoin3.png" alt="bitcoin" />
|
||||
<Avatar src="/images/litecoin2.png" alt="litecoin" />
|
||||
</AvatarGroup>
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Litecoin{" "}
|
||||
<span style={{ fontWeight: "400", color: "#5B5B98" }}>
|
||||
(LTC)
|
||||
</span>
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Typography as="p" className="dangerColor" fontSize="14px">
|
||||
-3.06%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
03 June 2023
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
10:00 PM
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>7,432.43</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Box>
|
||||
<Typography fontSize="13px" textAlign="end" mb="2px">
|
||||
321548.01 LTC
|
||||
</Typography>
|
||||
|
||||
<ProgressBar
|
||||
completed={60}
|
||||
height="5px"
|
||||
labelSize="0px"
|
||||
baseBgColor="#eeeeee"
|
||||
bgColor="#757FEF"
|
||||
/>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 1.1140</b> LTC
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
<span className="successBadge">Buy</span>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
|
||||
>
|
||||
<TableCell
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<AvatarGroup sx={{ justifyContent: "flex-end" }} max={2}>
|
||||
<Avatar src="/images/matic3.png" alt="matic" />
|
||||
<Avatar src="/images/dollar.png" alt="dollar" />
|
||||
</AvatarGroup>
|
||||
<Typography
|
||||
as="h5"
|
||||
fontWeight="500"
|
||||
fontSize="15px"
|
||||
className="ml-10px"
|
||||
>
|
||||
Dollar{" "}
|
||||
<span style={{ fontWeight: "400", color: "#5B5B98" }}>
|
||||
(USD)
|
||||
</span>
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Typography as="p" className="successColor" fontSize="14px">
|
||||
+1.11%
|
||||
</Typography>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
02 June 2023
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontSize: "14px",
|
||||
}}
|
||||
>
|
||||
08:21 AM
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>32,565.75</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell sx={{ borderBottom: "1px solid #F7FAFF" }}>
|
||||
<Box>
|
||||
<Typography fontSize="13px" textAlign="end" mb="2px">
|
||||
200548.00 BTC
|
||||
</Typography>
|
||||
|
||||
<ProgressBar
|
||||
completed={40}
|
||||
height="5px"
|
||||
labelSize="0px"
|
||||
baseBgColor="#eeeeee"
|
||||
bgColor="#757FEF"
|
||||
/>
|
||||
</Box>
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{ borderBottom: "1px solid #F7FAFF", fontSize: "14px" }}
|
||||
>
|
||||
<b style={{ fontWeight: "500" }}>+ 2.2040</b> USD
|
||||
</TableCell>
|
||||
|
||||
<TableCell
|
||||
align="center"
|
||||
sx={{
|
||||
borderBottom: "1px solid #F7FAFF",
|
||||
fontWeight: "500",
|
||||
fontSize: "13px",
|
||||
}}
|
||||
>
|
||||
<span className="primaryBadge">Sell</span>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
</TableBody>
|
||||
</Table>
|
||||
</TableContainer>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default OrdersActivities;
|
||||
@@ -0,0 +1,229 @@
|
||||
import React from "react";
|
||||
import { Box } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import Button from "@mui/material/Button";
|
||||
import { Typography } from "@mui/material";
|
||||
import TextField from "@mui/material/TextField";
|
||||
import InputLabel from "@mui/material/InputLabel";
|
||||
import FormControl from "@mui/material/FormControl";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import Select from "@mui/material/Select";
|
||||
import Grid from "@mui/material/Grid";
|
||||
|
||||
const Trading = () => {
|
||||
const [currency, setCurrency] = React.useState("");
|
||||
|
||||
const handleChange = (event) => {
|
||||
setCurrency(event.target.value);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
{/* Card Header */}
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
marginBottom: "15px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
Trading
|
||||
</Typography>
|
||||
|
||||
<Box>
|
||||
<Typography
|
||||
as="h6"
|
||||
sx={{
|
||||
fontSize: 14,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
<span className="primaryColor">Wallet Balance:</span> $12,426.07
|
||||
</Typography>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box>
|
||||
<Box
|
||||
sx={{
|
||||
background: "#f7faff",
|
||||
p: "15px",
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
mb: "15px",
|
||||
}}
|
||||
className="bg-black"
|
||||
>
|
||||
<Button
|
||||
variant="contained"
|
||||
color="primary"
|
||||
sx={{
|
||||
display: "block",
|
||||
width: "100%",
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "5px",
|
||||
lineHeight: '1',
|
||||
p: "15px",
|
||||
fontSize: "14px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
className="mr-5px"
|
||||
>
|
||||
Buy Coin
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
sx={{
|
||||
display: "block",
|
||||
width: "100%",
|
||||
textTransform: "capitalize",
|
||||
borderRadius: "5px",
|
||||
lineHeight: '1',
|
||||
p: "15px",
|
||||
fontSize: "14px",
|
||||
color: "#fff !important",
|
||||
}}
|
||||
className="ml-5px"
|
||||
>
|
||||
Sell Coin
|
||||
</Button>
|
||||
</Box>
|
||||
|
||||
<Box component="form">
|
||||
<Grid container spacing="19px">
|
||||
<Grid item xs={12} sm={6}>
|
||||
<InputLabel
|
||||
htmlFor="currency"
|
||||
sx={{ fontSize: "14px", fontWeight: "500", mb: "5px" }}
|
||||
>
|
||||
Currency:
|
||||
</InputLabel>
|
||||
<FormControl fullWidth>
|
||||
<InputLabel id="currency-label">Currency</InputLabel>
|
||||
<Select
|
||||
labelId="demo-simple-select-label"
|
||||
id="demo-simple-select"
|
||||
value={currency}
|
||||
label="Currency"
|
||||
onChange={handleChange}
|
||||
>
|
||||
<MenuItem value={10}>BTC</MenuItem>
|
||||
<MenuItem value={20}>ETH</MenuItem>
|
||||
<MenuItem value={30}>LTC</MenuItem>
|
||||
<MenuItem value={30}>CDR</MenuItem>
|
||||
</Select>
|
||||
</FormControl>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} sm={6}>
|
||||
<InputLabel
|
||||
htmlFor="currency"
|
||||
sx={{ fontSize: "14px", fontWeight: "500", mb: "5px" }}
|
||||
>
|
||||
Payment Method:
|
||||
</InputLabel>
|
||||
<TextField
|
||||
required
|
||||
fullWidth
|
||||
type="number"
|
||||
id="creditDebitCard"
|
||||
label="Credit / Debit Card"
|
||||
name="creditDebitCard"
|
||||
autoComplete="credit-debit-card"
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12}>
|
||||
<InputLabel
|
||||
htmlFor="currency"
|
||||
sx={{ fontSize: "14px", fontWeight: "500", mb: "5px" }}
|
||||
>
|
||||
Amount:
|
||||
</InputLabel>
|
||||
<TextField
|
||||
required
|
||||
fullWidth
|
||||
type="number"
|
||||
id="creditDebitCard"
|
||||
label="Credit / Debit Card"
|
||||
name="creditDebitCard"
|
||||
autoComplete="credit-debit-card"
|
||||
/>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12}>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<Typography as="p">Estimated Rate</Typography>
|
||||
|
||||
<Typography as="p">1 BTC ~ $34572.00</Typography>
|
||||
</Box>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12}>
|
||||
<Typography as="p">Transaction Fees (0.05%)</Typography>
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12}>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<Typography as="p">Total</Typography>
|
||||
|
||||
<Typography as="p">72.00 BTC</Typography>
|
||||
</Box>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Button
|
||||
type="submit"
|
||||
fullWidth
|
||||
variant="contained"
|
||||
sx={{
|
||||
mt: 2,
|
||||
color: "#fff !important",
|
||||
textTransform: "capitalize",
|
||||
lineHeight: '1',
|
||||
p: "17px 15px",
|
||||
fontSize: "15px",
|
||||
}}
|
||||
size="large"
|
||||
>
|
||||
Buy Coin
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Trading;
|
||||
@@ -0,0 +1,46 @@
|
||||
.list {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
.list li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.list li {
|
||||
border-bottom: 1px solid #F7FAFF;
|
||||
margin-bottom: 25px;
|
||||
padding-bottom: 25px;
|
||||
}
|
||||
.list li:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.list li .content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.list li .content i {
|
||||
margin: 0 10px 0 0;
|
||||
line-height: 1;
|
||||
font-size: 30px;
|
||||
}
|
||||
.list li .content h5 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
}
|
||||
.list li .content span {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
/* For dark mode */
|
||||
[class="dark"] .list li {
|
||||
border-bottom: 1px solid var(--borderColor);
|
||||
}
|
||||
[class="dark"] .list li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
import React from "react";
|
||||
import { Box } from "@mui/material";
|
||||
import Card from "@mui/material/Card";
|
||||
import { Typography } from "@mui/material";
|
||||
import InputLabel from "@mui/material/InputLabel";
|
||||
import MenuItem from "@mui/material/MenuItem";
|
||||
import FormControl from "@mui/material/FormControl";
|
||||
import Select from "@mui/material/Select";
|
||||
import styles from "../../Crypto/UserActivities/UserActivities.module.css";
|
||||
|
||||
const UserActivities = () => {
|
||||
// Select Form
|
||||
const [select, setSelect] = React.useState("");
|
||||
const handleChange = (event) => {
|
||||
setSelect(event.target.value);
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
{/* Header */}
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
borderBottom: "1px solid #EEF0F7",
|
||||
paddingBottom: "10px",
|
||||
mb: "20px",
|
||||
}}
|
||||
className="for-dark-bottom-border"
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
}}
|
||||
>
|
||||
User Activities
|
||||
</Typography>
|
||||
<Box>
|
||||
<FormControl sx={{ minWidth: 120 }} size="small">
|
||||
<InputLabel id="demo-select-small" sx={{ fontSize: "14px" }}>
|
||||
Select
|
||||
</InputLabel>
|
||||
<Select
|
||||
labelId="demo-select-small"
|
||||
id="demo-select-small"
|
||||
value={select}
|
||||
label="Select"
|
||||
onChange={handleChange}
|
||||
sx={{ fontSize: "14px" }}
|
||||
className="select"
|
||||
>
|
||||
<MenuItem value={0} sx={{ fontSize: "14px" }}>
|
||||
This Week
|
||||
</MenuItem>
|
||||
<MenuItem value={1} sx={{ fontSize: "14px" }}>
|
||||
This Month
|
||||
</MenuItem>
|
||||
<MenuItem value={4} sx={{ fontSize: "14px" }}>
|
||||
This Year
|
||||
</MenuItem>
|
||||
<MenuItem value={4} sx={{ fontSize: "14px" }}>
|
||||
All Time
|
||||
</MenuItem>
|
||||
</Select>
|
||||
</FormControl>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
{/* Activities list */}
|
||||
<ul className={styles.list}>
|
||||
<li>
|
||||
<div className={styles.content}>
|
||||
<i className="ri-user-line"></i>
|
||||
<div>
|
||||
<h5>1,802</h5>
|
||||
<span>Visits by Day</span>
|
||||
</div>
|
||||
</div>
|
||||
<img src="/images/chart1.png" alt="chart" />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<div className={styles.content}>
|
||||
<i className="ri-user-add-line"></i>
|
||||
<div>
|
||||
<h5>1605</h5>
|
||||
<span>Referral Join</span>
|
||||
</div>
|
||||
</div>
|
||||
<img src="/images/chart2.png" alt="chart" />
|
||||
</li>
|
||||
</ul>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default UserActivities;
|
||||
Reference in New Issue
Block a user