Skip to content

Commit 5af0d12

Browse files
committed
Add examples
1 parent b4c40d1 commit 5af0d12

File tree

15 files changed

+214
-0
lines changed

15 files changed

+214
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
build

License.pdf

252 KB
Binary file not shown.

package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "mdb-react-template",
3+
"version": "4.0.0",
4+
"description": "template for mdb-react-ui-kit",
5+
"private": true,
6+
"dependencies": {
7+
"mdb-react-ui-kit": "^4.0.0",
8+
"react": "^18.1.0",
9+
"react-dom": "^18.1.0",
10+
"react-router-dom": "^6.3.0",
11+
"react-scripts": "5.0.1",
12+
"web-vitals": "^2.1.4"
13+
},
14+
"scripts": {
15+
"start": "react-scripts start",
16+
"build": "react-scripts build",
17+
"test": "react-scripts test",
18+
"eject": "react-scripts eject"
19+
},
20+
"keywords": [
21+
"template",
22+
"react"
23+
],
24+
"author": "MDBootstrap",
25+
"license": "MIT",
26+
"browserslist": {
27+
"production": [
28+
">0.2%",
29+
"not dead",
30+
"not op_mini all"
31+
],
32+
"development": [
33+
"last 1 chrome version",
34+
"last 1 firefox version",
35+
"last 1 safari version"
36+
]
37+
}
38+
}

public/favicon.ico

3.78 KB
Binary file not shown.

public/index.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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>

public/logo192.png

5.22 KB
Loading

public/logo512.png

9.44 KB
Loading

public/manifest.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
20+
],
21+
"start_url": ".",
22+
"display": "standalone",
23+
"theme_color": "#000000",
24+
"background_color": "#ffffff"
25+
}

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

src/App.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { MDBBtn, MDBContainer } from "mdb-react-ui-kit";
2+
import React from "react";
3+
import { Link } from "react-router-dom";
4+
5+
export default function App() {
6+
return (
7+
<MDBContainer className="d-flex justify-content-center">
8+
<Link to="/basic">
9+
<MDBBtn className="m-3">Basic</MDBBtn>
10+
</Link>
11+
<Link to="/link">
12+
<MDBBtn className="m-3">Link</MDBBtn>
13+
</Link>
14+
</MDBContainer>
15+
);
16+
}

0 commit comments

Comments
 (0)