├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── public ├── Content │ ├── .sass-cache │ │ ├── 3fcd99d0c8b91f50f06b0715ce73ad297a6fc258 │ │ │ ├── _base.scssc │ │ │ ├── _mixins.scssc │ │ │ └── _variables.scssc │ │ ├── 58d96aa2f3ca6831ea65d734678a63e337572170 │ │ │ └── style.scssc │ │ ├── 8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e │ │ │ ├── _buttons.scssc │ │ │ ├── _responsive.scssc │ │ │ ├── _sections.scssc │ │ │ └── _typography.scssc │ │ └── ef29edb4d21face4cdada241cd6b836dafbe5b2a │ │ │ ├── _footer.scssc │ │ │ ├── _header.scssc │ │ │ └── _nav.scssc │ ├── css │ │ ├── bootstrap.css │ │ ├── font-awesome.css │ │ ├── jquery.simpleLens.css │ │ ├── jquery.smartmenus.bootstrap.css │ │ ├── nouislider.css │ │ ├── sequence-theme.modern-slide-in.css │ │ ├── slick.css │ │ ├── style.css │ │ └── theme-color │ │ │ ├── bridge-theme.css │ │ │ ├── dark-red-theme.css │ │ │ ├── default-theme.css │ │ │ ├── green-theme.css │ │ │ ├── lite-blue-theme.css │ │ │ ├── orange-theme.css │ │ │ ├── pink-theme.css │ │ │ ├── purple-theme.css │ │ │ ├── red-theme.css │ │ │ └── yellow-theme.css │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ ├── fontawesome-webfont.woff2 │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── img │ │ ├── client-brand-css3.png │ │ ├── client-brand-html5.png │ │ ├── client-brand-java.png │ │ ├── client-brand-joomla.png │ │ ├── client-brand-jquery.png │ │ ├── client-brand-wordpress.png │ │ ├── close-icon.png │ │ ├── common │ │ │ ├── shirt1.png │ │ │ ├── shirt2.png │ │ │ └── shirt3.png │ │ ├── electronics │ │ │ ├── electronic-1.png │ │ │ ├── electronic-2.png │ │ │ ├── electronic-3.png │ │ │ ├── electronic-4.png │ │ │ ├── electronic-5.png │ │ │ ├── electronic-6.png │ │ │ ├── electronic-7.png │ │ │ └── electronic-8.png │ │ ├── fashion-banner.jpg │ │ ├── fashion │ │ │ ├── 1.jpg │ │ │ ├── 2.jpg │ │ │ ├── 3.jpg │ │ │ ├── 4.jpg │ │ │ ├── 5.jpg │ │ │ └── fashion-header-bg-8.jpg │ │ ├── flag │ │ │ ├── english.jpg │ │ │ └── french.jpg │ │ ├── logo.jpg │ │ ├── man-small-1.jpg │ │ ├── man │ │ │ ├── polo-shirt-1.png │ │ │ ├── polo-shirt-2.png │ │ │ ├── polo-shirt-3.png │ │ │ ├── polo-shirt-4.png │ │ │ ├── polo-shirt-5.png │ │ │ ├── polo-shirt-6.png │ │ │ └── t-shirt-1.png │ │ ├── paypal.jpg │ │ ├── pp-cards.jpg │ │ ├── promo-banner-1.jpg │ │ ├── promo-banner-2.jpg │ │ ├── promo-banner-3.jpg │ │ ├── promo-banner-4.jpg │ │ ├── promo-banner-5.jpg │ │ ├── slider │ │ │ ├── 1.jpg │ │ │ ├── 2.jpg │ │ │ ├── 3.jpg │ │ │ ├── 4.jpg │ │ │ ├── 5.jpg │ │ │ ├── ajax-loader.gif │ │ │ ├── bt-next.png │ │ │ ├── bt-next@2x.png │ │ │ ├── bt-prev.png │ │ │ └── bt-prev@2x.png │ │ ├── sports │ │ │ ├── sport-1.png │ │ │ ├── sport-2.png │ │ │ ├── sport-3.png │ │ │ ├── sport-4.png │ │ │ ├── sport-5.png │ │ │ ├── sport-6.png │ │ │ ├── sport-7.png │ │ │ └── sport-8.png │ │ ├── testimonial-bg-1.jpg │ │ ├── testimonial-img-1.jpg │ │ ├── testimonial-img-2.jpg │ │ ├── testimonial-img-3.jpg │ │ ├── view-slider │ │ │ ├── large │ │ │ │ ├── polo-shirt-1.png │ │ │ │ ├── polo-shirt-2.png │ │ │ │ ├── polo-shirt-3.png │ │ │ │ └── polo-shirt-4.png │ │ │ ├── loading.gif │ │ │ ├── medium │ │ │ │ ├── polo-shirt-1.png │ │ │ │ ├── polo-shirt-2.png │ │ │ │ ├── polo-shirt-3.png │ │ │ │ └── polo-shirt-4.png │ │ │ └── thumbnail │ │ │ │ ├── polo-shirt-1.png │ │ │ │ ├── polo-shirt-2.png │ │ │ │ ├── polo-shirt-3.png │ │ │ │ └── polo-shirt-4.png │ │ ├── woman-small-1.jpg │ │ ├── woman-small-2.jpg │ │ └── women │ │ │ ├── girl-1.png │ │ │ ├── girl-2.png │ │ │ ├── girl-3.png │ │ │ ├── girl-4.png │ │ │ ├── girl-5.png │ │ │ ├── girl-6.png │ │ │ └── girl-7.png │ ├── js │ │ ├── bootstrap.js │ │ ├── custom.js │ │ ├── jquery.min.js │ │ ├── jquery.simpleGallery.js │ │ ├── jquery.simpleLens.js │ │ ├── jquery.smartmenus.bootstrap.js │ │ ├── jquery.smartmenus.js │ │ ├── nouislider.js │ │ ├── sequence-theme.modern-slide-in.js │ │ ├── sequence.js │ │ └── slick.js │ └── scss │ │ ├── base │ │ ├── _base.scss │ │ ├── _mixins.scss │ │ └── _variables.scss │ │ ├── layouts │ │ ├── _footer.scss │ │ ├── _header.scss │ │ └── _nav.scss │ │ ├── modules │ │ ├── _buttons.scss │ │ ├── _responsive.scss │ │ ├── _sections.scss │ │ └── _typography.scss │ │ ├── spinner.scss │ │ └── style.scss ├── favicon.ico ├── index.html └── manifest.json └── src ├── App.css ├── App.js ├── App.test.js ├── Components ├── CheckboxControl.js ├── InnerSpinner.js ├── InputControl.js ├── MenuLinks.js ├── ModalPopup.js ├── SelectControl.js └── TextAreaControl.js ├── Constants └── Common.js ├── Containers ├── Brand.js ├── Cart.js ├── Filter.js ├── Footer.js ├── Header.js ├── HeaderSlider.js ├── Loader.js └── Menu.js ├── Pages ├── Blog.js ├── BlogDetail.js ├── Checkout.js ├── Contact.js ├── Page404.js ├── ProductDetails.js ├── Products.js ├── Registration.js └── Wishlist.js ├── Redux ├── Actions │ ├── CartProducts.js │ ├── Filter.js │ ├── Product.js │ └── StaticItems.js └── Reducers │ ├── CartProducts.js │ ├── Filter.js │ ├── Product.js │ └── StaticItems.js ├── containers └── main.js ├── index.css ├── index.js ├── logo.svg ├── pages └── home.js ├── redux ├── ActionTypes.js └── RootReducer.js └── serviceWorker.js /.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 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Ankit Kanojia 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dailyshop", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "node-sass": "^4.11.0", 7 | "react": "^16.8.3", 8 | "react-awesome-modal": "^2.0.5", 9 | "react-dom": "^16.8.3", 10 | "react-redux": "^6.0.1", 11 | "react-router-dom": "^4.3.1", 12 | "react-scripts": "^2.1.8", 13 | "redux": "^4.0.1", 14 | "redux-thunk": "^2.3.0" 15 | }, 16 | "scripts": { 17 | "start": "react-scripts start", 18 | "build": "react-scripts build", 19 | "test": "react-scripts test", 20 | "eject": "react-scripts eject" 21 | }, 22 | "eslintConfig": { 23 | "extends": "react-app" 24 | }, 25 | "browserslist": [ 26 | ">0.2%", 27 | "not dead", 28 | "not ie <= 11", 29 | "not op_mini all" 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /public/Content/.sass-cache/3fcd99d0c8b91f50f06b0715ce73ad297a6fc258/_base.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/3fcd99d0c8b91f50f06b0715ce73ad297a6fc258/_base.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/3fcd99d0c8b91f50f06b0715ce73ad297a6fc258/_mixins.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/3fcd99d0c8b91f50f06b0715ce73ad297a6fc258/_mixins.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/3fcd99d0c8b91f50f06b0715ce73ad297a6fc258/_variables.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/3fcd99d0c8b91f50f06b0715ce73ad297a6fc258/_variables.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/58d96aa2f3ca6831ea65d734678a63e337572170/style.scssc: -------------------------------------------------------------------------------- 1 | 3.2.1 (Media Mark) 2 | 5bf76f2b325fd5e3bf8de6bddf1d1c3b6f092cae 3 | o:Sass::Tree::RootNode 4 | :@children[o:Sass::Tree::CommentNode 5 | : @value["m/* 6 | Template Name: Daily Shop 7 | Author : MarkUps.io 8 | Author URI: http://www.markups.io/ 9 | Version: 1.0 10 | 11 | */: 12 | @type: normal;[: 13 | @linei: @options{o; 14 | ;["5/* BASE - Base tyles, Variables, Mixins, etc. */; ; 15 | ;[; i; @ o:Sass::Tree::ImportNode 16 | :@imported_filename"base/_variables.scss;[:@template0; i; @ o; 17 | ;"base/_mixins.scss;[;0; i; @ o; 18 | ;"base/_base.scss;[;0; i; @ o; 19 | ;["//* MODULES - Individual site components */; ; 20 | ;[; i; @ o; 21 | ;"modules/_typography.scss;[;0; i; @ o; 22 | ;"modules/_buttons.scss;[;0; i; @ o; 23 | ;["'/* LAYOUTS - Page layout styles */; ; 24 | ;[; i; @ o; 25 | ;["@/*================== 26 | HEADER SECTION 27 | ====================*/; ; 28 | ;[; i!; @ o; 29 | ;"layouts/_header.scss;[;0; i%; @ o; 30 | ;["@/*================== 31 | NAVBAR SECTION 32 | ====================*/; ; 33 | ;[; i'; @ o; 34 | ;"layouts/_nav.scss;[;0; i+; @ o; 35 | ;["/* ALL SECTION */; ; 36 | ;[; i-; @ o; 37 | ;"modules/_sections.scss;[;0; i/; @ o; 38 | ;["@/*================== 39 | FOOTER SECTION 40 | ====================*/; ; 41 | ;[; i1; @ o; 42 | ;"layouts/_footer.scss;[;0; i5; @ o; 43 | ;["C/*================== 44 | RESPONSIVE DESIGN 45 | ====================*/; ; 46 | ;[; i7; @ o; 47 | ;"modules/_responsive.scss;[;0; i;; @ ;"B/* 48 | Template Name: Daily Shop 49 | Author : MarkUps.io 50 | Author URI: http://www.markups.io/ 51 | Version: 1.0 52 | 53 | */ 54 | 55 | 56 | /* BASE - Base tyles, Variables, Mixins, etc. */ 57 | 58 | 59 | @import 'base/_variables.scss'; 60 | @import 'base/_mixins.scss'; 61 | @import 'base/_base.scss'; 62 | 63 | /* MODULES - Individual site components */ 64 | 65 | @import 'modules/_typography.scss'; 66 | @import 'modules/_buttons.scss'; 67 | 68 | 69 | 70 | /* LAYOUTS - Page layout styles */ 71 | 72 | 73 | 74 | /*================== 75 | HEADER SECTION 76 | ====================*/ 77 | 78 | @import 'layouts/_header.scss'; 79 | 80 | /*================== 81 | NAVBAR SECTION 82 | ====================*/ 83 | 84 | @import 'layouts/_nav.scss'; 85 | 86 | /* ALL SECTION */ 87 | 88 | @import 'modules/_sections.scss'; 89 | 90 | /*================== 91 | FOOTER SECTION 92 | ====================*/ 93 | 94 | @import 'layouts/_footer.scss'; 95 | 96 | /*================== 97 | RESPONSIVE DESIGN 98 | ====================*/ 99 | 100 | @import 'modules/_responsive.scss'; 101 | ; i:@has_childrenT; @ -------------------------------------------------------------------------------- /public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_buttons.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_buttons.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_responsive.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_responsive.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_sections.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_sections.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_typography.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/8d96c3a14a0bb8e118b2f4f0ff234b926fa1678e/_typography.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/ef29edb4d21face4cdada241cd6b836dafbe5b2a/_footer.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/ef29edb4d21face4cdada241cd6b836dafbe5b2a/_footer.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/ef29edb4d21face4cdada241cd6b836dafbe5b2a/_header.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/ef29edb4d21face4cdada241cd6b836dafbe5b2a/_header.scssc -------------------------------------------------------------------------------- /public/Content/.sass-cache/ef29edb4d21face4cdada241cd6b836dafbe5b2a/_nav.scssc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/.sass-cache/ef29edb4d21face4cdada241cd6b836dafbe5b2a/_nav.scssc -------------------------------------------------------------------------------- /public/Content/css/jquery.simpleLens.css: -------------------------------------------------------------------------------- 1 | /* CSS Document */ 2 | .simpleLens-thumbnails-container a{ 3 | display: inline-block; 4 | } 5 | .simpleLens-thumbnails-container a img{ 6 | display: block; 7 | } 8 | .simpleLens-container{ 9 | display: table; 10 | position: relative; 11 | } 12 | 13 | .simpleLens-big-image-container { 14 | display: table-cell; 15 | vertical-align: middle; 16 | text-align: center; 17 | position:relative; 18 | height: 300px; 19 | width: 350px; 20 | } 21 | 22 | .simpleLens-big-image { 23 | max-width: 100%; 24 | } 25 | 26 | .simpleLens-lens-image { 27 | height: auto !important; 28 | width: 350px; 29 | display: inline-block; 30 | text-align: center; 31 | margin:0; 32 | box-shadow:none; 33 | float:none; 34 | position:relative; 35 | } 36 | 37 | .simpleLens-mouse-cursor{ 38 | background-color:#CCC; 39 | opacity:0.2; 40 | filter: alpha(opacity = 20); 41 | position:absolute; 42 | top:0; 43 | left:0; 44 | border:1px solid #999; 45 | box-shadow:0 0 2px 2px #999; 46 | cursor:none; 47 | } 48 | 49 | .simpleLens-lens-element { 50 | background-color: #FFFFFF; 51 | box-shadow: 0 0 2px 2px #8E8E8E; 52 | height: 400px; 53 | left: 105%; 54 | overflow: hidden; 55 | position: absolute; 56 | top: 0; 57 | width: 480px; 58 | z-index: 9999; 59 | text-align: center; 60 | } 61 | 62 | .simpleLens-lens-element img{ 63 | position:relative; 64 | top:0; 65 | left:0; 66 | width:auto !important; 67 | max-width:none !important; 68 | } -------------------------------------------------------------------------------- /public/Content/css/jquery.smartmenus.bootstrap.css: -------------------------------------------------------------------------------- 1 | /* 2 | You probably do not need to edit this at all. 3 | 4 | Add some SmartMenus required styles not covered in Bootstrap 3's default CSS. 5 | These are theme independent and should work with any Bootstrap 3 theme mod. 6 | */ 7 | /* sub menus arrows on desktop */ 8 | .navbar-nav:not(.sm-collapsible) ul .caret { 9 | position: absolute; 10 | right: 0; 11 | margin-top: 10px; 12 | margin-right: 15px; 13 | border-top: 4px solid transparent; 14 | border-bottom: 4px solid transparent; 15 | border-left: 4px dashed; 16 | } 17 | .navbar-nav:not(.sm-collapsible) ul a.has-submenu { 18 | padding-right: 30px; 19 | } 20 | /* make sub menu arrows look like +/- buttons in collapsible mode */ 21 | .navbar-nav.sm-collapsible .caret, .navbar-nav.sm-collapsible ul .caret { 22 | position: absolute; 23 | right: 0; 24 | margin: -3px 15px 0 0; 25 | padding: 0; 26 | width: 32px; 27 | height: 26px; 28 | line-height: 24px; 29 | text-align: center; 30 | border-width: 1px; 31 | border-style: solid; 32 | } 33 | .navbar-nav.sm-collapsible .caret:before { 34 | content: '+'; 35 | font-family: monospace; 36 | font-weight: bold; 37 | } 38 | .navbar-nav.sm-collapsible .open > a > .caret:before { 39 | content: '-'; 40 | } 41 | .navbar-nav.sm-collapsible a.has-submenu { 42 | padding-right: 50px; 43 | } 44 | /* revert to Bootstrap's default carets in collapsible mode when the "data-sm-skip-collapsible-behavior" attribute is set to the ul.navbar-nav */ 45 | .navbar-nav.sm-collapsible[data-sm-skip-collapsible-behavior] .caret, .navbar-nav.sm-collapsible[data-sm-skip-collapsible-behavior] ul .caret { 46 | position: static; 47 | margin: 0 0 0 2px; 48 | padding: 0; 49 | width: 0; 50 | height: 0; 51 | border-top: 4px dashed; 52 | border-right: 4px solid transparent; 53 | border-bottom: 0; 54 | border-left: 4px solid transparent; 55 | } 56 | .navbar-nav.sm-collapsible[data-sm-skip-collapsible-behavior] .caret:before { 57 | content: '' !important; 58 | } 59 | .navbar-nav.sm-collapsible[data-sm-skip-collapsible-behavior] a.has-submenu { 60 | padding-right: 15px; 61 | } 62 | /* scrolling arrows for tall menus */ 63 | .navbar-nav span.scroll-up, .navbar-nav span.scroll-down { 64 | position: absolute; 65 | display: none; 66 | visibility: hidden; 67 | height: 20px; 68 | overflow: hidden; 69 | text-align: center; 70 | } 71 | .navbar-nav span.scroll-up-arrow, .navbar-nav span.scroll-down-arrow { 72 | position: absolute; 73 | top: -2px; 74 | left: 50%; 75 | margin-left: -8px; 76 | width: 0; 77 | height: 0; 78 | overflow: hidden; 79 | border-top: 7px dashed transparent; 80 | border-right: 7px dashed transparent; 81 | border-bottom: 7px solid; 82 | border-left: 7px dashed transparent; 83 | } 84 | .navbar-nav span.scroll-down-arrow { 85 | top: 6px; 86 | border-top: 7px solid; 87 | border-right: 7px dashed transparent; 88 | border-bottom: 7px dashed transparent; 89 | border-left: 7px dashed transparent; 90 | } 91 | /* add more indentation for 2+ level sub in collapsible mode - Bootstrap normally supports just 1 level sub menus */ 92 | .navbar-nav.sm-collapsible ul .dropdown-menu > li > a, 93 | .navbar-nav.sm-collapsible ul .dropdown-menu .dropdown-header { 94 | padding-left: 35px; 95 | } 96 | .navbar-nav.sm-collapsible ul ul .dropdown-menu > li > a, 97 | .navbar-nav.sm-collapsible ul ul .dropdown-menu .dropdown-header { 98 | padding-left: 45px; 99 | } 100 | .navbar-nav.sm-collapsible ul ul ul .dropdown-menu > li > a, 101 | .navbar-nav.sm-collapsible ul ul ul .dropdown-menu .dropdown-header { 102 | padding-left: 55px; 103 | } 104 | .navbar-nav.sm-collapsible ul ul ul ul .dropdown-menu > li > a, 105 | .navbar-nav.sm-collapsible ul ul ul ul .dropdown-menu .dropdown-header { 106 | padding-left: 65px; 107 | } 108 | /* fix SmartMenus sub menus auto width (subMenusMinWidth and subMenusMaxWidth options) */ 109 | .navbar-nav .dropdown-menu > li > a { 110 | white-space: normal; 111 | } 112 | .navbar-nav ul.sm-nowrap > li > a { 113 | white-space: nowrap; 114 | } 115 | .navbar-nav.sm-collapsible ul.sm-nowrap > li > a { 116 | white-space: normal; 117 | } 118 | /* fix .navbar-right subs alignment */ 119 | .navbar-right ul.dropdown-menu { 120 | left: 0; 121 | right: auto; 122 | } -------------------------------------------------------------------------------- /public/Content/css/nouislider.css: -------------------------------------------------------------------------------- 1 | 2 | /* Functional styling; 3 | * These styles are required for noUiSlider to function. 4 | * You don't need to change these rules to apply your design. 5 | */ 6 | .noUi-target, 7 | .noUi-target * { 8 | -webkit-touch-callout: none; 9 | -webkit-user-select: none; 10 | -ms-touch-action: none; 11 | touch-action: none; 12 | -ms-user-select: none; 13 | -moz-user-select: none; 14 | user-select: none; 15 | -moz-box-sizing: border-box; 16 | box-sizing: border-box; 17 | } 18 | .noUi-target { 19 | position: relative; 20 | direction: ltr; 21 | } 22 | .noUi-base { 23 | width: 100%; 24 | height: 100%; 25 | position: relative; 26 | z-index: 1; /* Fix 401 */ 27 | } 28 | .noUi-origin { 29 | position: absolute; 30 | right: 0; 31 | top: 0; 32 | left: 0; 33 | bottom: 0; 34 | } 35 | .noUi-handle { 36 | position: relative; 37 | z-index: 1; 38 | } 39 | .noUi-stacking .noUi-handle { 40 | /* This class is applied to the lower origin when 41 | its values is > 50%. */ 42 | z-index: 10; 43 | } 44 | .noUi-state-tap .noUi-origin { 45 | -webkit-transition: left 0.3s, top 0.3s; 46 | transition: left 0.3s, top 0.3s; 47 | } 48 | .noUi-state-drag * { 49 | cursor: inherit !important; 50 | } 51 | 52 | /* Painting and performance; 53 | * Browsers can paint handles in their own layer. 54 | */ 55 | .noUi-base, 56 | .noUi-handle { 57 | -webkit-transform: translate3d(0,0,0); 58 | transform: translate3d(0,0,0); 59 | } 60 | 61 | /* Slider size and handle placement; 62 | */ 63 | .noUi-horizontal { 64 | height: 5px; 65 | } 66 | .noUi-horizontal .noUi-handle { 67 | cursor: w-resize; 68 | height: 23px; 69 | left: -17px; 70 | top: -10px; 71 | width: 28px; 72 | } 73 | .noUi-vertical { 74 | width: 18px; 75 | } 76 | .noUi-vertical .noUi-handle { 77 | width: 28px; 78 | height: 34px; 79 | left: -6px; 80 | top: -17px; 81 | } 82 | 83 | /* Styling; 84 | */ 85 | .noUi-background { 86 | background: #FAFAFA; 87 | box-shadow: inset 0 1px 1px #f0f0f0; 88 | } 89 | .noUi-connect { 90 | background: #ccc; 91 | box-shadow: inset 0 0 3px rgba(51,51,51,0.45); 92 | -webkit-transition: background 450ms; 93 | transition: background 450ms; 94 | } 95 | .noUi-origin { 96 | border-radius: 2px; 97 | } 98 | .noUi-target { 99 | border-radius: 0px; 100 | border: 1px solid #D3D3D3; 101 | box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB; 102 | margin-top: 30px; 103 | margin-bottom: 10px; 104 | } 105 | .noUi-target.noUi-connect { 106 | box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB; 107 | } 108 | 109 | /* Handles and cursors; 110 | */ 111 | .noUi-draggable { 112 | cursor: w-resize; 113 | } 114 | .noUi-vertical .noUi-draggable { 115 | cursor: n-resize; 116 | } 117 | .noUi-handle { 118 | border: 1px solid #D9D9D9; 119 | border-radius: 0px; 120 | background: #FFF; 121 | cursor: default; 122 | box-shadow: inset 0 0 1px #FFF, 123 | inset 0 1px 7px #EBEBEB, 124 | 0 3px 6px -3px #BBB; 125 | } 126 | .noUi-active { 127 | box-shadow: inset 0 0 1px #FFF, 128 | inset 0 1px 7px #DDD, 129 | 0 3px 6px -3px #BBB; 130 | } 131 | 132 | /* Handle stripes; 133 | */ 134 | .noUi-handle:before, 135 | .noUi-handle:after { 136 | content: ""; 137 | display: block; 138 | position: absolute; 139 | height: 10px; 140 | width: 1px; 141 | background: #E8E7E6; 142 | left: 9px; 143 | top: 5px; 144 | } 145 | .noUi-handle:after { 146 | left: 15px; 147 | } 148 | .noUi-vertical .noUi-handle:before, 149 | .noUi-vertical .noUi-handle:after { 150 | width: 14px; 151 | height: 1px; 152 | left: 6px; 153 | top: 14px; 154 | } 155 | .noUi-vertical .noUi-handle:after { 156 | top: 17px; 157 | } 158 | 159 | /* Disabled state; 160 | */ 161 | [disabled].noUi-connect, 162 | [disabled] .noUi-connect { 163 | background: #B8B8B8; 164 | } 165 | [disabled].noUi-origin, 166 | [disabled] .noUi-handle { 167 | cursor: not-allowed; 168 | } 169 | -------------------------------------------------------------------------------- /public/Content/css/slick.css: -------------------------------------------------------------------------------- 1 | /* Slider */ 2 | .slick-slider 3 | { 4 | position: relative; 5 | 6 | display: block; 7 | 8 | -moz-box-sizing: border-box; 9 | box-sizing: border-box; 10 | 11 | -webkit-user-select: none; 12 | -moz-user-select: none; 13 | -ms-user-select: none; 14 | user-select: none; 15 | 16 | -webkit-touch-callout: none; 17 | -khtml-user-select: none; 18 | -ms-touch-action: pan-y; 19 | touch-action: pan-y; 20 | -webkit-tap-highlight-color: transparent; 21 | } 22 | 23 | .slick-list 24 | { 25 | position: relative; 26 | 27 | display: block; 28 | overflow: hidden; 29 | 30 | margin: 0; 31 | padding: 0; 32 | } 33 | .slick-list:focus 34 | { 35 | outline: none; 36 | } 37 | .slick-list.dragging 38 | { 39 | cursor: pointer; 40 | cursor: hand; 41 | } 42 | 43 | .slick-slider .slick-track, 44 | .slick-slider .slick-list 45 | { 46 | -webkit-transform: translate3d(0, 0, 0); 47 | -moz-transform: translate3d(0, 0, 0); 48 | -ms-transform: translate3d(0, 0, 0); 49 | -o-transform: translate3d(0, 0, 0); 50 | transform: translate3d(0, 0, 0); 51 | } 52 | 53 | .slick-track 54 | { 55 | position: relative; 56 | top: 0; 57 | left: 0; 58 | 59 | display: block; 60 | } 61 | .slick-track:before, 62 | .slick-track:after 63 | { 64 | display: table; 65 | 66 | content: ''; 67 | } 68 | .slick-track:after 69 | { 70 | clear: both; 71 | } 72 | .slick-loading .slick-track 73 | { 74 | visibility: hidden; 75 | } 76 | 77 | .slick-slide 78 | { 79 | display: none; 80 | float: left; 81 | 82 | height: 100%; 83 | min-height: 1px; 84 | } 85 | [dir='rtl'] .slick-slide 86 | { 87 | float: right; 88 | } 89 | .slick-slide img 90 | { 91 | display: block; 92 | } 93 | .slick-slide.slick-loading img 94 | { 95 | display: none; 96 | } 97 | .slick-slide.dragging img 98 | { 99 | pointer-events: none; 100 | } 101 | .slick-initialized .slick-slide 102 | { 103 | display: block; 104 | } 105 | .slick-loading .slick-slide 106 | { 107 | visibility: hidden; 108 | } 109 | .slick-vertical .slick-slide 110 | { 111 | display: block; 112 | 113 | height: auto; 114 | 115 | border: 1px solid transparent; 116 | } 117 | .slick-arrow.slick-hidden { 118 | display: none; 119 | } 120 | 121 | /*=============================================================================*/ 122 | @charset 'UTF-8'; 123 | /* Slider */ 124 | .slick-loading .slick-list 125 | { 126 | background: #fff url('../img/slider/ajax-loader.gif') center center no-repeat; 127 | } 128 | 129 | /* Icons */ 130 | @font-face 131 | { 132 | /* font-family: 'slick'; 133 | font-weight: normal; 134 | font-style: normal; 135 | 136 | src: url('./fonts/slick.eot'); 137 | src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');*/ 138 | } 139 | /* Arrows */ 140 | .slick-prev, 141 | .slick-next 142 | { 143 | font-size: 0; 144 | line-height: 0; 145 | 146 | position: absolute; 147 | top: -40px; 148 | 149 | display: block; 150 | 151 | width: 20px; 152 | height: 20px; 153 | margin-top: -10px; 154 | padding: 0; 155 | 156 | cursor: pointer; 157 | 158 | color: transparent; 159 | border: none; 160 | outline: none; 161 | z-index: 99; 162 | } 163 | .slick-prev:hover, 164 | .slick-prev:focus, 165 | .slick-next:hover, 166 | .slick-next:focus 167 | { 168 | /* color: #000; 169 | outline: none; 170 | background: transparent;*/ 171 | } 172 | .slick-prev:hover:before, 173 | .slick-prev:focus:before, 174 | .slick-next:hover:before, 175 | .slick-next:focus:before 176 | { 177 | opacity: 1; 178 | } 179 | .slick-prev.slick-disabled:before, 180 | .slick-next.slick-disabled:before 181 | { 182 | opacity: .6; 183 | /*opacity: 1;*/ 184 | } 185 | 186 | .slick-prev:before, 187 | .slick-next:before 188 | { 189 | font-family: 'fontAwesome'; 190 | font-size: 20px; 191 | line-height: 1; 192 | 193 | opacity: 1; 194 | color: white; 195 | 196 | -webkit-font-smoothing: antialiased; 197 | -moz-osx-font-smoothing: grayscale; 198 | } 199 | 200 | .slick-prev 201 | { 202 | left: 94%; 203 | } 204 | [dir='rtl'] .slick-prev 205 | { 206 | right: -25px; 207 | left: auto; 208 | } 209 | .slick-prev:before 210 | { 211 | content: '\f104'; 212 | } 213 | [dir='rtl'] .slick-prev:before 214 | { 215 | content: '\f104'; 216 | } 217 | 218 | .slick-next 219 | { 220 | right: 0; 221 | } 222 | [dir='rtl'] .slick-next 223 | { 224 | right: auto; 225 | left: -25px; 226 | } 227 | .slick-next:before 228 | { 229 | content: '\f105'; 230 | } 231 | [dir='rtl'] .slick-next:before 232 | { 233 | content: '\f105'; 234 | } 235 | 236 | /* Dots */ 237 | .slick-slider 238 | { 239 | /*margin-bottom: 30px;*/ 240 | } 241 | 242 | .slick-dots 243 | { 244 | position: absolute; 245 | bottom: -45px; 246 | 247 | display: block; 248 | 249 | width: 100%; 250 | padding: 0; 251 | 252 | list-style: none; 253 | 254 | text-align: center; 255 | } 256 | .slick-dots li 257 | { 258 | position: relative; 259 | 260 | display: inline-block; 261 | 262 | width: 20px; 263 | height: 20px; 264 | margin: 0 5px; 265 | padding: 0; 266 | 267 | cursor: pointer; 268 | } 269 | .slick-dots li button 270 | { 271 | font-size: 0; 272 | line-height: 0; 273 | 274 | display: block; 275 | 276 | width: 20px; 277 | height: 20px; 278 | padding: 5px; 279 | 280 | cursor: pointer; 281 | 282 | color: transparent; 283 | border: 0; 284 | outline: none; 285 | background: transparent; 286 | } 287 | .slick-dots li button:hover, 288 | .slick-dots li button:focus 289 | { 290 | outline: none; 291 | } 292 | .slick-dots li button:hover:before, 293 | .slick-dots li button:focus:before 294 | { 295 | opacity: 1; 296 | } 297 | .slick-dots li button:before 298 | { 299 | font-family: 'slick'; 300 | font-size: 6px; 301 | line-height: 20px; 302 | 303 | position: absolute; 304 | top: 0; 305 | left: 0; 306 | 307 | width: 20px; 308 | height: 20px; 309 | 310 | content: '•'; 311 | text-align: center; 312 | 313 | opacity: .25; 314 | color: black; 315 | 316 | -webkit-font-smoothing: antialiased; 317 | -moz-osx-font-smoothing: grayscale; 318 | } 319 | .slick-dots li.slick-active button:before 320 | { 321 | opacity: .75; 322 | color: black; 323 | } 324 | -------------------------------------------------------------------------------- /public/Content/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /public/Content/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /public/Content/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /public/Content/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /public/Content/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /public/Content/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /public/Content/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /public/Content/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /public/Content/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /public/Content/img/client-brand-css3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/client-brand-css3.png -------------------------------------------------------------------------------- /public/Content/img/client-brand-html5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/client-brand-html5.png -------------------------------------------------------------------------------- /public/Content/img/client-brand-java.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/client-brand-java.png -------------------------------------------------------------------------------- /public/Content/img/client-brand-joomla.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/client-brand-joomla.png -------------------------------------------------------------------------------- /public/Content/img/client-brand-jquery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/client-brand-jquery.png -------------------------------------------------------------------------------- /public/Content/img/client-brand-wordpress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/client-brand-wordpress.png -------------------------------------------------------------------------------- /public/Content/img/close-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/close-icon.png -------------------------------------------------------------------------------- /public/Content/img/common/shirt1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/common/shirt1.png -------------------------------------------------------------------------------- /public/Content/img/common/shirt2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/common/shirt2.png -------------------------------------------------------------------------------- /public/Content/img/common/shirt3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/common/shirt3.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-1.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-2.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-3.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-4.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-5.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-6.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-7.png -------------------------------------------------------------------------------- /public/Content/img/electronics/electronic-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/electronics/electronic-8.png -------------------------------------------------------------------------------- /public/Content/img/fashion-banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/fashion-banner.jpg -------------------------------------------------------------------------------- /public/Content/img/fashion/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/fashion/1.jpg -------------------------------------------------------------------------------- /public/Content/img/fashion/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/fashion/2.jpg -------------------------------------------------------------------------------- /public/Content/img/fashion/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/fashion/3.jpg -------------------------------------------------------------------------------- /public/Content/img/fashion/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/fashion/4.jpg -------------------------------------------------------------------------------- /public/Content/img/fashion/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/fashion/5.jpg -------------------------------------------------------------------------------- /public/Content/img/fashion/fashion-header-bg-8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/fashion/fashion-header-bg-8.jpg -------------------------------------------------------------------------------- /public/Content/img/flag/english.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/flag/english.jpg -------------------------------------------------------------------------------- /public/Content/img/flag/french.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/flag/french.jpg -------------------------------------------------------------------------------- /public/Content/img/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/logo.jpg -------------------------------------------------------------------------------- /public/Content/img/man-small-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man-small-1.jpg -------------------------------------------------------------------------------- /public/Content/img/man/polo-shirt-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man/polo-shirt-1.png -------------------------------------------------------------------------------- /public/Content/img/man/polo-shirt-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man/polo-shirt-2.png -------------------------------------------------------------------------------- /public/Content/img/man/polo-shirt-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man/polo-shirt-3.png -------------------------------------------------------------------------------- /public/Content/img/man/polo-shirt-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man/polo-shirt-4.png -------------------------------------------------------------------------------- /public/Content/img/man/polo-shirt-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man/polo-shirt-5.png -------------------------------------------------------------------------------- /public/Content/img/man/polo-shirt-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man/polo-shirt-6.png -------------------------------------------------------------------------------- /public/Content/img/man/t-shirt-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/man/t-shirt-1.png -------------------------------------------------------------------------------- /public/Content/img/paypal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/paypal.jpg -------------------------------------------------------------------------------- /public/Content/img/pp-cards.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/pp-cards.jpg -------------------------------------------------------------------------------- /public/Content/img/promo-banner-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/promo-banner-1.jpg -------------------------------------------------------------------------------- /public/Content/img/promo-banner-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/promo-banner-2.jpg -------------------------------------------------------------------------------- /public/Content/img/promo-banner-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/promo-banner-3.jpg -------------------------------------------------------------------------------- /public/Content/img/promo-banner-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/promo-banner-4.jpg -------------------------------------------------------------------------------- /public/Content/img/promo-banner-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/promo-banner-5.jpg -------------------------------------------------------------------------------- /public/Content/img/slider/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/1.jpg -------------------------------------------------------------------------------- /public/Content/img/slider/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/2.jpg -------------------------------------------------------------------------------- /public/Content/img/slider/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/3.jpg -------------------------------------------------------------------------------- /public/Content/img/slider/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/4.jpg -------------------------------------------------------------------------------- /public/Content/img/slider/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/5.jpg -------------------------------------------------------------------------------- /public/Content/img/slider/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/ajax-loader.gif -------------------------------------------------------------------------------- /public/Content/img/slider/bt-next.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/bt-next.png -------------------------------------------------------------------------------- /public/Content/img/slider/bt-next@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/bt-next@2x.png -------------------------------------------------------------------------------- /public/Content/img/slider/bt-prev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/bt-prev.png -------------------------------------------------------------------------------- /public/Content/img/slider/bt-prev@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/slider/bt-prev@2x.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-1.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-2.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-3.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-4.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-5.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-6.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-7.png -------------------------------------------------------------------------------- /public/Content/img/sports/sport-8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/sports/sport-8.png -------------------------------------------------------------------------------- /public/Content/img/testimonial-bg-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/testimonial-bg-1.jpg -------------------------------------------------------------------------------- /public/Content/img/testimonial-img-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/testimonial-img-1.jpg -------------------------------------------------------------------------------- /public/Content/img/testimonial-img-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/testimonial-img-2.jpg -------------------------------------------------------------------------------- /public/Content/img/testimonial-img-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/testimonial-img-3.jpg -------------------------------------------------------------------------------- /public/Content/img/view-slider/large/polo-shirt-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/large/polo-shirt-1.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/large/polo-shirt-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/large/polo-shirt-2.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/large/polo-shirt-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/large/polo-shirt-3.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/large/polo-shirt-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/large/polo-shirt-4.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/loading.gif -------------------------------------------------------------------------------- /public/Content/img/view-slider/medium/polo-shirt-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/medium/polo-shirt-1.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/medium/polo-shirt-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/medium/polo-shirt-2.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/medium/polo-shirt-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/medium/polo-shirt-3.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/medium/polo-shirt-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/medium/polo-shirt-4.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/thumbnail/polo-shirt-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/thumbnail/polo-shirt-1.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/thumbnail/polo-shirt-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/thumbnail/polo-shirt-2.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/thumbnail/polo-shirt-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/thumbnail/polo-shirt-3.png -------------------------------------------------------------------------------- /public/Content/img/view-slider/thumbnail/polo-shirt-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/view-slider/thumbnail/polo-shirt-4.png -------------------------------------------------------------------------------- /public/Content/img/woman-small-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/woman-small-1.jpg -------------------------------------------------------------------------------- /public/Content/img/woman-small-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/woman-small-2.jpg -------------------------------------------------------------------------------- /public/Content/img/women/girl-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/women/girl-1.png -------------------------------------------------------------------------------- /public/Content/img/women/girl-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/women/girl-2.png -------------------------------------------------------------------------------- /public/Content/img/women/girl-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/women/girl-3.png -------------------------------------------------------------------------------- /public/Content/img/women/girl-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/women/girl-4.png -------------------------------------------------------------------------------- /public/Content/img/women/girl-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/women/girl-5.png -------------------------------------------------------------------------------- /public/Content/img/women/girl-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/women/girl-6.png -------------------------------------------------------------------------------- /public/Content/img/women/girl-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/Content/img/women/girl-7.png -------------------------------------------------------------------------------- /public/Content/js/custom.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Template Name: Daily Shop 3 | * Version: 1.0 4 | * Template Scripts 5 | * Author: MarkUps 6 | * Author URI: http://www.markups.io/ 7 | 8 | Custom JS 9 | 10 | 11 | 1. CARTBOX 12 | 2. TOOLTIP 13 | 3. PRODUCT VIEW SLIDER 14 | 4. POPULAR PRODUCT SLIDER (SLICK SLIDER) 15 | 5. FEATURED PRODUCT SLIDER (SLICK SLIDER) 16 | 6. LATEST PRODUCT SLIDER (SLICK SLIDER) 17 | 7. TESTIMONIAL SLIDER (SLICK SLIDER) 18 | 8. CLIENT BRAND SLIDER (SLICK SLIDER) 19 | 9. PRICE SLIDER (noUiSlider SLIDER) 20 | 10. SCROLL TOP BUTTON 21 | 11. PRELOADER 22 | 12. GRID AND LIST LAYOUT CHANGER 23 | 13. RELATED ITEM SLIDER (SLICK SLIDER) 24 | 25 | 26 | **/ 27 | 28 | jQuery(function($){ 29 | 30 | 31 | /* ----------------------------------------------------------- */ 32 | /* 1. CARTBOX 33 | /* ----------------------------------------------------------- */ 34 | 35 | jQuery(".aa-cartbox").hover(function(){ 36 | jQuery(this).find(".aa-cartbox-summary").fadeIn(500); 37 | } 38 | ,function(){ 39 | jQuery(this).find(".aa-cartbox-summary").fadeOut(500); 40 | } 41 | ); 42 | 43 | /* ----------------------------------------------------------- */ 44 | /* 2. TOOLTIP 45 | /* ----------------------------------------------------------- */ 46 | jQuery('[data-toggle="tooltip"]').tooltip(); 47 | jQuery('[data-toggle2="tooltip"]').tooltip(); 48 | 49 | /* ----------------------------------------------------------- */ 50 | /* 3. PRODUCT VIEW SLIDER 51 | /* ----------------------------------------------------------- */ 52 | 53 | jQuery('#demo-1 .simpleLens-thumbnails-container img').simpleGallery({ 54 | loading_image: 'demo/images/loading.gif' 55 | }); 56 | 57 | jQuery('#demo-1 .simpleLens-big-image').simpleLens({ 58 | loading_image: 'demo/images/loading.gif' 59 | }); 60 | 61 | /* ----------------------------------------------------------- */ 62 | /* 4. POPULAR PRODUCT SLIDER (SLICK SLIDER) 63 | /* ----------------------------------------------------------- */ 64 | 65 | jQuery('.aa-popular-slider').slick({ 66 | dots: false, 67 | infinite: false, 68 | speed: 300, 69 | slidesToShow: 4, 70 | slidesToScroll: 4, 71 | responsive: [ 72 | { 73 | breakpoint: 1024, 74 | settings: { 75 | slidesToShow: 3, 76 | slidesToScroll: 3, 77 | infinite: true, 78 | dots: true 79 | } 80 | }, 81 | { 82 | breakpoint: 600, 83 | settings: { 84 | slidesToShow: 2, 85 | slidesToScroll: 2 86 | } 87 | }, 88 | { 89 | breakpoint: 480, 90 | settings: { 91 | slidesToShow: 1, 92 | slidesToScroll: 1 93 | } 94 | } 95 | // You can unslick at a given breakpoint now by adding: 96 | // settings: "unslick" 97 | // instead of a settings object 98 | ] 99 | }); 100 | 101 | 102 | /* ----------------------------------------------------------- */ 103 | /* 5. FEATURED PRODUCT SLIDER (SLICK SLIDER) 104 | /* ----------------------------------------------------------- */ 105 | 106 | jQuery('.aa-featured-slider').slick({ 107 | dots: false, 108 | infinite: false, 109 | speed: 300, 110 | slidesToShow: 4, 111 | slidesToScroll: 4, 112 | responsive: [ 113 | { 114 | breakpoint: 1024, 115 | settings: { 116 | slidesToShow: 3, 117 | slidesToScroll: 3, 118 | infinite: true, 119 | dots: true 120 | } 121 | }, 122 | { 123 | breakpoint: 600, 124 | settings: { 125 | slidesToShow: 2, 126 | slidesToScroll: 2 127 | } 128 | }, 129 | { 130 | breakpoint: 480, 131 | settings: { 132 | slidesToShow: 1, 133 | slidesToScroll: 1 134 | } 135 | } 136 | // You can unslick at a given breakpoint now by adding: 137 | // settings: "unslick" 138 | // instead of a settings object 139 | ] 140 | }); 141 | 142 | /* ----------------------------------------------------------- */ 143 | /* 6. LATEST PRODUCT SLIDER (SLICK SLIDER) 144 | /* ----------------------------------------------------------- */ 145 | jQuery('.aa-latest-slider').slick({ 146 | dots: false, 147 | infinite: false, 148 | speed: 300, 149 | slidesToShow: 4, 150 | slidesToScroll: 4, 151 | responsive: [ 152 | { 153 | breakpoint: 1024, 154 | settings: { 155 | slidesToShow: 3, 156 | slidesToScroll: 3, 157 | infinite: true, 158 | dots: true 159 | } 160 | }, 161 | { 162 | breakpoint: 600, 163 | settings: { 164 | slidesToShow: 2, 165 | slidesToScroll: 2 166 | } 167 | }, 168 | { 169 | breakpoint: 480, 170 | settings: { 171 | slidesToShow: 1, 172 | slidesToScroll: 1 173 | } 174 | } 175 | // You can unslick at a given breakpoint now by adding: 176 | // settings: "unslick" 177 | // instead of a settings object 178 | ] 179 | }); 180 | 181 | /* ----------------------------------------------------------- */ 182 | /* 7. TESTIMONIAL SLIDER (SLICK SLIDER) 183 | /* ----------------------------------------------------------- */ 184 | 185 | // jQuery('.aa-testimonial-slider').slick({ 186 | // dots: true, 187 | // infinite: true, 188 | // arrows: false, 189 | // speed: 300, 190 | // slidesToShow: 1, 191 | // adaptiveHeight: true 192 | // }); 193 | 194 | /* ----------------------------------------------------------- */ 195 | /* 8. CLIENT BRAND SLIDER (SLICK SLIDER) 196 | /* ----------------------------------------------------------- */ 197 | 198 | jQuery('.aa-client-brand-slider').slick({ 199 | dots: false, 200 | infinite: false, 201 | speed: 300, 202 | autoplay: true, 203 | autoplaySpeed: 2000, 204 | slidesToShow: 5, 205 | slidesToScroll: 1, 206 | responsive: [ 207 | { 208 | breakpoint: 1024, 209 | settings: { 210 | slidesToShow: 4, 211 | slidesToScroll: 4, 212 | infinite: true, 213 | dots: true 214 | } 215 | }, 216 | { 217 | breakpoint: 600, 218 | settings: { 219 | slidesToShow: 2, 220 | slidesToScroll: 2 221 | } 222 | }, 223 | { 224 | breakpoint: 480, 225 | settings: { 226 | slidesToShow: 1, 227 | slidesToScroll: 1 228 | } 229 | } 230 | // You can unslick at a given breakpoint now by adding: 231 | // settings: "unslick" 232 | // instead of a settings object 233 | ] 234 | }); 235 | 236 | /* ----------------------------------------------------------- */ 237 | /* 9. PRICE SLIDER (noUiSlider SLIDER) 238 | /* ----------------------------------------------------------- */ 239 | 240 | jQuery(function(){ 241 | if($('body').is('.productPage')){ 242 | var skipSlider = document.getElementById('skipstep'); 243 | noUiSlider.create(skipSlider, { 244 | range: { 245 | 'min': 0, 246 | '10%': 10, 247 | '20%': 20, 248 | '30%': 30, 249 | '40%': 40, 250 | '50%': 50, 251 | '60%': 60, 252 | '70%': 70, 253 | '80%': 80, 254 | '90%': 90, 255 | 'max': 100 256 | }, 257 | snap: true, 258 | connect: true, 259 | start: [20, 70] 260 | }); 261 | // for value print 262 | var skipValues = [ 263 | document.getElementById('skip-value-lower'), 264 | document.getElementById('skip-value-upper') 265 | ]; 266 | 267 | skipSlider.noUiSlider.on('update', function( values, handle ) { 268 | skipValues[handle].innerHTML = values[handle]; 269 | }); 270 | } 271 | }); 272 | 273 | 274 | 275 | /* ----------------------------------------------------------- */ 276 | /* 10. SCROLL TOP BUTTON 277 | /* ----------------------------------------------------------- */ 278 | 279 | //Check to see if the window is top if not then display button 280 | 281 | jQuery(window).scroll(function(){ 282 | if ($(this).scrollTop() > 300) { 283 | $('.scrollToTop').fadeIn(); 284 | } else { 285 | $('.scrollToTop').fadeOut(); 286 | } 287 | }); 288 | 289 | //Click event to scroll to top 290 | 291 | jQuery('.scrollToTop').click(function(){ 292 | $('html, body').animate({scrollTop : 0},800); 293 | return false; 294 | }); 295 | 296 | /* ----------------------------------------------------------- */ 297 | /* 11. PRELOADER 298 | /* ----------------------------------------------------------- */ 299 | 300 | jQuery(window).load(function() { // makes sure the whole site is loaded 301 | jQuery('#wpf-loader-two').delay(200).fadeOut('slow'); // will fade out 302 | }) 303 | 304 | /* ----------------------------------------------------------- */ 305 | /* 12. GRID AND LIST LAYOUT CHANGER 306 | /* ----------------------------------------------------------- */ 307 | 308 | jQuery("#list-catg").click(function(e){ 309 | e.preventDefault(e); 310 | jQuery(".aa-product-catg").addClass("list"); 311 | }); 312 | jQuery("#grid-catg").click(function(e){ 313 | e.preventDefault(e); 314 | jQuery(".aa-product-catg").removeClass("list"); 315 | }); 316 | 317 | 318 | /* ----------------------------------------------------------- */ 319 | /* 13. RELATED ITEM SLIDER (SLICK SLIDER) 320 | /* ----------------------------------------------------------- */ 321 | 322 | jQuery('.aa-related-item-slider').slick({ 323 | dots: false, 324 | infinite: false, 325 | speed: 300, 326 | slidesToShow: 4, 327 | slidesToScroll: 4, 328 | responsive: [ 329 | { 330 | breakpoint: 1024, 331 | settings: { 332 | slidesToShow: 3, 333 | slidesToScroll: 3, 334 | infinite: true, 335 | dots: true 336 | } 337 | }, 338 | { 339 | breakpoint: 600, 340 | settings: { 341 | slidesToShow: 2, 342 | slidesToScroll: 2 343 | } 344 | }, 345 | { 346 | breakpoint: 480, 347 | settings: { 348 | slidesToShow: 1, 349 | slidesToScroll: 1 350 | } 351 | } 352 | // You can unslick at a given breakpoint now by adding: 353 | // settings: "unslick" 354 | // instead of a settings object 355 | ] 356 | }); 357 | 358 | }); 359 | 360 | -------------------------------------------------------------------------------- /public/Content/js/jquery.simpleGallery.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | "use strict"; 3 | 4 | var ver = 'simpleGallery-1.0.1'; 5 | 6 | function debug(message) { 7 | if (window.console) { 8 | console.log(message); 9 | } 10 | } 11 | 12 | $.fn.simpleGallery = function (options) { 13 | var opts = $.extend({}, $.fn.simpleGallery.defaults, options); 14 | 15 | if (this.length <= 0) { 16 | debug('There are no thumbnails in the gallery'); 17 | return false; 18 | } 19 | 20 | this.each(function () { 21 | var img = $(''); 22 | img.src = $(this).attr('rel'); 23 | }); 24 | 25 | var init = function () { 26 | var parent_anchor = $(this).parents(opts.thumbnail_anchor), 27 | src = parent_anchor.attr(opts.big_image_attr), 28 | lens_image = parent_anchor.attr(opts.lens_image_attr); 29 | var image_container = $(this).parents(opts.gallery_container).find(opts.big_image_container); 30 | 31 | var loading_image = $('', {'src': opts.loading_image}); 32 | image_container.html(loading_image); 33 | 34 | var a = $('').attr('data-lens-image', lens_image).addClass(opts.parent_anchor_class); 35 | var img = $('').load(function(){ 36 | img.appendTo(a); 37 | image_container.html(a); 38 | }).attr('src', src).addClass(opts.big_image_class); 39 | 40 | }; 41 | 42 | $(this).on(opts.show_event, init); 43 | 44 | return this; 45 | }; 46 | 47 | $.fn.simpleGallery.ver = function () { return ver; }; 48 | 49 | $.fn.simpleGallery.defaults = { 50 | thumbnail_anchor: '.simpleLens-thumbnail-wrapper', 51 | big_image_class: 'simpleLens-big-image', 52 | lens_image_attr: 'data-lens-image', 53 | big_image_attr: 'data-big-image', 54 | parent_anchor_class: 'simpleLens-lens-image', 55 | gallery_container: '.simpleLens-gallery-container', 56 | big_image_container: '.simpleLens-big-image-container', 57 | loading_image: '../img/view-slider/loading.gif', 58 | show_event: 'mouseenter' 59 | }; 60 | 61 | })( jQuery ); -------------------------------------------------------------------------------- /public/Content/js/jquery.simpleLens.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery Lens Simple Plugin 3 | * Copyright (c) 2014 Pietro Simone Di Chiara 4 | * Version: 1.0.1 (05-APR-2013) 5 | * Licensed under the MIT license: 6 | * http://www.opensource.org/licenses/mit-license.php 7 | * Requires: jQuery v1.7.0 or later 8 | */ 9 | (function ($) { 10 | "use strict"; 11 | 12 | var ver = 'simpleLens-1.0.1'; 13 | 14 | function debug(message) { 15 | if (window.console) { 16 | console.log(message); 17 | } 18 | } 19 | 20 | $.fn.simpleLens = function (options) { 21 | var opts = $.extend({}, $.fn.simpleLens.defaults, options); 22 | 23 | var big_image = { 24 | init: function (image) { 25 | this.height = image.height(); 26 | this.width = image.width(); 27 | this.offset = image.offset(); 28 | this.position = image.position(); 29 | 30 | this.calc_image_limits(); 31 | }, 32 | calc_image_limits: function(){ 33 | this.limits = { 34 | x_left : (this.position.left), 35 | x_right : (this.position.left + this.width), 36 | y_top : (this.position.top), 37 | y_bottom : (this.position.top + this.height) 38 | } 39 | }, 40 | calc_view_position: function (e) { 41 | return { 42 | org_x: (e.pageX - this.offset.left), 43 | org_y: (e.pageY - this.offset.top) 44 | } 45 | } 46 | }; 47 | 48 | var cursor = { 49 | init: function(parent_anchor, lens_container, ratio, position){ 50 | this.parent_anchor = parent_anchor; 51 | this.lens_container = lens_container; 52 | this.ratio = ratio; 53 | 54 | this.cursor_position = { 55 | 'top': 0, 56 | 'left': 0 57 | }; 58 | 59 | this.calc_cursor_size(); 60 | this.insert_cursor(position.org_x, position.org_y); 61 | }, 62 | destroy: function(){ 63 | $('.' + opts.cursor_class).remove(); 64 | }, 65 | calc_cursor_size: function () { 66 | this.cursor_height = this.lens_container.height() / this.ratio.x; 67 | this.cursor_width = this.lens_container.width() / this.ratio.y; 68 | this.height_center = (this.cursor_height / 2); 69 | this.width_center = (this.cursor_width / 2); 70 | }, 71 | update_cursor_position: function (x, y) { 72 | var new_y = (y - this.height_center); 73 | var new_bottom_y = (y + this.height_center); 74 | var new_x = (x - this.width_center); 75 | var new_right_x = (x + this.width_center); 76 | 77 | var limits = big_image.limits; 78 | if (parseFloat(limits.y_top) > parseFloat(new_y)) { 79 | new_y = limits.y_top; 80 | } else if (parseFloat(new_bottom_y) > parseFloat(limits.y_bottom)) { 81 | new_y = limits.y_bottom - this.cursor_height; 82 | } 83 | 84 | if (parseFloat(limits.x_left) > parseFloat(new_x)) { 85 | new_x = limits.x_left; 86 | } else if (parseFloat(new_right_x) > parseFloat(limits.x_right)) { 87 | new_x = limits.x_right - this.cursor_width; 88 | } 89 | 90 | this.cursor_position = { 91 | 'top': new_y, 92 | 'left': new_x, 93 | 'center_top': new_y + this.height_center, 94 | 'center_left': new_x + this.width_center 95 | }; 96 | 97 | if (this.cursor !== undefined) { 98 | this.cursor.css(this.cursor_position); 99 | } 100 | }, 101 | insert_cursor: function (x, y) { 102 | this.cursor = $('
', {'class': opts.cursor_class}); 103 | this.cursor.css({ 104 | 'height': this.cursor_height + 'px', 105 | 'width': this.cursor_width + 'px' 106 | }); 107 | 108 | this.cursor.appendTo(this.parent_anchor); 109 | return this.update_cursor_position(x, y); 110 | } 111 | }; 112 | 113 | var lens = { 114 | init: function(parent_anchor){ 115 | this.parent_anchor = parent_anchor; 116 | this.parent_div = parent_anchor.parent(opts.parent_class); 117 | this.lens_image_url = parent_anchor.attr(opts.lens_image_attr); 118 | this.lens_container = $('
', {'class': opts.lens_class}); 119 | this.lens_image = $(''); 120 | big_image.init(parent_anchor.find(opts.big_image_class)); 121 | 122 | if (this.lens_image_url === undefined) { 123 | debug('Cannot find lens image. URL: ' + this.lens_image_url); 124 | debug(that); 125 | debug(parent_anchor); 126 | debug(lens_image_url); 127 | } 128 | }, 129 | update_lens_position: function (position) { 130 | this.lens_image.css({ 131 | 'top': position.top, 132 | 'left': position.left 133 | }); 134 | }, 135 | calc_lens_position: function(cursor_position){ 136 | return { 137 | left: (cursor_position.center_left * this.ratio.x - this.container.width) * -1, 138 | top: (cursor_position.center_top * this.ratio.y - this.container.height) * -1 139 | } 140 | }, 141 | lens_event_bind: function () { 142 | var that = this; 143 | var mouse_callback = function (mouse) { 144 | var position = big_image.calc_view_position(mouse); 145 | cursor.update_cursor_position(position.org_x, position.org_y); 146 | that.update_lens_position(that.calc_lens_position(cursor.cursor_position, that.ratio, that.container)); 147 | }; 148 | 149 | this.parent_anchor.mousemove(mouse_callback); 150 | }, 151 | lens_event_unbind: function(){ 152 | if(this.parent_anchor !== undefined){ 153 | this.parent_anchor.unbind('mousemove'); 154 | } 155 | }, 156 | destroy: function(){ 157 | cursor.destroy(); 158 | 159 | if(this.lens_container !== undefined && this.lens_container.length > 0){ 160 | $('.' + opts.lens_class).remove(); 161 | this.lens_event_unbind(); 162 | } 163 | }, 164 | load: function(e){ 165 | var that = this; 166 | 167 | this.lens_container.appendTo(this.parent_div); 168 | 169 | var margin_top = (this.lens_container.height() / 2) - 25, 170 | loading_image = $('', {'src': opts.loading_image}) 171 | .css("margin-top", margin_top); 172 | this.lens_container.html(loading_image); 173 | 174 | this.lens_image.load(function () { 175 | that.lens_container.html(that.lens_image); 176 | 177 | that.container = { 178 | width: that.lens_container.width() / 2, 179 | height: that.lens_container.height() / 2 180 | }; 181 | 182 | that.img_size = { 183 | width: that.lens_image.width(), 184 | height: that.lens_image.height() 185 | }; 186 | 187 | that.ratio = { 188 | y: that.lens_image.height() / big_image.height, 189 | x: that.lens_image.width() / big_image.width 190 | }; 191 | 192 | var position = big_image.calc_view_position(e); 193 | cursor.init(that.parent_anchor, that.lens_container, that.ratio, position); 194 | that.update_lens_position(that.calc_lens_position(cursor.cursor_position)); 195 | 196 | that.lens_event_bind(); 197 | }).attr('src', this.lens_image_url).attr('width', '1024px').attr('height', '900px'); 198 | } 199 | }; 200 | 201 | var init = function (e) { 202 | var parent_anchor = $(this); 203 | 204 | lens.init(parent_anchor); 205 | lens.load(e); 206 | }; 207 | 208 | var destroy = function () { 209 | lens.destroy(); 210 | }; 211 | 212 | $(this).parents(opts.parent_class).on(opts.open_lens_event, opts.anchor_parent_class, init); 213 | $(this).parents(opts.parent_class).on('mouseleave', opts.anchor_parent_class, destroy); 214 | 215 | }; 216 | 217 | $.fn.simpleLens.ver = function () { return ver; }; 218 | 219 | $.fn.simpleLens.defaults = { 220 | anchor_parent_class: '.simpleLens-lens-image', 221 | lens_image_attr: 'data-lens-image', 222 | big_image_class: '.simpleLens-big-image', 223 | parent_class: '.simpleLens-big-image-container', 224 | lens_class: 'simpleLens-lens-element', 225 | cursor_class: 'simpleLens-mouse-cursor', 226 | loading_image: '../img/view-slider/loading.gif', 227 | open_lens_event: 'mouseenter' 228 | }; 229 | 230 | })( jQuery ); -------------------------------------------------------------------------------- /public/Content/js/jquery.smartmenus.bootstrap.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * SmartMenus jQuery Plugin Bootstrap Addon - v0.3.0 - January 27, 2016 3 | * http://www.smartmenus.org/ 4 | * 5 | * Copyright Vasil Dinkov, Vadikom Web Ltd. 6 | * http://vadikom.com 7 | * 8 | * Licensed MIT 9 | */ 10 | 11 | (function(factory) { 12 | if (typeof define === 'function' && define.amd) { 13 | // AMD 14 | define(['jquery', 'jquery.smartmenus'], factory); 15 | } else if (typeof module === 'object' && typeof module.exports === 'object') { 16 | // CommonJS 17 | module.exports = factory(require('jquery')); 18 | } else { 19 | // Global jQuery 20 | factory(jQuery); 21 | } 22 | } (function($) { 23 | 24 | $.extend($.SmartMenus.Bootstrap = {}, { 25 | keydownFix: false, 26 | init: function() { 27 | // init all navbars that don't have the "data-sm-skip" attribute set 28 | var $navbars = $('ul.navbar-nav:not([data-sm-skip])'); 29 | $navbars.each(function() { 30 | var $this = $(this), 31 | obj = $this.data('smartmenus'); 32 | // if this navbar is not initialized 33 | if (!obj) { 34 | $this.smartmenus({ 35 | 36 | // these are some good default options that should work for all 37 | // you can, of course, tweak these as you like 38 | subMenusSubOffsetX: 2, 39 | subMenusSubOffsetY: -6, 40 | subIndicators: false, 41 | collapsibleShowFunction: null, 42 | collapsibleHideFunction: null, 43 | rightToLeftSubMenus: $this.hasClass('navbar-right'), 44 | bottomToTopSubMenus: $this.closest('.navbar').hasClass('navbar-fixed-bottom') 45 | }) 46 | .bind({ 47 | // set/unset proper Bootstrap classes for some menu elements 48 | 'show.smapi': function(e, menu) { 49 | var $menu = $(menu), 50 | $scrollArrows = $menu.dataSM('scroll-arrows'); 51 | if ($scrollArrows) { 52 | // they inherit border-color from body, so we can use its background-color too 53 | $scrollArrows.css('background-color', $(document.body).css('background-color')); 54 | } 55 | $menu.parent().addClass('open'); 56 | }, 57 | 'hide.smapi': function(e, menu) { 58 | $(menu).parent().removeClass('open'); 59 | } 60 | }); 61 | 62 | function onInit() { 63 | // set Bootstrap's "active" class to SmartMenus "current" items (should someone decide to enable markCurrentItem: true) 64 | $this.find('a.current').parent().addClass('active'); 65 | // remove any Bootstrap required attributes that might cause conflicting issues with the SmartMenus script 66 | $this.find('a.has-submenu').each(function() { 67 | var $this = $(this); 68 | if ($this.is('[data-toggle="dropdown"]')) { 69 | $this.dataSM('bs-data-toggle-dropdown', true).removeAttr('data-toggle'); 70 | } 71 | if ($this.is('[role="button"]')) { 72 | $this.dataSM('bs-role-button', true).removeAttr('role'); 73 | } 74 | }); 75 | } 76 | 77 | onInit(); 78 | 79 | function onBeforeDestroy() { 80 | $this.find('a.current').parent().removeClass('active'); 81 | $this.find('a.has-submenu').each(function() { 82 | var $this = $(this); 83 | if ($this.dataSM('bs-data-toggle-dropdown')) { 84 | $this.attr('data-toggle', 'dropdown').removeDataSM('bs-data-toggle-dropdown'); 85 | } 86 | if ($this.dataSM('bs-role-button')) { 87 | $this.attr('role', 'button').removeDataSM('bs-role-button'); 88 | } 89 | }); 90 | } 91 | 92 | obj = $this.data('smartmenus'); 93 | 94 | // custom "isCollapsible" method for Bootstrap 95 | obj.isCollapsible = function() { 96 | return !/^(left|right)$/.test(this.$firstLink.parent().css('float')); 97 | }; 98 | 99 | // custom "refresh" method for Bootstrap 100 | obj.refresh = function() { 101 | $.SmartMenus.prototype.refresh.call(this); 102 | onInit(); 103 | // update collapsible detection 104 | detectCollapsible(true); 105 | } 106 | 107 | // custom "destroy" method for Bootstrap 108 | obj.destroy = function(refresh) { 109 | onBeforeDestroy(); 110 | $.SmartMenus.prototype.destroy.call(this, refresh); 111 | } 112 | 113 | // keep Bootstrap's default behavior for parent items when the "data-sm-skip-collapsible-behavior" attribute is set to the ul.navbar-nav 114 | // i.e. use the whole item area just as a sub menu toggle and don't customize the carets 115 | if ($this.is('[data-sm-skip-collapsible-behavior]')) { 116 | $this.bind({ 117 | // click the parent item to toggle the sub menus (and reset deeper levels and other branches on click) 118 | 'click.smapi': function(e, item) { 119 | if (obj.isCollapsible()) { 120 | var $item = $(item), 121 | $sub = $item.parent().dataSM('sub'); 122 | if ($sub && $sub.dataSM('shown-before') && $sub.is(':visible')) { 123 | obj.itemActivate($item); 124 | obj.menuHide($sub); 125 | return false; 126 | } 127 | } 128 | } 129 | }); 130 | } 131 | 132 | // onresize detect when the navbar becomes collapsible and add it the "sm-collapsible" class 133 | var winW; 134 | function detectCollapsible(force) { 135 | var newW = obj.getViewportWidth(); 136 | if (newW != winW || force) { 137 | var $carets = $this.find('.caret'); 138 | if (obj.isCollapsible()) { 139 | $this.addClass('sm-collapsible'); 140 | // set "navbar-toggle" class to carets (so they look like a button) if the "data-sm-skip-collapsible-behavior" attribute is not set to the ul.navbar-nav 141 | if (!$this.is('[data-sm-skip-collapsible-behavior]')) { 142 | $carets.addClass('navbar-toggle sub-arrow'); 143 | } 144 | } else { 145 | $this.removeClass('sm-collapsible'); 146 | if (!$this.is('[data-sm-skip-collapsible-behavior]')) { 147 | $carets.removeClass('navbar-toggle sub-arrow'); 148 | } 149 | } 150 | winW = newW; 151 | } 152 | }; 153 | detectCollapsible(); 154 | $(window).bind('resize.smartmenus' + obj.rootId, detectCollapsible); 155 | } 156 | }); 157 | // keydown fix for Bootstrap 3.3.5+ conflict 158 | if ($navbars.length && !$.SmartMenus.Bootstrap.keydownFix) { 159 | // unhook BS keydown handler for all dropdowns 160 | $(document).off('keydown.bs.dropdown.data-api', '.dropdown-menu'); 161 | // restore BS keydown handler for dropdowns that are not inside SmartMenus navbars 162 | if ($.fn.dropdown && $.fn.dropdown.Constructor) { 163 | $(document).on('keydown.bs.dropdown.data-api', '.dropdown-menu:not([id^="sm-"])', $.fn.dropdown.Constructor.prototype.keydown); 164 | } 165 | $.SmartMenus.Bootstrap.keydownFix = true; 166 | } 167 | } 168 | }); 169 | 170 | // init ondomready 171 | $($.SmartMenus.Bootstrap.init); 172 | 173 | return $; 174 | })); -------------------------------------------------------------------------------- /public/Content/js/sequence-theme.modern-slide-in.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Theme Name: Modern Slide In 3 | * Version: 2.0.0 4 | * Theme URL: http://sequencejs.com/themes/modern-slide-in/ 5 | * 6 | * A minimalist theme for showcasing products 7 | * 8 | * This theme is powered by Sequence.js - The 9 | * responsive CSS animation framework for creating unique sliders, 10 | * presentations, banners, and other step-based applications. 11 | * 12 | * Author: Ian Lunn 13 | * Author URL: http://ianlunn.co.uk/ 14 | * 15 | * Theme License: http://sequencejs.com/licenses/#free-theme 16 | * Sequence.js Licenses: http://sequencejs.com/licenses/ 17 | * 18 | * Copyright © 2015 Ian Lunn Design Limited unless otherwise stated. 19 | */ 20 | jQuery(function($){ 21 | // Get the Sequence element 22 | var sequenceElement = document.getElementById("sequence"); 23 | 24 | // Place your Sequence options here to override defaults 25 | // See: http://sequencejs.com/documentation/#options 26 | var options = { 27 | animateCanvas: false, 28 | phaseThreshold: false, 29 | preloader: true, 30 | reverseWhenNavigatingBackwards: true 31 | } 32 | 33 | // Launch Sequence on the element, and with the options we specified above 34 | var mySequence = sequence(sequenceElement, options); 35 | }); 36 | -------------------------------------------------------------------------------- /public/Content/scss/base/_base.scss: -------------------------------------------------------------------------------- 1 | 2 | 3 | html,body{ 4 | 5 | } 6 | 7 | body{ 8 | background-color: #ffffff; 9 | font-family: $base-font; 10 | color:$base-color; 11 | font-size:$base-font-size; 12 | overflow-x: hidden; 13 | } 14 | .no-padding{ 15 | padding: 0; 16 | } -------------------------------------------------------------------------------- /public/Content/scss/base/_mixins.scss: -------------------------------------------------------------------------------- 1 | 2 | // border radius 3 | 4 | @mixin border-radius($radius){ 5 | -webkit-border-radius: $radius; 6 | -moz-border-radius: $radius; 7 | -ms--border-radius: $radius; 8 | border-radius: $radius; 9 | } 10 | 11 | // transition 12 | 13 | @mixin transition($args) { 14 | -webkit-transition: $args; 15 | -moz-transition: $args; 16 | -ms-transition: $args; 17 | -o-transition: $args; 18 | transition: $args; 19 | } 20 | 21 | // opacity 22 | 23 | @mixin opacity($opacity) { 24 | opacity: $opacity; 25 | $opacity-ie: $opacity * 100; 26 | filter: alpha(opacity=$opacity-ie); //IE8 27 | } 28 | 29 | // placeholder 30 | 31 | @mixin placeholder{ 32 | &::-webkit-input-placeholder {@content} 33 | &:-moz-placeholder {@content} 34 | &::-moz-placeholder {@content} 35 | &:-ms-input-placeholder {@content} 36 | } 37 | 38 | //====usages===== 39 | // @include placeholder { 40 | // font-style:italic; 41 | // color: white; 42 | // font-weight:100; 43 | // } 44 | 45 | // =====transform============== 46 | 47 | // generic transform 48 | @mixin transform($transforms) { 49 | -moz-transform: $transforms; 50 | -o-transform: $transforms; 51 | -ms-transform: $transforms; 52 | -webkit-transform: $transforms; 53 | transform: $transforms; 54 | } 55 | // rotate 56 | @mixin rotate ($deg) { 57 | @include transform(rotate(#{$deg}deg)); 58 | } 59 | 60 | // scale 61 | @mixin scale($scale) { 62 | @include transform(scale($scale)); 63 | } 64 | // translate 65 | @mixin translate ($x, $y) { 66 | @include transform(translate($x, $y)); 67 | } 68 | // skew 69 | @mixin skew ($x, $y) { 70 | @include transform(skew(#{$x}deg, #{$y}deg)); 71 | } 72 | //transform origin 73 | @mixin transform-origin ($origin) { 74 | moz-transform-origin: $origin; 75 | -o-transform-origin: $origin; 76 | -ms-transform-origin: $origin; 77 | -webkit-transform-origin: $origin; 78 | transform-origin: $origin; 79 | } 80 | 81 | // usages 82 | // .test { 83 | // @include skew(25,10); 84 | // @include transform-origin(top left); 85 | // @include rotate(60); 86 | // @include scale(2); 87 | // @include translate(5,5); 88 | // } 89 | 90 | // box-shadow 91 | 92 | @mixin box-shadow($top, $left, $blur, $color, $inset:"") { 93 | 94 | -webkit-box-shadow:$top $left $blur $color #{$inset}; 95 | -moz-box-shadow:$top $left $blur $color #{$inset}; 96 | box-shadow:$top $left $blur $color #{$inset}; 97 | } 98 | // usages 99 | // .test{ 100 | // @include box-shadow(inset, 0px, 1px, 1px, rgba(0, 0, 0, 0.5)); 101 | // } 102 | 103 | -------------------------------------------------------------------------------- /public/Content/scss/base/_variables.scss: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $base-color:#333; 5 | 6 | $base-font-size:16px; 7 | 8 | $base-font: 'Lato', sans-serif; 9 | 10 | $heading-font: 'Raleway', sans-serif; 11 | 12 | $font-bold:700; 13 | 14 | $theme-color:#ff6666; 15 | 16 | $secondary-color:#F7931D; 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /public/Content/scss/layouts/_footer.scss: -------------------------------------------------------------------------------- 1 | 2 | // FOOTER 3 | 4 | #aa-footer{ 5 | background-color: #222; 6 | display: inline; 7 | float: left; 8 | width: 100%; 9 | .aa-footer-top{ 10 | display: inline; 11 | float: left; 12 | padding: 50px 0; 13 | width: 100%; 14 | min-height: 100px; 15 | .aa-footer-top-area{ 16 | display: inline; 17 | float: left; 18 | width: 100%; 19 | .aa-footer-widget{ 20 | display: block; 21 | h3{ 22 | color: #fff; 23 | } 24 | .aa-footer-nav{ 25 | li{ 26 | a{ 27 | color: #888; 28 | @include transition(all 0.5s); 29 | &:hover, 30 | &:focus{ 31 | color: #fff; 32 | } 33 | } 34 | } 35 | } 36 | address{ 37 | p{ 38 | margin-bottom: 5px; 39 | color: #888; 40 | span{ 41 | margin-right: 5px; 42 | } 43 | } 44 | } 45 | .aa-footer-social{ 46 | a{ 47 | border: 1px solid #888; 48 | color: #888; 49 | display: inline-block; 50 | font-size: 18px; 51 | margin-right: 8px; 52 | padding: 2px 0; 53 | text-align: center; 54 | width: 35px; 55 | @include transition(all 0.5s); 56 | &:hover{ 57 | color: #fff; 58 | border-color: #fff; 59 | } 60 | } 61 | } 62 | } 63 | } 64 | } 65 | .aa-footer-bottom{ 66 | border-top: 1px solid #333; 67 | display: inline; 68 | float: left; 69 | padding: 15px 0; 70 | width: 100%; 71 | .aa-footer-bottom-area{ 72 | display: inline; 73 | float: left; 74 | width: 100%; 75 | &>p{ 76 | color: #888; 77 | display: inline-block; 78 | float: left; 79 | font-size: 14px; 80 | font-weight: bold; 81 | letter-spacing: 1px; 82 | margin-bottom: 0; 83 | a{ 84 | color: #888; 85 | @include transition(all 0.5s); 86 | &:hover, 87 | &:focus{ 88 | color: $theme-color; 89 | } 90 | } 91 | } 92 | .aa-footer-payment{ 93 | float: right; 94 | span{ 95 | color: #888; 96 | margin-left: 8px; 97 | &:hover{ 98 | color: #fff; 99 | } 100 | } 101 | } 102 | } 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /public/Content/scss/layouts/_header.scss: -------------------------------------------------------------------------------- 1 | 2 | // HEADER 3 | 4 | /*---- Cartbox transition ----*/ 5 | 6 | @-webkit-keyframes cartbox-transition { 7 | 33.33% {top: -13px;} 8 | 66.66% {top: -17px;} 9 | 100% {top: -15px;} 10 | } 11 | 12 | 13 | 14 | @keyframes cartbox-transition { 15 | 33.33% {top: -13px;} 16 | 66.66% {top: -17px;} 17 | 100% {top: -15px;} 18 | } 19 | 20 | #aa-header { 21 | display: inline; 22 | float: left; 23 | width: 100%; 24 | .aa-header-top{ 25 | border-bottom: 1px solid #E8E8E8; 26 | display: inline; 27 | float: left; 28 | width: 100%; 29 | .aa-header-top-area{ 30 | display: inline; 31 | float: left; 32 | width: 100%; 33 | } 34 | .aa-header-top-left{ 35 | float: left; 36 | .aa-language{ 37 | border-right: 1px solid #ccc; 38 | float: left; 39 | .btn{ 40 | font-size: 12px; 41 | img{ 42 | display: inline; 43 | height: 10px; 44 | margin-right: 5px; 45 | margin-top: -2px; 46 | width: 12px; 47 | } 48 | } 49 | .dropdown-menu{ 50 | border-radius: 0; 51 | min-width: 110px; 52 | a{ 53 | font-size: 12px; 54 | img{ 55 | height: 10px; 56 | margin-right: 5px; 57 | margin-top: -2px; 58 | width: 12px; 59 | } 60 | } 61 | &:after, &:before { 62 | bottom: 100%; 63 | left: 50%; 64 | border: solid transparent; 65 | content: " "; 66 | height: 0; 67 | width: 0; 68 | position: absolute; 69 | pointer-events: none; 70 | } 71 | 72 | 73 | &:after{ 74 | border-color: rgba(255, 255, 255, 0); 75 | border-bottom-color: #fff; 76 | border-width: 6px; 77 | margin-left: 0px; 78 | } 79 | &:before{ 80 | border-color: rgba(221, 221, 221, 0); 81 | border-bottom-color: #ddd; 82 | border-width: 8px; 83 | margin-left: -2px; 84 | } 85 | } 86 | } 87 | .aa-currency{ 88 | border-right: 1px solid #ccc; 89 | float: left; 90 | .btn{ 91 | font-size: 12px; 92 | i{ 93 | display: inline; 94 | font-size: 12px; 95 | margin-right: 3px; 96 | } 97 | } 98 | .dropdown-menu{ 99 | border-radius: 0; 100 | min-width: 110px; 101 | a{ 102 | font-size: 12px; 103 | i{ 104 | display: inline; 105 | font-size: 12px; 106 | margin-right: 3px; 107 | } 108 | } 109 | &:after, &:before { 110 | bottom: 100%; 111 | left: 43%; 112 | border: solid transparent; 113 | content: " "; 114 | height: 0; 115 | width: 0; 116 | position: absolute; 117 | pointer-events: none; 118 | } 119 | 120 | 121 | &:after{ 122 | border-color: rgba(255, 255, 255, 0); 123 | border-bottom-color: #fff; 124 | border-width: 6px; 125 | margin-left: 0px; 126 | } 127 | &:before{ 128 | border-color: rgba(221, 221, 221, 0); 129 | border-bottom-color: #ddd; 130 | border-width: 8px; 131 | margin-left: -2px; 132 | } 133 | } 134 | } 135 | .cellphone{ 136 | border-right: 1px solid #ddd; 137 | float: left; 138 | p{ 139 | font-size: 14px; 140 | margin-bottom: 0; 141 | padding: 5px 10px; 142 | 143 | span{ 144 | margin-right: 5px; 145 | } 146 | } 147 | } 148 | } 149 | .aa-header-top-right{ 150 | float: right; 151 | .aa-head-top-nav-right{ 152 | display: inline-block; 153 | text-align: right; 154 | li{ 155 | display: inline-block; 156 | text-align: right; 157 | a{ 158 | display: inline-block; 159 | color: $base-color; 160 | border-right: 1px solid #ddd; 161 | font-size: 14px; 162 | padding: 5px 8px; 163 | } 164 | } 165 | } 166 | } 167 | } 168 | .aa-header-bottom{ 169 | float: left; 170 | display: inline; 171 | width: 100%; 172 | padding: 20px 0; 173 | .aa-header-bottom-area{ 174 | float: left; 175 | display: inline; 176 | width: 100%; 177 | .aa-logo{ 178 | float: left; 179 | margin-top: 4px; 180 | a{ 181 | font-family:$heading-font; 182 | font-size: 28px; 183 | &>span{ 184 | color: $theme-color; 185 | display: inline-block; 186 | float: left; 187 | font-size: 50px; 188 | } 189 | p{ 190 | display: inline-block; 191 | float: left; 192 | font-weight: bold; 193 | margin-bottom: 0; 194 | margin-left: 5px; 195 | margin-top: -5px; 196 | span{ 197 | display: block; 198 | font-size: 12px; 199 | font-weight: normal; 200 | letter-spacing: 1.5px; 201 | text-transform: uppercase; 202 | } 203 | } 204 | strong{ 205 | color: $theme-color; 206 | } 207 | } 208 | } 209 | .aa-search-box{ 210 | float: right; 211 | margin-right: 5%; 212 | margin-top: 13px; 213 | position: relative; 214 | width: 500px; 215 | input[type="text"]{ 216 | border: 1px solid #ddd; 217 | color: #555; 218 | font-size: 14px; 219 | font-family:$heading-font; 220 | height: 40px; 221 | padding: 10px 55px 10px 10px; 222 | width: 100%; 223 | } 224 | button{ 225 | background-color: #ff6666; 226 | border: medium none; 227 | color: #fff; 228 | height: 100%; 229 | position: absolute; 230 | right: 0; 231 | top: 0; 232 | width: 50px; 233 | @include transition(all 0.5s); 234 | &:hover{ 235 | opacity: 0.8; 236 | } 237 | } 238 | } 239 | } 240 | .aa-cartbox{ 241 | float: right; 242 | text-align: center; 243 | position: relative; 244 | padding-bottom: 10px; 245 | 246 | .aa-cart-link{ 247 | color: #ff6666; 248 | font-size: 22px; 249 | position: relative; 250 | width: 120px; 251 | height: auto; 252 | display: block; 253 | .fa-shopping-basket{ 254 | z-index: 99; 255 | position: relative; 256 | } 257 | .aa-cart-title{ 258 | color: #555; 259 | display: block; 260 | font-size: 14px; 261 | } 262 | .aa-cart-notify{ 263 | background-color: #fff; 264 | border: 1px solid #ff6666; 265 | border-radius: 50%; 266 | color: #ff6666; 267 | font-size: 12px; 268 | font-weight: bold; 269 | padding: 2px 9px; 270 | position: absolute; 271 | right: 39%; 272 | top: -15px; 273 | z-index: 10; 274 | -webkit-animation-name: cartbox-transition; 275 | -webkit-animation-duration: 2s; 276 | -webkit-animation-timing-function: linear; 277 | -webkit-animation-iteration-count: infinite; 278 | animation-name: cartbox-transition; 279 | animation-duration: 2s; 280 | animation-timing-function: linear; 281 | animation-iteration-count: infinite; 282 | &:after, &:before { 283 | top: 100%; 284 | left: 50%; 285 | border: solid transparent; 286 | content: " "; 287 | height: 0; 288 | width: 0; 289 | position: absolute; 290 | pointer-events: none; 291 | } 292 | 293 | 294 | &:after{ 295 | border-color: rgba(255, 102, 102, 0); 296 | border-top-color: #ff6666; 297 | border-width: 5px; 298 | margin-left: -5px; 299 | } 300 | &:before{ 301 | border-color: rgba(0, 0, 0, 0); 302 | border-width: 6px; 303 | margin-left: -6px; 304 | } 305 | } 306 | } 307 | .aa-cartbox-summary{ 308 | background-color: #fff; 309 | border: 1px solid #E9E9E9; 310 | display: none; 311 | padding: 20px; 312 | position: absolute; 313 | right: 0; 314 | top: 100%; 315 | width: 300px; 316 | z-index: 9999; 317 | &:after, &:before { 318 | bottom: 100%; 319 | left: 81%; 320 | border: solid transparent; 321 | content: " "; 322 | height: 0; 323 | width: 0; 324 | position: absolute; 325 | pointer-events: none; 326 | } 327 | 328 | &:after { 329 | border-color: rgba(255, 255, 255, 0); 330 | border-bottom-color: #fff; 331 | border-width: 10px; 332 | margin-left: -10px; 333 | } 334 | &:before { 335 | border-color: rgba(233, 233, 233, 0); 336 | border-bottom-color: #e9e9e9; 337 | border-width: 11px; 338 | margin-left: -11px; 339 | } 340 | 341 | 342 | ul{ 343 | li{ 344 | border-bottom: 1px solid #e2e2e2; 345 | display: block; 346 | float: left; 347 | margin-bottom: 15px; 348 | padding-bottom: 15px; 349 | width: 100%; 350 | position: relative; 351 | &:last-child{ 352 | border: none; 353 | margin-bottom: 0px; 354 | } 355 | .aa-cartbox-img{ 356 | display: block; 357 | float: left; 358 | height: 95px; 359 | width: 80px; 360 | img{ 361 | width: 100%; 362 | height: 100%; 363 | } 364 | } 365 | .aa-cartbox-info{ 366 | display: block; 367 | float: left; 368 | margin-left: 10px; 369 | width: 55%; 370 | h4{ 371 | font-size: 14px; 372 | color: $base-color; 373 | margin-bottom: 20px; 374 | margin-top: 0; 375 | a{ 376 | color: $base-color; 377 | letter-spacing: 0.5px; 378 | } 379 | } 380 | p{ 381 | font-size: 16px; 382 | } 383 | } 384 | .aa-remove-product{ 385 | border: 1px solid transparent; 386 | border-radius: 50%; 387 | color: #c0c0c0; 388 | font-size: 12px; 389 | height: 20px; 390 | line-height: 17px; 391 | position: absolute; 392 | right: 0; 393 | top: 30%; 394 | width: 20px; 395 | @include transition(all 0.5s); 396 | &:hover, 397 | &:focus{ 398 | border-color: #ff6666; 399 | color: #333; 400 | } 401 | } 402 | .aa-cartbox-total-title{ 403 | float: left; 404 | font-weight: bold; 405 | font-size: 16px; 406 | font-family: $base-font; 407 | letter-spacing: 0.5px; 408 | 409 | } 410 | .aa-cartbox-total-price{ 411 | float: right; 412 | font-weight: bold; 413 | font-size: 16px; 414 | font-family: $base-font; 415 | letter-spacing: 0.5px; 416 | } 417 | } 418 | } 419 | } 420 | } 421 | } 422 | 423 | 424 | 425 | } 426 | -------------------------------------------------------------------------------- /public/Content/scss/layouts/_nav.scss: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #menu{ 5 | background-color: #ff6666; 6 | display: inline; 7 | float: left; 8 | width: 100%; 9 | .menu-area{ 10 | float: left; 11 | display: inline; 12 | width: 100%; 13 | .navbar-default{ 14 | background-color: transparent; 15 | border: medium none; 16 | border-radius: 0; 17 | margin-bottom: 0; 18 | min-height: auto; 19 | .navbar-nav { 20 | display: inline-block; 21 | float: left; 22 | margin: 0; 23 | text-align: center; 24 | width: 100%; 25 | li{ 26 | a{ 27 | color: #fff; 28 | font-size: 16px; 29 | padding: 10px 15px; 30 | @include transition(all 0.5s); 31 | // border: 1px solid transparent; 32 | &:hover{ 33 | // color: $theme-color; 34 | // background-color: #FFF; 35 | // border: 1px solid $theme-color; 36 | } 37 | } 38 | } 39 | .open{ 40 | a{ 41 | background-color: #fff; 42 | color: $theme-color; 43 | } 44 | } 45 | .dropdown-menu{ 46 | li{ 47 | a{ 48 | padding: 8px 15px; 49 | color: $theme-color; 50 | &:hover, &:focus{ 51 | color: #fff; 52 | background-color: $theme-color; 53 | } 54 | } 55 | } 56 | .dropdown-header { 57 | color: #555; 58 | display: block; 59 | font-size: 16px; 60 | padding: 3px 20px; 61 | text-transform: uppercase; 62 | 63 | } 64 | } 65 | } 66 | } 67 | } 68 | } -------------------------------------------------------------------------------- /public/Content/scss/modules/_buttons.scss: -------------------------------------------------------------------------------- 1 | .aa-primary-btn{ 2 | font-size: 16px; 3 | padding: 10px 30px; 4 | border: 1px solid #e9e9e9; 5 | margin-top: 10px; 6 | display: inline-block; 7 | @include transition(0.5s); 8 | 9 | &:hover, 10 | &:focus{ 11 | color: $theme-color; 12 | text-decoration: none; 13 | border-color: $theme-color; 14 | } 15 | span{ 16 | margin-right: 5px; 17 | } 18 | } 19 | .aa-secondary-btn{ 20 | background-color: #fff; 21 | color: $theme-color; 22 | font-size: 16px; 23 | padding: 10px 22px; 24 | // border: 1px solid #fff; 25 | margin-top: 10px; 26 | display: inline-block; 27 | @include border-radius(4px); 28 | @include transition(0.5s); 29 | 30 | &:hover, &:focus{ 31 | background-color: $theme-color; 32 | text-decoration: none; 33 | color: #fff; 34 | // border-radius: 0px; 35 | } 36 | } 37 | .aa-browse-btn{ 38 | background-color: $theme-color; 39 | display: inline-block; 40 | font-size: 16px; 41 | padding: 12px 18px; 42 | color: #fff; 43 | border: 1px solid $theme-color; 44 | @include transition(all 0.5s); 45 | span{ 46 | margin-left: 5px; 47 | } 48 | &:hover, 49 | &:focus{ 50 | background-color: #fff; 51 | color: $theme-color; 52 | 53 | } 54 | } 55 | .aa-add-to-cart-btn{ 56 | border: 1px solid #ccc; 57 | color: #555; 58 | display: inline-block; 59 | font-size: 14px; 60 | font-weight: bold; 61 | letter-spacing: 0.5px; 62 | margin-top: 5px; 63 | padding: 10px 15px; 64 | text-transform: uppercase; 65 | transition: all 0.5s ease 0s; 66 | span{ 67 | margin-right: 5px; 68 | } 69 | &:hover, 70 | &:focus{ 71 | color: $theme-color; 72 | border-color:$theme-color; 73 | } 74 | } 75 | .aa-filter-btn{ 76 | background-color: #ff6666; 77 | border: 1px solid #ff6666; 78 | color: #fff; 79 | font-size: 15px; 80 | height: 30px; 81 | width: 80px; 82 | } 83 | .aa-cart-view-btn{ 84 | float: right; 85 | background-color: $theme-color; 86 | border: none; 87 | color: #fff; 88 | font-size: 16px; 89 | font-weight: 700; 90 | letter-spacing: 2px; 91 | padding: 15px 30px; 92 | text-align: center; 93 | text-decoration: none; 94 | text-transform: uppercase; 95 | @include transition(all 0.5s); 96 | &:hover{ 97 | background-color: #000; 98 | color: #fff; 99 | } 100 | } -------------------------------------------------------------------------------- /public/Content/scss/modules/_typography.scss: -------------------------------------------------------------------------------- 1 | 2 | // TYPOGRAPHY 3 | 4 | ul{ 5 | padding: 0; 6 | margin: 0; 7 | list-style: none; 8 | } 9 | a{ 10 | text-decoration: none; 11 | color:$base-color; 12 | } 13 | a:hover, 14 | a:focus{ 15 | outline: none; 16 | text-decoration: none; 17 | } 18 | h1,h2,h3,h4,h5,h6{ 19 | font-family:$heading-font; 20 | } 21 | h2 { 22 | color: $theme-color; 23 | font-size: 30px; 24 | font-weight:$font-bold; 25 | line-height: 40px; 26 | margin: 0; 27 | padding-bottom: 10px; 28 | } 29 | img{ 30 | border:none; 31 | } 32 | -------------------------------------------------------------------------------- /public/Content/scss/spinner.scss: -------------------------------------------------------------------------------- 1 | .spinner.lds-ring { 2 | position: fixed; 3 | top: 50%; 4 | left: 50%; 5 | margin-left: -32px; 6 | margin-top: -32px; 7 | width: 64px; 8 | height: 64px; 9 | z-index: 10; 10 | border-radius: 5px; 11 | background-color: #000; 12 | 13 | div { 14 | box-sizing: border-box; 15 | display: block; 16 | position: absolute; 17 | width: 51px; 18 | height: 51px; 19 | margin: 6px; 20 | border: 6px solid #fff; 21 | border-radius: 50%; 22 | animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; 23 | border-color: #fff transparent transparent transparent; 24 | &:nth-child(1) { 25 | animation-delay: -0.45s; 26 | } 27 | &:nth-child(2) { 28 | animation-delay: -0.3s; 29 | } 30 | &:nth-child(3) { 31 | animation-delay: -0.15s; 32 | } 33 | } 34 | 35 | @keyframes lds-ring { 36 | 0% { 37 | transform: rotate(0deg); 38 | } 39 | 40 | 100% { 41 | transform: rotate(360deg); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /public/Content/scss/style.scss: -------------------------------------------------------------------------------- 1 | /* 2 | Template Name: Daily Shop 3 | Author : MarkUps.io 4 | Author URI: http://www.markups.io/ 5 | Version: 1.0 6 | 7 | */ 8 | 9 | 10 | /* BASE - Base tyles, Variables, Mixins, etc. */ 11 | 12 | 13 | @import 'base/_variables.scss'; 14 | @import 'base/_mixins.scss'; 15 | @import 'base/_base.scss'; 16 | 17 | /* MODULES - Individual site components */ 18 | 19 | @import 'modules/_typography.scss'; 20 | @import 'modules/_buttons.scss'; 21 | 22 | 23 | 24 | /* LAYOUTS - Page layout styles */ 25 | 26 | 27 | 28 | /*================== 29 | HEADER SECTION 30 | ====================*/ 31 | 32 | @import 'layouts/_header.scss'; 33 | 34 | /*================== 35 | NAVBAR SECTION 36 | ====================*/ 37 | 38 | @import 'layouts/_nav.scss'; 39 | 40 | /* ALL SECTION */ 41 | 42 | @import 'modules/_sections.scss'; 43 | 44 | /*================== 45 | FOOTER SECTION 46 | ====================*/ 47 | 48 | @import 'layouts/_footer.scss'; 49 | 50 | /*================== 51 | RESPONSIVE DESIGN 52 | ====================*/ 53 | 54 | @import 'modules/_responsive.scss'; 55 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ankitkanojia/dailyshop_react_redux/763fbcc288fdb017bb6403e83249e1677d36b146/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | 11 | 15 | 16 | 25 | Daily Shop 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 |
43 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 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 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | animation: App-logo-spin infinite 20s linear; 7 | height: 40vmin; 8 | pointer-events: none; 9 | } 10 | 11 | .App-header { 12 | background-color: #282c34; 13 | min-height: 100vh; 14 | display: flex; 15 | flex-direction: column; 16 | align-items: center; 17 | justify-content: center; 18 | font-size: calc(10px + 2vmin); 19 | color: white; 20 | } 21 | 22 | .App-link { 23 | color: #61dafb; 24 | } 25 | 26 | @keyframes App-logo-spin { 27 | from { 28 | transform: rotate(0deg); 29 | } 30 | to { 31 | transform: rotate(360deg); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import './App.css'; 3 | import Loader from './Containers/Loader'; 4 | import Header from './Containers/Header'; 5 | import Menu from './Containers/Menu'; 6 | import Footer from './Containers/Footer'; 7 | import Main from './Containers/Main'; 8 | 9 | class App extends Component { 10 | render() { 11 | return ( 12 | 13 | 14 |
15 |
16 | 17 |
18 |
19 |
20 |
84 |
85 | 86 | 87 | ) 88 | } 89 | } 90 | 91 | export default Contact; -------------------------------------------------------------------------------- /src/Pages/Page404.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { Link } from 'react-router-dom'; 3 | 4 | class Page404 extends Component { 5 | render() { 6 | return ( 7 | 8 |
9 |
10 |
11 |
12 |
13 |

404

14 | Sorry! Page Not Found 15 |

Sorry this content has been moved Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum, amet perferendis, nemo facere excepturi quis.

16 | Go to Homepage 17 |
18 |
19 |
20 |
21 |
22 |
23 | ) 24 | } 25 | } 26 | 27 | export default Page404; -------------------------------------------------------------------------------- /src/Pages/Registration.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | 3 | class Register extends Component { 4 | render() { 5 | return ( 6 | 7 |
8 | fashion img 9 |
10 |
11 |
12 |

Account Page

13 | 17 |
18 |
19 |
20 |
21 | 22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | 41 |
42 |
43 |
44 |

Register

45 | 52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | ) 62 | } 63 | } 64 | 65 | export default Register; -------------------------------------------------------------------------------- /src/Pages/Wishlist.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import PropTypes from 'prop-types'; 3 | import { connect } from 'react-redux'; 4 | import { addToCart, removeFromWishList } from './../Redux/Actions/CartProducts'; 5 | 6 | class Wishlist extends Component { 7 | 8 | static propTypes = { 9 | cartProducts: PropTypes.array.isRequired, 10 | wishListProducts: PropTypes.array.isRequired, 11 | addToCart: PropTypes.func.isRequired, 12 | removeFromWishList: PropTypes.func.isRequired 13 | }; 14 | 15 | handleAddToWishList(product) { 16 | 17 | this.props.removeFromWishList(product); 18 | 19 | let productAlreadyInCart = false; 20 | this.props.cartProducts.forEach(cp => { 21 | if (cp.id === product.id) { 22 | productAlreadyInCart = true; 23 | } 24 | }); 25 | 26 | if (!productAlreadyInCart) { 27 | this.props.addToCart(product); 28 | } 29 | } 30 | 31 | render() { 32 | const wishListCart = this.props.wishListProducts.map(p => { 33 | return ( 34 | 35 | this.props.removeFromWishList(p)} className="remove" href="javascript:void(0)"> 36 | img 37 | {p.title} 38 | {p.currency}{p.discountedprice} 39 | In Stock 40 | this.handleAddToWishList(p)} href="javascript:void(0)" className="aa-add-to-cart-btn">Add To Cart 41 | 42 | ) 43 | }); 44 | 45 | return ( 46 |
47 | fashion img 48 |
49 |
50 |
51 |

Wishlist Page

52 |
    53 |
  1. Home
  2. 54 |
  3. Wishlist
  4. 55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | {wishListCart} 81 | {!wishListCart.length && ( 82 | 83 | 84 | 85 | )} 86 | 87 |
  ProductPriceStock Status 
No Product(s) added in wishlist
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
) 97 | } 98 | } 99 | 100 | const mapStateToProps = state => ({ 101 | wishListProducts: state.cart.wishListProducts, 102 | cartProducts: state.cart.cartProducts, 103 | }); 104 | 105 | export default connect(mapStateToProps, { addToCart, removeFromWishList })(Wishlist); -------------------------------------------------------------------------------- /src/Redux/Actions/CartProducts.js: -------------------------------------------------------------------------------- 1 | import { ADD_PRODUCT , REMOVE_PRODUCT, ADD_WISHLIST, REMOVE_WISHLIST, UPDATE_PRODUCTCOUNT } from './../ActionTypes'; 2 | 3 | export function addToCart(Product) { 4 | return dispatch => { 5 | return dispatch({ 6 | type: ADD_PRODUCT, 7 | payload: Product 8 | }); 9 | } 10 | }; 11 | 12 | export function removeFromCart(Product) { 13 | return dispatch => { 14 | return dispatch({ 15 | type: REMOVE_PRODUCT, 16 | payload: Product 17 | }); 18 | } 19 | }; 20 | 21 | export function addToWishList(Product) { 22 | return dispatch => { 23 | return dispatch({ 24 | type: ADD_WISHLIST, 25 | payload: Product 26 | }); 27 | } 28 | }; 29 | 30 | export function removeFromWishList(Product) { 31 | return dispatch => { 32 | return dispatch({ 33 | type: REMOVE_WISHLIST, 34 | payload: Product 35 | }); 36 | } 37 | }; 38 | 39 | export function updateProductCount(Product) { 40 | return dispatch => { 41 | return dispatch({ 42 | type: UPDATE_PRODUCTCOUNT, 43 | payload: Product 44 | }); 45 | } 46 | }; -------------------------------------------------------------------------------- /src/Redux/Actions/Filter.js: -------------------------------------------------------------------------------- 1 | 2 | import { UPDATE_SORT } from '../ActionTypes'; 3 | 4 | export function updateSort(sortOption) { 5 | return dispatch => { 6 | return dispatch({ 7 | type: UPDATE_SORT, 8 | payload: sortOption 9 | }); 10 | } 11 | }; -------------------------------------------------------------------------------- /src/Redux/Actions/Product.js: -------------------------------------------------------------------------------- 1 | 2 | import { FETCH_PRODUCTS_CATEGORY } from '../ActionTypes'; 3 | import { ProductCatalog } from './../../Constants/Common'; 4 | 5 | const compare = { 6 | Price: (a, b) => { 7 | if (a.discountedprice < b.discountedprice) return -1; 8 | if (a.discountedprice > b.discountedprice) return 1; 9 | return 0; 10 | }, 11 | Date: (a, b) => { 12 | if (a.createdDate > b.createdDate) return -1; 13 | if (a.createdDate < b.createdDate) return 1; 14 | return 0; 15 | }, 16 | Name: (a, b) => { 17 | if (a.title.toLowerCase() > b.title.toLowerCase()) return -1; 18 | if (a.title.toLowerCase() < b.title.toLowerCase()) return 1; 19 | return 0; 20 | } 21 | }; 22 | 23 | export const reducerProducts = (categoryid , sortBy , lowerPrice, upperPrice) => { 24 | let productList = ProductCatalog.filter(m => m.categoryid === categoryid); 25 | 26 | if (!!sortBy) { 27 | productList = productList.sort(compare[sortBy]); 28 | } 29 | 30 | if (!!lowerPrice && !!upperPrice) { 31 | productList = productList.filter(m => m.discountedprice >= lowerPrice && m.discountedprice <= upperPrice); 32 | } 33 | 34 | return dispatch => { 35 | return dispatch({ 36 | type: FETCH_PRODUCTS_CATEGORY, 37 | payload: productList 38 | }); 39 | } 40 | }; -------------------------------------------------------------------------------- /src/Redux/Actions/StaticItems.js: -------------------------------------------------------------------------------- 1 | import { FETCH_MENU, FETCH_PRODUCTS, FETCH_STATICBLOGS, FETCH_STATICTESTIMONIALS, FETCH_STATICSLIDER } from './../ActionTypes'; 2 | import { BlogDetails, Testimonials, SliderDetails, Menus, ProductCatalog } from './../../Constants/Common'; 3 | 4 | export const fetchMenu = () => dispatch => { 5 | return dispatch({ 6 | type: FETCH_MENU, 7 | payload: Menus 8 | }); 9 | }; 10 | 11 | export const fetchProducts = () => dispatch => { 12 | return dispatch({ 13 | type: FETCH_PRODUCTS, 14 | payload: ProductCatalog 15 | }); 16 | }; 17 | 18 | export const fetchBlogs = () => dispatch => { 19 | return dispatch({ 20 | type: FETCH_STATICBLOGS, 21 | payload: BlogDetails 22 | }); 23 | }; 24 | 25 | export const fetchTestimonials = () => dispatch => { 26 | return dispatch({ 27 | type: FETCH_STATICTESTIMONIALS, 28 | payload: Testimonials 29 | }); 30 | }; 31 | 32 | export const fetchSliderDetails = () => dispatch => { 33 | return dispatch({ 34 | type: FETCH_STATICSLIDER, 35 | payload: SliderDetails 36 | }); 37 | }; 38 | -------------------------------------------------------------------------------- /src/Redux/Reducers/CartProducts.js: -------------------------------------------------------------------------------- 1 | import { ADD_PRODUCT, REMOVE_PRODUCT, ADD_WISHLIST, REMOVE_WISHLIST, UPDATE_PRODUCTCOUNT } from '../ActionTypes'; 2 | 3 | const initialState = { 4 | cartProducts: [], 5 | wishListProducts: [] 6 | } 7 | 8 | const reducerCart = (state = initialState, action) => { 9 | switch (action.type) { 10 | case ADD_PRODUCT: 11 | return { 12 | ...state, 13 | cartProducts: state.cartProducts.concat(action.payload)// [...state.cartProducts, action.payload] 14 | }; 15 | case REMOVE_PRODUCT: 16 | return { 17 | ...state, 18 | cartProducts: state.cartProducts.filter(item => item !== action.payload) 19 | }; 20 | case UPDATE_PRODUCTCOUNT: 21 | return { 22 | ...state, 23 | cartProducts: state.cartProducts.map( 24 | (content, i) => content.id === action.payload.id ? {...content, count: action.payload.count} 25 | : content) 26 | }; 27 | case ADD_WISHLIST: 28 | return { 29 | ...state, 30 | wishListProducts: state.wishListProducts.concat(action.payload)// [...state.cartProducts, action.payload] 31 | }; 32 | case REMOVE_WISHLIST: 33 | return { 34 | ...state, 35 | wishListProducts: state.wishListProducts.filter(item => item !== action.payload) 36 | }; 37 | default: 38 | return state; 39 | } 40 | } 41 | 42 | export default reducerCart; 43 | -------------------------------------------------------------------------------- /src/Redux/Reducers/Filter.js: -------------------------------------------------------------------------------- 1 | 2 | import { UPDATE_SORT } from './../ActionTypes'; 3 | 4 | const initialState = { 5 | sortOption: "Default" 6 | } 7 | 8 | const reducerSort = (state = initialState, action) => { 9 | switch (action.type) { 10 | case UPDATE_SORT: 11 | return { 12 | ...state, 13 | sortOption: action.payload 14 | }; 15 | default: 16 | return state; 17 | } 18 | } 19 | 20 | export default reducerSort; -------------------------------------------------------------------------------- /src/Redux/Reducers/Product.js: -------------------------------------------------------------------------------- 1 | 2 | import { FETCH_PRODUCTS_CATEGORY } from './../ActionTypes'; 3 | 4 | const initialState = { 5 | products: [], 6 | } 7 | 8 | const reducerProducts = (state = initialState, action) => { 9 | switch (action.type) { 10 | case FETCH_PRODUCTS_CATEGORY: 11 | return { 12 | ...state, 13 | products: action.payload 14 | }; 15 | default: 16 | return state; 17 | } 18 | } 19 | 20 | export default reducerProducts; -------------------------------------------------------------------------------- /src/Redux/Reducers/StaticItems.js: -------------------------------------------------------------------------------- 1 | import { FETCH_STATICBLOGS, FETCH_STATICTESTIMONIALS, FETCH_STATICSLIDER, FETCH_PRODUCTS, FETCH_MENU , UPDATE_PRODUCTWISHLISTFLAG } from '../ActionTypes'; 2 | 3 | const initialState = { 4 | blogs: [], 5 | testimonials: [], 6 | sliderdetails: [], 7 | products: [], 8 | menu: [] 9 | } 10 | 11 | const reducerStaticItems = (state = initialState, action) => { 12 | switch (action.type) { 13 | case FETCH_MENU: 14 | return { 15 | ...state, 16 | menu: action.payload 17 | }; 18 | case FETCH_PRODUCTS: 19 | return { 20 | ...state, 21 | products: action.payload 22 | }; 23 | case UPDATE_PRODUCTWISHLISTFLAG: 24 | return { 25 | ...state, 26 | products: state.products.map( 27 | (content, i) => content.id === action.payload.id ? {...content, isWishList : action.payload.isWishList} 28 | : content) 29 | }; 30 | case FETCH_STATICBLOGS: 31 | return { 32 | ...state, 33 | blogs: action.payload 34 | }; 35 | case FETCH_STATICTESTIMONIALS: 36 | return { 37 | ...state, 38 | testimonials: action.payload 39 | }; 40 | case FETCH_STATICSLIDER: 41 | return { 42 | ...state, 43 | sliderdetails: action.payload 44 | }; 45 | default: 46 | return state; 47 | } 48 | } 49 | 50 | export default reducerStaticItems; -------------------------------------------------------------------------------- /src/containers/main.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { Switch, Route } from 'react-router-dom'; 3 | import Home from '../Pages/Home'; 4 | import Wishlist from '../Pages/Wishlist'; 5 | import Checkout from '../Pages/Checkout'; 6 | import ProductDetails from '../Pages/ProductDetails'; 7 | import Products from '../Pages/Products'; 8 | import Blog from '../Pages/Blog'; 9 | import BlogDetail from '../Pages/BlogDetail'; 10 | import Registration from '../Pages/Registration'; 11 | import Page404 from '../Pages/Page404'; 12 | import Contact from '../Pages/Contact'; 13 | 14 | const Main = () => ( 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | ) 28 | 29 | export default Main; 30 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", 5 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", 6 | sans-serif; 7 | -webkit-font-smoothing: antialiased; 8 | -moz-osx-font-smoothing: grayscale; 9 | } 10 | 11 | code { 12 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", 13 | monospace; 14 | } 15 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import './index.css'; 4 | import App from './App'; 5 | import { Provider } from 'react-redux'; 6 | import {createStore , applyMiddleware} from 'redux'; 7 | import thunk from "redux-thunk"; 8 | import * as serviceWorker from './serviceWorker'; 9 | import { BrowserRouter } from 'react-router-dom'; 10 | import RootReducer from './../src/Redux/RootReducer'; 11 | 12 | const store = createStore( 13 | RootReducer, 14 | applyMiddleware(thunk) 15 | ); 16 | 17 | ReactDOM.render( 18 | 19 | 20 | 21 | 22 | , document.getElementById('root')); 23 | 24 | // If you want your app to work offline and load faster, you can change 25 | // unregister() to register() below. Note this comes with some pitfalls. 26 | // Learn more about service workers: http://bit.ly/CRA-PWA 27 | serviceWorker.unregister(); 28 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/redux/ActionTypes.js: -------------------------------------------------------------------------------- 1 | export const FETCH_MENU = 'FETCH_MENU'; 2 | export const FETCH_PRODUCTS = 'FETCH_PRODUCTS'; 3 | export const FETCH_STATICBLOGS = 'FETCH_STATICBLOGS'; 4 | export const FETCH_STATICTESTIMONIALS = 'FETCH_STATICTESTIMONIALS'; 5 | export const FETCH_STATICSLIDER = 'FETCH_STATICSLIDER'; 6 | export const ADD_PRODUCT = 'ADD_PRODUCT'; 7 | export const REMOVE_PRODUCT = 'REMOVE_PRODUCT'; 8 | export const ADD_WISHLIST = 'ADD_WISHLIST'; 9 | export const REMOVE_WISHLIST = 'REMOVE_WISHLIST'; 10 | export const UPDATE_PRODUCTCOUNT = 'UPDATE_PRODUCTCOUNT'; 11 | export const UPDATE_PRODUCTWISHLISTFLAG = 'UPDATE_PRODUCTWISHLISTFLAG'; 12 | export const FETCH_PRODUCTS_CATEGORY = 'FETCH_PRODUCTS_Category'; 13 | export const UPDATE_SORT = 'UPDATE_SORT'; -------------------------------------------------------------------------------- /src/redux/RootReducer.js: -------------------------------------------------------------------------------- 1 | import { combineReducers } from 'redux'; 2 | import reducerStaticItems from './Reducers/StaticItems'; 3 | import reducerCart from './Reducers/CartProducts'; 4 | import reducerProducts from './Reducers/Product'; 5 | import reducerSort from './Reducers/Filter'; 6 | 7 | export default combineReducers({ 8 | staticitems: reducerStaticItems, 9 | cart: reducerCart, 10 | productscontainer : reducerProducts, 11 | filter : reducerSort 12 | }); 13 | -------------------------------------------------------------------------------- /src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read https://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === 'localhost' || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === '[::1]' || 17 | // 127.0.0.1/8 is considered localhost for IPv4. 18 | window.location.hostname.match( 19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 20 | ) 21 | ); 22 | 23 | export function register(config) { 24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 25 | // The URL constructor is available in all browsers that support SW. 26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); 27 | if (publicUrl.origin !== window.location.origin) { 28 | // Our service worker won't work if PUBLIC_URL is on a different origin 29 | // from what our page is served on. This might happen if a CDN is used to 30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 31 | return; 32 | } 33 | 34 | window.addEventListener('load', () => { 35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 36 | 37 | if (isLocalhost) { 38 | // This is running on localhost. Let's check if a service worker still exists or not. 39 | checkValidServiceWorker(swUrl, config); 40 | 41 | // Add some additional logging to localhost, pointing developers to the 42 | // service worker/PWA documentation. 43 | navigator.serviceWorker.ready.then(() => { 44 | console.log( 45 | 'This web app is being served cache-first by a service ' + 46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA' 47 | ); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl, config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === 'installed') { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log( 73 | 'New content is available and will be used when all ' + 74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' 75 | ); 76 | 77 | // Execute callback 78 | if (config && config.onUpdate) { 79 | config.onUpdate(registration); 80 | } 81 | } else { 82 | // At this point, everything has been precached. 83 | // It's the perfect time to display a 84 | // "Content is cached for offline use." message. 85 | console.log('Content is cached for offline use.'); 86 | 87 | // Execute callback 88 | if (config && config.onSuccess) { 89 | config.onSuccess(registration); 90 | } 91 | } 92 | } 93 | }; 94 | }; 95 | }) 96 | .catch(error => { 97 | console.error('Error during service worker registration:', error); 98 | }); 99 | } 100 | 101 | function checkValidServiceWorker(swUrl, config) { 102 | // Check if the service worker can be found. If it can't reload the page. 103 | fetch(swUrl) 104 | .then(response => { 105 | // Ensure service worker exists, and that we really are getting a JS file. 106 | const contentType = response.headers.get('content-type'); 107 | if ( 108 | response.status === 404 || 109 | (contentType != null && contentType.indexOf('javascript') === -1) 110 | ) { 111 | // No service worker found. Probably a different app. Reload the page. 112 | navigator.serviceWorker.ready.then(registration => { 113 | registration.unregister().then(() => { 114 | window.location.reload(); 115 | }); 116 | }); 117 | } else { 118 | // Service worker found. Proceed as normal. 119 | registerValidSW(swUrl, config); 120 | } 121 | }) 122 | .catch(() => { 123 | console.log( 124 | 'No internet connection found. App is running in offline mode.' 125 | ); 126 | }); 127 | } 128 | 129 | export function unregister() { 130 | if ('serviceWorker' in navigator) { 131 | navigator.serviceWorker.ready.then(registration => { 132 | registration.unregister(); 133 | }); 134 | } 135 | } 136 | --------------------------------------------------------------------------------