Skip to content

Commit a846d3e

Browse files
committed
update(app): started dashboard. WIP
1 parent 890d183 commit a846d3e

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

src/components/layout/AppLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const StyledHeader = styled(Header)`
2929
`;
3030

3131
const StyledContent = styled(Content)`
32-
padding: 24px;
3332
margin-top: 56px;
34-
@media only screen and (max-width: 600px) {
33+
@media (max-width: 577px) and (orientation: portrait),
34+
(max-width: 824px) and (orientation: landscape) {
3535
margin-right: ${(props: { collapsed: number }) => {
3636
return `${props.collapsed ? 0 : '-225px'}`;
3737
}};
@@ -56,7 +56,7 @@ const AppLayout = (props: IAppLayoutProps) => {
5656
onClick={toggleCollapse}
5757
/>
5858
</StyledHeader>
59-
<StyledContent collapsed={collapsed ? 1 : 0}>
59+
<StyledContent className="p-2 p-sm-3" collapsed={collapsed ? 1 : 0}>
6060
{/* <AppBreadcrumb /> */}
6161
{children}
6262
</StyledContent>

src/components/pages/dashboard/HeatMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Typography } from 'antd';
44
class HeatMap extends React.Component {
55
render() {
66
return (
7-
<Card loading/>
7+
<Card className="mb-2 mb-sm-3" loading/>
88
);
99
}
1010
}

src/components/pages/dashboard/MarketCap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Typography } from 'antd';
44
class MarketCap extends React.Component {
55
render() {
66
return (
7-
<Card loading/>
7+
<Card className="mb-2 mb-sm-3" loading/>
88
);
99
}
1010
}

src/components/pages/dashboard/Portfolio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Typography } from 'antd';
44
class Portfolio extends React.Component {
55
render() {
66
return (
7-
<Card loading/>
7+
<Card className="mb-2 mb-sm-3" loading/>
88
);
99
}
1010
}

src/components/pages/dashboard/TopGainers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Typography } from 'antd';
44
class TopGainers extends React.Component {
55
render() {
66
return (
7-
<Card loading/>
7+
<Card className="mb-2 mb-sm-3" loading/>
88
);
99
}
1010
}

src/components/pages/dashboard/TopLosers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Typography } from 'antd';
44
class TopLosers extends React.Component {
55
render() {
66
return (
7-
<Card loading/>
7+
<Card className="mb-2 mb-sm-3" loading/>
88
);
99
}
1010
}

src/components/pages/dashboard/TopVolume.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Typography } from 'antd';
44
class TopVolume extends React.Component {
55
render() {
66
return (
7-
<Card loading/>
7+
<Card className="mb-2 mb-sm-3" loading/>
88
);
99
}
1010
}

src/components/pages/dashboard/Watchlist.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Card, Typography } from 'antd';
44
class Watchlist extends React.Component {
55
render() {
66
return (
7-
<Card loading/>
7+
<Card className="mb-2 mb-lg-0" loading/>
88
);
99
}
1010
}

src/components/pages/register/Quiz.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ const QuizWrapper = styled.div`
2727
height: 100vh;
2828
.root-row {
2929
padding-top: 50px;
30-
@media only screen and (max-width: 600px) {
30+
@media (max-width: 577px) {
3131
padding-top: 0;
3232
}
3333
&.main {
3434
padding-top: 100px;
3535
}
3636
.root-col {
3737
padding: 24px;
38-
@media only screen and (max-width: 600px) {
38+
@media (max-width: 577px) {
3939
padding: 24px 0;
4040
}
4141
&:nth-child(2) {
4242
padding: 12px 24px;
43-
@media only screen and (max-width: 600px) {
43+
@media (max-width: 577px) {
4444
padding: 12px;
4545
}
4646
}

src/pages/Dashboard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class Dashboard extends React.Component<{ requireAuth: boolean }> {
2121
{(value) => {
2222
return (
2323
<>
24-
<Row gutter={24}>
24+
<Row gutter={16}>
2525
<Col xs={24} xl={12}>
2626
<MarketCap />
2727
</Col>
2828
<Col xs={24} xl={12}>
2929
<HeatMap />
3030
</Col>
3131
</Row>
32-
<Row gutter={24}>
32+
<Row gutter={16}>
3333
<Col xs={24} xl={8}>
3434
<TopGainers />
3535
</Col>
@@ -40,17 +40,17 @@ class Dashboard extends React.Component<{ requireAuth: boolean }> {
4040
<TopLosers />
4141
</Col>
4242
</Row>
43-
<Row type="flex" gutter={24}>
43+
<Row type="flex" gutter={16}>
4444
<Col xs={{ span: 24, order: 2 }} xl={{ span: 16, order: 1 }}>
4545
Insights here
4646
</Col>
4747
<Col xs={{ span: 24, order: 1 }} xl={{ span: 8, order: 2 }}>
48-
<Row gutter={24}>
48+
<Row gutter={16}>
4949
<Col>
5050
<Portfolio />
5151
</Col>
5252
</Row>
53-
<Row gutter={24}>
53+
<Row gutter={16}>
5454
<Col>
5555
<Watchlist />
5656
</Col>

0 commit comments

Comments
 (0)