From 748daa7d62416ab84cb610b0b8f392065d48eb06 Mon Sep 17 00:00:00 2001 From: Mosab Ibrahim Date: Tue, 5 May 2020 03:05:53 +0200 Subject: [PATCH 1/4] Adding search feature, it's not polished yet just a starting point --- src/components.js | 26 ++++++ src/components/Master.vue | 86 +++++++++++-------- .../UI/Cards/{Artical.vue => Article.vue} | 0 3 files changed, 74 insertions(+), 38 deletions(-) create mode 100644 src/components.js rename src/components/UI/Cards/{Artical.vue => Article.vue} (100%) diff --git a/src/components.js b/src/components.js new file mode 100644 index 0000000..84d6d0f --- /dev/null +++ b/src/components.js @@ -0,0 +1,26 @@ +export default [ + { + name: 'Alert', + components: [ + { name: 'notification-Pop' } + + ], + }, + { + name: 'Cards', + components: [ + { name: 'article' }, + { name: 'product' }, + { name: 'product-evaluation' }, + { name: 'testimonial' }, + { name: 'user-details' }, + ], + }, + { + name: 'Forms', + components: [ + { name: 'login' }, + { name: 'subscribe' }, + ], + }, +]; \ No newline at end of file diff --git a/src/components/Master.vue b/src/components/Master.vue index 9438fc2..2c5505d 100644 --- a/src/components/Master.vue +++ b/src/components/Master.vue @@ -3,7 +3,8 @@

Discover new components. Build amazing things 🔥

- +
@@ -19,24 +20,10 @@
-
-

Alert

- -
- -
-

Cards

- - - - - -
- -
-

Forms

- - +
+

+
@@ -45,25 +32,48 @@ \ No newline at end of file diff --git a/src/components/UI/Cards/Artical.vue b/src/components/UI/Cards/Article.vue similarity index 100% rename from src/components/UI/Cards/Artical.vue rename to src/components/UI/Cards/Article.vue From dd7c125289819cbf0b91780e86e0fd1498d9fe5a Mon Sep 17 00:00:00 2001 From: Mosab Ibrahim Date: Tue, 5 May 2020 03:16:59 +0200 Subject: [PATCH 2/4] Adding purge css --- tailwind.config.js | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index 8fcc616..561fb9b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,19 +1,21 @@ module.exports = { - purge: [], - theme: { - extend: { - fontFamily: { - inter: [ - 'Inter' - ], - }, - spacing: { - '7': '1.75rem', - '9': '2.25rem', - '96': '24rem', - }, + purge: [ + './src/**/*.vue', + ], + theme: { + extend: { + fontFamily: { + inter: [ + 'Inter' + ], + }, + spacing: { + '7': '1.75rem', + '9': '2.25rem', + '96': '24rem', + }, + }, }, - }, - variants: {}, - plugins: [], + variants: {}, + plugins: [], } From 6564ab32b6a486293221e2117c66095bf285fece Mon Sep 17 00:00:00 2001 From: Mosab Ibrahim Date: Tue, 5 May 2020 03:38:19 +0200 Subject: [PATCH 3/4] Fixing width bug in snippet --- src/assets/css/tailwind.css | 2 +- src/views/ViewComponent.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/assets/css/tailwind.css b/src/assets/css/tailwind.css index ebf8739..9442647 100644 --- a/src/assets/css/tailwind.css +++ b/src/assets/css/tailwind.css @@ -17,4 +17,4 @@ background: #718096; } -@tailwind utilities \ No newline at end of file +@tailwind utilities; \ No newline at end of file diff --git a/src/views/ViewComponent.vue b/src/views/ViewComponent.vue index 19a69b8..64d96d5 100644 --- a/src/views/ViewComponent.vue +++ b/src/views/ViewComponent.vue @@ -1,5 +1,5 @@