From ee809cb406fc33c394037b731be3747f1136b25a Mon Sep 17 00:00:00 2001 From: zernonia Date: Wed, 6 Sep 2023 16:58:01 +0800 Subject: [PATCH] chore: add responsive design --- .../theme/components/LandingPage.vue | 23 +++----- apps/www/.vitepress/theme/components/Logo.vue | 22 ++++++++ .../.vitepress/theme/components/MobileNav.vue | 56 +++++++++++++++++++ .../theme/components/TableOfContent.vue | 15 ++++- .../.vitepress/theme/components/VPImage.vue | 46 +++++++++++++++ apps/www/.vitepress/theme/components/index.ts | 1 + .../.vitepress/theme/layout/DocsLayout.vue | 4 ++ .../.vitepress/theme/layout/MainLayout.vue | 33 ++--------- apps/www/src/content/docs.md | 0 apps/www/src/content/docs/introduction.md | 6 +- apps/www/src/content/index.md | 4 +- .../src/examples/authentication/Example.vue | 27 ++++----- apps/www/src/examples/cards/Example.vue | 27 ++++----- apps/www/src/examples/dashboard/Example.vue | 25 ++++----- apps/www/src/examples/music/Example.vue | 26 ++++----- apps/www/src/examples/playground/Example.vue | 19 +++---- apps/www/src/examples/tasks/Example.vue | 27 ++++----- 17 files changed, 222 insertions(+), 139 deletions(-) create mode 100644 apps/www/.vitepress/theme/components/Logo.vue create mode 100644 apps/www/.vitepress/theme/components/MobileNav.vue create mode 100644 apps/www/.vitepress/theme/components/VPImage.vue create mode 100644 apps/www/src/content/docs.md diff --git a/apps/www/.vitepress/theme/components/LandingPage.vue b/apps/www/.vitepress/theme/components/LandingPage.vue index 59cbdb1b..d35022c7 100644 --- a/apps/www/.vitepress/theme/components/LandingPage.vue +++ b/apps/www/.vitepress/theme/components/LandingPage.vue @@ -9,6 +9,7 @@ import GitHubIcon from '~icons/radix-icons/github-logo' import { buttonVariants } from '@/lib/registry/default/ui/button' import { Separator } from '@/lib/registry/default/ui/separator' import { cn } from '@/lib/utils' + import DashboardExample from '@/examples/dashboard/Example.vue' @@ -53,20 +54,14 @@ import DashboardExample from '@/examples/dashboard/Example.vue'
- +