From e5025ce50deb167017b6c3b7c11eb8d3bfbb0d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E6=B8=B8=E5=90=9B?= Date: Tue, 5 Oct 2021 02:16:40 +0800 Subject: [PATCH] refactor: add parallax effect for home (#3772) --- .../components/globals/parallax-home.vue | 591 ++++++++++++++++++ docs/.vitepress/vitepress/index.ts | 4 + docs/en-US/index.md | 500 +-------------- docs/vite.config.ts | 3 + 4 files changed, 601 insertions(+), 497 deletions(-) create mode 100644 docs/.vitepress/vitepress/components/globals/parallax-home.vue diff --git a/docs/.vitepress/vitepress/components/globals/parallax-home.vue b/docs/.vitepress/vitepress/components/globals/parallax-home.vue new file mode 100644 index 0000000000..6a779181c0 --- /dev/null +++ b/docs/.vitepress/vitepress/components/globals/parallax-home.vue @@ -0,0 +1,591 @@ + + + + + diff --git a/docs/.vitepress/vitepress/index.ts b/docs/.vitepress/vitepress/index.ts index 4e14dc24d9..810e015bc8 100644 --- a/docs/.vitepress/vitepress/index.ts +++ b/docs/.vitepress/vitepress/index.ts @@ -11,6 +11,9 @@ import MainColor from './components/globals/main-color.vue' import NeutralColor from './components/globals/neutral-color.vue' import SecondaryColors from './components/globals/secondary-colors.vue' import IconList from './components/globals/icons.vue' + +import ParallaxHome from './components/globals/parallax-home.vue' + export { default as NotFound } from './components/vp-not-found.vue' export default VPApp @@ -21,4 +24,5 @@ export const globals = [ ['SecondaryColors', SecondaryColors], ['IconList', IconList], ['Changelog', Changelog], + ['ParallaxHome', ParallaxHome], ] diff --git a/docs/en-US/index.md b/docs/en-US/index.md index 213c309472..03ec573797 100644 --- a/docs/en-US/index.md +++ b/docs/en-US/index.md @@ -3,500 +3,6 @@ title: A Desktop UI Toolkit for Web page: true --- - - -
- -
- banner -
- -
-
    -
  • -
    - -

    Guide

    -

    Understand the design guidelines, helping designers build product that's logically sound, reasonably structured and easy to use.

    - - View Detail - -
    -
  • -
  • -
    - -

    Component

    -

    Experience interaction details by strolling through component demos. Use encapsulated code to improve developing efficiency.

    - - View Detail - -
    -
  • -
  • -
    - -

    Resource

    -

    Download relevant design resources for shaping page prototype or visual draft, increasing design efficiency.

    - - View Detail - -
    -
  • -
-
-
- - - - + + + diff --git a/docs/vite.config.ts b/docs/vite.config.ts index 257995c63a..2c10d3f61f 100644 --- a/docs/vite.config.ts +++ b/docs/vite.config.ts @@ -30,4 +30,7 @@ export default defineConfig({ alias, }, plugins: [Inspect()], + optimizeDeps: { + include: ['@vueuse/core', 'dayjs'], + }, })