film-exif/src/views/HomeView.js

39 lines
725 B
JavaScript
Raw Normal View History

2018-04-03 14:13:16 -04:00
import {
Container,
Jumbotron,
Row,
} from '../components/Bootstrap';
2018-04-03 21:47:41 -04:00
function handleDrop (e) {
e.preventDefault();
e.stopPropagation();
for (const f of e.dataTransfer.files) {
console.log('Dragged files', f.path);
}
}
function handleDragOver (e) {
e.preventDefault();
e.stopPropagation();
}
2018-04-03 14:13:16 -04:00
export const HomeView = (props) => {
return (
2018-04-03 21:47:41 -04:00
<Jumbotron onDrop={handleDrop} onDragover={handleDragOver}>
2018-04-03 14:13:16 -04:00
<Container className="App">
<Row>
<header className="App-header">
<h1>Welcome to Inferno</h1>
</header>
</Row>
<Row>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</Row>
</Container>
</Jumbotron>
2018-04-03 15:19:45 -04:00
);
};