Initial project files

This commit is contained in:
2019-04-08 19:38:04 -04:00
parent 05a2abb70a
commit ab530b9cc4
8 changed files with 34 additions and 19 deletions

33
src/components/App.css Normal file
View File

@@ -0,0 +1,33 @@
.App {
text-align: center;
}
.App-logo {
animation: App-logo-spin infinite 20s linear;
height: 40vmin;
pointer-events: none;
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

31
src/components/App.js Normal file
View File

@@ -0,0 +1,31 @@
import React, { Component } from 'react';
import Header from './shared/header';
import Footer from "./shared/footer"
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<Header/>
<header className="App-header">
<img src="" 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>
<Footer/>
</div>
);
}
}
export default App;

View File

@@ -0,0 +1,14 @@
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
class Footer extends Component {
render() {
return (
<h1>
This is a footer!
</h1>
);
}
}
export default Footer;

View File

@@ -0,0 +1,14 @@
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
class Header extends Component {
render() {
return (
<h1>
This is a header!
</h1>
);
}
}
export default Header;