js updates

This commit is contained in:
Micah Godbolt
2019-02-22 12:21:40 -08:00
parent 3ef69dc570
commit 4f7b9e4747
46 changed files with 200 additions and 144 deletions

View File

@@ -9,9 +9,9 @@ export class TodoHeader extends React.Component<any, any> {
<input className="textfield" placeholder="add todo" />
<button className="button add">Add</button>
<div className="filter">
<button className={filter == 'all' ? 'active' : ''}>all</button>
<button className={filter == 'active' ? 'active' : ''}>active</button>
<button className={filter == 'completed' ? 'active' : ''}>completed</button>
<button className={filter == 'all' ? 'completed' : ''}>all</button>
<button className={filter == 'active' ? 'completed' : ''}>active</button>
<button className={filter == 'completed' ? 'completed' : ''}>completed</button>
</div>
</div>
);

View File

@@ -1,5 +1,5 @@
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
width: 400px;
margin: 20px auto;
}
@@ -28,7 +28,7 @@ h1 {
background: transparent;
border: none;
}
.filter .active {
.filter .selected {
border-bottom: 2px solid blue;
}
@@ -47,4 +47,4 @@ footer span {
.hidden {
display: none;
}
}