From 9d425c36d75ca01a523c6e3910878c8a4abcc31e Mon Sep 17 00:00:00 2001 From: Victor Carli Date: Fri, 11 Oct 2019 14:10:31 -0300 Subject: [PATCH 1/2] add button like and deslike --- src/components/DeslikeCollab.svelte | 48 +++++++++++++++++++++++++ src/components/LikeCollab.svelte | 44 +++++++++++++++++++++++ src/routes/_layout.svelte | 4 +++ static/img/dark/icon/deslike_button.svg | 3 ++ static/img/dark/icon/like_button.svg | 3 ++ 5 files changed, 102 insertions(+) create mode 100644 src/components/DeslikeCollab.svelte create mode 100644 src/components/LikeCollab.svelte create mode 100755 static/img/dark/icon/deslike_button.svg create mode 100755 static/img/dark/icon/like_button.svg diff --git a/src/components/DeslikeCollab.svelte b/src/components/DeslikeCollab.svelte new file mode 100644 index 0000000..e006258 --- /dev/null +++ b/src/components/DeslikeCollab.svelte @@ -0,0 +1,48 @@ + + + + + \ No newline at end of file diff --git a/src/components/LikeCollab.svelte b/src/components/LikeCollab.svelte new file mode 100644 index 0000000..c6b2cfc --- /dev/null +++ b/src/components/LikeCollab.svelte @@ -0,0 +1,44 @@ + + + + + \ No newline at end of file diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index 330b435..b14f131 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -1,5 +1,7 @@ @@ -12,4 +14,6 @@
+ +
diff --git a/static/img/dark/icon/deslike_button.svg b/static/img/dark/icon/deslike_button.svg new file mode 100755 index 0000000..e550309 --- /dev/null +++ b/static/img/dark/icon/deslike_button.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/img/dark/icon/like_button.svg b/static/img/dark/icon/like_button.svg new file mode 100755 index 0000000..9330d19 --- /dev/null +++ b/static/img/dark/icon/like_button.svg @@ -0,0 +1,3 @@ + + + From f803d818217211ab84f2ff97d6d72334fd8452c2 Mon Sep 17 00:00:00 2001 From: Victor Carli Date: Sat, 12 Oct 2019 17:19:15 -0300 Subject: [PATCH 2/2] correcting class naming in CSS --- ...likeCollab.svelte => DislikeCollab.svelte} | 24 ++++++++++--------- src/components/LikeCollab.svelte | 14 ++++++----- src/routes/_layout.svelte | 4 ++-- ...{deslike_button.svg => dislike_button.svg} | 0 4 files changed, 23 insertions(+), 19 deletions(-) rename src/components/{DeslikeCollab.svelte => DislikeCollab.svelte} (65%) rename static/img/dark/icon/{deslike_button.svg => dislike_button.svg} (100%) diff --git a/src/components/DeslikeCollab.svelte b/src/components/DislikeCollab.svelte similarity index 65% rename from src/components/DeslikeCollab.svelte rename to src/components/DislikeCollab.svelte index e006258..13d6b1f 100644 --- a/src/components/DeslikeCollab.svelte +++ b/src/components/DislikeCollab.svelte @@ -1,14 +1,14 @@ - \ No newline at end of file diff --git a/src/components/LikeCollab.svelte b/src/components/LikeCollab.svelte index c6b2cfc..446ada9 100644 --- a/src/components/LikeCollab.svelte +++ b/src/components/LikeCollab.svelte @@ -8,7 +8,7 @@ - \ No newline at end of file diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index b14f131..de7536b 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -1,7 +1,7 @@ @@ -15,5 +15,5 @@
- +
diff --git a/static/img/dark/icon/deslike_button.svg b/static/img/dark/icon/dislike_button.svg similarity index 100% rename from static/img/dark/icon/deslike_button.svg rename to static/img/dark/icon/dislike_button.svg