├── public └── favicon.ico ├── src ├── assets │ └── mdb-react-small.png ├── pages │ ├── index.js │ ├── _app.js │ └── register.js └── components │ ├── Footer.js │ ├── Layout.js │ ├── Carousel.js │ └── NavBar.js ├── next.config.js ├── .gitignore ├── README.md └── package.json /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakubchmura/nextjs-mdbreact/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/assets/mdb-react-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jakubchmura/nextjs-mdbreact/HEAD/src/assets/mdb-react-small.png -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | const withFonts = require('next-fonts'); 2 | const withImages = require('next-images'); 3 | const withPlugins = require('next-compose-plugins'); 4 | 5 | module.exports = withPlugins([withFonts, withImages]); 6 | -------------------------------------------------------------------------------- /src/pages/index.js: -------------------------------------------------------------------------------- 1 | import Carousel from '../components/Carousel'; 2 | import ReactImage from '../assets/mdb-react-small.png'; 3 | 4 | const WelcomePage = () => ( 5 | <> 6 |

Welcome to Next.js

7 | MDBReact 12 | 13 | 14 | ); 15 | 16 | export default WelcomePage; 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | .env* 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | 27 | # lock files 28 | package-lock.json 29 | yarn.lock -------------------------------------------------------------------------------- /src/components/Footer.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { MDBIcon, MDBContainer, MDBFooter } from 'mdbreact'; 3 | 4 | const FooterPage = () => { 5 | return ( 6 | 10 | 11 | © {new Date().getFullYear()} Copyright: 12 | MDBootstrap.com 13 | 14 | 15 | 16 | ); 17 | }; 18 | 19 | export default FooterPage; 20 | -------------------------------------------------------------------------------- /src/components/Layout.js: -------------------------------------------------------------------------------- 1 | import { MDBContainer } from 'mdbreact'; 2 | import NavBar from './NavBar'; 3 | import Footer from './Footer'; 4 | 5 | function Layout(props) { 6 | return ( 7 | <> 8 | 9 | {props.children} 10 |