Hanye官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. <template>
  2. <div>
  3. <!-- 轮播图 -->
  4. <section class="max-w-full mb-12 md:mb-32">
  5. <Swiper
  6. :modules="[Pagination, Autoplay, EffectCreative]"
  7. :slides-per-view="1"
  8. :space-between="30"
  9. :loop="true"
  10. :pagination="{ el: '.swiper-pagination-1', clickable: true }"
  11. :autoplay="{ delay: 5000, disableOnInteraction: false }"
  12. effect="creative"
  13. :creativeEffect="{
  14. prev: {
  15. shadow: true,
  16. translate: ['-120%', -20, -50],
  17. },
  18. next: {
  19. shadow: true,
  20. translate: ['-20%', -20, -50],
  21. },
  22. }"
  23. class="h-[320px] sm:h-[320px] md:h-[768px] lg:h-[900px] swiper-container-1"
  24. >
  25. <SwiperSlide>
  26. <div
  27. class="max-w-screen-2xl mx-auto h-full"
  28. :style="{
  29. backgroundImage: `url(${homeA1Webp})`,
  30. backgroundSize: 'cover',
  31. backgroundPosition: 'center',
  32. backgroundRepeat: 'no-repeat',
  33. }"
  34. ></div>
  35. </SwiperSlide>
  36. <SwiperSlide>
  37. <div
  38. class="max-w-screen-2xl mx-auto h-full"
  39. :style="{
  40. backgroundImage: `url(${homeA1Webp})`,
  41. backgroundSize: 'cover',
  42. backgroundPosition: 'center',
  43. backgroundRepeat: 'no-repeat',
  44. }"
  45. ></div>
  46. </SwiperSlide>
  47. <!-- Add more slides as needed -->
  48. <div class="max-w-screen-2xl mx-auto relative">
  49. <div
  50. class="swiper-pagination swiper-pagination-1 text-left bottom-1 top-0"
  51. ></div>
  52. </div>
  53. </Swiper>
  54. </section>
  55. <!-- 分类产品展示 -->
  56. <section class="max-w-full mb-12 md:mb-32">
  57. <div class="max-w-screen-2xl mx-auto relative">
  58. <div
  59. class="justify-center text-cyan-400 text-base font-normal leading-tight mb-4 px-4 md:px-0"
  60. >
  61. {{ $t("products.usage") }}
  62. </div>
  63. <div
  64. class="justify-center text-white font-normal mb-8 px-4 md:px-0 md:mb-16 text-xl sm:text-2xl md:text-4xl lg:text-6xl"
  65. >
  66. {{ $t("products.usage_title") }}
  67. </div>
  68. </div>
  69. <div
  70. class="max-w-screen-2xl mx-auto relative overflow-x-auto whitespace-nowrap scrollbar-hide scroll-smooth"
  71. >
  72. <div class="w-full mb-8 inline-flex items-center gap-4 px-4 md:px-0">
  73. <div
  74. class="cursor-pointer select-none px-7 py-3 rounded-full outline outline-1 outline-offset-[-1px] outline-cyan-400 inline-flex justify-center items-center gap-2.5"
  75. >
  76. <div
  77. class="text-center justify-center text-cyan-400 text-sm font-normal leading-tight md:text-base"
  78. >
  79. 外付けストレージ化
  80. </div>
  81. </div>
  82. <div
  83. class="cursor-pointer select-none px-8 py-3 rounded-full outline outline-1 outline-offset-[-1px] outline-zinc-700 inline-flex justify-center items-center gap-2.5"
  84. >
  85. <div
  86. class="text-center justify-center text-zinc-300 text-sm font-normal leading-tight md:text-base"
  87. >
  88. 外付けストレージ化
  89. </div>
  90. </div>
  91. <div
  92. class="cursor-pointer select-none px-8 py-3 rounded-full outline outline-1 outline-offset-[-1px] outline-zinc-700 inline-flex justify-center items-center gap-2.5"
  93. >
  94. <div
  95. class="text-center justify-center text-zinc-300 text-sm font-normal leading-tight md:text-base"
  96. >
  97. 外付けストレージ化
  98. </div>
  99. </div>
  100. </div>
  101. <div class="absolute right-0 top-1 z-10 lg:block hidden">
  102. <div class="flex items-center justify-center gap-4">
  103. <div
  104. class="swiper-button-prev-2 bg-zinc-700 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
  105. >
  106. <i class="icon-arrow-left text-zinc-300 text-sm font-normal"></i>
  107. </div>
  108. <div
  109. class="swiper-button-next-2 bg-zinc-700 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
  110. >
  111. <i class="icon-arrow-right text-zinc-300 text-sm font-normal"></i>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <div
  117. class="w-full relative pl-[calc((100vw-1536px)/2)] 2xl:pl-[calc((100vw-1536px)/2)] lg:pl-[0] md:pl-[0] sm:pl-[0] max-w-full"
  118. >
  119. <div class="w-full">
  120. <Swiper
  121. :modules="[Navigation]"
  122. :spaceBetween="30"
  123. slidesPerView="auto"
  124. :grid="{
  125. fill: 'column',
  126. rows: 1,
  127. }"
  128. :navigation="{
  129. prevEl: '.swiper-button-prev-2',
  130. nextEl: '.swiper-button-next-2',
  131. }"
  132. class="h-32 sm:h-32 md:h-64 lg:h-96 max-w-full"
  133. >
  134. <SwiperSlide
  135. class="!w-32 sm:!w-32 md:!w-64 lg:!w-96 !h-32 sm:!h-32 md:!h-64 lg:!h-96"
  136. >
  137. <div
  138. class="w-full h-full [background:#181818] rounded-2xl px-2 md:px-10 flex flex-col items-center justify-center"
  139. >
  140. <img
  141. :src="product"
  142. alt="h1"
  143. class="w-full h-full object-contain"
  144. />
  145. <div
  146. class="text-center text-white text-base font-bold leading-tight mb-4 hidden md:block"
  147. >
  148. Hanye Q60-2TST3
  149. </div>
  150. <div
  151. class="text-center justify-center text-white text-xs font-normal mb-8 leading-tight hidden md:block opacity-80"
  152. >
  153. 2TB SSD UP TO 550MB/s
  154. </div>
  155. </div>
  156. </SwiperSlide>
  157. <SwiperSlide
  158. class="!w-32 sm:!w-32 md:!w-64 lg:!w-96 !h-32 sm:!h-32 md:!h-64 lg:!h-96"
  159. >
  160. <div
  161. class="w-full h-full [background:#181818] rounded-2xl px-2 md:px-10 flex flex-col items-center justify-center"
  162. >
  163. <img
  164. :src="product"
  165. alt="h1"
  166. class="w-full h-full object-contain"
  167. />
  168. <div
  169. class="text-center text-white text-base font-bold leading-tight mb-4 hidden md:block"
  170. >
  171. Hanye Q60-2TST3
  172. </div>
  173. <div
  174. class="text-center justify-center text-white text-xs font-normal mb-8 leading-tight hidden md:block opacity-80"
  175. >
  176. 2TB SSD UP TO 550MB/s
  177. </div>
  178. </div>
  179. </SwiperSlide>
  180. <SwiperSlide
  181. class="!w-32 sm:!w-32 md:!w-64 lg:!w-96 !h-32 sm:!h-32 md:!h-64 lg:!h-96"
  182. >
  183. <div
  184. class="w-full h-full [background:#181818] rounded-2xl px-2 md:px-10 flex flex-col items-center justify-center"
  185. >
  186. <img
  187. :src="product"
  188. alt="h1"
  189. class="w-full h-full object-contain"
  190. />
  191. <div
  192. class="text-center text-white text-base font-bold leading-tight mb-4 hidden md:block"
  193. >
  194. Hanye Q60-2TST3
  195. </div>
  196. <div
  197. class="text-center justify-center text-white text-xs font-normal mb-8 leading-tight hidden md:block opacity-80"
  198. >
  199. 2TB SSD UP TO 550MB/s
  200. </div>
  201. </div>
  202. </SwiperSlide>
  203. <SwiperSlide
  204. class="!w-32 sm:!w-32 md:!w-64 lg:!w-96 !h-32 sm:!h-32 md:!h-64 lg:!h-96"
  205. >
  206. <div
  207. class="w-full h-full [background:#181818] rounded-2xl px-2 md:px-10 flex flex-col items-center justify-center"
  208. >
  209. <img
  210. :src="product"
  211. alt="h1"
  212. class="w-full h-full object-contain"
  213. />
  214. <div
  215. class="text-center text-white text-base font-bold leading-tight mb-4 hidden md:block"
  216. >
  217. Hanye Q60-2TST3
  218. </div>
  219. <div
  220. class="text-center justify-center text-white text-xs font-normal mb-8 leading-tight hidden md:block opacity-80"
  221. >
  222. 2TB SSD UP TO 550MB/s
  223. </div>
  224. </div>
  225. </SwiperSlide>
  226. <SwiperSlide
  227. class="!w-32 sm:!w-32 md:!w-64 lg:!w-96 !h-32 sm:!h-32 md:!h-64 lg:!h-96"
  228. >
  229. <div
  230. class="w-full h-full [background:#181818] rounded-2xl px-2 md:px-10 flex flex-col items-center justify-center"
  231. >
  232. <img
  233. :src="product"
  234. alt="h1"
  235. class="w-full h-full object-contain"
  236. />
  237. <div
  238. class="text-center text-white text-base font-bold leading-tight mb-4 hidden md:block"
  239. >
  240. Hanye Q60-2TST3
  241. </div>
  242. <div
  243. class="text-center justify-center text-white text-xs font-normal mb-8 leading-tight hidden md:block opacity-80"
  244. >
  245. 2TB SSD UP TO 550MB/s
  246. </div>
  247. </div>
  248. </SwiperSlide>
  249. </Swiper>
  250. </div>
  251. </div>
  252. </section>
  253. <!-- 按用途产品展示 -->
  254. <!-- Tag description -->
  255. <section class="max-w-full mb-12 md:mb-32">
  256. <div
  257. class="max-w-screen-2xl mx-auto grid grid-cols-1 justify-items-center gap-4 sm:grid-cols-2 md:grid-cols-3"
  258. >
  259. <div class="inline-flex justify-start items-center gap-5 px-4">
  260. <div
  261. class="w-16 h-16 relative bg-gradient-to-b from-neutral-600 to-slate-400 rounded-xl border-b-[1.50px] border-neutral-700 overflow-hidden"
  262. >
  263. <div
  264. class="w-12 h-12 left-[9.50px] top-[9.50px] absolute overflow-hidden flex items-center justify-center"
  265. >
  266. <i class="icon-h1 text-white text-5xl"></i>
  267. </div>
  268. </div>
  269. <div class="inline-flex flex-col justify-center items-start flex-1">
  270. <div
  271. class="justify-start text-white font-medium text-1xl md:text-lg"
  272. >
  273. {{ $t("products.support") }}
  274. </div>
  275. <div
  276. class="justify-start text-zinc-300 text-xs font-normal md:text-sm"
  277. >
  278. {{ $t("products.support_description") }}
  279. </div>
  280. </div>
  281. </div>
  282. <div class="inline-flex justify-start items-center gap-5 px-4">
  283. <div
  284. class="w-16 h-16 relative bg-gradient-to-b from-neutral-600 to-slate-400 rounded-xl border-b-[1.50px] border-neutral-700 overflow-hidden"
  285. >
  286. <div
  287. class="w-12 h-12 left-[9.50px] top-[9.50px] absolute overflow-hidden flex items-center justify-center"
  288. >
  289. <i class="icon-h2 text-white text-5xl"></i>
  290. </div>
  291. </div>
  292. <div class="inline-flex flex-col justify-center items-start flex-1">
  293. <div
  294. class="justify-start text-white font-medium text-1xl md:text-lg"
  295. >
  296. {{ $t("products.development") }}
  297. </div>
  298. <div
  299. class="justify-start text-zinc-300 text-xs font-normal md:text-sm"
  300. >
  301. {{ $t("products.development_description") }}
  302. </div>
  303. </div>
  304. </div>
  305. <div class="inline-flex justify-start items-center gap-5 px-4">
  306. <div
  307. class="w-16 h-16 relative bg-gradient-to-b from-neutral-600 to-slate-400 rounded-xl border-b-[1.50px] border-neutral-700 overflow-hidden"
  308. >
  309. <div
  310. class="w-12 h-12 left-[9.50px] top-[9.50px] absolute overflow-hidden flex items-center justify-center"
  311. >
  312. <i class="icon-h3 text-white text-5xl"></i>
  313. </div>
  314. </div>
  315. <div class="inline-flex flex-col justify-center items-start flex-1">
  316. <div
  317. class="justify-start text-white font-medium text-1xl md:text-lg"
  318. >
  319. {{ $t("products.develop") }}
  320. </div>
  321. <div
  322. class="justify-start text-zinc-300 text-xs font-normal md:text-sm"
  323. >
  324. {{ $t("products.develop_description") }}
  325. </div>
  326. </div>
  327. </div>
  328. </div>
  329. </section>
  330. <!-- 当社の強み -->
  331. <section class="max-w-full mb-0 md:mb-28">
  332. <div class="max-w-screen-2xl mx-auto relative">
  333. <div
  334. class="justify-center text-cyan-400 text-base font-normal leading-tight mb-4 px-4 md:px-0"
  335. >
  336. {{ $t("products.strong_point") }}
  337. </div>
  338. <div
  339. class="justify-center text-white font-normal mb-8 px-4 md:px-0 md:mb-16 text-xl sm:text-2xl md:text-4xl lg:text-6xl"
  340. >
  341. {{ $t("products.strong_point_title") }}
  342. </div>
  343. <div
  344. class="absolute right-0 top-1/2 -translate-y-1/2 z-10 lg:block hidden"
  345. >
  346. <div class="flex items-center justify-center gap-4">
  347. <div
  348. class="swiper-button-prev-3 bg-zinc-700 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
  349. >
  350. <i class="icon-arrow-left text-zinc-300 text-sm font-normal"></i>
  351. </div>
  352. <div
  353. class="swiper-button-next-3 bg-zinc-700 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer hover:bg-zinc-600 transition-colors duration-200"
  354. >
  355. <i class="icon-arrow-right text-zinc-300 text-sm font-normal"></i>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. <div class="overflow-hidden w-full">
  361. <div
  362. class="w-full relative pl-[calc((100vw-1536px)/2)] 2xl:pl-[calc((100vw-1536px)/2)] lg:pl-[0] md:pl-[0] sm:pl-[0] max-w-full"
  363. >
  364. <Swiper
  365. :modules="[Navigation, Pagination]"
  366. slides-per-view="auto"
  367. :space-between="30"
  368. :pagination="{ el: '.swiper-pagination-3', clickable: true }"
  369. :navigation="{
  370. prevEl: '.swiper-button-prev-3',
  371. nextEl: '.swiper-button-next-3',
  372. }"
  373. class="h-[320px] sm:h-[320px] md:h-[480px] lg:h-[720px] max-w-full"
  374. >
  375. <SwiperSlide class="!max-w-screen-2xl !w-full">
  376. <div
  377. class="w-full h-full flex items-center px-4 md:px-20"
  378. :style="{
  379. backgroundImage: `url(${homeC1Webp})`,
  380. backgroundSize: 'cover',
  381. backgroundPosition: 'center',
  382. backgroundRepeat: 'no-repeat',
  383. }"
  384. >
  385. <div
  386. class="w-[100%] md:w-[50%] bg-white/5 rounded-2xl backdrop-blur-[50px] px-8 py-12 flex flex-col gap-8 border border-white/10"
  387. >
  388. <div
  389. class="opacity-90 justify-start text-white text-2xl font-normal md:text-4xl"
  390. >
  391. 一貫体制による高品質と安定供給
  392. </div>
  393. <div
  394. class="opacity-70 justify-start text-white text-lg font-normal leading-relaxed hidden sm:block"
  395. >
  396. 「企画・開発から製造、品質管理、販売、オンラインショップ運営まで自社で完結。ISO認証取得の工場で生産された信頼性の高い製品を、安定してお届けします。」
  397. </div>
  398. </div>
  399. </div>
  400. </SwiperSlide>
  401. </Swiper>
  402. </div>
  403. <div class="max-w-screen-2xl mx-auto relative">
  404. <div class="swiper-pagination swiper-pagination-3"></div>
  405. </div>
  406. </div>
  407. </section>
  408. <!-- 产品咨询 -->
  409. <section
  410. class="max-w-full h-[240px] md:h-[480px] bg-black/80 hidden md:block"
  411. >
  412. <div class="h-full relative">
  413. <h1
  414. class="text-center justify-start text-white font-normal absolute top-1/3 left-4 right-4 -translate-x-0 md:left-1/2 md:-translate-x-1/2 md:right-auto text-xl sm:text-2xl md:text-3xl"
  415. >
  416. {{ $t("products.consultation") }}
  417. </h1>
  418. <div
  419. class="w-40 h-11 bg-zinc-300/10 rounded-lg outline outline-1 flex items-center justify-center gap-2 outline-white/20 backdrop-blur-[10px] absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/5"
  420. >
  421. <span class="text-white text-sm font-normal">{{
  422. $t("products.consultation_button")
  423. }}</span>
  424. <i class="icon-arrow-right text-white text-sm font-normal"></i>
  425. </div>
  426. <video
  427. :src="videoSrc"
  428. autoplay
  429. muted
  430. loop
  431. class="w-full h-full object-cover opacity-20"
  432. ></video>
  433. </div>
  434. </section>
  435. </div>
  436. </template>
  437. <script setup lang="ts">
  438. import { Swiper, SwiperSlide } from "swiper/vue";
  439. import {
  440. Navigation,
  441. Pagination,
  442. Autoplay,
  443. EffectCreative,
  444. } from "swiper/modules";
  445. import "swiper/css";
  446. import "swiper/css/navigation";
  447. import "swiper/css/pagination";
  448. import video from "@/assets/videos/video.mp4";
  449. import homeA1Webp from "@/assets/images/home-a-1.webp";
  450. import homeC1Webp from "@/assets/images/home-c-1.webp";
  451. import product from "@/assets/images/product.png";
  452. const videoSrc = ref(video);
  453. /**
  454. * 网站首页
  455. * 展示网站主要内容和精选产品
  456. */
  457. // 模拟数据
  458. const featuredProducts = [
  459. {
  460. id: 1,
  461. title: "产品一",
  462. description: "这是产品一的详细描述,介绍产品特点和用途。",
  463. },
  464. {
  465. id: 2,
  466. title: "产品二",
  467. description: "这是产品二的详细描述,介绍产品特点和用途。",
  468. },
  469. {
  470. id: 3,
  471. title: "产品三",
  472. description: "这是产品三的详细描述,介绍产品特点和用途。",
  473. },
  474. ];
  475. // SEO优化
  476. useHead({
  477. title: "Hanye - 首页",
  478. meta: [
  479. {
  480. name: "description",
  481. content: "基于 Nuxt3 的静态网站脚手架,支持多语言(中文、英文、日文)。",
  482. },
  483. ],
  484. });
  485. </script>
  486. <style lang="scss" scoped>
  487. :deep(.swiper-pagination-3) {
  488. margin: auto;
  489. position: static;
  490. padding: 1rem 0;
  491. }
  492. :deep(.swiper-pagination-bullet) {
  493. background-color: var(--color-bg); /* Example color */
  494. border: 2px solid var(--color-text);
  495. }
  496. :deep(.swiper-pagination-bullet-active) {
  497. background-color: var(--color-text); /* Example color */
  498. }
  499. </style>