{"id":19168570,"url":"https://github.com/oneted11/scrimba-react-project1","last_synced_at":"2025-02-22T23:27:36.707Z","repository":{"id":123735203,"uuid":"501129261","full_name":"Oneted11/scrimba-react-project1","owner":"Oneted11","description":"free react tutorial on scrimba static project 1","archived":false,"fork":false,"pushed_at":"2022-06-08T07:06:52.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-03T23:16:46.171Z","etag":null,"topics":["css3","reactjs","static-site","tutorial"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oneted11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-08T06:36:18.000Z","updated_at":"2022-06-08T06:38:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"fd816433-e2f9-4169-ad72-53aed74d7ea6","html_url":"https://github.com/Oneted11/scrimba-react-project1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Fscrimba-react-project1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Fscrimba-react-project1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Fscrimba-react-project1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Fscrimba-react-project1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oneted11","download_url":"https://codeload.github.com/Oneted11/scrimba-react-project1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240249504,"owners_count":19771674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css3","reactjs","static-site","tutorial"],"created_at":"2024-11-09T09:43:07.892Z","updated_at":"2025-02-22T23:27:36.681Z","avatar_url":"https://github.com/Oneted11.png","language":"HTML","readme":"# Finished project screenshot\n\n![image](https://user-images.githubusercontent.com/17639178/172549353-e18a0fb4-d5c8-4718-8651-31f4a0836c97.png)\n\n# How to start\n\n- [x] Ensure you have nodejs installed and either npm or yarn\n- [x] pwd into folder\n- [x] run `npm install` or `yarn`\n- [x] run `npm start` or `yarn start` or `npm run start`\n- [ ] have fun with it\n\n# Learnings\n\n## ::marker\n\nA css pseudo-element very useful for adding styling to your lists. In this project it has been used to make the dots big and blue\n\n```css\n.main-content \u003e ul \u003e li::marker {\n  color: #61dafb; /* Change the color */\n\n  font-size: 1.4em; /* make bigger*/\n}\n```\n\n## new render function in react 18\n\n`ReactDOM.render(\u003capp/\u003e,document.getElementById(\"root\"))` is now out of vogue this is the new method called [createRoot](https://reactjs.org/docs/react-dom-client.html)\nI've used it as such:\n\n```js\nimport React from \"react\";\nimport { createRoot } from \"react-dom/client\";\n\nimport App from \"./App\";\nimport \"./index.css\";\n\ncreateRoot(document.getElementById(\"root\")).render(\u003cApp /\u003e);\n// ReactDOM.render(\u003cApp /\u003e, document.getElementById(\"root\"));\n```\n\n## Background image\n\nHow to add and postion the [background image](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image), in this case the half react-logo\n\n```css\n.main-content {\n  background-image: url(./images/reactr-half-background.svg);\n  background-repeat: no-repeat;\n  background-position: 100% 50%; /* x,y coordinates*/\n}\n```\n\n# Default React info starts here\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)\n\n### Analyzing the Bundle Size\n\nThis 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)\n\n### Making a Progressive Web App\n\nThis 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)\n\n### Advanced Configuration\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)\n\n### Deployment\n\nThis section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)\n\n### `npm run build` fails to minify\n\nThis 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)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneted11%2Fscrimba-react-project1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneted11%2Fscrimba-react-project1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneted11%2Fscrimba-react-project1/lists"}