Files
template-vue-hucky/src/pages/index.vue

89 lines
2.5 KiB
Vue
Raw Normal View History

2025-08-01 17:52:35 +08:00
<script lang="ts" setup>
2026-02-02 21:03:52 +08:00
import DatePickerDisplayCard from "@/components/card/DatePickerDisplayCard.vue";
2026-02-02 20:14:48 +08:00
import DevelopProgressCard from "@/components/card/DevelopProgressCard.vue";
2026-02-04 22:44:53 +08:00
import FooterBar from "@/components/layout/FooterBar.vue";
2026-01-31 02:54:00 +08:00
import NavBar from "@/components/menu/NavBar.vue";
2026-02-02 21:03:52 +08:00
import { navigateTo } from "@/utils/navigator";
2026-02-02 20:14:48 +08:00
const progress = ref([
{
name: "auto-router",
completed: 80,
pending: 20,
title: "自动路由开发进度",
intro: "自动将 pages 目录下的所有 vue 文件转换为路由",
},
{
name: "component-list",
completed: 95,
pending: 5,
title: "组件库开发进度",
intro: "自动加载项目所需要的组件库",
},
{
name: "international",
completed: 95,
pending: 5,
title: "国际化开发进度",
intro: "有序地组织项目翻译文件",
},
{
name: "chart",
completed: 95,
pending: 5,
title: "图表开发进度",
intro: "使用精美的图表呈现内容",
},
]);
2025-08-01 17:52:35 +08:00
</script>
<template>
2026-02-02 21:03:52 +08:00
<div class="bg-base-200">
<div class="h-screen flex flex-col">
<NavBar class="fixed top-0 left-0 z-10" />
2026-02-04 23:22:22 +08:00
<!-- 同高度占位颜色叠加 -->
<div class="h-16 bg-base-300" />
2026-02-02 21:03:52 +08:00
<div class="hero flex-1">
<div class="hero-content text-center">
<div class="max-w-md">
<h1 class="text-5xl font-bold">欢迎加入</h1>
<p class="py-6">
超现代化的 Vue3 Based 脚手架<br />
赋予您高效的开发体验<br />
使用 bun docs 命令启动 Hucky 的文档服务器
</p>
<button
class="btn btn-primary"
@click="navigateTo('http://localhost:5174')"
>
查阅文档
</button>
</div>
</div>
</div>
</div>
2026-02-04 22:44:53 +08:00
<div class="p-4">
2026-02-02 21:03:52 +08:00
<h1 class="text-4xl font-bold mb-12 ml-10">脚手架开发进度</h1>
<div class="w-full grid grid-cols-3 gap-4 justify-items-center">
<DevelopProgressCard
v-for="item in progress"
:key="item.title"
:completed="item.completed"
:pending="item.pending"
:title="item.title"
:intro="item.intro"
/>
</div>
</div>
2026-02-04 22:44:53 +08:00
<div class="p-4">
2026-02-02 21:03:52 +08:00
<h1 class="text-4xl font-bold mb-12 ml-10">组件演示</h1>
<div class="w-full grid grid-cols-3 gap-4 justify-items-center">
<DatePickerDisplayCard />
</div>
2025-08-01 17:52:35 +08:00
</div>
2026-02-04 22:44:53 +08:00
<FooterBar />
2025-08-01 17:52:35 +08:00
</div>
</template>
2026-01-30 23:22:54 +08:00
<style scoped></style>