From 37598e5812dfdeae1defb777f7154caf545e7cc7 Mon Sep 17 00:00:00 2001 From: Micah Godbolt Date: Thu, 21 Feb 2019 14:29:33 -0800 Subject: [PATCH] breaking up into stages --- package-lock.json | 12 ++- step1-02/README.md | 8 +- step1-02/demo/index.html | 1 + step1-02/demo/style.css | 37 ++++++++ step1-02/exercise/index.html | 25 +++++ step1-02/exercise/style.css | 41 ++++++++ step1-02/{finished => final}/index.html | 5 +- step1-02/{finished => final}/style.css | 0 step1-02/index.html | 16 ++++ step1-03/README.md | 3 +- step1-03/demo/index.html | 70 ++++++++++++++ step1-03/{ => demo}/style.css | 0 step1-03/exercise/index.html | 82 ++++++++++++++++ {step1-05/src => step1-03/exercise}/style.css | 0 step1-03/final/index.html | 90 ++++++++++++++++++ step1-03/final/style.css | 49 ++++++++++ step1-03/index.html | 94 ++----------------- step1-04/README.md | 12 +++ step1-04/demo/index.html | 6 ++ step1-04/{ => demo}/src/App.tsx | 3 +- step1-04/{ => demo}/src/components/Button.css | 1 + step1-04/{ => demo}/src/components/Button.tsx | 0 .../{ => demo}/src/components/Counter.tsx | 12 ++- step1-04/{ => demo}/src/index.tsx | 0 step1-04/final/index.html | 6 ++ step1-04/final/src/App.tsx | 14 +++ step1-04/final/src/components/Button.css | 15 +++ step1-04/final/src/components/Button.tsx | 10 ++ step1-04/final/src/components/Counter.tsx | 27 ++++++ step1-04/final/src/index.tsx | 4 + step1-04/index.html | 17 +++- step1-05/README.md | 5 + step1-05/demo/index.html | 9 ++ step1-05/{ => demo}/src/App.tsx | 0 step1-05/demo/src/components/TodoFooter.tsx | 9 ++ step1-05/demo/src/components/TodoHeader.tsx | 7 ++ step1-05/demo/src/components/TodoList.tsx | 7 ++ step1-05/demo/src/components/TodoListItem.tsx | 7 ++ step1-05/{ => demo}/src/index.tsx | 0 step1-05/demo/src/style.css | 49 ++++++++++ step1-05/exercise/index.html | 9 ++ step1-05/exercise/src/App.tsx | 16 ++++ .../exercise/src/components/TodoFooter.tsx | 9 ++ .../src/components/TodoHeader.tsx | 0 step1-05/exercise/src/components/TodoList.tsx | 7 ++ .../src/components/TodoListItem.tsx | 0 step1-05/exercise/src/index.tsx | 4 + step1-05/exercise/src/style.css | 49 ++++++++++ step1-05/final/index.html | 9 ++ step1-05/final/src/App.tsx | 16 ++++ .../{ => final}/src/components/TodoFooter.tsx | 0 step1-05/final/src/components/TodoHeader.tsx | 20 ++++ .../{ => final}/src/components/TodoList.tsx | 0 .../final/src/components/TodoListItem.tsx | 13 +++ step1-05/final/src/index.tsx | 4 + step1-05/final/src/style.css | 49 ++++++++++ step1-05/index.html | 18 ++-- step1-06/README.md | 1 + step1-06/src/components/TodoHeader.tsx | 10 +- step1-07/README.md | 23 +++++ step1-07/src/TodoApp.tsx | 23 +---- webpack.config.js | 2 +- 62 files changed, 906 insertions(+), 129 deletions(-) create mode 100644 step1-02/demo/index.html create mode 100644 step1-02/demo/style.css create mode 100644 step1-02/exercise/index.html create mode 100644 step1-02/exercise/style.css rename step1-02/{finished => final}/index.html (87%) rename step1-02/{finished => final}/style.css (100%) create mode 100644 step1-03/demo/index.html rename step1-03/{ => demo}/style.css (100%) create mode 100644 step1-03/exercise/index.html rename {step1-05/src => step1-03/exercise}/style.css (100%) create mode 100644 step1-03/final/index.html create mode 100644 step1-03/final/style.css create mode 100644 step1-04/README.md create mode 100644 step1-04/demo/index.html rename step1-04/{ => demo}/src/App.tsx (75%) rename step1-04/{ => demo}/src/components/Button.css (91%) rename step1-04/{ => demo}/src/components/Button.tsx (100%) rename step1-04/{ => demo}/src/components/Counter.tsx (51%) rename step1-04/{ => demo}/src/index.tsx (100%) create mode 100644 step1-04/final/index.html create mode 100644 step1-04/final/src/App.tsx create mode 100644 step1-04/final/src/components/Button.css create mode 100644 step1-04/final/src/components/Button.tsx create mode 100644 step1-04/final/src/components/Counter.tsx create mode 100644 step1-04/final/src/index.tsx create mode 100644 step1-05/demo/index.html rename step1-05/{ => demo}/src/App.tsx (100%) create mode 100644 step1-05/demo/src/components/TodoFooter.tsx create mode 100644 step1-05/demo/src/components/TodoHeader.tsx create mode 100644 step1-05/demo/src/components/TodoList.tsx create mode 100644 step1-05/demo/src/components/TodoListItem.tsx rename step1-05/{ => demo}/src/index.tsx (100%) create mode 100644 step1-05/demo/src/style.css create mode 100644 step1-05/exercise/index.html create mode 100644 step1-05/exercise/src/App.tsx create mode 100644 step1-05/exercise/src/components/TodoFooter.tsx rename step1-05/{ => exercise}/src/components/TodoHeader.tsx (100%) create mode 100644 step1-05/exercise/src/components/TodoList.tsx rename step1-05/{ => exercise}/src/components/TodoListItem.tsx (100%) create mode 100644 step1-05/exercise/src/index.tsx create mode 100644 step1-05/exercise/src/style.css create mode 100644 step1-05/final/index.html create mode 100644 step1-05/final/src/App.tsx rename step1-05/{ => final}/src/components/TodoFooter.tsx (100%) create mode 100644 step1-05/final/src/components/TodoHeader.tsx rename step1-05/{ => final}/src/components/TodoList.tsx (100%) create mode 100644 step1-05/final/src/components/TodoListItem.tsx create mode 100644 step1-05/final/src/index.tsx create mode 100644 step1-05/final/src/style.css create mode 100644 step1-07/README.md diff --git a/package-lock.json b/package-lock.json index ef2b86a..6f95a46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3817,6 +3817,7 @@ "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -3835,6 +3836,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3928,6 +3930,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -4013,7 +4016,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -4113,12 +4117,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, diff --git a/step1-02/README.md b/step1-02/README.md index f8aa83a..151ab5a 100644 --- a/step1-02/README.md +++ b/step1-02/README.md @@ -2,8 +2,12 @@ ## Demo -Scaffold out page +Write html tag down to ul > li, footer +add CSS link +Add active styles, describe specificity ## Exercise -Add and style footer +Update list item to match (already styled) +duplicate 3 more times +Add and style footer content diff --git a/step1-02/demo/index.html b/step1-02/demo/index.html new file mode 100644 index 0000000..0e76edd --- /dev/null +++ b/step1-02/demo/index.html @@ -0,0 +1 @@ + diff --git a/step1-02/demo/style.css b/step1-02/demo/style.css new file mode 100644 index 0000000..4df1196 --- /dev/null +++ b/step1-02/demo/style.css @@ -0,0 +1,37 @@ +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + width: 400px; + margin: 20px auto; +} + +h1 { + text-align: center; +} + +.addTodo { + display: flex; +} + +.textfield { + flex-grow: 1; + margin-right: 10px; +} + +.submit { + border: none; + padding: 5px 10px; +} + +.filter { + margin: 10px 0 0; +} + +.filter button { + background: transparent; + border: none; +} + +.todos { + list-style: none; + padding: 0; +} diff --git a/step1-02/exercise/index.html b/step1-02/exercise/index.html new file mode 100644 index 0000000..52cf71f --- /dev/null +++ b/step1-02/exercise/index.html @@ -0,0 +1,25 @@ + + + + + + +
+

todos

+
+ + +
+ +
+
+ +
+ + diff --git a/step1-02/exercise/style.css b/step1-02/exercise/style.css new file mode 100644 index 0000000..986a4e1 --- /dev/null +++ b/step1-02/exercise/style.css @@ -0,0 +1,41 @@ +body { + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + width: 400px; + margin: 20px auto; +} + +h1 { + text-align: center; +} + +.addTodo { + display: flex; +} + +.textfield { + flex-grow: 1; + margin-right: 10px; +} + +.submit { + border: none; + padding: 5px 10px; +} + +.filter { + margin: 10px 0 0; +} + +.filter button { + background: transparent; + border: none; +} + +.filter .active { + border-bottom: 2px solid blue; +} + +.todos { + list-style: none; + padding: 0; +} diff --git a/step1-02/finished/index.html b/step1-02/final/index.html similarity index 87% rename from step1-02/finished/index.html rename to step1-02/final/index.html index 3f93472..0ea87e3 100644 --- a/step1-02/finished/index.html +++ b/step1-02/final/index.html @@ -6,7 +6,10 @@

todos

-
+
+ + +