feat(docs): refactor homepage layouts and add HomeFeatures component

- Replace verbose inline HTML/CSS in multiple language homepages with reusable HomeFeatures component
- Simplify hero section taglines and action links across all language versions
- Add iOS/Apple style enhancements including glassmorphism effects and refined button animations
- Register HomeFeatures component globally in Vue app for consistent usage
- Remove redundant translation banners and GitHub star sections to streamline content
This commit is contained in:
sanbuphy
2026-01-26 13:00:54 +08:00
parent 6f78114865
commit f5adedf77b
14 changed files with 1359 additions and 1356 deletions
+2
View File
@@ -8,6 +8,7 @@ import { onMounted, watch, nextTick } from 'vue'
import { useRoute, useData } from 'vitepress'
import './style.css'
import Layout from './Layout.vue'
import HomeFeatures from './components/HomeFeatures.vue'
import CategoryIndex from './components/CategoryIndex.vue'
import ArticleGrid from './components/ArticleGrid.vue'
import StepBar from './components/StepBar.vue'
@@ -270,6 +271,7 @@ export default {
Layout,
enhanceApp({ app }) {
app.use(ElementPlus)
app.component('HomeFeatures', HomeFeatures)
app.component('CategoryIndex', CategoryIndex)
app.component('ArticleGrid', ArticleGrid)
app.component('StepBar', StepBar)