mirror of
https://github.com/bendtherules/is-nifty-open.git
synced 2026-08-18 13:52:20 +00:00
Remove placeholder css and html from app, add OpenToday child within container
This commit is contained in:
@@ -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,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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user