Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit bdb1710

Browse files
committed
Step numbers in todo app headers
1 parent 46094ab commit bdb1710

File tree

22 files changed

+40
-16
lines changed

22 files changed

+40
-16
lines changed

step1-05/TodoApp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<body>
44
<header>
5-
<h1>todos</h1>
5+
<h1>todos <small>(1.5)</small></h1>
66
<div class="addTodo">
77
<input class="textfield" placeholder="add todo" />
88
<button class="submit">Add</button>

step1-05/exercise/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class TodoHeader extends React.Component<any, any> {
44
render() {
55
return (
66
<header>
7-
<h1>todos - step1-05 exercise</h1>
7+
<h1>todos <small>(1.5 exercise)</small></h1>
88
<div className="addTodo">
99
<input className="textfield" placeholder="add todo" />
1010
<button className="submit">Add</button>

step1-05/exercise/src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ h1 {
88
text-align: center;
99
}
1010

11+
small {
12+
font-size: 0.5em;
13+
}
14+
1115
.addTodo {
1216
display: flex;
1317
}

step1-06/demo/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class TodoHeader extends React.Component<any, any> {
1010
const { filter } = this.props;
1111
return (
1212
<header>
13-
<h1>todos - step1-06 demo</h1>
13+
<h1>todos <small>(1.6 demo)</small></h1>
1414
<div className="addTodo">
1515
<input className="textfield" placeholder="add todo" />
1616
<button className="submit">Add</button>

step1-06/demo/src/components/TodoList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class TodoList extends React.Component<any, any> {
1212

1313
return (
1414
<ul className="todos">
15-
[01, 02, 03, 04].map((id)=> <TodoListItem />)
15+
{['01', '02', '03', '04'].map((id) => <TodoListItem />)}
1616
</ul>
1717
);
1818
}

step1-06/demo/src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ h1 {
88
text-align: center;
99
}
1010

11+
small {
12+
font-size: 0.5em;
13+
}
14+
1115
.addTodo {
1216
display: flex;
1317
}

step1-06/exercise/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class TodoHeader extends React.Component<any, any> {
1111

1212
return (
1313
<header>
14-
<h1>todos - step1-06 exercise</h1>
14+
<h1>todos <small>(1.6 exercise)</small></h1>
1515
<div className="addTodo">
1616
<input value={this.state.labelInput} onChange={this._onChange} className="textfield" placeholder="add todo" />
1717
<button className="submit">Add</button>

step1-06/exercise/src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ h1 {
88
text-align: center;
99
}
1010

11+
small {
12+
font-size: 0.5em;
13+
}
14+
1115
.addTodo {
1216
display: flex;
1317
}

step1-07/demo/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class TodoHeader extends React.Component<any, any> {
1111
const { filter } = this.props;
1212
return (
1313
<header>
14-
<h1>todos - step1-07 demo</h1>
14+
<h1>todos <small>(1.7 demo)</small></h1>
1515
<div className="addTodo">
1616
<input value={this.state.labelInput} onChange={this._onChange} className="textfield" placeholder="add todo" />
1717
<button className="submit">Add</button>

step1-07/demo/src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ h1 {
88
text-align: center;
99
}
1010

11+
small {
12+
font-size: 0.5em;
13+
}
14+
1115
.addTodo {
1216
display: flex;
1317
}

step1-07/exercise/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class TodoHeader extends React.Component<any, any> {
1111
const { filter } = this.props;
1212
return (
1313
<header>
14-
<h1>todos - step1-07 exercise</h1>
14+
<h1>todos <small>(1.7 exercise)</small></h1>
1515
<div className="addTodo">
1616
<input value={this.state.labelInput} onChange={this._onChange} className="textfield" placeholder="add todo" />
1717
<button className="submit">Add</button>

step1-07/exercise/src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ h1 {
88
text-align: center;
99
}
1010

11+
small {
12+
font-size: 0.5em;
13+
}
14+
1115
.addTodo {
1216
display: flex;
1317
}

step1-07/final/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState
2121
const { filter, setFilter } = this.props;
2222
return (
2323
<header>
24-
<h1>todos - step1-07 final</h1>
24+
<h1>todos <small>(1.7 final)</small></h1>
2525
<div className="addTodo">
2626
<input value={this.state.labelInput} onChange={this._onChange} className="textfield" placeholder="add todo" />
2727
<button onClick={this._onAdd} className="submit">

step1-07/final/src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ h1 {
88
text-align: center;
99
}
1010

11+
small {
12+
font-size: 0.5em;
13+
}
14+
1115
.addTodo {
1216
display: flex;
1317
}

step2-02/demo/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState
2222
return (
2323
<Stack>
2424
<Stack horizontal horizontalAlign="center">
25-
<Text variant="xxLarge">todos - step2-02 demo</Text>
25+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.2 demo)</Text></Text>
2626
</Stack>
2727

2828
<Stack horizontal>

step2-02/exercise/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState
2222
return (
2323
<Stack>
2424
<Stack horizontal horizontalAlign="center">
25-
<Text variant="xxLarge">todos - step2-02 demo</Text>
25+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.2 exercise)</Text></Text>
2626
</Stack>
2727

2828
<Stack horizontal>

step2-03/demo/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState
2222
return (
2323
<Stack gap={10}>
2424
<Stack horizontal horizontalAlign="center">
25-
<Text variant="xxLarge">todos</Text>
25+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.3 demo)</Text></Text>
2626
</Stack>
2727

2828
<Stack horizontal gap={10}>

step2-03/exercise/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState
2222
return (
2323
<Stack gap={10}>
2424
<Stack horizontal horizontalAlign="center">
25-
<Text variant="xxLarge">todos - step2-03 exercise</Text>
25+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.3 exercise)</Text></Text>
2626
</Stack>
2727

2828
<Stack horizontal gap={10}>

step2-04/demo/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class TodoHeader extends React.Component<{}, TodoHeaderState> {
1717
return (
1818
<Stack gap={10}>
1919
<Stack horizontal horizontalAlign="center">
20-
<Text variant="xxLarge">todos</Text>
20+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.4 demo)</Text></Text>
2121
</Stack>
2222

2323
<Stack horizontal gap={10}>

step2-04/exercise/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class TodoHeader extends React.Component<{}, TodoHeaderState> {
1717
return (
1818
<Stack gap={10}>
1919
<Stack horizontal horizontalAlign="center">
20-
<Text variant="xxLarge">todos</Text>
20+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.4 exercise)</Text></Text>
2121
</Stack>
2222

2323
<Stack horizontal gap={10}>

step2-06/demo/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState> {
2323
return (
2424
<Stack gap={10}>
2525
<Stack horizontal horizontalAlign="center">
26-
<Text variant="xxLarge">todos</Text>
26+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.6 demo)</Text></Text>
2727
</Stack>
2828

2929
<Stack horizontal gap={10}>

step2-06/exercise/src/components/TodoHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TodoHeader extends React.Component<TodoHeaderProps, TodoHeaderState> {
2525
return (
2626
<Stack gap={10}>
2727
<Stack horizontal horizontalAlign="center">
28-
<Text variant="xxLarge">todos</Text>
28+
<Text variant="xxLarge">todos <Text variant="mediumPlus">(2.6 exercise)</Text></Text>
2929
</Stack>
3030

3131
<Stack horizontal gap={10}>

0 commit comments

Comments
 (0)