About.vue 2.28 KB
<script setup lang="ts">
// About 页面
</script>

<template>
  <div class="about-view">
    <div class="content-card">
      <h1>📖 关于本应用</h1>

      <section class="section">
        <h2>技术栈</h2>
        <ul class="tech-list">
          <li><strong>Vue 3</strong> - 渐进式 JavaScript 框架</li>
          <li><strong>TypeScript</strong> - 类型安全的 JavaScript 超集</li>
          <li><strong>Vite</strong> - 新一代前端构建工具</li>
          <li><strong>Vue Router</strong> - 官方路由管理器</li>
          <li><strong>Pinia</strong> - 新一代状态管理库</li>
          <li><strong>qiankun</strong> - 微前端框架</li>
        </ul>
      </section>

      <section class="section">
        <h2>功能特性</h2>
        <ul class="feature-list">
          <li>✅ 支持独立运行和基座集成</li>
          <li>✅ 完整的 TypeScript 支持</li>
          <li>✅ 自动导入 API 和组件</li>
          <li>✅ 热模块替换 (HMR)</li>
          <li>✅ 路由懒加载</li>
          <li>✅ CSS 样式隔离</li>
        </ul>
      </section>

      <section class="section">
        <h2>快速开始</h2>
        <div class="code-block">
          <pre><code># 安装依赖
pnpm install

# 启动开发服务器
pnpm dev

# 构建生产版本
pnpm build</code></pre>
        </div>
      </section>
    </div>
  </div>
</template>

<style scoped>
.about-view {
  max-width: 900px;
  margin: 0 auto;
}

.content-card {
  padding: 2.5rem;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.content-card h1 {
  margin: 0 0 2rem;
  font-size: 2rem;
}

.section {
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: rgb(255 255 255 / 95%);
}

.tech-list,
.feature-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.tech-list li,
.feature-list li {
  padding: 0.5rem 0;
  line-height: 1.6;
  opacity: 0.9;
}

.code-block {
  padding: 1.5rem;
  overflow-x: auto;
  background: rgb(0 0 0 / 30%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0.5rem;
}

.code-block pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-block code {
  color: #a8e6cf;
}
</style>