Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrachov committed May 30, 2023
1 parent 94c7067 commit cd6abfe
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Run application",
"name": "Run your site!",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 GitHub
Copyright (c) 2023 Leo Grachov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
49 changes: 7 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,13 @@
# GitHub Codespaces ♥️ React
# Morkovka ♥️ React

Welcome to your shiny new Codespace running React! We've got everything fired up and running for you to explore React.
Welcome to better React setup! We've got everything remade for you to explore React.

You've got a blank canvas to work on from a git perspective as well. There's a single initial commit with the what you're seeing right now - where you go from here is up to you!

Everything you do here is contained within this one codespace. There is no repository on GitHub yet. If and when you’re ready you can click "Publish Branch" and we’ll create your repository and push up your project. If you were just exploring then and have no further need for this code then you can simply delete your codespace and it's gone forever.
Everything you do here is contained within this one repository. You have your repository (one that you are editing now) on GitHub.

This project was bootstrapped for you with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

We've already run this for you in the `Codespaces: server` terminal window below. If you need to stop the server for any reason you can just run `npm start` again to bring it back online.

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) in the built-in Simple Browser (`Cmd/Ctrl + Shift + P > Simple Browser: Show`) to view your running application.

The page will reload automatically when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

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.

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.

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.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
Expand Down Expand Up @@ -76,3 +37,7 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `npm run build` fails to minify

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)

***

Thanks for using Morkovka's [Better React Template](https://github.com/morkovka-org/better-react-template) to explore/code React!
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "codespaces-react",
"name": "better-react-template",
"version": "0.1.0",
"private": true,
"private": true,
"What_Is_Key_Private": "The key 'private' is a key that will not allow 'npm' to publish it. From Microsoft Help: If set to true, then npm will refuse to publish it.",
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="Web site created using Morkovka's Better React Template."
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Expand All @@ -27,7 +27,7 @@
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<noscript>You need to enable JavaScript to run this app. Morkovka has made this template! Check it! https://github.com/morkovka-org/better-react-template</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Better React Template",
"name": "Better React Template by Morkovka to make your development easier.",
"icons": [
{
"src": "favicon.ico",
Expand Down
8 changes: 4 additions & 4 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.App {
.app {
text-align: center;
}

.App-logo {
.logo {
height: 40vmin;
pointer-events: none;
}

.App-header {
.header {
background-color: #282c34;
min-height: 100vh;
display: flex;
Expand All @@ -18,7 +18,7 @@
color: white;
}

.App-link {
.link {
color: #61dafb;
}

Expand Down
12 changes: 6 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import './App.css';

function App() {
return (
<div className="App">
<header className="App-header">
<img src="Octocat.png" className="App-logo" alt="logo" />
<div className="app">
<header className="header">
<img src="Octocat.png" className="logo" alt="An octocat vector art." />
<p>
GitHub Codespaces <span className="heart">♥️</span> React
Morkovka <span className="heart">♥️</span> React
</p>
<p className="small">
Edit <code>src/App.js</code> and save to reload.
Edit <code>src/App.js</code> and save to reload. Thank you for using Morkovka's Better React Template to explore/develop React!
</p>
<p>
<a
className="App-link"
className="link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
Expand Down
14 changes: 14 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/* Help:
'font-family':
Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.
(Edge 12, Firefox 1, Safari 1, Chrome 1, IE 3, Opera 3)
'margin':
Shorthand property to set values for the thickness of the margin area. If left is omitted, it is the same as right. If bottom is omitted it is the same as top, if right is omitted it is the same as top. Negative values for margin properties are allowed, but there may be implementation-specific limits.
(Edge 12, Firefox 1, Safari 1, Chrome 1, IE 3, Opera 3)
For more help, visit https://www.w3schools.com/css/
For making CSS gradient, visit https://cssgradient.io
https://w3schools.com/ is by WWW - The world-wide-web. (lol everyone knows about that)
https://cssgradient.io/ is by Moe Amaya - I don't know anything about him.
*/

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
// Comment this if you don't need 'reportWebVitals()'. Hey! An shortcut available in VSCode! 'Cmd + /' to instantly comment selected text!
import reportWebVitals from './reportWebVitals';
// Comment this if you don't need 'reportWebVitals()'. Hey! An shortcut available in VSCode! 'Cmd + /' to instantly comment selected text!

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
Expand Down

0 comments on commit cd6abfe

Please sign in to comment.