Remove placeholder css and html from app, add OpenToday child within container

This commit is contained in:
2018-03-09 19:31:49 +05:30
parent 551b7d824f
commit 9537963e1b
2 changed files with 8 additions and 34 deletions
+5 -24
View File
@@ -1,28 +1,9 @@
.App { .App {
text-align: center; width: 100%;
height: 100%;
} }
.App-logo { .App .OpenToday-container {
animation: App-logo-spin infinite 20s linear; width: 100%;
height: 80px; height: 60%;
}
.App-header {
background-color: #222;
height: 150px;
padding: 20px;
color: white;
}
.App-title {
font-size: 1.5em;
}
.App-intro {
font-size: large;
}
@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
} }
+3 -10
View File
@@ -3,20 +3,13 @@ import './App.css';
import { OpenToday } from '../OpenToday'; import { OpenToday } from '../OpenToday';
import { allHolidays } from '../../Data'; import { allHolidays } from '../../Data';
const logo = require('./logo.svg');
class IsNiftyOpenApp extends React.Component { class IsNiftyOpenApp extends React.Component {
render() { render() {
return ( return (
<div className="App"> <div className="App">
<header className="App-header"> <div className="OpenToday-container">
<img src={logo} className="App-logo" alt="logo" /> <OpenToday question={OpenToday.OpenOrClose.Open} allHolidays={allHolidays} />
<h1 className="App-title">Welcome to React</h1> </div>
</header>
<p className="App-intro">
To get started, edit <code>src/App.tsx</code> and save to reload.
</p>
<OpenToday question={OpenToday.OpenOrClose.Open} allHolidays={allHolidays}/>
</div> </div>
); );
} }