Skip to content

Commit 8d7f056

Browse files
committed
Fix: changed symbols from SVG to ICON using FontAwesome
1 parent 8a8fb89 commit 8d7f056

File tree

2 files changed

+25
-49
lines changed

2 files changed

+25
-49
lines changed

index.html

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
<!-- External CSS -->
99
<link rel="stylesheet" href="./style.css">
10+
<!-- FontAwesome ICON -->
11+
<script src="https://kit.fontawesome.com/5289663089.js" crossorigin="anonymous"></script>
1012
</head>
1113
<body>
1214

@@ -25,65 +27,33 @@ <h1 id="todoTitle">ToDo App</h1>
2527
<div class="task-container">
2628
<div class="task">
2729
<!-- Pending Task -->
28-
<svg xmlns="http://www.w3.org/2000/svg" class="pendingSvg" height="1em" viewBox="0 0 512 512">
29-
<path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z" />
30-
</svg>
30+
<i class="fa-regular fa-circle pendingSvg"></i>
3131

3232
<span class="taskText">Follow @Alkaison on Twitter</span>
3333

3434
<!-- Edit ICON -->
35-
<svg xmlns="http://www.w3.org/2000/svg" class="editSvg" height="1em" viewBox="0 0 512 512">
36-
<path
37-
d="M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z" />
38-
</svg>
35+
<i class="fa-solid fa-pencil editSvg"></i>
3936

4037
<!-- Delete ICON -->
41-
<svg xmlns="http://www.w3.org/2000/svg" class="deleteSvg" height="1em" viewBox="0 0 448 512">
42-
<path
43-
d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z" />
44-
</svg>
38+
<i class="fa-solid fa-trash deleteSvg"></i>
4539
</div>
4640

4741
<div class="task">
48-
<!-- Pending Task -->
49-
<svg xmlns="http://www.w3.org/2000/svg" class="pendingSvg" height="1em" viewBox="0 0 512 512">
50-
<path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z" />
51-
</svg>
42+
<i class="fa-regular fa-circle pendingSvg"></i>
5243

5344
<span class="taskText">Complete the first task</span>
5445

55-
<!-- Edit ICON -->
56-
<svg xmlns="http://www.w3.org/2000/svg" class="editSvg" height="1em" viewBox="0 0 512 512">
57-
<path
58-
d="M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z" />
59-
</svg>
60-
61-
<!-- Delete ICON -->
62-
<svg xmlns="http://www.w3.org/2000/svg" class="deleteSvg" height="1em" viewBox="0 0 448 512">
63-
<path
64-
d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z" />
65-
</svg>
46+
<i class="fa-solid fa-pencil editSvg"></i>
47+
<i class="fa-solid fa-trash deleteSvg"></i>
6648
</div>
6749

6850
<div class="task">
69-
<!-- Pending Task -->
70-
<svg xmlns="http://www.w3.org/2000/svg" class="pendingSvg" height="1em" viewBox="0 0 512 512">
71-
<path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z" />
72-
</svg>
73-
51+
<i class="fa-regular fa-circle pendingSvg"></i>
52+
7453
<span class="taskText">Thank you for visiting here</span>
7554

76-
<!-- Edit ICON -->
77-
<svg xmlns="http://www.w3.org/2000/svg" class="editSvg" height="1em" viewBox="0 0 512 512">
78-
<path
79-
d="M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z" />
80-
</svg>
81-
82-
<!-- Delete ICON -->
83-
<svg xmlns="http://www.w3.org/2000/svg" class="deleteSvg" height="1em" viewBox="0 0 448 512">
84-
<path
85-
d="M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z" />
86-
</svg>
55+
<i class="fa-solid fa-pencil editSvg"></i>
56+
<i class="fa-solid fa-trash deleteSvg"></i>
8757
</div>
8858
</div>
8959

style.css

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,39 @@ body {
6868
justify-content: space-between;
6969
align-items: center;
7070
margin-bottom: 12px;
71+
text-align: center;
7172
}
7273
.pendingSvg {
73-
width: 20px;
74-
height: 20px;
75-
fill: rgb(0, 0, 0);
74+
width: 30px;
75+
height: 30px;
76+
padding-top: 7px;
77+
font-size: 18px;
78+
color: rgb(0, 0, 0);
7679
cursor: pointer;
7780
}
7881
.taskText {
7982
width: 270px;
8083
word-wrap: break-word;
8184
color: rgb(32, 28, 28);
8285
line-height: 1.4rem;
83-
padding-left: 4px;
86+
text-align: left;
8487
}
8588
.editSvg {
8689
width: 30px;
8790
height: 30px;
88-
padding: 5px;
91+
padding-top: 7px;
92+
font-size: 18px;
93+
color:rgb(32, 28, 28);
8994
border-radius: 4px;
9095
cursor: pointer;
9196
}
9297
.deleteSvg {
9398
width: 30px;
9499
height: 30px;
95-
padding: 6px;
100+
padding-top: 7px;
101+
font-size: 18px;
96102
border-radius: 4px;
97-
fill: white;
103+
color: white;
98104
background-color: red;
99105
cursor: pointer;
100106
}

0 commit comments

Comments
 (0)