-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08bd9de
commit f978d9e
Showing
28 changed files
with
787 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
serviceWorker.js | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'airbnb', | ||
], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly', | ||
}, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 11, | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'react', | ||
], | ||
rules: { | ||
"react/prop-types": "off", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v12.16.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { Provider } from 'react-redux'; | ||
|
||
import store from './store'; | ||
|
||
import Header from './components/Header'; | ||
import Login from './pages/Login'; | ||
|
||
import './assets/scss/main.scss'; | ||
|
||
function App() { | ||
return ( | ||
<Provider store={store}> | ||
<Header title="Be The Hero!" /> | ||
<main> | ||
<Login /> | ||
</main> | ||
</Provider> | ||
); | ||
} | ||
|
||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { bindActionCreators } from 'redux'; | ||
import { connect } from 'react-redux'; | ||
|
||
import { addName } from './store/profile'; | ||
|
||
function Test({ name, addMyName }) { | ||
return ( | ||
<div> | ||
<h2>{name}</h2> | ||
<button type="button" onClick={() => addMyName('Claudio')}>Change name</button> | ||
</div> | ||
); | ||
} | ||
|
||
const mapStateToProps = (state) => ({ name: state.profile.name }); | ||
|
||
const mapDispathToProps = (dispatch) => bindActionCreators({ addMyName: addName }, dispatch); | ||
|
||
export default connect(mapStateToProps, mapDispathToProps)(Test); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap'); | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
outline: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font: 400 14px Roboto, sans-serif; | ||
background: #f0f0f5; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
|
||
input, button, textarea { | ||
font: 400 18px Roboto, sans-serif; | ||
} | ||
|
||
button { | ||
cursor: pointer; | ||
} | ||
|
||
form input { | ||
width: 100%; | ||
height: 60px; | ||
color: #333; | ||
border: 1px solid #dcdce6; | ||
border-radius: 8px; | ||
padding: 0 24px; | ||
} | ||
|
||
form textarea { | ||
width: 100%; | ||
resize: vertical; | ||
min-height: 140px; | ||
color: #333; | ||
border: 1px solid #dcdce6; | ||
border-radius: 8px; | ||
padding: 16px 24px; | ||
line-height: 24px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
export default function Header({ title }) { | ||
return ( | ||
<header> | ||
<h1>{title}</h1> | ||
</header> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
|
||
import { Wrapper } from './styles'; | ||
|
||
export default function Login() { | ||
return ( | ||
<Wrapper> | ||
<h2>Login</h2> | ||
</Wrapper> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Wrapper = styled.div` | ||
color: red; | ||
`; |
Oops, something went wrong.