├── src ├── resources │ ├── css │ │ ├── styles.less │ │ └── custom │ │ │ └── carousel.less │ └── img │ │ ├── favicon.ico │ │ ├── icon-72x72.png │ │ ├── icon-96x96.png │ │ ├── icon-128x128.png │ │ ├── icon-144x144.png │ │ ├── icon-152x152.png │ │ ├── icon-192x192.png │ │ ├── icon-384x384.png │ │ ├── icon-512x512.png │ │ ├── Reactpwa-Pawjs-AntDesign.png │ │ └── logo.svg ├── app │ └── components │ │ ├── home │ │ ├── images │ │ │ ├── wildernest-3-600x400.jpg │ │ │ └── 600x400-1-50-485b40e293d63f83f7562d5159819329.jpg │ │ ├── home.less │ │ └── home.js │ │ ├── about │ │ ├── about.less │ │ └── about.js │ │ └── layout │ │ └── guest-layout.js ├── webpack.js ├── server.js ├── client.js └── routes.js ├── .eslintrc ├── pawconfig.json ├── prod.pawconfig.json ├── LICENSE.md ├── package.json ├── .gitignore └── README.md /src/resources/css/styles.less: -------------------------------------------------------------------------------- 1 | @import './custom/carousel'; 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./node_modules/@pawjs/pawjs/.eslintrc" 3 | } 4 | -------------------------------------------------------------------------------- /src/resources/img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/favicon.ico -------------------------------------------------------------------------------- /src/resources/img/icon-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-72x72.png -------------------------------------------------------------------------------- /src/resources/img/icon-96x96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-96x96.png -------------------------------------------------------------------------------- /src/resources/img/icon-128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-128x128.png -------------------------------------------------------------------------------- /src/resources/img/icon-144x144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-144x144.png -------------------------------------------------------------------------------- /src/resources/img/icon-152x152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-152x152.png -------------------------------------------------------------------------------- /src/resources/img/icon-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-192x192.png -------------------------------------------------------------------------------- /src/resources/img/icon-384x384.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-384x384.png -------------------------------------------------------------------------------- /src/resources/img/icon-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/icon-512x512.png -------------------------------------------------------------------------------- /src/resources/img/Reactpwa-Pawjs-AntDesign.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/resources/img/Reactpwa-Pawjs-AntDesign.png -------------------------------------------------------------------------------- /src/app/components/home/images/wildernest-3-600x400.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/app/components/home/images/wildernest-3-600x400.jpg -------------------------------------------------------------------------------- /pawconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": "3003", 3 | "host": "0.0.0.0", 4 | "appRootUrl": "/", 5 | "serviceWorker": false, 6 | "serverSideRender": true, 7 | "singlePageApplication": false 8 | } 9 | -------------------------------------------------------------------------------- /src/app/components/home/images/600x400-1-50-485b40e293d63f83f7562d5159819329.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Atyantik/example-pawjs-ant-design/HEAD/src/app/components/home/images/600x400-1-50-485b40e293d63f83f7562d5159819329.jpg -------------------------------------------------------------------------------- /prod.pawconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": "9003", 3 | "host": "0.0.0.0", 4 | "appRootUrl": "/examples/ant-design", 5 | "serviceWorker": true, 6 | "asyncCSS": false, 7 | "serverSideRender": true, 8 | "singlePageApplication": false 9 | } 10 | -------------------------------------------------------------------------------- /src/webpack.js: -------------------------------------------------------------------------------- 1 | import LessPlugin from '@pawjs/less/webpack'; 2 | 3 | export default class ProjectWebpack { 4 | constructor({ addPlugin }) { 5 | const options = { 6 | javascriptEnabled: true, 7 | }; 8 | addPlugin(new LessPlugin(options)); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/resources/css/custom/carousel.less: -------------------------------------------------------------------------------- 1 | .custom-carousel { 2 | .slick-slide { 3 | text-align: center; 4 | height: calc(50vh - 64px) !important; 5 | background: #364d79; 6 | overflow: hidden; 7 | display: flex !important; 8 | justify-content: center; 9 | align-items: center; 10 | } 11 | } 12 | 13 | .custom-carousel { 14 | .slick-slide { 15 | h1 { 16 | color: #fff; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import FavIcon from './resources/img/favicon.ico'; 3 | 4 | export default class Server { 5 | apply(serverHandler) { 6 | serverHandler.hooks.beforeHtmlRender.tap('AddGoogleAnalytics', (Application) => { 7 | Application.htmlProps.head.push( 8 | , 9 |