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
MDBCardHeader,
7
MDBCol,
8
MDBCardBody,
9
MDBTabs,
10
MDBTabsItem,
11
MDBTabsLink,
12
MDBTabsPane,
13
MDBTabsContent,
14
MDBIcon,
15
MDBCheckbox,
16
MDBInput,
17
MDBBtn,
18
MDBTextArea,
19
} from 'mdb-react-ui-kit';
20
21
function App() {
22
return (
23
<MDBContainer fluid className='mt-5'>
24
<section>
25
<MDBRow className='justify-content-center'>
26
<MDBCol lg='6'>
27
<form>
28
<MDBInput className='mb-4' type='email' id='loginName' label='Email or username' />
29
30
<MDBInput className='mb-4' type='password' id='loginPassword' label='Password' />
31
32
<MDBRow className='mb-4'>
33
<MDBCol md='6' className='d-flex justify-content-center'>
34
<MDBCheckbox className=' mb-3 mb-md-0' defaultChecked label=' Remember me' />
35
</MDBCol>
36
37
<MDBCol md='6' className='d-flex justify-content-center'>
38
<a href='#!'>Forgot password?</a>
39
</MDBCol>
40
</MDBRow>
41
42
<MDBBtn type='submit' block className='mb-4'>
43
Sign in
44
</MDBBtn>
45
46
<div className='text-center'>
47
<p>
48
Not a member? <a href='#!'>Register</a>
49
</p>
50
<p>or sign up with:</p>
51
<MDBBtn color='link' type='button' floating className='mx-1'>
52
<MDBIcon fab icon='facebook-f' />
53
</MDBBtn>
54
55
<MDBBtn color='link' type='button' floating className='mx-1'>
56
<MDBIcon fab icon='google' />
57
</MDBBtn>
58
59
<MDBBtn color='link' type='button' floating className='mx-1'>
60
<MDBIcon fab icon='twitter' />
61
</MDBBtn>
62
63
<MDBBtn color='link' type='button' floating className='mx-1'>
64
<MDBIcon fab icon='github' />
65
</MDBBtn>
66
</div>
67
</form>
68
</MDBCol>
69
</MDBRow>
70
</section>
71
</MDBContainer>
72
);
73
}
74
75
export default App;
76
Console errors: 0