├── .gitignore ├── README.md ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.js ├── components │ ├── driver │ │ ├── Driver.jsx │ │ └── Driver.module.css │ ├── find │ │ ├── Card.jsx │ │ ├── Find.jsx │ │ └── Find.module.css │ ├── footer │ │ ├── Footer.jsx │ │ └── Footer.module.css │ ├── hero │ │ ├── Hero.jsx │ │ └── Hero.module.css │ ├── luxury │ │ ├── Luxury.jsx │ │ └── Luxury.module.css │ └── navbar │ │ ├── Navbar.jsx │ │ └── Navbar.module.css ├── images │ ├── drive.png │ ├── logo.png │ └── logo_dark.png ├── index.css └── index.js └── yarn.lock /.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 | -------------------------------------------------------------------------------- /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 | ### `yarn 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 | ### `yarn 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 | ### `yarn 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 | ### `yarn 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 | ### `yarn 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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cars", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.14.1", 7 | "@testing-library/react": "^13.0.0", 8 | "@testing-library/user-event": "^13.2.1", 9 | "react": "^18.2.0", 10 | "react-dom": "^18.2.0", 11 | "react-icons": "^4.4.0", 12 | "react-scripts": "5.0.1", 13 | "swiper": "^8.3.1", 14 | "web-vitals": "^2.1.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": [ 24 | "react-app", 25 | "react-app/jest" 26 | ] 27 | }, 28 | "browserslist": { 29 | "production": [ 30 | ">0.2%", 31 | "not dead", 32 | "not op_mini all" 33 | ], 34 | "development": [ 35 | "last 1 chrome version", 36 | "last 1 firefox version", 37 | "last 1 safari version" 38 | ] 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fireclint/drive-react-css-modules/4130df9cd3c374040b63041cc9e20163912c0f38/public/favicon.ico -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fireclint/drive-react-css-modules/4130df9cd3c374040b63041cc9e20163912c0f38/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fireclint/drive-react-css-modules/4130df9cd3c374040b63041cc9e20163912c0f38/public/logo512.png -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Navbar from './components/navbar/Navbar' 3 | import Hero from './components/hero/Hero' 4 | import Find from './components/find/Find' 5 | import Driver from './components/driver/Driver' 6 | import Luxury from './components/luxury/Luxury' 7 | import Footer from './components/footer/Footer' 8 | 9 | function App() { 10 | return ( 11 |
12 | 13 | 14 | 15 | 16 | 17 |
19 | ); 20 | } 21 | 22 | export default App; 23 | -------------------------------------------------------------------------------- /src/components/driver/Driver.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styles from './Driver.module.css'; 3 | import Drive from '../../images/drive.png' 4 | 5 | const Driver = () => { 6 | return ( 7 |
8 |
9 | / 10 |
11 |
12 |

Find the perfect car to try before you buy

13 |

Make sure your future wheels work well with your lifestyle by taking your time in the driver's seat.

14 | 15 |
16 |
17 | ) 18 | } 19 | 20 | export default Driver -------------------------------------------------------------------------------- /src/components/driver/Driver.module.css: -------------------------------------------------------------------------------- 1 | .driver { 2 | max-width: 1040px; 3 | margin: auto; 4 | padding: 1rem; 5 | display: grid; 6 | grid-template-columns: repeat(2, 1fr); 7 | gap: 2rem; 8 | } 9 | 10 | .driver img { 11 | max-width: 512px; 12 | } 13 | 14 | 15 | .driver h2 { 16 | padding-top: 30%; 17 | } 18 | 19 | .driver span { 20 | color: #593cfb; 21 | } 22 | 23 | .driver p { 24 | font-size: 1rem; 25 | color: #333; 26 | padding: 1.5rem 0; 27 | } 28 | 29 | .driver button { 30 | background-color: #593cfb; 31 | color: #fff; 32 | font-weight: 600; 33 | font-size: 1rem; 34 | padding: 12px 18px; 35 | border: none; 36 | } 37 | 38 | .driver button:hover { 39 | background-color: #4733b7; 40 | transition: background-color 1s; 41 | } 42 | 43 | @media screen and (max-width: 920px) { 44 | .driver { 45 | grid-template-columns: 1fr; 46 | } 47 | 48 | .driver img { 49 | max-width: 80%; 50 | margin: auto; 51 | } 52 | 53 | .driver .left { 54 | display: flex; 55 | justify-content: center; 56 | } 57 | 58 | .driver h2 { 59 | padding-top: 10%; 60 | } 61 | } -------------------------------------------------------------------------------- /src/components/find/Card.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import styles from './Find.module.css'; 3 | 4 | const Card = ({ image, make }) => { 5 | return ( 6 |
7 | / 8 |

{make}

9 |
10 | ); 11 | }; 12 | 13 | export default Card; 14 | -------------------------------------------------------------------------------- /src/components/find/Find.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import styles from './Find.module.css'; 3 | import Card from './Card'; 4 | 5 | // import Swiper core and required modules 6 | import { Navigation, Pagination, Scrollbar, A11y } from 'swiper'; 7 | import { Swiper, SwiperSlide } from 'swiper/react'; 8 | 9 | import 'swiper/css'; 10 | import 'swiper/css/navigation'; 11 | 12 | 13 | const Find = () => { 14 | return ( 15 |
16 |
17 |

Find your drive

18 |
19 |

20 | Explore the world's largest car sharing marketplace 21 |

22 |
23 |
24 |
25 | = 340px 33 | 340: { 34 | width: 200, 35 | slidesPerView: 1, 36 | }, 37 | // when window width is >= 768px 38 | 768: { 39 | width: 768, 40 | slidesPerView: 4, 41 | }, 42 | // when window width is >= 1040px 43 | 1040: { 44 | width: 1040, 45 | slidesPerView: 5, 46 | }, 47 | }} 48 | pagination={{ clickable: true }} 49 | scrollbar={{ draggable: true }} 50 | onSwiper={(swiper) => console.log(swiper)} 51 | onSlideChange={() => console.log('slide change')} 52 | > 53 | 54 | 58 | 59 | 60 | 64 | 65 | 66 | 70 | 71 | 72 | 76 | 77 | 78 | 82 | 83 | 84 | 85 | 89 | 90 | 91 | 95 | 96 | 97 | 101 | 102 | 103 | 107 | 108 | 109 | 113 | 114 | 115 |
116 |
117 | ); 118 | }; 119 | 120 | export default Find; 121 | -------------------------------------------------------------------------------- /src/components/find/Find.module.css: -------------------------------------------------------------------------------- 1 | .find { 2 | max-width: 1040px; 3 | margin: auto; 4 | } 5 | 6 | .heading h1 { 7 | font-size: 4rem; 8 | text-align: center; 9 | padding: 2rem; 10 | } 11 | 12 | .heading p { 13 | text-align: center; 14 | } 15 | 16 | .text_bg { 17 | background: rgba(173, 199, 255, 0.502); 18 | height: 30px; 19 | max-width: 650px; 20 | margin: auto; 21 | position: absolute; 22 | 23 | margin-left: auto; 24 | margin-right: auto; 25 | left: 0; 26 | right: 0; 27 | } 28 | 29 | .text_bg p { 30 | font-size: 1.4rem; 31 | font-weight: 600; 32 | margin-top: -0.6rem; 33 | } 34 | 35 | .slider_container { 36 | padding: 5rem 0; 37 | } 38 | 39 | 40 | .card { 41 | margin: .5rem; 42 | border-radius: 10px; 43 | box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; 44 | } 45 | 46 | .card img { 47 | width: 100%; 48 | border-top-left-radius: 10px; 49 | border-top-right-radius: 10px; 50 | height: 220px; 51 | object-fit: cover; 52 | } 53 | 54 | .card p { 55 | text-align: center; 56 | padding: 0.5rem; 57 | font-size: 1rem; 58 | } 59 | 60 | 61 | 62 | @media screen and (max-width: 500px) { 63 | .card { 64 | width: 100%; 65 | } 66 | } 67 | 68 | .swiper-container { 69 | width: 480px; 70 | } 71 | 72 | @media screen and (min-width: 640px) { 73 | .swiper-container { 74 | width: 640px; 75 | } 76 | } 77 | 78 | @media screen and (min-width: 768px) { 79 | .swiper-container { 80 | width: 768px; 81 | } 82 | } -------------------------------------------------------------------------------- /src/components/footer/Footer.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Logo from '../../images/logo_dark.png' 3 | 4 | import styles from './Footer.module.css' 5 | 6 | const Footer = () => { 7 | return ( 8 |
9 |
10 | 11 | 12 |
13 |
14 | ) 15 | } 16 | 17 | export default Footer -------------------------------------------------------------------------------- /src/components/footer/Footer.module.css: -------------------------------------------------------------------------------- 1 | .footer { 2 | width: 100%; 3 | height: 80px; 4 | background-color: #121214; 5 | } 6 | 7 | .container { 8 | max-width: 1040px; 9 | height: 100%; 10 | margin: auto; 11 | padding: 1rem; 12 | 13 | display: flex; 14 | justify-content: space-between; 15 | align-items: center; 16 | } 17 | 18 | .footer button { 19 | background-color: #593cfb; 20 | color: #fff; 21 | font-weight: 600; 22 | font-size: 1rem; 23 | padding: 12px 18px; 24 | border: none; 25 | } 26 | 27 | .footer button:hover { 28 | background-color: #4733b7; 29 | transition: background-color 1s; 30 | } -------------------------------------------------------------------------------- /src/components/hero/Hero.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import styles from './Hero.module.css'; 3 | import { AiOutlineSearch } from 'react-icons/ai'; 4 | 5 | const Hero = () => { 6 | return ( 7 |
8 |
9 |
10 | 11 | 16 |
17 |
18 | 19 | 20 | 21 |
22 |
23 | 24 | 25 | 26 |
27 |
28 | 29 | 30 |
31 |
32 |
33 | ); 34 | }; 35 | 36 | export default Hero; 37 | -------------------------------------------------------------------------------- /src/components/hero/Hero.module.css: -------------------------------------------------------------------------------- 1 | .hero { 2 | background: url('https://images.unsplash.com/photo-1519641471654-76ce0107ad1b?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2342&q=80') 3 | no-repeat center/cover; 4 | width: 100%; 5 | height: 500px; 6 | 7 | display: flex; 8 | } 9 | 10 | form { 11 | display: flex; 12 | justify-content: space-between; 13 | align-items: center; 14 | max-width: 700px; 15 | width: 100%; 16 | margin: auto; 17 | margin-top: 10%; 18 | padding: 6px 15px; 19 | border-radius: 25px; 20 | box-shadow: rgba(0, 0, 0, 0.9) 0px 8px 24px; 21 | background-color: rgba(247, 247, 247, 0.9); 22 | } 23 | 24 | form label { 25 | font-size: 0.78rem; 26 | padding-bottom: 2px; 27 | } 28 | 29 | form .text, 30 | .from, 31 | .until { 32 | display: flex; 33 | flex-direction: column; 34 | } 35 | 36 | form input { 37 | background-color: transparent; 38 | border: none; 39 | font-family: 'Epilogue', sans-serif; 40 | } 41 | 42 | form .text_input { 43 | width: 300px; 44 | font-size: 1rem; 45 | } 46 | 47 | form input:focus { 48 | outline: none; 49 | } 50 | 51 | .from, 52 | .until { 53 | border-left: 1px solid #333; 54 | padding-left: 6px; 55 | } 56 | 57 | form .search_btn { 58 | display: flex; 59 | align-items: center; 60 | } 61 | 62 | .hero .btn { 63 | display: none; 64 | } 65 | 66 | @media screen and (max-width: 720px) { 67 | form { 68 | display: flex; 69 | flex-direction: column; 70 | max-width: 100%; 71 | margin: auto 1rem; 72 | } 73 | 74 | 75 | form .text, 76 | .from, 77 | .until { 78 | width: 100%; 79 | padding: 0.2rem; 80 | } 81 | 82 | .from, 83 | .until { 84 | border-left: none; 85 | } 86 | 87 | form .text_input { 88 | font-size: 0.8rem; 89 | } 90 | 91 | form .text, 92 | .from, 93 | .until, 94 | input { 95 | font-size: 0.8rem; 96 | } 97 | 98 | form label { 99 | padding: 0.4rem 0; 100 | } 101 | 102 | .border { 103 | border-top: 1px solid #333; 104 | padding: 8px; 105 | 106 | } 107 | 108 | .search_btn { 109 | width: 100%; 110 | border-top: 1px solid #333; 111 | padding: 8px 0; 112 | } 113 | 114 | .hero .btn { 115 | display: block; 116 | background-color: #593cfb; 117 | color: #fff; 118 | font-weight: 600; 119 | font-size: 1rem; 120 | border: none; 121 | width: 100%; 122 | padding: 12px 18px; 123 | margin: .5rem 0; 124 | cursor: pointer; 125 | } 126 | 127 | .hero .btn:hover { 128 | background-color: #4733b7; 129 | transition: background-color 1s; 130 | } 131 | 132 | .hero .icon { 133 | display: none; 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /src/components/luxury/Luxury.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import styles from './Luxury.module.css' 3 | 4 | const Luxury = () => { 5 | return ( 6 |
7 |
8 |

Luxury Selection

9 |
10 |

11 | Select from the top luxury vehicles to roll in style 12 |

13 |
14 | 15 |
16 | 17 |
18 |
19 | 20 |
21 |

Rolls Royce

22 |
23 |
24 |
25 | 26 |
27 |

Maserati

28 |
29 |
30 |
31 | 32 |
33 |

Range Rover

34 |
35 |
36 |
37 | 38 |
39 |

Porsche

40 |
41 |
42 |
43 |
44 | ) 45 | } 46 | 47 | export default Luxury -------------------------------------------------------------------------------- /src/components/luxury/Luxury.module.css: -------------------------------------------------------------------------------- 1 | .luxury { 2 | max-width: 1040px; 3 | margin: auto; 4 | padding: 5rem 1rem; 5 | } 6 | 7 | .luxury .container { 8 | display: grid; 9 | grid-template-columns: repeat(4, 1fr); 10 | gap: 1rem; 11 | padding: 4rem 0; 12 | } 13 | 14 | .heading h1 { 15 | font-size: 4rem; 16 | text-align: center; 17 | padding: 2rem; 18 | } 19 | 20 | .heading p { 21 | text-align: center; 22 | } 23 | 24 | .text_bg { 25 | background: rgba(171, 197, 255, 0.502); 26 | height: 30px; 27 | max-width: 650px; 28 | margin: auto; 29 | position: absolute; 30 | left: 0; 31 | right: 0; 32 | } 33 | 34 | .text_bg p { 35 | font-size: 1.4rem; 36 | font-weight: 600; 37 | margin-top: -0.6rem; 38 | } 39 | 40 | .card { 41 | width: 100%; 42 | border-radius: 10px; 43 | box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; 44 | } 45 | 46 | .card img { 47 | width: 100%; 48 | height: 250px; 49 | 50 | border-top-left-radius: 10px; 51 | border-top-right-radius: 10px; 52 | object-fit: cover; 53 | } 54 | 55 | .card .content { 56 | text-align: center; 57 | padding: 1rem; 58 | font-size: 1rem; 59 | } 60 | 61 | @media screen and (max-width: 768px) { 62 | .luxury .container { 63 | grid-template-columns: repeat(2, 1fr); 64 | } 65 | 66 | .heading h1 { 67 | font-size: 3rem; 68 | text-align: center; 69 | padding: 2rem; 70 | } 71 | 72 | 73 | } 74 | 75 | @media screen and (max-width: 500px) { 76 | .luxury .container { 77 | grid-template-columns: 1fr; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /src/components/navbar/Navbar.jsx: -------------------------------------------------------------------------------- 1 | import { React, useState } from 'react'; 2 | import styles from './Navbar.module.css'; 3 | import Logo from '../../images/logo.png'; 4 | import { 5 | AiOutlineUser, 6 | AiOutlineSearch, 7 | AiOutlineMenu, 8 | AiOutlineClose, 9 | } from 'react-icons/ai'; 10 | 11 | const Navbar = () => { 12 | const [nav, setNav] = useState(false); 13 | 14 | return ( 15 |
16 | Logo 17 | 36 |
setNav(!nav)} className={styles.mobile_btn}> 37 | {nav ? : } 38 | 39 |
40 |
41 | ); 42 | }; 43 | 44 | export default Navbar; 45 | -------------------------------------------------------------------------------- /src/components/navbar/Navbar.module.css: -------------------------------------------------------------------------------- 1 | .navbar { 2 | width: 100%; 3 | height: 70px; 4 | display: flex; 5 | justify-content: space-between; 6 | align-items: center; 7 | padding: 1rem; 8 | } 9 | 10 | .menu { 11 | display: flex; 12 | align-items: center; 13 | } 14 | 15 | .menu li { 16 | padding: 1rem; 17 | } 18 | 19 | .navbar a { 20 | color: #333; 21 | font-size: 0.8rem; 22 | } 23 | 24 | .mobile_btn { 25 | display: none; 26 | } 27 | 28 | @media screen and (max-width: 720px) { 29 | .mobile_btn { 30 | display: block; 31 | position: absolute; 32 | right: 1rem; 33 | cursor: pointer; 34 | z-index: 10; 35 | } 36 | 37 | .menu { 38 | display: flex; 39 | position: fixed; 40 | flex-direction: column; 41 | justify-content: center; 42 | left: -100%; 43 | top: 0; 44 | bottom: 0; 45 | right: 0; 46 | width: 100%; 47 | height: 100vh; 48 | background-color: #f8f8f8; 49 | z-index: 10; 50 | transition: left 1s; 51 | } 52 | 53 | .active { 54 | left: 0; 55 | } 56 | 57 | .navbar a { 58 | font-size: 2rem; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/images/drive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fireclint/drive-react-css-modules/4130df9cd3c374040b63041cc9e20163912c0f38/src/images/drive.png -------------------------------------------------------------------------------- /src/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fireclint/drive-react-css-modules/4130df9cd3c374040b63041cc9e20163912c0f38/src/images/logo.png -------------------------------------------------------------------------------- /src/images/logo_dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fireclint/drive-react-css-modules/4130df9cd3c374040b63041cc9e20163912c0f38/src/images/logo_dark.png -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@100;200;300;400;600;700;800&display=swap'); 2 | 3 | * { 4 | box-sizing: border-box; 5 | margin: 0; 6 | padding: 0; 7 | } 8 | 9 | ul { 10 | list-style-type: none; 11 | } 12 | 13 | a { 14 | text-decoration: none; 15 | } 16 | 17 | body { 18 | font-size: 1.2rem; 19 | line-height: 1.3; 20 | font-family: 'Poppins', sans-serif; 21 | } -------------------------------------------------------------------------------- /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 | 6 | const root = ReactDOM.createRoot(document.getElementById('root')); 7 | root.render( 8 | 9 | 10 | 11 | ); 12 | 13 | --------------------------------------------------------------------------------