From 191dcad134fe4fe2745fe109fd7ea9a520faf85b Mon Sep 17 00:00:00 2001
From: Guz <43732358+Guz013@users.noreply.github.com>
Date: Fri, 28 Jan 2022 11:15:07 -0300
Subject: [PATCH] feat(tasks): Created the base of the Task Component
---
package.json | 2 +-
src/assets/styles/_mixins.scss | 12 ++
src/components/TaskComp.vue | 202 ++++++++++++++++++++++++++++
src/components/icon/Checked.vue | 30 +++++
src/components/icon/Unchecked.vue | 30 +++++
src/static/icons/completed-icon.svg | 4 +
src/static/icons/pending-icon.svg | 4 +
7 files changed, 283 insertions(+), 1 deletion(-)
create mode 100644 src/components/TaskComp.vue
create mode 100644 src/components/icon/Checked.vue
create mode 100644 src/components/icon/Unchecked.vue
create mode 100644 src/static/icons/completed-icon.svg
create mode 100644 src/static/icons/pending-icon.svg
diff --git a/package.json b/package.json
index 2d5fe27..68e55f7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ToToday",
- "version": "0.2.1",
+ "version": "0.3.0",
"private": true,
"scripts": {
"dev": "nuxt",
diff --git a/src/assets/styles/_mixins.scss b/src/assets/styles/_mixins.scss
index 40b29f9..6546e05 100644
--- a/src/assets/styles/_mixins.scss
+++ b/src/assets/styles/_mixins.scss
@@ -31,3 +31,15 @@
justify-content: center;
text-align: center;
}
+
+@mixin colorFadeAnim($fromColor, $toColor, $duration, $id) {
+ @keyframes colorFadeAnim-#{$id} {
+ from {
+ stroke: $fromColor;
+ }
+ to {
+ stroke: $toColor;
+ }
+ }
+ animation: colorFadeAnim-#{$id} $duration;
+}
diff --git a/src/components/TaskComp.vue b/src/components/TaskComp.vue
new file mode 100644
index 0000000..efdad2c
--- /dev/null
+++ b/src/components/TaskComp.vue
@@ -0,0 +1,202 @@
+
+
+
+
+
{{ title }}
+
{{ description }}
+
+
+
+
+
+
+
diff --git a/src/components/icon/Checked.vue b/src/components/icon/Checked.vue
new file mode 100644
index 0000000..868361a
--- /dev/null
+++ b/src/components/icon/Checked.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
diff --git a/src/components/icon/Unchecked.vue b/src/components/icon/Unchecked.vue
new file mode 100644
index 0000000..885ba48
--- /dev/null
+++ b/src/components/icon/Unchecked.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
diff --git a/src/static/icons/completed-icon.svg b/src/static/icons/completed-icon.svg
new file mode 100644
index 0000000..cca4d83
--- /dev/null
+++ b/src/static/icons/completed-icon.svg
@@ -0,0 +1,4 @@
+
diff --git a/src/static/icons/pending-icon.svg b/src/static/icons/pending-icon.svg
new file mode 100644
index 0000000..d6b4e80
--- /dev/null
+++ b/src/static/icons/pending-icon.svg
@@ -0,0 +1,4 @@
+