From 58296505a8a49f46d0bcced386a69778b06f14e0 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 12 Jun 2021 16:40:12 +0530 Subject: [PATCH] feat: show and hide sidebar - fixed #1716 --- components/smart/HideMenu.vue | 47 +++++ lang/en-US.json | 4 +- layouts/default.vue | 2 +- pages/index.vue | 344 ++++++++++++++++++++++++++-------- tailwind.config.js | 6 +- 5 files changed, 324 insertions(+), 79 deletions(-) create mode 100644 components/smart/HideMenu.vue diff --git a/components/smart/HideMenu.vue b/components/smart/HideMenu.vue new file mode 100644 index 000000000..a2e908255 --- /dev/null +++ b/components/smart/HideMenu.vue @@ -0,0 +1,47 @@ + + + diff --git a/lang/en-US.json b/lang/en-US.json index 34bac43bd..e8a81fe08 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -337,5 +337,7 @@ "check_your_inbox": "Check your inbox.", "you_can_dismiss_this_modal": "You can dismiss this ", "we_sent_magic_link": "We sent you a magic link!", - "we_sent_magic_link_description": "We sent an email to {email}. It contains a magic link that’ll log you in." + "we_sent_magic_link_description": "We sent an email to {email}. It contains a magic link that’ll log you in.", + "hide_sidebar": "Hide sidebar", + "show_sidebar": "Show sidebar" } diff --git a/layouts/default.vue b/layouts/default.vue index c93e36703..17c9ed6f2 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -5,7 +5,7 @@
- +
diff --git a/pages/index.vue b/pages/index.vue index 4b43a33cb..94271dbc7 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -24,7 +24,8 @@