HomeView.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <template>
  2. <div class="min-h-screen bg-gray-50">
  3. <!-- Top Navigation -->
  4. <header class="bg-white border-b">
  5. <div class="flex items-center justify-between px-4 py-2">
  6. <div class="flex items-center space-x-2">
  7. <div class="text-blue-600">
  8. <div class="w-8 h-8">
  9. <div class="w-full h-full" />
  10. </div>
  11. </div>
  12. <span class="text-xl font-medium">ProductName</span>
  13. </div>
  14. <div class="flex-1 max-w-xl mx-4">
  15. <div class="relative">
  16. <Search class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400" size={20} />
  17. <input
  18. type="text"
  19. placeholder="搜索..."
  20. class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
  21. />
  22. </div>
  23. </div>
  24. <div class="flex items-center space-x-4">
  25. <a href="#/about" class="text-blue-600 hover:underline">关于我们</a>
  26. <a href="#/services" class="text-blue-600 hover:underline">服务</a>
  27. <a href="#/cases" class="text-blue-600 hover:underline">客户案例</a>
  28. <a href="#/contact" class="text-blue-600 hover:underline">联系我们</a>
  29. <button class="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600">登录</button>
  30. <button class="bg-gray-200 text-gray-700 px-4 py-2 rounded hover:bg-gray-300">注册</button>
  31. </div>
  32. </div>
  33. </header>
  34. <div class="flex">
  35. <!-- Sidebar -->
  36. <aside class="w-64 min-h-screen bg-white border-r">
  37. <nav class="p-4">
  38. <div class="mb-4 text-gray-500">菜单类别标题</div>
  39. <ul class="space-y-2">
  40. <li>
  41. <a href="#/" class="flex items-center px-4 py-2 text-blue-600 bg-blue-50 rounded-lg">
  42. <Home class="w-5 h-5 mr-3" />
  43. 首页
  44. </a>
  45. </li>
  46. <li v-for="i in 8" :key="i">
  47. <a href="#" class="flex items-center px-4 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
  48. <Box class="w-5 h-5 mr-3" />
  49. 系统模块{{ i }}
  50. </a>
  51. </li>
  52. </ul>
  53. </nav>
  54. </aside>
  55. <!-- Main Content -->
  56. <main class="flex-1 p-6">
  57. <!-- Featured Section -->
  58. <section class="mb-6">
  59. <h2 class="text-2xl font-bold mb-4">特色区域</h2>
  60. <div class="grid grid-cols-2 gap-6">
  61. <div class="bg-white rounded-lg p-6 shadow-sm flex items-center space-x-4">
  62. <div class="w-12 h-12 rounded-lg flex items-center justify-center bg-blue-50">
  63. <FileText class="text-blue-500" size={24} />
  64. </div>
  65. <div>
  66. <h3 class="text-lg font-medium">核心产品1</h3>
  67. <p class="text-gray-500">简短描述</p>
  68. </div>
  69. </div>
  70. <div class="bg-white rounded-lg p-6 shadow-sm flex items-center space-x-4">
  71. <div class="w-12 h-12 rounded-lg flex items-center justify-center bg-yellow-50">
  72. <FileText class="text-yellow-500" size={24} />
  73. </div>
  74. <div>
  75. <h3 class="text-lg font-medium">核心产品2</h3>
  76. <p class="text-gray-500">简短描述</p>
  77. </div>
  78. </div>
  79. </div>
  80. </section>
  81. <!-- Products/Services Section -->
  82. <section class="mb-6">
  83. <h2 class="text-2xl font-bold mb-4">产品/服务展示区</h2>
  84. <div class="grid grid-cols-2 gap-6">
  85. <div class="bg-white rounded-lg p-6 shadow-sm flex items-center space-x-4">
  86. <div class="w-12 h-12 rounded-lg flex items-center justify-center bg-green-50">
  87. <FileText class="text-green-500" size={24} />
  88. </div>
  89. <div>
  90. <h3 class="text-lg font-medium">服务1</h3>
  91. <p class="text-gray-500">简短描述</p>
  92. </div>
  93. </div>
  94. <div class="bg-white rounded-lg p-6 shadow-sm flex items-center space-x-4">
  95. <div class="w-12 h-12 rounded-lg flex items-center justify-center bg-red-50">
  96. <FileText class="text-red-500" size={24} />
  97. </div>
  98. <div>
  99. <h3 class="text-lg font-medium">服务2</h3>
  100. <p class="text-gray-500">简短描述</p>
  101. </div>
  102. </div>
  103. </div>
  104. </section>
  105. <!-- Customer Reviews Section -->
  106. <section class="mb-6">
  107. <h2 class="text-2xl font-bold mb-4">客户评价区</h2>
  108. <div class="bg-white rounded-lg p-6 shadow-sm">
  109. <div class="space-y-4">
  110. <div class="flex items-start">
  111. <div class="w-12 h-12 rounded-full bg-gray-200 mr-4"></div>
  112. <div>
  113. <div class="text-gray-900">客户名1</div>
  114. <p class="text-gray-500">正面评价</p>
  115. </div>
  116. </div>
  117. <div class="flex items-start">
  118. <div class="w-12 h-12 rounded-full bg-gray-200 mr-4"></div>
  119. <div>
  120. <div class="text-gray-900">客户名2</div>
  121. <p class="text-gray-500">正面评价</p>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. </section>
  127. <!-- Latest News/Blog Section -->
  128. <section class="mb-6">
  129. <h2 class="text-2xl font-bold mb-4">最新动态区</h2>
  130. <div class="bg-white rounded-lg p-6 shadow-sm">
  131. <div class="space-y-4">
  132. <div class="flex items-start">
  133. <div class="w-12 h-12 rounded-full bg-gray-200 mr-4"></div>
  134. <div>
  135. <div class="text-gray-900">新闻标题1</div>
  136. <p class="text-gray-500">简短描述</p>
  137. </div>
  138. </div>
  139. <div class="flex items-start">
  140. <div class="w-12 h-12 rounded-full bg-gray-200 mr-4"></div>
  141. <div>
  142. <div class="text-gray-900">新闻标题2</div>
  143. <p class="text-gray-500">简短描述</p>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. </section>
  149. </main>
  150. </div>
  151. <!-- Footer -->
  152. <footer class="bg-white border-t">
  153. <div class="flex items-center justify-between px-4 py-4">
  154. <div class="text-gray-500">
  155. <p>公司地址: 123 街道, 城市, 国家</p>
  156. <p>联系电话: +123456789</p>
  157. <p>Email: contact@example.com</p>
  158. </div>
  159. <div class="flex items-center space-x-4">
  160. <a href="https://facebook.com" class="text-gray-500 hover:underline">Facebook</a>
  161. <a href="https://twitter.com" class="text-gray-500 hover:underline">Twitter</a>
  162. <a href="https://instagram.com" class="text-gray-500 hover:underline">Instagram</a>
  163. </div>
  164. <div class="text-gray-500">
  165. &copy; 2025 ProductName. All rights reserved.
  166. </div>
  167. </div>
  168. </footer>
  169. </div>
  170. </template>
  171. <script setup>
  172. import {
  173. Search, Home, FileText, Box, MoreHorizontal
  174. } from 'lucide-vue-next'
  175. </script>