`\n\nSave your changes and then click `Next` to move forward. ⬇️"
13 | },
14 | {
15 | "file": "src/App.css",
16 | "line": 11,
17 | "description": "Great job at updating the words on your web app. Now let's update the background colors for this app. On line 11, the background color is currently `#282c34`, which is the color code for dark grey. Let's update it to `purple`.\n\nDon't forget to press save and check your updated changes in the browser! 💜"
18 | },
19 | {
20 | "title": "Completed",
21 | "description": "Mission complete! You added code to you first GitHub Codespace. Feel free to continue experimenting.\n\nBonus tip: If you click the three-dot menu associated with your current Codespace, you will see the option to 'Publish Codespace'. Once you publish your current codespace, you can share it with friends to show off your awesome creation!"
22 | }
23 | ],
24 | "isPrimary": true
25 | }
26 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Run application",
6 | "type": "node",
7 | "request": "launch",
8 | "cwd": "${workspaceFolder}",
9 | "console": "integratedTerminal",
10 | "runtimeExecutable": "npm",
11 | "runtimeArgs": [
12 | "run-script",
13 | "start"
14 | ],
15 | "skipFiles": [
16 | "/**"
17 | ]
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/CODEOWNERS:
--------------------------------------------------------------------------------
1 | @ladykerr
2 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as
6 | contributors and maintainers pledge to making participation in our project and
7 | our community a harassment-free experience for everyone, regardless of age, body
8 | size, disability, ethnicity, sex characteristics, gender identity and expression,
9 | level of experience, education, socio-economic status, nationality, personal
10 | appearance, race, religion, or sexual identity and orientation.
11 |
12 | ## Our Standards
13 |
14 | Examples of behavior that contributes to creating a positive environment
15 | include:
16 |
17 | * Using welcoming and inclusive language
18 | * Being respectful of differing viewpoints and experiences
19 | * Gracefully accepting constructive criticism
20 | * Focusing on what is best for the community
21 | * Showing empathy towards other community members
22 |
23 | Examples of unacceptable behavior by participants include:
24 |
25 | * The use of sexualized language or imagery and unwelcome sexual attention or
26 | advances
27 | * Trolling, insulting/derogatory comments, and personal or political attacks
28 | * Public or private harassment
29 | * Publishing others' private information, such as a physical or electronic
30 | address, without explicit permission
31 | * Other conduct which could reasonably be considered inappropriate in a
32 | professional setting
33 |
34 | ## Our Responsibilities
35 |
36 | Project maintainers are responsible for clarifying the standards of acceptable
37 | behavior and are expected to take appropriate and fair corrective action in
38 | response to any instances of unacceptable behavior.
39 |
40 | Project maintainers have the right and responsibility to remove, edit, or
41 | reject comments, commits, code, wiki edits, issues, and other contributions
42 | that are not aligned to this Code of Conduct, or to ban temporarily or
43 | permanently any contributor for other behaviors that they deem inappropriate,
44 | threatening, offensive, or harmful.
45 |
46 | ## Scope
47 |
48 | This Code of Conduct applies both within project spaces and in public spaces
49 | when an individual is representing the project or its community. Examples of
50 | representing a project or community include using an official project e-mail
51 | address, posting via an official social media account, or acting as an appointed
52 | representative at an online or offline event. Representation of a project may be
53 | further defined and clarified by project maintainers.
54 |
55 | ## Enforcement
56 |
57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
58 | reported by contacting the project team at support@github.com. All
59 | complaints will be reviewed and investigated and will result in a response that
60 | is deemed necessary and appropriate to the circumstances. The project team is
61 | obligated to maintain confidentiality with regard to the reporter of an incident.
62 | Further details of specific enforcement policies may be posted separately.
63 |
64 | Project maintainers who do not follow or enforce the Code of Conduct in good
65 | faith may face temporary or permanent repercussions as determined by other
66 | members of the project's leadership.
67 |
68 | ## Attribution
69 |
70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72 |
73 | [homepage]: https://www.contributor-covenant.org
74 |
75 | For answers to common questions about this code of conduct, see
76 | https://www.contributor-covenant.org/faq
77 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Contributing
2 |
3 | [fork]: https://github.com/codespaces-learn-with-m/codes/fork
4 | [pr]: https://github.com/github/codespaces-learn-with-m/compare
5 | [code-of-conduct]: CODE_OF_CONDUCT.md
6 |
7 | Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
8 |
9 | Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE.md).
10 |
11 | Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
12 |
13 | ## Submitting a pull request
14 |
15 | 1. [Fork][fork] and clone the repository
16 | 1. Configure and install the dependencies: `script/bootstrap`
17 | 1. Make sure the tests pass on your machine: `rake`
18 | 1. Create a new branch: `git checkout -b my-branch-name`
19 | 1. Make your change, add tests, and make sure the tests still pass
20 | 1. Push to your fork and [submit a pull request][pr]
21 | 1. Pat your self on the back and wait for your pull request to be reviewed and merged.
22 |
23 | Here are a few things you can do that will increase the likelihood of your pull request being accepted:
24 |
25 | - Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
26 | - Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
27 |
28 | ## Resources
29 |
30 | - [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
31 | - [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
32 | - [GitHub Help](https://help.github.com)
33 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 Rizel Scarlett
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Learn React with Codespaces 📝
2 |
3 | Welcome to your first Codespace running a popular UI framework called React! We've got everything fired up and running for you to explore React and Codespaces for the first time.
4 |
5 | A template for your project README.
6 |
7 | ## License
8 |
9 | This project is licensed under the terms of the MIT open source license. Please refer to [MIT](https://github.com/github/codespaces-learn-with-me/blob/main/LICENSE) for the full terms.
10 |
11 | ## Maintainers
12 |
13 | Please see [CODEOWNERS](CODEOWNERS).
14 |
15 | ## Support
16 |
17 | Please see [SUPPORT](https://github.com/github/codespaces-learn-with-me/blob/main/SUPPORT.MD).
18 |
19 | ## Room for Improvement
20 |
21 | There's always room for improvement in any project.
22 |
23 | - If you have a suggestion feel free to [open an issue](https://github.com/github/codespaces-learn-with-me/issues/new).
24 |
25 | - If you have a solution, feel free to open a pull request.
26 |
27 | Learn how in the [Contributing Guidelines](https://github.com/github/codespaces-learn-with-me/blob/main/CONTRIBUTING.md).
28 |
29 | ## How to Use
30 |
31 | ### Open in Codespace
32 |
33 | Once our codespace is fully loaded, you will see a live preview of your web app on a tab titled "Simple Browser." (If you don’t see the “Simple Browser” tab yet, give it a few minutes to load.) It should look like the image below:
34 |
35 |
36 |
37 | ### Change some words
38 |
39 | Currently, the web app states that "GitHub Codespaces ♥️ React." Let's replace the words “GitHub Codespaces” with our GitHub username by following these steps:
40 |
41 | 1. Navigate to the App.js file in the src folder. This is where the content for the web app lives.
42 | 2. On line 9 of the App.js file, you will see the words “GitHub Codespaces ♥️ React” wrapped in a paragraph tag represented by these characters `<p></p>`.
43 | 3. Change the words “GitHub Codespaces” on line 9 to your GitHub username.
44 | 4. Save the changes you made in your App.js file by pressing the keys “command and s” for Mac or “control and s” for Windows.
45 | 5. Check for the reflected changes in your simple browser tab
46 |
47 | My GitHub username is blackgirlbytes, so my web app says “blackgirlbytes ♥️ React.”
48 |
49 |
50 |
51 | ### Change the background color
52 |
53 | The background color for the React app is currently gray. Gray might be someone’s favorite color, but it’s not mine. Let’s brighten it up by following the steps below:
54 |
55 | 1. Navigate to the App.css file in the src folder. This is where the styles of the web app live.
56 | 2. On line 11 of the App.css file, you will see the following code:
57 |
58 | `background-color: #282c34;` #282c34 is the hex code for the color gray.
59 |
60 | 3. Try replacing the `#282c34` with the word `purple`. (That’s my favorite color!)
61 | 4. Save the changes you made in your App.css file by pressing the keys “command and s” for Mac or “control and s” for Windows.
62 | 5. Check for the reflected changes in your simple browser tab.
63 |
64 | The final version should resemble the image below:
65 |
66 |
67 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | Thanks for helping make GitHub safe for everyone.
2 |
3 | # Security
4 |
5 | GitHub takes the security of our software products and services seriously, including all of the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
6 |
7 | Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we will ensure that your finding gets passed along to the appropriate maintainers for remediation.
8 |
9 | ## Reporting Security Issues
10 |
11 | If you believe you have found a security vulnerability in any GitHub-owned repository, please report it to us through coordinated disclosure.
12 |
13 | **Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
14 |
15 | Instead, please send an email to opensource-security[@]github.com.
16 |
17 | Please include as much of the information listed below as you can to help us better understand and resolve the issue:
18 |
19 | * The type of issue (e.g., buffer overflow, SQL injection, or cross-site scripting)
20 | * Full paths of source file(s) related to the manifestation of the issue
21 | * The location of the affected source code (tag/branch/commit or direct URL)
22 | * Any special configuration required to reproduce the issue
23 | * Step-by-step instructions to reproduce the issue
24 | * Proof-of-concept or exploit code (if possible)
25 | * Impact of the issue, including how an attacker might exploit the issue
26 |
27 | This information will help us triage your report more quickly.
28 |
29 | ## Policy
30 |
31 | See [GitHub's Safe Harbor Policy](https://docs.github.com/en/github/site-policy/github-bug-bounty-program-legal-safe-harbor#1-safe-harbor-terms)
32 |
--------------------------------------------------------------------------------
/SUPPORT.MD:
--------------------------------------------------------------------------------
1 | # Support
2 |
3 | ## How to file issues and get help
4 |
5 | This project uses GitHub issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue.
6 |
7 | For help or questions about using this project, please reach out in the project [Discussions](https://github.com/github/codespaces-learn-with-me/discussions). We're here to help!
8 |
9 | **TODO: REPO MAINTAINERS** Please include one of the following statements file:
10 |
11 | - **Codespaces Learn with Me** is under active development and maintained by GitHub staff **AND THE COMMUNITY**. We will do our best to respond to support, feature requests, and community questions in a timely manner.
12 |
13 | ## GitHub Support Policy
14 |
15 | Support for this project is limited to the resources listed above.
16 |
--------------------------------------------------------------------------------
/ownership.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | version: 1
3 | ownership:
4 | # ownership.yaml describes who is responsible for a service, and how to contact them. If your service is made up
5 | # of multiple components, you can define multiple entries in this file.
6 | #
7 | # Additional documentation on ownership.yaml fields is available at: https://thehub.github.com/engineering/products/service-catalog/service-ownership/#attributes-of-durable-ownership
8 | # Questions? Ask in #sre on Slack.
9 | - team: github/devrel
10 | repo: https://github.com/github/codespaces-learn-with-me
11 | name: codespaces-learn-with-me
12 | kind: moda
13 | long_name: Codespaces Learn with Me
14 | description: This is a Codespaces React template that leverages a Code Tour to guide beginners through writing their first lines of React.
15 | maintainer: ladykerr
16 | exec_sponsor: martinwoodward
17 | product_manager: thisiskirsch
18 | qos: experimental
19 | tier: 3
20 | sev3:
21 | slack: developer-relations
22 | issue: https://github.com/github/codespaces-learn-with-me/issues
23 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "codespaces-react",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^6.1.4",
7 | "@testing-library/react": "^14.0.0",
8 | "@testing-library/user-event": "^14.5.1",
9 | "react": "^18.2.0",
10 | "react-dom": "^18.2.0",
11 | "web-vitals": "^3.5.0"
12 | },
13 | "devDependencies": {
14 | "react-scripts": "^5.0.1",
15 | "@babel/plugin-proposal-private-property-in-object": "^7.21.11"
16 | },
17 | "overrides": {
18 | "nth-check": "2.1.1"
19 | },
20 | "scripts": {
21 | "start": "BROWSER=none WDS_SOCKET_PORT=0 react-scripts start",
22 | "build": "react-scripts build",
23 | "test": "react-scripts test",
24 | "eject": "react-scripts eject"
25 | },
26 | "eslintConfig": {
27 | "extends": [
28 | "react-app",
29 | "react-app/jest"
30 | ]
31 | },
32 | "browserslist": {
33 | "production": [
34 | ">0.2%",
35 | "not dead",
36 | "not op_mini all"
37 | ],
38 | "development": [
39 | "last 1 chrome version",
40 | "last 1 firefox version",
41 | "last 1 safari version"
42 | ]
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/public/Octocat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/github/codespaces-learn-with-me/7a627ceca1e66c96ddd2fd33fc29ddfc41040770/public/Octocat.png
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/github/codespaces-learn-with-me/7a627ceca1e66c96ddd2fd33fc29ddfc41040770/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/github/codespaces-learn-with-me/7a627ceca1e66c96ddd2fd33fc29ddfc41040770/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/github/codespaces-learn-with-me/7a627ceca1e66c96ddd2fd33fc29ddfc41040770/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.css:
--------------------------------------------------------------------------------
1 | .App {
2 | text-align: center;
3 | }
4 |
5 | .App-logo {
6 | height: 40vmin;
7 | pointer-events: none;
8 | }
9 |
10 | .App-header {
11 | background-color: #282c34;
12 | min-height: 100vh;
13 | display: flex;
14 | flex-direction: column;
15 | align-items: center;
16 | justify-content: center;
17 | font-size: calc(10px + 2vmin);
18 | color: white;
19 | }
20 |
21 | .App-link {
22 | color: #61dafb;
23 | }
24 |
25 | .heart {
26 | color: #ff0000;
27 | }
28 |
29 | .small {
30 | font-size: 0.75rem;
31 | }
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import './App.css';
2 |
3 | function App() {
4 | return (
5 |