From 5bda5b2623e115a81e7396419f51e5755e26d070 Mon Sep 17 00:00:00 2001 From: jesusbotella Date: Wed, 30 Jan 2019 18:02:13 +0100 Subject: [PATCH 1/6] First Your Tags version for New Dashboard --- .../stylesheets/new-dashboard/_buttons.scss | 2 +- .../assets/icons/section-title/tags.svg | 19 ++++++ .../new-dashboard/components/TagCard.vue | 47 ++++++++++++++ .../new-dashboard/i18n/locales/en.json | 4 ++ .../new-dashboard/pages/Home/Home.vue | 18 +++++- .../Home/RecentSection/RecentSection.vue | 11 ++++ .../pages/Home/TagsSection/TagsSection.vue | 62 +++++++++++++++++++ 7 files changed, 161 insertions(+), 2 deletions(-) create mode 100644 lib/assets/javascripts/new-dashboard/assets/icons/section-title/tags.svg create mode 100644 lib/assets/javascripts/new-dashboard/components/TagCard.vue create mode 100644 lib/assets/javascripts/new-dashboard/pages/Home/TagsSection/TagsSection.vue diff --git a/assets/stylesheets/new-dashboard/_buttons.scss b/assets/stylesheets/new-dashboard/_buttons.scss index c912f6fe1b9f..a57faba9d7a3 100644 --- a/assets/stylesheets/new-dashboard/_buttons.scss +++ b/assets/stylesheets/new-dashboard/_buttons.scss @@ -22,7 +22,7 @@ a { } .button--ghost { - background: $white; + background: transparent; color: $primary-color; } diff --git a/lib/assets/javascripts/new-dashboard/assets/icons/section-title/tags.svg b/lib/assets/javascripts/new-dashboard/assets/icons/section-title/tags.svg new file mode 100644 index 000000000000..9e4c5214e3c4 --- /dev/null +++ b/lib/assets/javascripts/new-dashboard/assets/icons/section-title/tags.svg @@ -0,0 +1,19 @@ + + + + Line_Icons + Created with Sketch. + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib/assets/javascripts/new-dashboard/components/TagCard.vue b/lib/assets/javascripts/new-dashboard/components/TagCard.vue new file mode 100644 index 000000000000..cc0565042504 --- /dev/null +++ b/lib/assets/javascripts/new-dashboard/components/TagCard.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/lib/assets/javascripts/new-dashboard/i18n/locales/en.json b/lib/assets/javascripts/new-dashboard/i18n/locales/en.json index af3ed6426fbd..533483e37c80 100644 --- a/lib/assets/javascripts/new-dashboard/i18n/locales/en.json +++ b/lib/assets/javascripts/new-dashboard/i18n/locales/en.json @@ -297,5 +297,9 @@ "title": "Your organization's administrator", "description": "Contact the administrator of your organization if you have issues regarding your account, quotas, etc." } + }, + "TagCard": { + "maps": "0 maps | {maps} map | {maps} maps", + "datasets": "0 datasets | {datasets} dataset | {datasets} datasets" } } diff --git a/lib/assets/javascripts/new-dashboard/pages/Home/Home.vue b/lib/assets/javascripts/new-dashboard/pages/Home/Home.vue index 4e76de07684c..c78f5d2b15f4 100644 --- a/lib/assets/javascripts/new-dashboard/pages/Home/Home.vue +++ b/lib/assets/javascripts/new-dashboard/pages/Home/Home.vue @@ -1,7 +1,8 @@