Skip to content

Commit

Permalink
App structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Patricio Vargas committed Aug 9, 2021
1 parent 4d9714c commit b5584e3
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 14 deletions.
21 changes: 7 additions & 14 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
import logo from './logo.svg';
import './App.css';
import Button from './components/Button/Button';
import Scan from './containers/Scan';
import Write from './containers/Write';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<Button name="Scan"/>
<Button name="Write"/>
<Scan/>
<Write/>
</div>
);
}
Expand Down
Empty file.
9 changes: 9 additions & 0 deletions src/components/Button/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';

const Button = ({name, fn}) => {
return (
<button>{name}</button>
)
}

export default Button;
Empty file.
16 changes: 16 additions & 0 deletions src/components/Scanner/Scanner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react';

const Scanner = () => {
return (
<div className="scanner">
<div className="scanner-container">
<div className="scanner-image" />
<div className="scanner-text">
Scanner
</div>
</div>
</div>
);
};

export default Scanner;
Empty file.
Empty file.
10 changes: 10 additions & 0 deletions src/containers/Scan.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import Scanner from '../components/Scanner/Scanner';

const Scan = () => {
return (
<Scanner></Scanner>
);
};

export default Scan;
9 changes: 9 additions & 0 deletions src/containers/Write.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';

const Write = () => {
return (
"Write"
);
};

export default Write;

0 comments on commit b5584e3

Please sign in to comment.