├── src ├── images │ ├── product1.jpg │ ├── product2.jpg │ ├── product3.jpg │ ├── product4.jpg │ ├── favicon-32x32.png │ ├── image-avatar.png │ ├── image-product-1-thumbnail.jpg │ ├── image-product-2-thumbnail.jpg │ ├── image-product-3-thumbnail.jpg │ ├── image-product-4-thumbnail.jpg │ ├── icon-next.svg │ ├── icon-menu.svg │ ├── icon-previous.svg │ ├── icon-close.svg │ ├── icon-minus.svg │ ├── icon-plus.svg │ ├── icon-cart.svg │ ├── icon-delete.svg │ └── logo.svg ├── setupTests.js ├── reportWebVitals.js ├── index.js ├── Styles │ ├── MobileNav.css │ ├── Header.css │ ├── Cart.css │ └── Main.css ├── App.js ├── Components │ ├── MobileNav.js │ ├── Cart.js │ ├── Header.js │ └── Main.js └── index.css ├── .gitignore ├── package.json ├── public └── index.html └── README.md /src/images/product1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/product1.jpg -------------------------------------------------------------------------------- /src/images/product2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/product2.jpg -------------------------------------------------------------------------------- /src/images/product3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/product3.jpg -------------------------------------------------------------------------------- /src/images/product4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/product4.jpg -------------------------------------------------------------------------------- /src/images/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/favicon-32x32.png -------------------------------------------------------------------------------- /src/images/image-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/image-avatar.png -------------------------------------------------------------------------------- /src/images/image-product-1-thumbnail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/image-product-1-thumbnail.jpg -------------------------------------------------------------------------------- /src/images/image-product-2-thumbnail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/image-product-2-thumbnail.jpg -------------------------------------------------------------------------------- /src/images/image-product-3-thumbnail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/image-product-3-thumbnail.jpg -------------------------------------------------------------------------------- /src/images/image-product-4-thumbnail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frozen-dev71/ecommerce-product-page-main/main/src/images/image-product-4-thumbnail.jpg -------------------------------------------------------------------------------- /src/images/icon-next.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/images/icon-menu.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/images/icon-previous.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/images/icon-close.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/images/icon-minus.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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/images/icon-plus.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom/client'; 3 | import './index.css'; 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 | -------------------------------------------------------------------------------- /src/Styles/MobileNav.css: -------------------------------------------------------------------------------- 1 | aside { 2 | position: fixed; 3 | background-color: var(--gblue); 4 | top: 0; 5 | bottom: 0; 6 | left: 0; 7 | right: 0; 8 | display: none; 9 | } 10 | 11 | aside ul { 12 | list-style: none; 13 | padding: 0; 14 | margin: 0; 15 | position: absolute; 16 | top: 0; 17 | left: 0; 18 | bottom: 0; 19 | background-color: var(--white); 20 | width: calc((100% / 3) * 2); 21 | padding-left: 15pt; 22 | } 23 | 24 | aside ul li a { 25 | padding: 15px; 26 | color: var(--bdBlue); 27 | } 28 | 29 | aside ul li a:hover { 30 | color: var(--Orange); 31 | } -------------------------------------------------------------------------------- /src/images/icon-cart.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/images/icon-delete.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import Header from "./Components/Header"; 2 | import Main from "./Components/Main"; 3 | import { useState } from "react"; 4 | 5 | function App() { 6 | const [count, setCount] = useState(0); 7 | 8 | const zeroProduct = () => { 9 | document.querySelector(".content1").style.display = "block"; 10 | document.querySelector(".content2").style.display = "none"; 11 | document.querySelector(".nav-right li span").style.opacity = "0"; 12 | setCount(0); 13 | }; 14 | 15 | return ( 16 | <> 17 |
18 |
{setCount(count - 1)}} 19 | count={count} plus={() => {setCount(count + 1)}} disabled={count === 0} 20 | cannot={count === 0} 21 | /> 22 | 23 | ); 24 | } 25 | 26 | export default App; 27 | -------------------------------------------------------------------------------- /src/Components/MobileNav.js: -------------------------------------------------------------------------------- 1 | import closeIcon from '../images/icon-close.svg'; 2 | 3 | import '../Styles/MobileNav.css'; 4 | 5 | function MobileNav () { 6 | const handleClick = (e) => { 7 | e.preventDefault(); 8 | document.querySelector("aside").style.display = "none"; 9 | }; 10 | return ( 11 | 22 | ); 23 | } 24 | 25 | export default MobileNav; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "homepage": "https://ahmedSabbahMohamed.github.io/ecommerce-product-page-main", 3 | "name": "ecommerce-product-page-main", 4 | "version": "0.1.0", 5 | "private": true, 6 | "dependencies": { 7 | "@testing-library/jest-dom": "^5.16.5", 8 | "@testing-library/react": "^13.4.0", 9 | "@testing-library/user-event": "^13.5.0", 10 | "react": "^18.2.0", 11 | "react-dom": "^18.2.0", 12 | "react-scripts": "5.0.1", 13 | "web-vitals": "^2.1.4" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "predeploy": "npm run build", 18 | "deploy": "gh-pages -d build", 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 | "devDependencies": { 42 | "gh-pages": "^5.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/Components/Cart.js: -------------------------------------------------------------------------------- 1 | import product from '../images/product1.jpg'; 2 | import cancel from '../images/icon-delete.svg'; 3 | import '../Styles/Cart.css'; 4 | 5 | function Cart (props) { 6 | 7 | // const zeroProduct = () => { 8 | // document.querySelector(".content1").style.display = "block"; 9 | // document.querySelector(".content2").style.display = "none"; 10 | // document.querySelector(".nav-right li span").style.opacity = "0"; 11 | // }; 12 | 13 | return ( 14 | <> 15 |
16 |

Cart

17 |
18 |
19 |

Your cart is empty

20 |
21 |
22 |
23 |
24 | buy-product 25 |
26 |
27 |

Fall Limited Edition Sneakers 28 |
29 | $125.00 x {props.count} 30 | ${props.price}.00 31 |

32 |
33 |
34 | 35 | 36 |
37 |
38 | 39 | ); 40 | } 41 | 42 | export default Cart; -------------------------------------------------------------------------------- /src/Components/Header.js: -------------------------------------------------------------------------------- 1 | import menuIcon from '../images/icon-menu.svg'; 2 | import logo from '../images/logo.svg'; 3 | import iconCart from '../images/icon-cart.svg'; 4 | import avatar from '../images/image-avatar.png'; 5 | import '../Styles/Header.css'; 6 | import MobileNav from './MobileNav'; 7 | import Cart from './Cart'; 8 | 9 | function Header (props) { 10 | const handleClick = () => { 11 | document.querySelector("aside").style.display = 'block'; 12 | }; 13 | const cart = () => { 14 | document.querySelector(".Cart").classList.toggle("toggle"); 15 | } 16 | 17 | return ( 18 | <> 19 |
20 |
21 | 31 |
    32 |
  • icon-cart {props.count}
  • 33 |
  • avatar
  • 34 |
35 | 36 |
37 |
38 | 39 | 40 | ); 41 | } 42 | 43 | export default Header; -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/Styles/Header.css: -------------------------------------------------------------------------------- 1 | header .container { 2 | display: flex; 3 | justify-content: space-between; 4 | align-items: center; 5 | position: relative; 6 | } 7 | 8 | header .container::after { 9 | content: ''; 10 | position: absolute; 11 | width: calc(100% - 30pt); 12 | height: 1px; 13 | background-color: var(--gblue); 14 | bottom: 1px; 15 | } 16 | 17 | .nav-left,.nav-right{ 18 | list-style: none; 19 | padding: 0; 20 | margin: 0; 21 | display: flex; 22 | align-items: center; 23 | } 24 | 25 | ul li a { 26 | display: inline-block; 27 | text-decoration: none; 28 | padding: 40px 10px; 29 | color: var(--dgBlue); 30 | border-bottom: 2px solid transparent; 31 | } 32 | 33 | .nav-left li a:hover { 34 | color: var(--vdBlue); 35 | border-bottom: 2px solid var(--Orange); 36 | } 37 | 38 | .nav-left li .logo, 39 | .nav-left li .logo:hover { 40 | border: none; 41 | } 42 | 43 | .nav-left li:first-child { 44 | display: none; 45 | cursor: pointer; 46 | } 47 | 48 | .nav-right li img { 49 | cursor: pointer; 50 | } 51 | 52 | .nav-right li:first-child span { 53 | display: grid; 54 | place-items: center; 55 | color: var(--white); 56 | width: 20px; 57 | height: 20px; 58 | border-radius: 50%; 59 | background-color: var(--Orange); 60 | position: absolute; 61 | z-index: -1; 62 | top: 25px; 63 | margin-left: -10px; 64 | z-index: 1; 65 | opacity: 0; 66 | } 67 | 68 | .nav-right li:last-child img { 69 | width: 50px; 70 | padding-left: 15px; 71 | } 72 | 73 | @media (max-width: 800px) { 74 | header { 75 | background-color: var(--white); 76 | } 77 | header .container { 78 | padding-top: 15px; 79 | padding-bottom: 15px; 80 | } 81 | .nav-left li { 82 | display: none; 83 | } 84 | .nav-left li:first-child { 85 | display: block; 86 | } 87 | } -------------------------------------------------------------------------------- /src/Styles/Cart.css: -------------------------------------------------------------------------------- 1 | .Cart { 2 | background-color: var(--white); 3 | border-radius: .5rem; 4 | box-shadow: 0 0 .5rem var(--gblue); 5 | position: absolute; 6 | width: 320px; 7 | right: 40pt; 8 | top: calc(80%); 9 | z-index: 1; 10 | } 11 | 12 | .toggle { 13 | display: none; 14 | } 15 | 16 | p { 17 | padding-left: 1rem; 18 | } 19 | 20 | hr { 21 | border: none; 22 | border-bottom: 1px solid var(--gblue); 23 | } 24 | 25 | .content1 { 26 | display: block; 27 | } 28 | 29 | .content2 { 30 | display: none; 31 | padding: 1rem; 32 | } 33 | 34 | .content2 .buy { 35 | display: flex; 36 | justify-content: space-between; 37 | align-items: center; 38 | } 39 | 40 | .content2 .buy .image { 41 | width: 60px; 42 | height: 60px; 43 | } 44 | 45 | .content2 .buy .desc p { 46 | padding-left: .5rem; 47 | } 48 | 49 | .content2 span { 50 | display: inline-block; 51 | color: var(--vdBlue); 52 | margin-left: 1.5rem; 53 | } 54 | 55 | .content2 .cancel { 56 | background-color: var(--vlgray); 57 | border: none; 58 | margin: 1rem auto; 59 | color: var(--Orange); 60 | width: 100%; 61 | padding: .5rem; 62 | border-radius: .7rem; 63 | cursor: pointer; 64 | } 65 | 66 | .content2 .cancel img { 67 | height: 1rem; 68 | width: 1rem; 69 | padding-right: 1rem; 70 | } 71 | 72 | .content2 .confirm { 73 | border: 2px solid var(--Orange); 74 | border-radius: .7rem; 75 | background-color: var(--Orange); 76 | padding: .5rem; 77 | width: 100%; 78 | color: var(--white); 79 | cursor: pointer; 80 | } 81 | 82 | .content2 .confirm:hover { 83 | color: var(--Orange); 84 | background-color: transparent; 85 | } 86 | 87 | @media (max-width: 800px) { 88 | .Cart { 89 | width: calc(100% - 2rem); 90 | left: 1rem; 91 | right: 1rem; 92 | top: calc(100% + 1rem); 93 | } 94 | .buy { 95 | flex-direction: column; 96 | } 97 | } -------------------------------------------------------------------------------- /src/images/logo.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Components/Main.js: -------------------------------------------------------------------------------- 1 | import product1 from '../images/product1.jpg'; 2 | import product2 from '../images/product2.jpg'; 3 | import product3 from '../images/product3.jpg'; 4 | import product4 from '../images/product4.jpg'; 5 | import cartIcon from '../images/icon-cart.svg'; 6 | import minusIcon from '../images/icon-minus.svg'; 7 | import plusIcon from '../images/icon-plus.svg'; 8 | import '../Styles/Main.css'; 9 | import { useState } from 'react'; 10 | 11 | function Main (props) { 12 | const [image, setImage] = useState(product1); 13 | 14 | const handleClick = () => { 15 | document.querySelector(".content2").style.display = "block"; 16 | document.querySelector(".content1").style.display = "none"; 17 | document.querySelector(".nav-right li span").style.opacity = "1"; 18 | }; 19 | 20 | const handleImage = (e) => { 21 | let image = document.querySelectorAll(".nav-img img"); 22 | image.forEach(img => { 23 | img.classList.remove("active-img"); 24 | }); 25 | e.currentTarget.classList.add("active-img"); 26 | setImage(e.currentTarget.dataset.img); 27 | }; 28 | 29 | return ( 30 |
31 |
32 | 33 |
34 |
35 | main-img 36 |
37 |
    38 |
  • product
  • 39 |
  • product
  • 40 |
  • product
  • 41 |
  • product
  • 42 |
43 |
44 | 45 |
46 | sneaker company 47 |

Fall Limited Edition Sneakers

48 |

These low-profile sneakers are your perfect casual wear companion. Featuring a durable rubber outer sole, they’ll withstand everything the weather can offer.

49 |

$125.00 50%

50 |

$250.00

51 |
52 |
53 | 54 | {props.count} 55 | 56 |
57 | 61 |
62 |
63 | 64 |
65 |
66 | ); 67 | } 68 | 69 | export default Main; -------------------------------------------------------------------------------- /src/Styles/Main.css: -------------------------------------------------------------------------------- 1 | main .main-cont { 2 | margin-top: 1rem; 3 | margin-bottom: 5rem; 4 | } 5 | 6 | .main-cont { 7 | display: flex; 8 | justify-content: space-between; 9 | align-items: center; 10 | flex-flow: row wrap; 11 | } 12 | 13 | .product { 14 | flex: 1; 15 | } 16 | 17 | .product .main-img { 18 | border-radius: 1rem; 19 | overflow: hidden; 20 | margin-top: 5rem; 21 | margin-bottom: 3rem; 22 | } 23 | 24 | .product ul { 25 | list-style-type: none; 26 | padding: 0; 27 | margin: 0; 28 | display: grid; 29 | grid-template-columns: repeat(4, 1fr); 30 | gap: 2rem; 31 | } 32 | 33 | .product ul li img { 34 | border-radius: 1rem; 35 | cursor: pointer; 36 | } 37 | 38 | .active-img { 39 | border: 2px solid var(--Orange); 40 | opacity: .5; 41 | } 42 | 43 | .main-cont .desc { 44 | flex: 1; 45 | padding-left: 3rem; 46 | } 47 | 48 | .desc b { 49 | color: var(--Orange); 50 | text-transform: uppercase; 51 | font-weight: 500; 52 | } 53 | 54 | .desc h1 { 55 | color: var(--vdBlue); 56 | font-size: 3rem; 57 | } 58 | 59 | .desc p { 60 | padding-left: 0; 61 | color: var(--dgBlue); 62 | line-height: 1.5; 63 | } 64 | 65 | .desc h2 { 66 | color: var(--vdBlue); 67 | } 68 | 69 | .desc h2 span { 70 | display: inline-block; 71 | background-color: var(--paleOrange); 72 | margin-left: 1rem; 73 | padding-left: .5rem; 74 | padding-right: .5rem; 75 | color: var(--Orange); 76 | border-radius: .5rem; 77 | } 78 | 79 | .discount { 80 | text-decoration: line-through; 81 | } 82 | 83 | .desc .count-btn { 84 | display: flex; 85 | align-items: center; 86 | justify-content: space-between; 87 | gap: 1rem; 88 | } 89 | 90 | .desc .count-btn .count { 91 | display: flex; 92 | justify-content: space-between; 93 | align-items: center; 94 | padding: .7rem; 95 | background-color: var(--vlgray); 96 | border-radius: .7rem; 97 | flex: 1; 98 | } 99 | 100 | .desc .count-btn .count button { 101 | cursor: pointer; 102 | border: none; 103 | background-color: transparent; 104 | } 105 | 106 | .desc .count-btn .count span { 107 | display: inline-block; 108 | } 109 | 110 | .btn { 111 | flex: 2; 112 | border:2px solid var(--Orange); 113 | border-radius: .7rem; 114 | background-color: var(--Orange); 115 | box-shadow: 0 0 2rem var(--paleOrange); 116 | font-size: 1rem; 117 | padding: .3rem; 118 | color: var(--white); 119 | cursor: pointer; 120 | display: flex; 121 | justify-content: center; 122 | align-items: center; 123 | } 124 | 125 | .btn:hover { 126 | background-color: transparent; 127 | color: var(--Orange); 128 | } 129 | 130 | .btn img { 131 | width: 30px; 132 | height: 30px; 133 | padding-right: 1rem; 134 | } 135 | 136 | @media (max-width: 800px) { 137 | .main-cont { 138 | flex-direction: column; 139 | text-align: center; 140 | } 141 | .desc .count-btn .count { 142 | flex: 2; 143 | } 144 | .desc .count-btn { 145 | flex-direction: column; 146 | } 147 | .desc .count-btn .count { 148 | width: 80%; 149 | } 150 | .desc .count-btn .btn { 151 | width: calc(80% + 1.2rem); 152 | } 153 | .main-cont .desc { 154 | padding: 0; 155 | } 156 | .desc b { 157 | display: block; 158 | margin-top: 3rem; 159 | } 160 | } -------------------------------------------------------------------------------- /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/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | 15 | /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ 16 | 17 | /* Document 18 | ========================================================================== */ 19 | 20 | /** 21 | * 1. Correct the line height in all browsers. 22 | * 2. Prevent adjustments of font size after orientation changes in iOS. 23 | */ 24 | 25 | html { 26 | font-size: 16px; 27 | font-family: 'Kumbh Sans', sans-serif; 28 | line-height: 1.15; /* 1 */ 29 | -webkit-text-size-adjust: 100%; /* 2 */ 30 | } 31 | 32 | /* Sections 33 | ========================================================================== */ 34 | 35 | /** 36 | * Remove the margin in all browsers. 37 | */ 38 | 39 | body { 40 | margin: 0; 41 | } 42 | 43 | /** 44 | * Render the `main` element consistently in IE. 45 | */ 46 | 47 | main { 48 | display: block; 49 | } 50 | 51 | /** 52 | * Correct the font size and margin on `h1` elements within `section` and 53 | * `article` contexts in Chrome, Firefox, and Safari. 54 | */ 55 | 56 | h1 { 57 | font-size: 2em; 58 | margin: 0.67em 0; 59 | } 60 | 61 | /* Grouping content 62 | ========================================================================== */ 63 | 64 | /** 65 | * 1. Add the correct box sizing in Firefox. 66 | * 2. Show the overflow in Edge and IE. 67 | */ 68 | 69 | hr { 70 | box-sizing: content-box; /* 1 */ 71 | height: 0; /* 1 */ 72 | overflow: visible; /* 2 */ 73 | } 74 | 75 | /** 76 | * 1. Correct the inheritance and scaling of font size in all browsers. 77 | * 2. Correct the odd `em` font sizing in all browsers. 78 | */ 79 | 80 | pre { 81 | font-family: monospace, monospace; /* 1 */ 82 | font-size: 1em; /* 2 */ 83 | } 84 | 85 | /* Text-level semantics 86 | ========================================================================== */ 87 | 88 | /** 89 | * Remove the gray background on active links in IE 10. 90 | */ 91 | 92 | a { 93 | background-color: transparent; 94 | } 95 | 96 | /** 97 | * 1. Remove the bottom border in Chrome 57- 98 | * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. 99 | */ 100 | 101 | abbr[title] { 102 | border-bottom: none; /* 1 */ 103 | text-decoration: underline; /* 2 */ 104 | text-decoration: underline dotted; /* 2 */ 105 | } 106 | 107 | /** 108 | * Add the correct font weight in Chrome, Edge, and Safari. 109 | */ 110 | 111 | b, 112 | strong { 113 | font-weight: bolder; 114 | } 115 | 116 | /** 117 | * 1. Correct the inheritance and scaling of font size in all browsers. 118 | * 2. Correct the odd `em` font sizing in all browsers. 119 | */ 120 | 121 | code, 122 | kbd, 123 | samp { 124 | font-family: monospace, monospace; /* 1 */ 125 | font-size: 1em; /* 2 */ 126 | } 127 | 128 | /** 129 | * Add the correct font size in all browsers. 130 | */ 131 | 132 | small { 133 | font-size: 80%; 134 | } 135 | 136 | /** 137 | * Prevent `sub` and `sup` elements from affecting the line height in 138 | * all browsers. 139 | */ 140 | 141 | sub, 142 | sup { 143 | font-size: 75%; 144 | line-height: 0; 145 | position: relative; 146 | vertical-align: baseline; 147 | } 148 | 149 | sub { 150 | bottom: -0.25em; 151 | } 152 | 153 | sup { 154 | top: -0.5em; 155 | } 156 | 157 | /* Embedded content 158 | ========================================================================== */ 159 | 160 | /** 161 | * Remove the border on images inside links in IE 10. 162 | */ 163 | 164 | img { 165 | border-style: none; 166 | } 167 | 168 | /* Forms 169 | ========================================================================== */ 170 | 171 | /** 172 | * 1. Change the font styles in all browsers. 173 | * 2. Remove the margin in Firefox and Safari. 174 | */ 175 | 176 | button, 177 | input, 178 | optgroup, 179 | select, 180 | textarea { 181 | font-family: inherit; /* 1 */ 182 | font-size: 100%; /* 1 */ 183 | line-height: 1.15; /* 1 */ 184 | margin: 0; /* 2 */ 185 | } 186 | 187 | /** 188 | * Show the overflow in IE. 189 | * 1. Show the overflow in Edge. 190 | */ 191 | 192 | button, 193 | input { /* 1 */ 194 | overflow: visible; 195 | } 196 | 197 | /** 198 | * Remove the inheritance of text transform in Edge, Firefox, and IE. 199 | * 1. Remove the inheritance of text transform in Firefox. 200 | */ 201 | 202 | button, 203 | select { /* 1 */ 204 | text-transform: none; 205 | } 206 | 207 | /** 208 | * Correct the inability to style clickable types in iOS and Safari. 209 | */ 210 | 211 | button, 212 | [type="button"], 213 | [type="reset"], 214 | [type="submit"] { 215 | -webkit-appearance: button; 216 | } 217 | 218 | /** 219 | * Remove the inner border and padding in Firefox. 220 | */ 221 | 222 | button::-moz-focus-inner, 223 | [type="button"]::-moz-focus-inner, 224 | [type="reset"]::-moz-focus-inner, 225 | [type="submit"]::-moz-focus-inner { 226 | border-style: none; 227 | padding: 0; 228 | } 229 | 230 | /** 231 | * Restore the focus styles unset by the previous rule. 232 | */ 233 | 234 | button:-moz-focusring, 235 | [type="button"]:-moz-focusring, 236 | [type="reset"]:-moz-focusring, 237 | [type="submit"]:-moz-focusring { 238 | outline: 1px dotted ButtonText; 239 | } 240 | 241 | /** 242 | * Correct the padding in Firefox. 243 | */ 244 | 245 | fieldset { 246 | padding: 0.35em 0.75em 0.625em; 247 | } 248 | 249 | /** 250 | * 1. Correct the text wrapping in Edge and IE. 251 | * 2. Correct the color inheritance from `fieldset` elements in IE. 252 | * 3. Remove the padding so developers are not caught out when they zero out 253 | * `fieldset` elements in all browsers. 254 | */ 255 | 256 | legend { 257 | box-sizing: border-box; /* 1 */ 258 | color: inherit; /* 2 */ 259 | display: table; /* 1 */ 260 | max-width: 100%; /* 1 */ 261 | padding: 0; /* 3 */ 262 | white-space: normal; /* 1 */ 263 | } 264 | 265 | /** 266 | * Add the correct vertical alignment in Chrome, Firefox, and Opera. 267 | */ 268 | 269 | progress { 270 | vertical-align: baseline; 271 | } 272 | 273 | /** 274 | * Remove the default vertical scrollbar in IE 10+. 275 | */ 276 | 277 | textarea { 278 | overflow: auto; 279 | } 280 | 281 | /** 282 | * 1. Add the correct box sizing in IE 10. 283 | * 2. Remove the padding in IE 10. 284 | */ 285 | 286 | [type="checkbox"], 287 | [type="radio"] { 288 | box-sizing: border-box; /* 1 */ 289 | padding: 0; /* 2 */ 290 | } 291 | 292 | /** 293 | * Correct the cursor style of increment and decrement buttons in Chrome. 294 | */ 295 | 296 | [type="number"]::-webkit-inner-spin-button, 297 | [type="number"]::-webkit-outer-spin-button { 298 | height: auto; 299 | } 300 | 301 | /** 302 | * 1. Correct the odd appearance in Chrome and Safari. 303 | * 2. Correct the outline style in Safari. 304 | */ 305 | 306 | [type="search"] { 307 | -webkit-appearance: textfield; /* 1 */ 308 | outline-offset: -2px; /* 2 */ 309 | } 310 | 311 | /** 312 | * Remove the inner padding in Chrome and Safari on macOS. 313 | */ 314 | 315 | [type="search"]::-webkit-search-decoration { 316 | -webkit-appearance: none; 317 | } 318 | 319 | /** 320 | * 1. Correct the inability to style clickable types in iOS and Safari. 321 | * 2. Change font properties to `inherit` in Safari. 322 | */ 323 | 324 | ::-webkit-file-upload-button { 325 | -webkit-appearance: button; /* 1 */ 326 | font: inherit; /* 2 */ 327 | } 328 | 329 | /* Interactive 330 | ========================================================================== */ 331 | 332 | /* 333 | * Add the correct display in Edge, IE 10+, and Firefox. 334 | */ 335 | 336 | details { 337 | display: block; 338 | } 339 | 340 | /* 341 | * Add the correct display in all browsers. 342 | */ 343 | 344 | summary { 345 | display: list-item; 346 | } 347 | 348 | /* Misc 349 | ========================================================================== */ 350 | 351 | /** 352 | * Add the correct display in IE 10+. 353 | */ 354 | 355 | template { 356 | display: none; 357 | } 358 | 359 | /** 360 | * Add the correct display in IE 10. 361 | */ 362 | 363 | [hidden] { 364 | display: none; 365 | } 366 | 367 | /* colors */ 368 | :root { 369 | --Orange: hsl(26, 100%, 55%); 370 | --paleOrange: hsl(25, 100%, 94%); 371 | --vdBlue: hsl(220, 13%, 13%); 372 | --dgBlue: hsl(219, 9%, 45%); 373 | --gblue: hsl(220, 14%, 75%); 374 | --vlgray: hsl(223, 64%, 98%); 375 | --white: hsl(0, 0%, 100%); 376 | --black: hsl(0, 0%, 0%); 377 | } 378 | 379 | /* font */ 380 | @import url('https://fonts.googleapis.com/css2?family=Barlow:wght@600&family=Big+Shoulders+Display:wght@700&family=Epilogue:wght@500;700&family=Fraunces:wght@700;900&family=Hanken+Grotesk:wght@500;700;800&family=Karla&family=Kumbh+Sans:wght@400;700&family=League+Spartan:wght@500;600;700&family=Lexend+Deca&family=Manrope:wght@700&family=Markazi+Text:wght@500&family=Open+Sans:wght@400;700&family=Poppins:wght@600&family=Public+Sans:wght@300;400;700&family=Rubik:wght@400;500&family=Ubuntu:wght@400;500;700&display=swap'); 381 | 382 | /* global rules */ 383 | .container { 384 | max-width: 909pt; 385 | margin-left: auto; 386 | margin-right: auto; 387 | padding-left: 15pt; 388 | padding-right: 15pt; 389 | /* background-color: blue; */ 390 | } 391 | 392 | img { 393 | width: 100%; 394 | height: auto; 395 | } --------------------------------------------------------------------------------