updated App.tsx
This commit is contained in:
24
src/App.css
24
src/App.css
@@ -1,24 +0,0 @@
|
||||
.App {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
animation: App-logo-spin infinite 20s linear;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.App-header {
|
||||
background-color: #222;
|
||||
height: 150px;
|
||||
padding: 20px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-intro {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
@keyframes App-logo-spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
33
src/App.tsx
33
src/App.tsx
@@ -1,22 +1,35 @@
|
||||
import * as React from 'react';
|
||||
import './App.css';
|
||||
import { FocusStyleManager } from '@blueprintjs/core';
|
||||
// import { Table, Cell, Column } from '@blueprintjs/table';
|
||||
|
||||
const logo = require('./logo.svg');
|
||||
FocusStyleManager.onlyShowFocusOnTabs();
|
||||
|
||||
// const logo = require('./logo.svg');
|
||||
|
||||
class App extends React.Component<{}, null> {
|
||||
render() {
|
||||
return (
|
||||
<div className="App">
|
||||
<div className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<h2>Welcome to React</h2>
|
||||
<nav className="pt-navbar pt-dark-app-background-color">
|
||||
<div className="pt-navbar-group pt-align-left">
|
||||
<span className="pt-icon-large pt-icon-edit pt-intent-success"/>
|
||||
<div className="pt-navbar-heading">Lex Editor</div>
|
||||
</div>
|
||||
<p className="App-intro">
|
||||
To get started, edit <code>src/App.tsx</code> and save to reload.
|
||||
</p>
|
||||
</div>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// class LexEditor extends React.Component<{}, null> {
|
||||
// render() {
|
||||
// const renderCell = (rowIndex: number) => {
|
||||
// return <Cell>{`$${(rowIndex * 10).toFixed(2)}`}</Cell>;
|
||||
// };
|
||||
// return (
|
||||
// <Table numRows={10}>
|
||||
// <Column name="Dollars" renderCell={renderCell}/>
|
||||
// </Table>
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
|
||||
export default App;
|
||||
|
||||
@@ -3,3 +3,6 @@ body {
|
||||
padding: 0;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
@import "~normalize.css/normalize.css";
|
||||
@import "~@blueprintjs/core/dist/blueprint.css";
|
||||
|
||||
Reference in New Issue
Block a user