├── public ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── manifest.json └── index.html ├── src ├── assets │ └── images │ │ ├── img1.jpg │ │ ├── img2.jpg │ │ ├── img3.jpg │ │ ├── img4.jpg │ │ ├── img5.jpg │ │ ├── img6.jpg │ │ ├── img7.jpg │ │ ├── img8.jpg │ │ ├── img9.jpg │ │ ├── img10.jpg │ │ ├── img11.jpg │ │ ├── img12.jpg │ │ ├── img15.jpg │ │ ├── img16.jpg │ │ ├── img17.jpg │ │ ├── img18.jpg │ │ ├── img19.jpg │ │ ├── img20.jpg │ │ ├── img21.jpg │ │ ├── img22.jpg │ │ ├── img23.jpg │ │ ├── img24.jpg │ │ ├── img25.jpg │ │ ├── img26.jpg │ │ ├── ad-img1.png │ │ ├── ad-img2.png │ │ ├── payment.png │ │ ├── aboutBanner.jpg │ │ ├── banner-img1.jpg │ │ ├── banner-img2.jpg │ │ ├── banner-img3.jpg │ │ ├── img-footer1.jpg │ │ ├── img-footer2.jpg │ │ └── img-footer3.jpg ├── pages │ ├── home.js │ └── shop.js ├── setupTests.js ├── App.test.js ├── reportWebVitals.js ├── index.js ├── App.js ├── logo.svg ├── components │ ├── home │ │ └── hero.js │ └── common │ │ └── header.js └── App.css ├── package.json └── README.md /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/assets/images/img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img1.jpg -------------------------------------------------------------------------------- /src/assets/images/img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img2.jpg -------------------------------------------------------------------------------- /src/assets/images/img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img3.jpg -------------------------------------------------------------------------------- /src/assets/images/img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img4.jpg -------------------------------------------------------------------------------- /src/assets/images/img5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img5.jpg -------------------------------------------------------------------------------- /src/assets/images/img6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img6.jpg -------------------------------------------------------------------------------- /src/assets/images/img7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img7.jpg -------------------------------------------------------------------------------- /src/assets/images/img8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img8.jpg -------------------------------------------------------------------------------- /src/assets/images/img9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img9.jpg -------------------------------------------------------------------------------- /src/assets/images/img10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img10.jpg -------------------------------------------------------------------------------- /src/assets/images/img11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img11.jpg -------------------------------------------------------------------------------- /src/assets/images/img12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img12.jpg -------------------------------------------------------------------------------- /src/assets/images/img15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img15.jpg -------------------------------------------------------------------------------- /src/assets/images/img16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img16.jpg -------------------------------------------------------------------------------- /src/assets/images/img17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img17.jpg -------------------------------------------------------------------------------- /src/assets/images/img18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img18.jpg -------------------------------------------------------------------------------- /src/assets/images/img19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img19.jpg -------------------------------------------------------------------------------- /src/assets/images/img20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img20.jpg -------------------------------------------------------------------------------- /src/assets/images/img21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img21.jpg -------------------------------------------------------------------------------- /src/assets/images/img22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img22.jpg -------------------------------------------------------------------------------- /src/assets/images/img23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img23.jpg -------------------------------------------------------------------------------- /src/assets/images/img24.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img24.jpg -------------------------------------------------------------------------------- /src/assets/images/img25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img25.jpg -------------------------------------------------------------------------------- /src/assets/images/img26.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img26.jpg -------------------------------------------------------------------------------- /src/assets/images/ad-img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/ad-img1.png -------------------------------------------------------------------------------- /src/assets/images/ad-img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/ad-img2.png -------------------------------------------------------------------------------- /src/assets/images/payment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/payment.png -------------------------------------------------------------------------------- /src/assets/images/aboutBanner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/aboutBanner.jpg -------------------------------------------------------------------------------- /src/assets/images/banner-img1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/banner-img1.jpg -------------------------------------------------------------------------------- /src/assets/images/banner-img2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/banner-img2.jpg -------------------------------------------------------------------------------- /src/assets/images/banner-img3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/banner-img3.jpg -------------------------------------------------------------------------------- /src/assets/images/img-footer1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img-footer1.jpg -------------------------------------------------------------------------------- /src/assets/images/img-footer2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img-footer2.jpg -------------------------------------------------------------------------------- /src/assets/images/img-footer3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Doston1002/react-and/HEAD/src/assets/images/img-footer3.jpg -------------------------------------------------------------------------------- /src/pages/home.js: -------------------------------------------------------------------------------- 1 | import Hero from '../components/home/hero'; 2 | 3 | 4 | 5 | function AppHome() { 6 | return ( 7 |
8 | 9 |
10 | ); 11 | } 12 | 13 | export default AppHome; -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom'; 6 | -------------------------------------------------------------------------------- /src/App.test.js: -------------------------------------------------------------------------------- 1 | import { render, screen } from '@testing-library/react'; 2 | import App from './App'; 3 | 4 | test('renders learn react link', () => { 5 | render(); 6 | const linkElement = screen.getByText(/learn react/i); 7 | expect(linkElement).toBeInTheDocument(); 8 | }); 9 | -------------------------------------------------------------------------------- /src/reportWebVitals.js: -------------------------------------------------------------------------------- 1 | const reportWebVitals = onPerfEntry => { 2 | if (onPerfEntry && onPerfEntry instanceof Function) { 3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { 4 | getCLS(onPerfEntry); 5 | getFID(onPerfEntry); 6 | getFCP(onPerfEntry); 7 | getLCP(onPerfEntry); 8 | getTTFB(onPerfEntry); 9 | }); 10 | } 11 | }; 12 | 13 | export default reportWebVitals; 14 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | 4 | import App from './App'; 5 | import reportWebVitals from './reportWebVitals'; 6 | 7 | const root = ReactDOM.createRoot(document.getElementById('root')); 8 | root.render( 9 | 10 | 11 | 12 | ); 13 | 14 | // If you want to start measuring performance in your app, pass a function 15 | // to log results (for example: reportWebVitals(console.log)) 16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals 17 | reportWebVitals(); 18 | -------------------------------------------------------------------------------- /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 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import 'antd/dist/antd.min.css'; 2 | import './App.css'; 3 | import {Route, Routes, BrowserRouter as Router} from 'react-router-dom'; 4 | 5 | import AppHeader from './components/common/header'; 6 | 7 | import AppHome from './pages/home'; 8 | 9 | 10 | import { Layout } from 'antd'; 11 | const { Header, Content, Footer } = Layout; 12 | 13 | function App() { 14 | return ( 15 | 16 | 17 |
18 | 19 |
20 | 21 | 22 | } /> 23 | 24 | 25 | 26 |
27 |
28 |
29 |
30 | ); 31 | } 32 | 33 | export default App; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grocery", 3 | "version": "0.1.0", 4 | "homepage": "https://bibekshakya.com/demo/react/antdesign/grocery", 5 | "private": true, 6 | "dependencies": { 7 | "@testing-library/jest-dom": "^5.16.4", 8 | "@testing-library/react": "^13.3.0", 9 | "@testing-library/user-event": "^13.5.0", 10 | "antd": "^4.21.3", 11 | "react": "^18.2.0", 12 | "react-dom": "^18.2.0", 13 | "react-router-dom": "^6.3.0", 14 | "react-scripts": "5.0.1", 15 | "web-vitals": "^2.1.4" 16 | }, 17 | "scripts": { 18 | "start": "react-scripts start", 19 | "build": "react-scripts build", 20 | "test": "react-scripts test", 21 | "eject": "react-scripts eject" 22 | }, 23 | "eslintConfig": { 24 | "extends": [ 25 | "react-app", 26 | "react-app/jest" 27 | ] 28 | }, 29 | "browserslist": { 30 | "production": [ 31 | ">0.2%", 32 | "not dead", 33 | "not op_mini all" 34 | ], 35 | "development": [ 36 | "last 1 chrome version", 37 | "last 1 firefox version", 38 | "last 1 safari version" 39 | ] 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 15 | 16 | 25 | Grocery 26 | 27 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 |
39 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/components/home/hero.js: -------------------------------------------------------------------------------- 1 | import React, {useRef} from 'react'; 2 | import { Button, Col, Row } from 'antd'; 3 | import { Carousel } from 'antd'; 4 | 5 | import image1 from '../../assets/images/banner-img1.jpg'; 6 | import image2 from '../../assets/images/banner-img2.jpg'; 7 | import image3 from '../../assets/images/banner-img3.jpg'; 8 | 9 | function Hero() { 10 | const ref = useRef() 11 | return ( 12 |
13 | 14 | {/* carousel */} 15 | 16 | 17 |
18 | banner 1 19 |
20 |
21 | banner 2 22 |
23 |
24 | banner 3 25 |
26 |
27 | 28 | 29 |
30 | 33 | 34 | 35 |
36 | {/* hero blocks */} 37 | 38 |
39 |
40 |
41 | 42 |
43 |
44 |

Free Shipping & Return

45 |

Free shipping on orders over £20

46 |
47 |
48 |
49 |
50 | 51 |
52 |
53 |

Money Back Guarantee

54 |

100% money back guarantee

55 |
56 |
57 |
58 |
59 | 60 |
61 |
62 |

Online Support 24/7

63 |

Excepteur sint occaecat cupidatat

64 |
65 |
66 |
67 | 68 |
69 |
70 | ); 71 | } 72 | 73 | export default Hero; -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started with Create React App 2 | 3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 4 | 5 | ## Available Scripts 6 | 7 | In the project directory, you can run: 8 | 9 | ### `npm start` 10 | 11 | Runs the app in the development mode.\ 12 | Open [http://localhost:3000](http://localhost:3000) to view it in your browser. 13 | 14 | The page will reload when you make changes.\ 15 | You may also see any lint errors in the console. 16 | 17 | ### `npm test` 18 | 19 | Launches the test runner in the interactive watch mode.\ 20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 21 | 22 | ### `npm run build` 23 | 24 | Builds the app for production to the `build` folder.\ 25 | It correctly bundles React in production mode and optimizes the build for the best performance. 26 | 27 | The build is minified and the filenames include the hashes.\ 28 | Your app is ready to be deployed! 29 | 30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 31 | 32 | ### `npm run eject` 33 | 34 | **Note: this is a one-way operation. Once you `eject`, you can't go back!** 35 | 36 | 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. 37 | 38 | 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. 39 | 40 | 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. 41 | 42 | ## Learn More 43 | 44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 45 | 46 | To learn React, check out the [React documentation](https://reactjs.org/). 47 | 48 | ### Code Splitting 49 | 50 | This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) 51 | 52 | ### Analyzing the Bundle Size 53 | 54 | This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) 55 | 56 | ### Making a Progressive Web App 57 | 58 | This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) 59 | 60 | ### Advanced Configuration 61 | 62 | This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) 63 | 64 | ### Deployment 65 | 66 | This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) 67 | 68 | ### `npm run build` fails to minify 69 | 70 | This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) 71 | -------------------------------------------------------------------------------- /src/pages/shop.js: -------------------------------------------------------------------------------- 1 | import { Col, Row, Button, Menu, Dropdown } from 'antd'; 2 | 3 | const products = [ 4 | { 5 | key: '1', 6 | image: require('../assets/images/img1.jpg'), 7 | title: 'Fairy Clean & Fresh Washing Up Liquid Pomegranate & Honeysuckle 520 ml', 8 | price: '£2.00' 9 | }, 10 | { 11 | key: '2', 12 | image: require('../assets/images/img2.jpg'), 13 | title: 'Colgate Triple Action Toothpaste 100ml', 14 | price: '£1.50' 15 | }, 16 | { 17 | key: '3', 18 | image: require('../assets/images/img3.jpg'), 19 | title: 'Breeze Toilet Tissue Soft White 24 Roll', 20 | price: '£5.70' 21 | }, 22 | { 23 | key: '4', 24 | image: require('../assets/images/img4.jpg'), 25 | title: 'Comfort intense Fresh Sky Fabric Conditioner Liquid 60 Wash 900 ML', 26 | price: '£4.50' 27 | }, 28 | { 29 | key: '5', 30 | image: require('../assets/images/img5.jpg'), 31 | title: 'Glens Vodka 70cl Extra smooth', 32 | saleprice: '£20.00', 33 | price: '£15.50' 34 | }, 35 | { 36 | key: '6', 37 | image: require('../assets/images/img6.jpg'), 38 | title: 'Pot Noodle Chicken & Mushroom Standard 90g', 39 | saleprice: '£1.50', 40 | price: '£0.90' 41 | }, 42 | { 43 | key: '7', 44 | image: require('../assets/images/img7.jpg'), 45 | title: 'Branston Baked Beans in a Rich and Tasty Tomato Sauce 4 x 410g', 46 | saleprice: '£2.00', 47 | price: '£1.50' 48 | }, 49 | { 50 | key: '8', 51 | image: require('../assets/images/img8.jpg'), 52 | title: 'Kelloggs Crunchy Nut Hazelnut & Chocolate Granola 380g', 53 | saleprice: '£3.00', 54 | price: '£2.50' 55 | } 56 | ] 57 | 58 | const menu = ( 59 | 65 | Featured 66 | 67 | ), 68 | }, 69 | { 70 | key: '2', 71 | label: ( 72 | 73 | Price: Low to High 74 | 75 | ), 76 | }, 77 | { 78 | key: '3', 79 | label: ( 80 | 81 | Price: High to Low 82 | 83 | ), 84 | }, 85 | ]} 86 | /> 87 | ); 88 | 89 | function AppShop() { 90 | return ( 91 |
92 |
93 |
94 |

Shop

95 | 96 | 97 | 98 |
99 | 100 | {products.map(product => { 101 | return ( 102 | 103 |
104 |
105 | product 106 |
107 |

{product.title}

108 |
{product.price}
109 | 110 |
111 | 112 | ); 113 | })} 114 |
115 |
116 |
117 | ); 118 | } 119 | 120 | export default AppShop; -------------------------------------------------------------------------------- /src/components/common/header.js: -------------------------------------------------------------------------------- 1 | import { NavLink } from "react-router-dom"; 2 | import { Button, Drawer } from 'antd'; 3 | import React, { useState } from 'react'; 4 | 5 | import { 6 | MobileOutlined, 7 | MailOutlined, 8 | FacebookFilled, 9 | TwitterSquareFilled, 10 | InstagramFilled, 11 | UserOutlined, 12 | MenuOutlined 13 | } from '@ant-design/icons'; 14 | 15 | function AppHeader() { 16 | const [visible, setVisible] = useState(false); 17 | 18 | const showDrawer = () => { 19 | setVisible(true); 20 | }; 21 | 22 | const onClose = () => { 23 | setVisible(false); 24 | }; 25 | 26 | return ( 27 |
28 | 29 |
30 |
31 | 35 |
36 |
37 |
    38 |
  • 39 |
  • 40 |
  • 41 |
42 | 43 |
44 |
45 | {/* header */} 46 |
47 |
48 | Grocery 49 |
50 |
51 | 54 | 55 | 69 | 70 |
71 | 85 |
86 |
87 | ); 88 | } 89 | 90 | export default AppHeader; -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | /* common */ 2 | #root { 3 | overflow: hidden; 4 | } 5 | 6 | .container { 7 | max-width: 1170px; 8 | padding: 0 15px; 9 | margin: 0 auto; 10 | } 11 | 12 | h1, 13 | h2, 14 | h3, 15 | h4, 16 | h5, 17 | h6 { 18 | font-family: 'Merriweather', serif; 19 | } 20 | 21 | img { 22 | max-width: 100%; 23 | height: auto; 24 | } 25 | 26 | .ant-layout { 27 | background: #fff; 28 | } 29 | 30 | .ant-btn-primary { 31 | background: #27c4ff; 32 | border-color: #27c4ff; 33 | } 34 | 35 | .block { 36 | padding: 40px 0; 37 | } 38 | 39 | .separator { 40 | position: relative; 41 | } 42 | 43 | .separator:after { 44 | content: ''; 45 | border-bottom: 1px solid #ddd; 46 | position: absolute; 47 | bottom: 0; 48 | left: -999px; 49 | right: -999px; 50 | } 51 | 52 | .bannerImage { 53 | margin: 20px 0; 54 | } 55 | 56 | /* topbar */ 57 | .topBar { 58 | position: relative; 59 | color: #fff; 60 | display: flex; 61 | justify-content: space-between; 62 | align-items: center; 63 | } 64 | 65 | .topBar:before { 66 | content: ''; 67 | background: #0c0c0c; 68 | position: absolute; 69 | top: 0; 70 | bottom: 0; 71 | left: -999px; 72 | right: -999px; 73 | } 74 | 75 | .topBar>* { 76 | position: relative; 77 | } 78 | 79 | .contactInfo { 80 | padding: 10px 0; 81 | } 82 | 83 | .topBar .contactInfo ul { 84 | list-style: none; 85 | margin: 0; 86 | padding: 0; 87 | display: flex; 88 | } 89 | 90 | .topBar .contactInfo li { 91 | margin: 0 30px 0 0; 92 | } 93 | 94 | .topBar .contactInfo li span { 95 | margin: 0 5px 0 0; 96 | } 97 | 98 | .topBar .contactInfo a { 99 | color: #fff; 100 | } 101 | 102 | .topBar .otherInfo { 103 | display: flex; 104 | } 105 | 106 | .topBar .socialMedia { 107 | display: flex; 108 | list-style: none; 109 | margin: 0; 110 | padding: 10px 0; 111 | font-size: 20px; 112 | } 113 | 114 | .topBar .socialMedia li { 115 | margin: 0 20px 0 0; 116 | } 117 | 118 | .topBar .socialMedia a { 119 | color: #fff; 120 | transition: color 0.3s linear; 121 | } 122 | 123 | .topBar .socialMedia a:hover { 124 | color: #f14705 125 | } 126 | 127 | .topBar .otherInfo button { 128 | background: #f14705; 129 | border: none; 130 | cursor: pointer; 131 | transition: opacity 0.3s linear; 132 | } 133 | 134 | .topBar .otherInfo button:hover { 135 | opacity: 0.8; 136 | } 137 | 138 | /* header */ 139 | .ant-layout-header { 140 | background: none; 141 | padding: 0; 142 | height: auto; 143 | line-height: 1.6; 144 | } 145 | 146 | .header { 147 | display: flex; 148 | justify-content: space-between; 149 | align-items: center; 150 | padding: 25px 0; 151 | } 152 | 153 | .header .logo { 154 | text-transform: uppercase; 155 | font-size: 22px; 156 | font-weight: 600; 157 | } 158 | 159 | .header .logo a { 160 | color: #27c4ff; 161 | } 162 | 163 | .header nav ul { 164 | display: flex; 165 | list-style: none; 166 | align-items: center; 167 | padding: 0; 168 | margin: 0; 169 | font-size: 16px; 170 | } 171 | 172 | .header nav li { 173 | margin: 0 0 0 20px; 174 | } 175 | 176 | .header nav a { 177 | color: #121212; 178 | } 179 | 180 | .header nav a:hover, 181 | .header nav a.active, 182 | .ant-drawer nav a.active { 183 | color: #27c4ff; 184 | } 185 | 186 | .ant-drawer nav ul { 187 | list-style: none; 188 | margin: 0; 189 | padding: 0; 190 | } 191 | 192 | .ant-drawer nav li { 193 | margin: 15px 0; 194 | } 195 | 196 | .ant-drawer nav a { 197 | color: #333; 198 | } 199 | 200 | .header .shoppingInfo { 201 | list-style: none; 202 | margin: 0; 203 | padding: 0; 204 | display: flex; 205 | font-size: 18px; 206 | border-left: 1px solid #ddd; 207 | } 208 | 209 | .header .shoppingInfo li { 210 | margin: 0 0 0 20px; 211 | } 212 | 213 | .header .shoppingInfo li a { 214 | color: #333; 215 | } 216 | 217 | .header .shoppingInfo li a:hover { 218 | color: #27c4ff; 219 | } 220 | 221 | /* hero block */ 222 | .heroBlock { 223 | padding: 40px 0; 224 | position: relative; 225 | } 226 | 227 | .heroBlock:after { 228 | content: ''; 229 | border-bottom: 1px solid #ddd; 230 | position: absolute; 231 | bottom: 0; 232 | left: -999px; 233 | right: -999px; 234 | } 235 | 236 | .heroBlocks .holder { 237 | background: #f9f9f9; 238 | border: 1px solid #ddd; 239 | padding: 9px 15px; 240 | margin: 0 0 25px; 241 | display: flex; 242 | align-items: center; 243 | min-height: 118px; 244 | } 245 | 246 | .heroBlocks .holder:last-child { 247 | margin: 0; 248 | } 249 | 250 | .heroBlocks .icon { 251 | color: #27c4ff; 252 | font-size: 30px; 253 | margin: 0 20px 0 0; 254 | } 255 | 256 | .heroBlocks h3 { 257 | line-height: 1.4; 258 | } 259 | 260 | .heroBlocks p { 261 | margin: 0; 262 | } 263 | 264 | .ant-carousel .slick-slide img { 265 | width: 100%; 266 | } 267 | 268 | /* products */ 269 | .products .image { 270 | text-align: center; 271 | } 272 | 273 | .products .price { 274 | margin: 0 0 20px; 275 | font-size: 20px; 276 | } 277 | 278 | .products h3 { 279 | height: 80px; 280 | overflow: hidden; 281 | } 282 | 283 | .products .salePrice { 284 | color: #f14705; 285 | text-decoration: line-through; 286 | margin: 0 5px 0 0; 287 | } 288 | 289 | /* information block */ 290 | .informationBlock .holder { 291 | background: #f9f9f9; 292 | border: 1px solid #ddd; 293 | height: 220px; 294 | display: flex; 295 | flex-direction: column; 296 | justify-content: center; 297 | padding: 30px 30px 30px 300px; 298 | } 299 | 300 | .informationBlock h3 { 301 | font-size: 22px; 302 | } 303 | 304 | .informationBlock .price { 305 | font-size: 50px; 306 | font-weight: 700; 307 | line-height: 1; 308 | color: #f14705; 309 | } 310 | 311 | .informationBlock .holder p { 312 | color: #f14705; 313 | font-size: 16px; 314 | } 315 | 316 | /* product categories */ 317 | .productCategories h2 { 318 | margin: 0 0 40px; 319 | } 320 | 321 | .productCategories .image { 322 | border-radius: 50%; 323 | border: 3px solid #27c4ff; 324 | width: 127px; 325 | height: 127px; 326 | overflow: hidden; 327 | margin: 0 auto 10px; 328 | } 329 | 330 | .productCategories h3 { 331 | text-align: center; 332 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 333 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 334 | sans-serif; 335 | } 336 | 337 | /* footer widget */ 338 | .ant-layout-footer { 339 | background: #212121; 340 | color: #e9e9e9; 341 | } 342 | 343 | .footerWidget { 344 | padding: 30px 0; 345 | } 346 | 347 | .footerWidget h3, 348 | .footerWidget .ant-list-item-meta-title a { 349 | color: #d7d7d7; 350 | } 351 | 352 | .footerWidget h3 { 353 | font-size: 18px; 354 | margin: 0 0 25px; 355 | } 356 | 357 | .footerWidget .ant-list-item-meta-description { 358 | color: #f14705; 359 | } 360 | 361 | .footerWidget .ant-list-split .ant-list-item { 362 | border: 0; 363 | padding: 10px 0; 364 | color: #e9e9e9; 365 | position: relative; 366 | } 367 | 368 | .footerWidget .recentPost .ant-list-item { 369 | padding-left: 20px; 370 | } 371 | 372 | .footerWidget .recentPost .ant-list-item:before { 373 | content: '\f054'; 374 | font: var(--fa-font-solid); 375 | position: absolute; 376 | top: 15px; 377 | left: 0; 378 | } 379 | 380 | .footerWidget .ant-list-item-meta-title { 381 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue'; 382 | font-weight: 300; 383 | } 384 | 385 | .footerWidget .ant-avatar { 386 | border-radius: 0 !important; 387 | width: 70px; 388 | height: 70px; 389 | } 390 | 391 | .footerWidget .tags .ant-tag { 392 | font-size: 15px; 393 | margin: 0 10px 10px 0; 394 | padding: 5px 15px; 395 | } 396 | 397 | .footerWidget .tags .ant-tag a { 398 | transition: opacity 0.3s linear; 399 | } 400 | 401 | .footerWidget .tags .ant-tag a:hover { 402 | opacity: 0.5; 403 | } 404 | 405 | .footerWidget .tags .ant-tag-close-icon { 406 | font-size: 15px; 407 | } 408 | 409 | /* footer copyright */ 410 | .footerCopyright { 411 | position: relative; 412 | padding: 25px 0 0; 413 | } 414 | 415 | .footerCopyright:before { 416 | content: ''; 417 | background: #000; 418 | position: absolute; 419 | top: 0; 420 | bottom: -25px; 421 | left: -999px; 422 | right: -999px; 423 | } 424 | 425 | .footerCopyright .container { 426 | display: flex; 427 | justify-content: space-between; 428 | align-items: center; 429 | position: relative; 430 | } 431 | 432 | /* tabs */ 433 | .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn, 434 | .ant-tabs-tab:hover { 435 | color: #27c4ff; 436 | } 437 | 438 | .ant-tabs-ink-bar { 439 | background: #27c4ff; 440 | } 441 | 442 | /* shop */ 443 | .shopPage .titleHolder { 444 | display: flex; 445 | justify-content: space-between; 446 | align-items: center; 447 | } 448 | 449 | .mobileVisible { 450 | display: none; 451 | } 452 | 453 | .mobileHidden { 454 | display: block; 455 | } 456 | 457 | /* responsive */ 458 | @media only screen and (max-width: 991px) { 459 | .topBar .contactInfo a span:last-child { 460 | display: none; 461 | } 462 | 463 | .topBar .contactInfo li { 464 | margin: 0 10px 0 0; 465 | } 466 | 467 | .heroBlock { 468 | padding: 20px 0; 469 | } 470 | 471 | .heroBlocks .holder { 472 | margin-bottom: 15px; 473 | } 474 | 475 | .informationBlock .holder { 476 | padding: 30px; 477 | height: 140px; 478 | background-image: none !important; 479 | } 480 | 481 | .ant-layout-footer { 482 | padding: 25px 0; 483 | } 484 | } 485 | 486 | @media only screen and (max-width: 767px) { 487 | .mobileVisible { 488 | display: block; 489 | } 490 | 491 | .mobileHidden { 492 | display: none; 493 | } 494 | } --------------------------------------------------------------------------------