From b0e8088e369dc658f647a62bcc08c052872b6df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Micha=C5=82ek?= Date: Fri, 6 Aug 2021 10:49:53 +0200 Subject: [PATCH] Add two theme views --- src/_nav.js | 24 ++-- src/router/index.js | 10 ++ src/views/theme/ColorTheme.vue | 21 ++++ src/views/theme/Colors.vue | 33 +++++ src/views/theme/Typography.vue | 222 +++++++++++++++++++++++++++++++++ 5 files changed, 298 insertions(+), 12 deletions(-) create mode 100644 src/views/theme/ColorTheme.vue create mode 100644 src/views/theme/Colors.vue create mode 100644 src/views/theme/Typography.vue diff --git a/src/_nav.js b/src/_nav.js index 4f2f6d20..17e26c04 100644 --- a/src/_nav.js +++ b/src/_nav.js @@ -13,18 +13,18 @@ export default [ // _name: 'CNavTitle', // name: 'Theme' // }, - // { - // _name: 'CNavItem', - // name: 'Colors', - // to: '/theme/colors', - // icon: 'cil-drop' - // }, - // { - // _name: 'CNavItem', - // name: 'Typography', - // to: '/theme/typography', - // icon: 'cil-pencil' - // }, + { + _name: 'CNavItem', + name: 'Colors', + to: '/theme/colors', + icon: 'cil-drop' + }, + { + _name: 'CNavItem', + name: 'Typography', + to: '/theme/typography', + icon: 'cil-pencil' + }, // { // _name: 'CNavTitle', // name: 'Components' diff --git a/src/router/index.js b/src/router/index.js index 08017f68..0c5f3509 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -22,6 +22,16 @@ const routes = [ component: () => import(/* webpackChunkName: "dashboard" */ "@/views/Dashboard.vue"), }, + { + path: "/theme/colors", + name: "Colors", + component: () => import("@/views/theme/Colors.vue"), + }, + { + path: "/theme/typography", + name: "Typography", + component: () => import("@/views/theme/Typography.vue"), + }, { path: "/base", name: "Base", diff --git a/src/views/theme/ColorTheme.vue b/src/views/theme/ColorTheme.vue new file mode 100644 index 00000000..bcedac36 --- /dev/null +++ b/src/views/theme/ColorTheme.vue @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/src/views/theme/Colors.vue b/src/views/theme/Colors.vue new file mode 100644 index 00000000..d0856fae --- /dev/null +++ b/src/views/theme/Colors.vue @@ -0,0 +1,33 @@ + + + \ No newline at end of file diff --git a/src/views/theme/Typography.vue b/src/views/theme/Typography.vue new file mode 100644 index 00000000..b6c4f831 --- /dev/null +++ b/src/views/theme/Typography.vue @@ -0,0 +1,222 @@ + + + \ No newline at end of file