From b6eb6ff19c5c90e12f62db5955ddb3bf5a8b3e51 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Dec 2024 14:55:58 +0300 Subject: [PATCH 01/12] init: start Task Clean Code S1E1 --- style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.css b/style.css index ab36227705..79cc55bdc5 100644 --- a/style.css +++ b/style.css @@ -129,7 +129,7 @@ button.delete img:hover { /* Completed */ ul#completed-tasks label { - text-decoration: line-through + text-decoration: line-through; color: #888; } From bf1181cb04aa86c7b24ab5e19a34eb3e9b25dd05 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Dec 2024 15:49:15 +0300 Subject: [PATCH 02/12] fix: fixed spaces in html file --- index.html | 78 +++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 66 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index ef4aa1f60c..b48f4a6e6e 100644 --- a/index.html +++ b/index.html @@ -1,18 +1,72 @@ -Todo App - - + + Todo App + + - -

-

Todo

-
    -
  • -
  • -

Completed

  • -
  • -
+ +
+

+ +

+ + +
+

+

Todo

+
    +
  • + + + + + +
  • +
  • + + + + + +
  • +
+

+ Completed +

+
    +
  • + + + + + +
  • +
From 483818bc2c63a222f26746fbb5f72e23d348dc43 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Dec 2024 15:56:20 +0300 Subject: [PATCH 03/12] fix: fixed spaces in css file --- style.css | 150 +++++++++++++++++++++++++++--------------------------- 1 file changed, 74 insertions(+), 76 deletions(-) diff --git a/style.css b/style.css index 79cc55bdc5..74eaa9c089 100644 --- a/style.css +++ b/style.css @@ -1,148 +1,146 @@ /* Basic Style */ body { - background-color: #f8f8f8; - color: #333; - font-family: Lato, sans-serif; + background-color: #f8f8f8; + color: #333; + font-family: Lato, sans-serif; } .aaa { - width: 500px; - margin: 0 auto; - display: block; - text-align: right; + width: 500px; + margin: 0 auto; + display: block; + text-align: right; } .aaa img { - width: 100%; + width: 100%; } .aaa .more_inf { - font-family: fantasy, cursive; + font-family: fantasy, cursive; } - @media (max-width:768px) { -.aaa { text-align: center; -} + .aaa { text-align: center; + } } .centered-main-page-element { - display: block; - width: 500px; - margin: 0 auto 0; + display: block; + width: 500px; + margin: 0 auto 0; } .task { - width: 56%; - display: inline-block; - flex-grow: 1 + width: 56%; + display: inline-block; + flex-grow: 1 } .task-row-wrapper { - display: flex; + display: flex; } ul { - margin:0; - padding: 0px; + margin:0; + padding: 0px; } li, h3 { - list-style:none; + list-style:none; } input,button{ - outline:none; + outline:none; } button { - background: none; - border: 0px; - color: #888; - font-size: 15px; - width: 60px; - font-family: Lato, sans-serif; - cursor: pointer; + background: none; + border: 0px; + color: #888; + font-size: 15px; + width: 60px; + font-family: Lato, sans-serif; + cursor: pointer; } button:hover { - color: #3a3A3a; + color: #3a3A3a; } /* Heading */ h3, label[for='new-task'] { - color: #333; - font-weight: 700; - font-size: 15px; - border-bottom: 2px solid #333; - padding: 30px 0 10px; - margin: 0; - text-transform: uppercase; + color: #333; + font-weight: 700; + font-size: 15px; + border-bottom: 2px solid #333; + padding: 30px 0 10px; + margin: 0; + text-transform: uppercase; } input[type="text"] { - margin: 0; - font-size: 18px; - line-height: 18px; - height: 21px; - padding: 0 9px; - border: 1px solid #dDd; - background: #FFF; - border-radius: 6px; - font-family: Lato, sans-serif; - color: #888; + margin: 0; + font-size: 18px; + line-height: 18px; + height: 21px; + padding: 0 9px; + border: 1px solid #dDd; + background: #FFF; + border-radius: 6px; + font-family: Lato, sans-serif; + color: #888; } input[type="text"]:focus { - color: #333; + color: #333; } /* New Task */ label[for='new-task'] { - display: block; - margin: 0 0 20px; + display: block; + margin: 0 0 20px; } input#new-task { - width: 318px; + width: 318px; } /* Task list */ li { - overflow: hidden; - padding: 20px 0; - border-bottom: 1px solid #eee; - - display: flex; - justify-content: space-between; - align-items: center; + overflow: hidden; + padding: 20px 0; + border-bottom: 1px solid #eee; + display: flex; + justify-content: space-between; + align-items: center; } li > * { - vertical-align: middle; + vertical-align: middle; } li > input[type="checkbox"] { - margin: 0 10px; + margin: 0 10px; } li > label { - padding-left: 10px; - box-sizing: border-box; - font-size: 18px; - width: 226px; + padding-left: 10px; + box-sizing: border-box; + font-size: 18px; + width: 226px; } li > input[type="text"] { - width: 226px + width: 226px } button.delete img { - height: 2em; - transform: rotateZ(45deg); - transition: transform 200ms ease-in; + height: 2em; + transform: rotateZ(45deg); + transition: transform 200ms ease-in; } button.delete img:hover { - transform: rotateZ(0); + transform: rotateZ(0); } /* Completed */ ul#completed-tasks label { - text-decoration: line-through; - color: #888; + text-decoration: line-through; + color: #888; } /* Edit Task */ ul li input[type=text] { - display:none + display:none } ul li.editMode input[type=text] { - display:inline-block; - width:224px + display:inline-block; + width:224px } ul li.editMode label { - display:none; + display:none; } \ No newline at end of file From 49b7965009b699ffad6ccb59a5ccb0526e170724 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Dec 2024 16:10:06 +0300 Subject: [PATCH 04/12] fix: corrected capital letters in tags in html file --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b48f4a6e6e..a650c96554 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,9 @@ - + Todo App - +
@@ -68,6 +68,6 @@

- + \ No newline at end of file From 1bccea88f37d745cf026cb15541cb7acfb16c8bc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Dec 2024 16:15:25 +0300 Subject: [PATCH 05/12] fix: replaced single quotes with double quotes --- index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index a650c96554..d23bdef353 100644 --- a/index.html +++ b/index.html @@ -1,29 +1,29 @@ Todo App - +
-

+

- +

Todo

-
    +
    • - + @@ -41,7 +41,7 @@

      Todo

      Go Shopping -
- + \ No newline at end of file From e687d822f6a30c41a7a7123a8e571a654c48911b Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 15 Dec 2024 18:17:26 +0300 Subject: [PATCH 08/12] fix: shortened too long names --- index.html | 8 ++++---- style.css | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 24befa7b83..f1692b12dd 100644 --- a/index.html +++ b/index.html @@ -10,18 +10,18 @@ Want more details?
-
-

+

+

-

+

Todo

-
    +

Todo

-
    +
    • -
    • +
    • @@ -45,7 +45,7 @@

      Todo

      Save
    @@ -63,7 +63,7 @@

    Edit