xxxxxxxxxx
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
<meta charset="utf-8" />
5
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
<meta name="viewport" content="width=device-width, initial-scale=1" />
7
<meta name="theme-color" content="#000000" />
8
<meta
9
name="description"
10
content="Web site created using create-react-app"
11
/>
12
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
<link
14
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
15
rel="stylesheet"
16
/>
17
<link
18
href="https://use.fontawesome.com/releases/v5.15.1/css/all.css"
19
rel="stylesheet"
20
/>
21
22
<!--
23
manifest.json provides metadata used when your web app is installed on a
24
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
25
-->
26
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
27
<!--
28
Notice the use of %PUBLIC_URL% in the tags above.
29
It will be replaced with the URL of the `public` folder during the build.
30
Only files inside the `public` folder can be referenced from the HTML.
31
32
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
33
work correctly both with client-side routing and a non-root public URL.
34
Learn how to configure a non-root public URL by running `npm run build`.
35
-->
36
<title>MDBReact5 Template App</title>
37
</head>
38
<body>
39
<noscript>You need to enable JavaScript to run this app.</noscript>
40
<div id="root"></div>
41
<!--
42
This HTML file is a template.
43
If you open it directly in the browser, you will see an empty page.
44
45
You can add webfonts, meta tags, or analytics to this file.
46
The build step will place the bundled scripts into the <body> tag.
47
48
To begin the development, run `npm start` or `yarn start`.
49
To create a production bundle, use `npm run build` or `yarn build`.
50
-->
51
</body>
52
</html>
53
xxxxxxxxxx
1
body {
2
margin: 0;
3
font-family: Roboto, Helvetica, Arial, sans-serif;
4
-webkit-font-smoothing: antialiased;
5
-moz-osx-font-smoothing: grayscale;
6
}
7
8
code {
9
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
10
monospace;
11
}
12
xxxxxxxxxx
1
import React from 'react';
2
import {
3
MDBContainer,
4
MDBRow,
5
MDBCard,
6
MDBCol,
7
MDBBadge,
8
MDBCardBody,
9
MDBBtn,
10
MDBIcon,
11
MDBCardFooter
12
} from 'mdb-react-ui-kit';
13
14
function App() {
15
return (
16
<MDBContainer fluid>
17
<MDBRow className='justify-content-center'>
18
<MDBCol md='10'>
19
<section>
20
<h5 className='mb-4'>Last month</h5>
21
<MDBRow>
22
<MDBCol md='4' className='mb-md-0'>
23
<MDBCard>
24
<MDBCardBody>
25
<div className='d-flex align-items-center'>
26
<div className='flex-shrink-0'>
27
<div className='p-3 bg-primary rounded-4 shadow-2-strong'>
28
<MDBIcon icon='hand-point-up' size='lg' className='text-white fa-fw' />
29
</div>
30
</div>
31
<div className='flex-grow-1 ms-4'>
32
<p className='text-muted mb-1'>Clicks</p>
33
<h2 className='mb-0'>
34
71,897
35
<span className='text-success' style={{ fontSize: '0.875rem' }}>
36
<MDBIcon icon='arrow-up' className='ms-1' size='sm' />
37
<span> 5.4%</span>
38
</span>
39
</h2>
40
</div>
41
</div>
42
</MDBCardBody>
43
</MDBCard>
44
</MDBCol>
45
46
<MDBCol md='4' className='mb-md-0'>
47
<MDBCard>
48
<MDBCardBody>
49
<div className='d-flex align-items-center'>
50
<div className='flex-shrink-0'>
51
<div className='p-3 bg-primary rounded-4 shadow-2-strong'>
52
<MDBIcon icon='eye' size='lg' className='text-white fa-fw' />
53
</div>
54
</div>
55
<div className='flex-grow-1 ms-4'>
56
<p className='text-muted mb-1'>Impressions</p>
57
<h2 className='mb-0'>
58
146,926
59
<span className='text-success' style={{ fontSize: '0.875rem' }}>
60
<MDBIcon icon='arrow-up' className='ms-1' size='sm' />
61
<span> 8.3%</span>
62
</span>
63
</h2>
64
</div>
65
</div>
66
</MDBCardBody>
67
</MDBCard>
68
</MDBCol>
69
70
<MDBCol md='4' className='mb-md-0'>
71
<MDBCard>
72
<MDBCardBody>
73
<div className='d-flex align-items-center'>
74
<div className='flex-shrink-0'>
75
<div className='p-3 bg-primary rounded-4 shadow-2-strong'>
76
<MDBIcon icon='chart-pie' size='lg' className='text-white fa-fw' />
77
</div>
78
</div>
79
<div className='flex-grow-1 ms-4'>
80
<p className='text-muted mb-1'>Average CTR</p>
81
<h2 className='mb-0'>
82
24.57%
83
<span className='text-danger' style={{ fontSize: '0.875rem' }}>
84
<MDBIcon icon='arrow-down' className='ms-1' size='sm' />
85
<span> 3.9%</span>
86
</span>
87
</h2>
88
</div>
89
</div>
90
</MDBCardBody>
91
</MDBCard>
92
</MDBCol>
93
</MDBRow>
94
</section>
95
</MDBCol>
96
</MDBRow>
97
</MDBContainer>
98
);
99
}
100
101
export default App;
102
Console errors: 0