Skip to content

Commit 09a2dbc

Browse files
author
Piotr
committed
feat(demo): change demo about new content
1 parent da23ba7 commit 09a2dbc

File tree

4 files changed

+67
-2
lines changed

4 files changed

+67
-2
lines changed

docs/App-clear.js

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import React, { Component } from 'react';
2+
import { MDBBtn, MDBCol, MDBContainer, MDBRow } from 'mdbreact';
3+
import './index.css';
4+
import logo from './logo.png';
5+
6+
class App extends Component {
7+
render() {
8+
return (
9+
<MDBContainer>
10+
<MDBRow center style={{ height: '100vh' }}>
11+
<MDBCol middle={true} md='6' className='text-center'>
12+
<img src={logo} alt='logo' style={{ width: '10rem' }} />
13+
<h1 className='text-white'>Welcome to Your MDB React App</h1>
14+
<p className='mb-2 text-white'>The application is configured and ready to import our components.</p>
15+
<MDBBtn href='https://mdbootstrap.com/docs/react/' target='blank' color='light-blue'>
16+
<strong>Check out our docs!</strong>
17+
</MDBBtn>
18+
</MDBCol>
19+
<MDBCol middle={true} md='6' className='text-center'>
20+
<div className='d-flex mt-5'>
21+
<div className='text-center'>
22+
<h2 className='h1 text-poppy-red'>BLACK NOVEMBER SURPRISE!</h2>
23+
<i className='fas fa-shopping-basket text-white fa-10x'></i>
24+
<p className='mt-2 text-white'>
25+
Check what we have prepared and start using the richest UI Kit today.
26+
<br />
27+
Hurry up & don't loose your chance.
28+
</p>
29+
<p>
30+
<a
31+
rel='noopener noreferrer'
32+
target='_blank'
33+
type='button'
34+
className='btn btn-danger btn-rounded btn-lg text-white bg-poppy-red'
35+
href='https://mdbootstrap.com/sale/'
36+
>
37+
<i className='fas fa-cart-arrow-down'></i> CLAIM OFFER
38+
</a>
39+
</p>
40+
</div>
41+
</div>
42+
</MDBCol>
43+
</MDBRow>
44+
</MDBContainer>
45+
);
46+
}
47+
}
48+
49+
export default App;

docs/index.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@
4242
color: #283593;
4343
}
4444

45-
.nav-link:focus{
45+
.nav-link:focus {
4646
outline: none;
4747
}
48+
49+
/* styling for App-clear.js */
50+
body {
51+
background-color: #2e2e2e !important;
52+
}
53+
.text-poppy-red {
54+
color: #ef5350 !important;
55+
}
56+
.btn-poppy-red {
57+
background-color: #ef5350 !important;
58+
}
59+
.bg-poppy-red {
60+
background-color: #ef5350 !important;
61+
}

docs/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import 'bootstrap-css-only/css/bootstrap.min.css';
55
import '../dist/css/mdb.css';
66
import './index.css';
77
import App from './App';
8+
import AppClear from './App-clear';
89

910
import registerServiceWorker from './registerServiceWorker';
1011

11-
ReactDOM.render(<App />, document.getElementById('root'));
12+
// if you want to see demo app, change <AppClear/> to <App />
13+
ReactDOM.render(<AppClear />, document.getElementById('root'));
1214

1315
registerServiceWorker();

docs/logo.png

6.04 KB
Loading

0 commit comments

Comments
 (0)