Skip to content

Commit f4a6f0f

Browse files
author
Ari
committed
Updated all days to show demos of the day
1 parent bcdfcb0 commit f4a6f0f

File tree

82 files changed

+8561
-12925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+8561
-12925
lines changed

Diff for: day-1/src/components/Timeline/timeline.css

+265-247
Large diffs are not rendered by default.

Diff for: day-10/public/index.html

+19-592
Large diffs are not rendered by default.

Diff for: day-10/src/components/Timeline/timeline.css

+265-247
Large diffs are not rendered by default.

Diff for: day-10/src/index.js

+21-36
Original file line numberDiff line numberDiff line change
@@ -7,72 +7,57 @@ import './index.css';
77
import go from './mousemove';
88

99
import MouseMover from './MouseMover';
10-
import InteractionEventBindings from './InteractionEventBindings'
11-
import SearchForm from './SearchForm'
10+
import InteractionEventBindings from './InteractionEventBindings';
11+
import SearchForm from './SearchForm';
1212
import SearchFormWithSubmit from './SearchFormWithSubmit';
1313
import Header from './components/Timeline/Header';
1414
import HeaderSearch from './HeaderSearch';
15-
import ContentSearch from './ContentSearch'
15+
import ContentSearch from './ContentSearch';
1616

1717
class SimpleSearchHolder extends React.Component {
18-
state = {searchText: ''}
19-
handleSubmit = searchText => this.setState({searchText})
18+
state = {searchText: ''};
19+
handleSubmit = searchText => this.setState({searchText});
2020
render() {
21-
const {Component} = this.props
21+
const {Component} = this.props;
2222
const {searchText} = this.state;
2323
return (
2424
<div>
25-
<Component
26-
searchText={searchText}
27-
onSubmit={this.handleSubmit} />
28-
<div>You searched for: { searchText }</div>
25+
<Component searchText={searchText} onSubmit={this.handleSubmit} />
26+
<div>You searched for: {searchText}</div>
2927
</div>
30-
)
28+
);
3129
}
3230
}
3331

3432
export const load = () => {
35-
ReactDOM.render(
36-
<MouseMover />,
37-
document.getElementById('demo1')
38-
);
33+
ReactDOM.render(<MouseMover />, document.getElementById('demo1'));
3934

4035
ReactDOM.render(
4136
<InteractionEventBindings />,
4237
document.getElementById('demo2')
43-
)
38+
);
4439

45-
ReactDOM.render(
46-
<SearchForm />,
47-
document.getElementById('demo3')
48-
)
40+
ReactDOM.render(<SearchForm />, document.getElementById('demo3'));
4941

50-
ReactDOM.render(
51-
<Header />,
52-
document.getElementById('searchStylesDemo')
53-
)
42+
ReactDOM.render(<Header />, document.getElementById('searchStylesDemo'));
5443

5544
ReactDOM.render(
5645
<SimpleSearchHolder Component={SearchFormWithSubmit} />,
5746
document.getElementById('searchForm')
58-
)
47+
);
5948

6049
ReactDOM.render(
6150
<SimpleSearchHolder Component={HeaderSearch} />,
6251
document.getElementById('headerSearch')
63-
)
52+
);
6453

65-
ReactDOM.render(
66-
<ContentSearch />,
67-
document.getElementById('searchDemo')
68-
)
54+
ReactDOM.render(<ContentSearch />, document.getElementById('searchDemo'));
6955

7056
go();
71-
72-
}
57+
};
7358

7459
try {
75-
// load()
76-
} catch(e) {
77-
console.log(e)
78-
}
60+
load();
61+
} catch (e) {
62+
console.log(e);
63+
}

Diff for: day-11/public/index.html

+12-151
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)