diff --git a/.gitignore b/.gitignore index 7e0e1ec9b..7492b49ab 100644 --- a/.gitignore +++ b/.gitignore @@ -112,4 +112,5 @@ src/tutorial/data.json draft.md # IDEs +# folders created by IDE .idea diff --git a/.vitepress/config.ts b/.vitepress/config.ts index f381da00f..3e400c4cb 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -45,6 +45,7 @@ const nav: ThemeConfig['nav'] = [ text: '资源', items: [ { text: '合作伙伴', link: '/partners/' }, + { text: '开发者', link: '/developers/' }, { text: '主题', link: '/ecosystem/themes' }, { text: 'UI 组件', link: 'https://ui-libs.vercel.app/' }, { @@ -125,9 +126,13 @@ const nav: ThemeConfig['nav'] = [ link: '/sponsor/' }, { - text: '合作伙伴', - link: '/partners/', - activeMatch: `^/partners/` + text: '专家', + badge: { text: '新' }, + activeMatch: `^/(partners|developers)/`, + items: [ + { text: '合作伙伴', link: '/partners/' }, + { text: '开发者', link: '/developers/', badge: { text: '新' } } + ] } ] diff --git a/.vitepress/inlined-scripts/restorePreference.js b/.vitepress/inlined-scripts/restorePreference.js index b84fa6396..5e18b50ff 100644 --- a/.vitepress/inlined-scripts/restorePreference.js +++ b/.vitepress/inlined-scripts/restorePreference.js @@ -8,6 +8,6 @@ restore('vue-docs-prefer-composition', 'prefer-composition', true) restore('vue-docs-prefer-sfc', 'prefer-sfc', true) - window.__VUE_BANNER_ID__ = 'vt2024_1' - restore(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'banner-dismissed') + // window.__VUE_BANNER_ID__ = '' + // restore(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'banner-dismissed') })() diff --git a/.vitepress/theme/components/Banner.vue b/.vitepress/theme/components/Banner.vue index 8700ff789..6730fcd48 100644 --- a/.vitepress/theme/components/Banner.vue +++ b/.vitepress/theme/components/Banner.vue @@ -22,31 +22,16 @@ function dismiss() { @@ -65,10 +50,12 @@ html:not(.banner-dismissed) { font-weight: 600; color: #fff; background-color: var(--vt-c-green); - background: #11252b; - display: flex; - justify-content: center; - align-items: center; + background: linear-gradient( + 90deg, + rgba(66, 184, 131, 1) 0%, + rgba(39, 179, 137, 1) 19%, + rgba(100, 126, 255, 1) 100% + ); } .banner-dismissed .banner { @@ -83,7 +70,7 @@ button { position: absolute; right: 0; top: 0; - padding: 20px 10px; + padding: 5px; } .close { @@ -92,59 +79,10 @@ button { fill: #fff; transform: rotate(45deg); } - -.vt-banner-text { - color: #fff; - font-size: 16px; -} - -.vt-text-primary { - color: #75c05e; -} - -.vt-primary-action { - background: #75c05e; - color: #121c1a; - padding: 8px 15px; - border-radius: 5px; - font-size: 14px; - text-decoration: none; - margin: 0 20px; - font-weight: bold; -} -.vt-primary-action:hover { - text-decoration: none; - background: #5a9f45; -} - -@media (max-width: 1280px) { - .banner .vt-banner-text { - font-size: 14px; - } - .vt-tagline { - display: none; - } -} - -@media (max-width: 780px) { - .vt-tagline { - display: none; - } - .vt-coupon { - display: none; - } - .vt-primary-action { - margin: 0 10px; - padding: 7px 10px; - } - .vt-time-now { - display: none; - } -} - -@media (max-width: 560px) { - .vt-place { +/* +@media (max-width: 720px) { + a > span { display: none; } -} +} */ diff --git a/.vitepress/theme/components/CallToActionSection.vue b/.vitepress/theme/components/CallToActionSection.vue new file mode 100644 index 000000000..546d05fbd --- /dev/null +++ b/.vitepress/theme/components/CallToActionSection.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/.vitepress/theme/components/CardList.vue b/.vitepress/theme/components/CardList.vue new file mode 100644 index 000000000..e29722bf1 --- /dev/null +++ b/.vitepress/theme/components/CardList.vue @@ -0,0 +1,105 @@ + + + + + diff --git a/.vitepress/theme/components/Home.vue b/.vitepress/theme/components/Home.vue index 29ae17b89..38489444d 100644 --- a/.vitepress/theme/components/Home.vue +++ b/.vitepress/theme/components/Home.vue @@ -54,52 +54,39 @@ onMounted(load)

-
- -

vuejs/vue@{{ currentBranch }}

+

vuejs/core@{{ currentBranch }}