├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── main.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE ├── README.md ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── api.js ├── assets ├── img-main.jpg └── red30-tech-logo.png ├── components ├── About.js ├── App.js ├── Categories.js ├── Category.js ├── Confirmation.js ├── Header.js ├── Home.js ├── Register.js └── Session.js ├── index.css ├── index.js └── logo.svg /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Codeowners for these exercise files: 2 | # * (asterisk) deotes "all files and folders" 3 | # Example: * @producer @instructor 4 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 7 | 8 | ## Issue Overview 9 | 10 | 11 | ## Describe your environment 12 | 13 | 14 | ## Steps to Reproduce 15 | 16 | 1. 17 | 2. 18 | 3. 19 | 4. 20 | 21 | ## Expected Behavior 22 | 23 | 24 | ## Current Behavior 25 | 26 | 27 | ## Possible Solution 28 | 29 | 30 | ## Screenshots / Video 31 | 32 | 33 | ## Related Issues 34 | 35 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Copy To Branches 2 | on: 3 | workflow_dispatch: 4 | jobs: 5 | copy-to-branches: 6 | runs-on: ubuntu-latest 7 | steps: 8 | - uses: actions/checkout@v2 9 | with: 10 | fetch-depth: 0 11 | - name: Copy To Branches Action 12 | uses: planetoftheweb/copy-to-branches@v1.2 13 | env: 14 | key: main 15 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | .tmp 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | Contribution Agreement 3 | ====================== 4 | 5 | This repository does not accept pull requests (PRs). All pull requests will be closed. 6 | 7 | However, if any contributions (through pull requests, issues, feedback or otherwise) are provided, as a contributor, you represent that the code you submit is your original work or that of your employer (in which case you represent you have the right to bind your employer). By submitting code (or otherwise providing feedback), you (and, if applicable, your employer) are licensing the submitted code (and/or feedback) to LinkedIn and the open source community subject to the BSD 2-Clause license. 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | LinkedIn Learning Exercise Files License Agreement 2 | ================================================== 3 | 4 | This License Agreement (the "Agreement") is a binding legal agreement 5 | between you (as an individual or entity, as applicable) and LinkedIn 6 | Corporation (“LinkedIn”). By downloading or using the LinkedIn Learning 7 | exercise files in this repository (“Licensed Materials”), you agree to 8 | be bound by the terms of this Agreement. If you do not agree to these 9 | terms, do not download or use the Licensed Materials. 10 | 11 | 1. License. 12 | - a. Subject to the terms of this Agreement, LinkedIn hereby grants LinkedIn 13 | members during their LinkedIn Learning subscription a non-exclusive, 14 | non-transferable copyright license, for internal use only, to 1) make a 15 | reasonable number of copies of the Licensed Materials, and 2) make 16 | derivative works of the Licensed Materials for the sole purpose of 17 | practicing skills taught in LinkedIn Learning courses. 18 | - b. Distribution. Unless otherwise noted in the Licensed Materials, subject 19 | to the terms of this Agreement, LinkedIn hereby grants LinkedIn members 20 | with a LinkedIn Learning subscription a non-exclusive, non-transferable 21 | copyright license to distribute the Licensed Materials, except the 22 | Licensed Materials may not be included in any product or service (or 23 | otherwise used) to instruct or educate others. 24 | 25 | 2. Restrictions and Intellectual Property. 26 | - a. You may not to use, modify, copy, make derivative works of, publish, 27 | distribute, rent, lease, sell, sublicense, assign or otherwise transfer the 28 | Licensed Materials, except as expressly set forth above in Section 1. 29 | - b. Linkedin (and its licensors) retains its intellectual property rights 30 | in the Licensed Materials. Except as expressly set forth in Section 1, 31 | LinkedIn grants no licenses. 32 | - c. You indemnify LinkedIn and its licensors and affiliates for i) any 33 | alleged infringement or misappropriation of any intellectual property rights 34 | of any third party based on modifications you make to the Licensed Materials, 35 | ii) any claims arising from your use or distribution of all or part of the 36 | Licensed Materials and iii) a breach of this Agreement. You will defend, hold 37 | harmless, and indemnify LinkedIn and its affiliates (and our and their 38 | respective employees, shareholders, and directors) from any claim or action 39 | brought by a third party, including all damages, liabilities, costs and 40 | expenses, including reasonable attorneys’ fees, to the extent resulting from, 41 | alleged to have resulted from, or in connection with: (a) your breach of your 42 | obligations herein; or (b) your use or distribution of any Licensed Materials. 43 | 44 | 3. Open source. This code may include open source software, which may be 45 | subject to other license terms as provided in the files. 46 | 47 | 4. Warranty Disclaimer. LINKEDIN PROVIDES THE LICENSED MATERIALS ON AN “AS IS” 48 | AND “AS AVAILABLE” BASIS. LINKEDIN MAKES NO REPRESENTATION OR WARRANTY, 49 | WHETHER EXPRESS OR IMPLIED, ABOUT THE LICENSED MATERIALS, INCLUDING ANY 50 | REPRESENTATION THAT THE LICENSED MATERIALS WILL BE FREE OF ERRORS, BUGS OR 51 | INTERRUPTIONS, OR THAT THE LICENSED MATERIALS ARE ACCURATE, COMPLETE OR 52 | OTHERWISE VALID. TO THE FULLEST EXTENT PERMITTED BY LAW, LINKEDIN AND ITS 53 | AFFILIATES DISCLAIM ANY IMPLIED OR STATUTORY WARRANTY OR CONDITION, INCLUDING 54 | ANY IMPLIED WARRANTY OR CONDITION OF MERCHANTABILITY OR FITNESS FOR A 55 | PARTICULAR PURPOSE, AVAILABILITY, SECURITY, TITLE AND/OR NON-INFRINGEMENT. 56 | YOUR USE OF THE LICENSED MATERIALS IS AT YOUR OWN DISCRETION AND RISK, AND 57 | YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE THAT RESULTS FROM USE OF THE 58 | LICENSED MATERIALS TO YOUR COMPUTER SYSTEM OR LOSS OF DATA. NO ADVICE OR 59 | INFORMATION, WHETHER ORAL OR WRITTEN, OBTAINED BY YOU FROM US OR THROUGH OR 60 | FROM THE LICENSED MATERIALS WILL CREATE ANY WARRANTY OR CONDITION NOT 61 | EXPRESSLY STATED IN THESE TERMS. 62 | 63 | 5. Limitation of Liability. LINKEDIN SHALL NOT BE LIABLE FOR ANY INDIRECT, 64 | INCIDENTAL, SPECIAL, PUNITIVE, CONSEQUENTIAL OR EXEMPLARY DAMAGES, INCLUDING 65 | BUT NOT LIMITED TO, DAMAGES FOR LOSS OF PROFITS, GOODWILL, USE, DATA OR OTHER 66 | INTANGIBLE LOSSES . IN NO EVENT WILL LINKEDIN'S AGGREGATE LIABILITY TO YOU 67 | EXCEED $100. THIS LIMITATION OF LIABILITY SHALL: 68 | - i. APPLY REGARDLESS OF WHETHER (A) YOU BASE YOUR CLAIM ON CONTRACT, TORT, 69 | STATUTE, OR ANY OTHER LEGAL THEORY, (B) WE KNEW OR SHOULD HAVE KNOWN ABOUT 70 | THE POSSIBILITY OF SUCH DAMAGES, OR (C) THE LIMITED REMEDIES PROVIDED IN THIS 71 | SECTION FAIL OF THEIR ESSENTIAL PURPOSE; AND 72 | - ii. NOT APPLY TO ANY DAMAGE THAT LINKEDIN MAY CAUSE YOU INTENTIONALLY OR 73 | KNOWINGLY IN VIOLATION OF THESE TERMS OR APPLICABLE LAW, OR AS OTHERWISE 74 | MANDATED BY APPLICABLE LAW THAT CANNOT BE DISCLAIMED IN THESE TERMS. 75 | 76 | 6. Termination. This Agreement automatically terminates upon your breach of 77 | this Agreement or termination of your LinkedIn Learning subscription. On 78 | termination, all licenses granted under this Agreement will terminate 79 | immediately and you will delete the Licensed Materials. Sections 2-7 of this 80 | Agreement survive any termination of this Agreement. LinkedIn may discontinue 81 | the availability of some or all of the Licensed Materials at any time for any 82 | reason. 83 | 84 | 7. Miscellaneous. This Agreement will be governed by and construed in 85 | accordance with the laws of the State of California without regard to conflict 86 | of laws principles. The exclusive forum for any disputes arising out of or 87 | relating to this Agreement shall be an appropriate federal or state court 88 | sitting in the County of Santa Clara, State of California. If LinkedIn does 89 | not act to enforce a breach of this Agreement, that does not mean that 90 | LinkedIn has waived its right to enforce this Agreement. The Agreement does 91 | not create a partnership, agency relationship, or joint venture between the 92 | parties. Neither party has the power or authority to bind the other or to 93 | create any obligation or responsibility on behalf of the other. You may not, 94 | without LinkedIn’s prior written consent, assign or delegate any rights or 95 | obligations under these terms, including in connection with a change of 96 | control. Any purported assignment and delegation shall be ineffective. The 97 | Agreement shall bind and inure to the benefit of the parties, their respective 98 | successors and permitted assigns. If any provision of the Agreement is 99 | unenforceable, that provision will be modified to render it enforceable to the 100 | extent possible to give effect to the parties’ intentions and the remaining 101 | provisions will not be affected. This Agreement is the only agreement between 102 | you and LinkedIn regarding the Licensed Materials, and supersedes all prior 103 | agreements relating to the Licensed Materials. 104 | 105 | Last Updated: March 2019 106 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2022 LinkedIn Corporation 2 | All Rights Reserved. 3 | 4 | Licensed under the LinkedIn Learning Exercise File License (the "License"). 5 | See LICENSE in the project root for license information. 6 | 7 | ATTRIBUTIONS: 8 | 9 | React 10 | https://github.com/facebook/react 11 | Copyright (c) Facebook, Inc. and its affiliates. 12 | License: MIT 13 | https://opensource.org/licenses/MIT 14 | 15 | Please note, this project may automatically load third party code from external 16 | repositories (for example, NPM modules, Composer packages, or other dependencies). 17 | If so, such third party code may be subject to other license terms than as set 18 | forth above. In addition, such third party code may also depend on and load 19 | multiple tiers of dependencies. Please review the applicable licenses of the 20 | additional dependencies. 21 | 22 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 23 | 24 | MIT License 25 | 26 | Copyright (c) Facebook, Inc. and its affiliates. 27 | 28 | Permission is hereby granted, free of charge, to any person obtaining a copy 29 | of this software and associated documentation files (the ""Software""), to deal 30 | in the Software without restriction, including without limitation the rights 31 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 32 | copies of the Software, and to permit persons to whom the Software is 33 | furnished to do so, subject to the following conditions: 34 | 35 | The above copyright notice and this permission notice shall be included in all 36 | copies or substantial portions of the Software. 37 | 38 | THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 39 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 40 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 41 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 42 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 43 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 44 | SOFTWARE. 45 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Building Modern UIs with React Router v6 2 | This is the repository for the LinkedIn Learning course Building Modern UIs with React Router v6. The full course is available from [LinkedIn Learning][lil-course-url]. 3 | 4 | ![Building Modern UIs with React Router v6][lil-thumbnail-url] 5 | 6 | Are you already familiar with React and ready to level up your skills and build modern user interfaces? In this course, learn how to extend your React applications by adding routing capabilities with React Router, the standard routing library for React. Instructor Guil Hernandez starts by going over routing basics and single page apps. He then illustrates some of the useful React Router components, hooks, and other features that navigate users to all the different views and help create dynamic user interfaces that automatically update whenever the URL changes. He explains how to create 404 or “not found” routes, as well as how the location state, history object, and the history stack work. Guil also provides several challenges along the way so you can practice as you go and make what you’re learning stick. 7 | 8 | ## Instructions 9 | This repository has branches for each of the videos in the course. You can use the branch pop up menu in github to switch to a specific branch and take a look at the course at that stage, or you can add `/tree/BRANCH_NAME` to the URL to go to the branch you want to access. 10 | 11 | ## Branches 12 | The branches are structured to correspond to the videos in the course. The naming convention is `CHAPTER#_MOVIE#`. As an example, the branch named `02_03` corresponds to the second chapter and the third video in that chapter. 13 | Some branches will have a beginning and an end state. These are marked with the letters `b` for "beginning" and `e` for "end". The `b` branch contains the code as it is at the beginning of the movie. The `e` branch contains the code as it is at the end of the movie. The `main` branch holds the final state of the code when in the course. 14 | 15 | When switching from one exercise files branch to the next after making changes to the files, you may get a message like this: 16 | 17 | error: Your local changes to the following files would be overwritten by checkout: [files] 18 | Please commit your changes or stash them before you switch branches. 19 | Aborting 20 | 21 | To resolve this issue: 22 | 23 | Add changes to git using this command: git add . 24 | Commit changes using this command: git commit -m "some message" 25 | 26 | ## Installing 27 | 1. To use these exercise files, you must have the following installed: 28 | - [Node.js](https://nodejs.org/en/) 29 | 2. Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree. 30 | 3. Run `npm install` to install all project dependencies, then `npm start` to run and launch the app 31 | 32 | 33 | ### Instructor 34 | 35 | Guil Hernandez 36 | 37 | Software Development Instructor and Developer 38 | 39 | 40 | 41 | Check out my other courses on [LinkedIn Learning](https://www.linkedin.com/learning/instructors/guil-hernandez). 42 | 43 | [lil-course-url]: https://www.linkedin.com/learning/building-modern-uis-with-react-router-v6 44 | [lil-thumbnail-url]: https://cdn.lynda.com/course/2495079/2495079-1660328056345-16x9.jpg 45 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "conference-site", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^5.16.4", 7 | "@testing-library/react": "^13.3.0", 8 | "@testing-library/user-event": "^13.5.0", 9 | "react": "^18.2.0", 10 | "react-dom": "^18.2.0", 11 | "react-router-dom": "^6.3.0", 12 | "react-scripts": "5.0.1", 13 | "web-vitals": "^2.1.4" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "build": "react-scripts build", 18 | "test": "react-scripts test", 19 | "eject": "react-scripts eject" 20 | }, 21 | "eslintConfig": { 22 | "extends": [ 23 | "react-app", 24 | "react-app/jest" 25 | ] 26 | }, 27 | "browserslist": { 28 | "production": [ 29 | ">0.2%", 30 | "not dead", 31 | "not op_mini all" 32 | ], 33 | "development": [ 34 | "last 1 chrome version", 35 | "last 1 firefox version", 36 | "last 1 safari version" 37 | ] 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LinkedInLearning/building-modern-uis-with-react-router-v6-2495079/dc6f24d0bd40f14bf5895e923834e3c355bf01f6/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 |6 | Red30 Tech is the leading source of secure, fully customizable 7 | technology and business solutions. We cater to those who need scalable 8 | results that are sustainable for their company and the planet. With the 9 | ever-evolving technology landscape, we want to be your go-to source for 10 | business technology. 11 |
12 |13 | Our mission is to provide technology and business-driven solutions that 14 | work seamlessly with your company, allowing your employees, partners, 15 | and customers to engage in quality interactions that lead to scalable 16 | growth. We consistently work towards being the premier provider of 17 | environmentally sustainable technology solutions that connect the world. 18 |
19 |{session.name}
16 |17 | {session.speaker.name} | {session.speaker.org} 18 |
19 |You're now registered for Red30 Tech.
6 |14 | This is a fictitious company and conference created by{" "} 15 | 20 | LinkedIn Corporation, or its affiliates 21 | 22 | , solely for the creation and development of educational training 23 | materials. Any resemblance to real products or services is purely 24 | coincidental. Information provided about the products or services is 25 | also fictitious and should not be construed as representative of actual 26 | products or services on the market in a similar product or service 27 | category. 28 |
29 |14 | Make sure to grab your spot for this year's conference! We love 15 | technology and consistently work towards being the premier provider of 16 | technology solutions and events that connect the world. 17 |
18 | 25 |{desc}
14 | 15 |{speaker.bio}
20 | > 21 | ); 22 | } 23 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | /* base styles */ 2 | *, *:before, *:after { 3 | box-sizing: border-box; 4 | } 5 | 6 | body { 7 | margin: 0; 8 | color: #222; 9 | font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif; 10 | -webkit-font-smoothing: antialiased; 11 | -moz-osx-font-smoothing: grayscale; 12 | } 13 | 14 | h1 { 15 | font-size: 2.2rem; 16 | margin: 0 0 1em 0; 17 | } 18 | 19 | h2 { 20 | font-size: 1.85rem; 21 | color: #858585; 22 | } 23 | 24 | h3 { 25 | font-size: 1.5rem; 26 | margin-bottom: 0; 27 | } 28 | 29 | h4 { 30 | font-size: 1.25rem; 31 | color: #525252; 32 | margin: 0 0 0.25em; 33 | } 34 | 35 | h4 + span { 36 | display: block; 37 | margin-bottom: 1.65em; 38 | } 39 | 40 | p { 41 | font-size: 1.125rem; 42 | line-height: 1.5; 43 | margin-bottom: 1.5em; 44 | } 45 | 46 | ul { 47 | list-style: none; 48 | font-size: 1.125rem; 49 | margin: 0; 50 | padding: 0; 51 | } 52 | 53 | ul li { 54 | margin-bottom: 1em; 55 | } 56 | 57 | /* nav & links */ 58 | 59 | a { 60 | color: #e7212b; 61 | } 62 | 63 | a:hover { 64 | text-decoration: none; 65 | } 66 | 67 | nav a { 68 | display: block; 69 | font-size: 1.25rem; 70 | color: #DD1F26; 71 | padding-bottom: 0.15em; 72 | border-bottom: 2px solid transparent; 73 | font-weight: 500; 74 | text-decoration: none; 75 | } 76 | 77 | nav a:hover, 78 | .nav-active { 79 | color: #5dabaa; 80 | } 81 | 82 | .categories a { 83 | font-weight: 500; 84 | color: #605e5e; 85 | text-decoration: none; 86 | padding: 0.25em 0.4em; 87 | } 88 | .categories a:hover, 89 | a.category-active { 90 | color: #fff; 91 | background-color: #605e5e; 92 | border-radius: 3px; 93 | } 94 | 95 | .session a { 96 | display: block; 97 | color: rgb(56, 56, 56); 98 | text-decoration: none; 99 | border: 1px solid currentColor; 100 | padding: 0.85em 1.125em; 101 | border-radius: 3px; 102 | } 103 | 104 | .session a:hover, 105 | a.session-active { 106 | color: #489b9a; 107 | } 108 | 109 | /* components & assets */ 110 | .logo { 111 | width: 220px; 112 | } 113 | 114 | .img-feat { 115 | width: 100%; 116 | border-radius: 0.35em; 117 | margin-bottom: 2em; 118 | } 119 | 120 | .categories { 121 | margin-top: 2.5em; 122 | margin-bottom: 1.5em; 123 | } 124 | 125 | ul.session-list { 126 | display: flex; 127 | } 128 | 129 | .session + .session { 130 | margin-left: 1.5em; 131 | } 132 | 133 | .session-name { 134 | font-size: 1.125rem; 135 | font-weight: bold; 136 | } 137 | 138 | .session p { 139 | margin: 0; 140 | } 141 | 142 | form { 143 | font-size: 1.25rem; 144 | margin: 2em auto; 145 | } 146 | 147 | label { 148 | display: block; 149 | font-weight: 500; 150 | margin-bottom: 1.5em; 151 | } 152 | 153 | input { 154 | font-size: 1em; 155 | margin-top: 0.35em; 156 | display: block; 157 | width: 100%; 158 | padding: 0.5em; 159 | border: 1px solid #dbdbdb; 160 | border-radius: 3px; 161 | } 162 | 163 | input:focus { 164 | outline-color: #5dabaa; 165 | } 166 | 167 | input[type="submit"] { 168 | cursor: pointer; 169 | color: #fff; 170 | font-weight: bold; 171 | padding: 0.65em 0; 172 | background-color: #75bebd; 173 | border: none; 174 | } 175 | input[type="submit"]:hover { 176 | background-color: #5dabaa; 177 | } 178 | 179 | /* layout */ 180 | .app { 181 | min-height: 100vh; 182 | display: flex; 183 | flex-direction: column; 184 | } 185 | 186 | header { 187 | padding: 1.75em 0; 188 | } 189 | 190 | .not-found { 191 | text-align: center; 192 | } 193 | 194 | .not-found::before { 195 | content: "😕"; 196 | margin-right: 0.35em; 197 | } 198 | 199 | footer.container { 200 | padding: 2.25em 0; 201 | margin-top: auto; 202 | border-top: 1px solid rgb(219, 219, 219); 203 | } 204 | 205 | .container { 206 | width: 90%; 207 | max-width: 800px; 208 | margin: 0 auto; 209 | } 210 | 211 | /* media queries */ 212 | @media (max-width: 767px) { 213 | nav a { 214 | padding: 0.35em 0; 215 | } 216 | } 217 | 218 | @media (min-width: 768px) { 219 | header, 220 | nav { 221 | display: flex; 222 | align-items: center; 223 | } 224 | header.container { 225 | margin-bottom: 1em; 226 | } 227 | nav { 228 | margin-left: auto; 229 | } 230 | nav a { 231 | margin-left: 1.25em; 232 | } 233 | .nav-active { 234 | border-bottom: 2px solid currentColor; 235 | } 236 | .categories { 237 | display: grid; 238 | grid-template-columns: 1fr 1fr 1fr; 239 | } 240 | form { 241 | width: 60%; 242 | } 243 | } -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import { BrowserRouter } from "react-router-dom"; 4 | 5 | import "./index.css"; 6 | import App from "./components/App"; 7 | 8 | const root = ReactDOM.createRoot(document.getElementById("root")); 9 | 10 | root.render( 11 |