homePage.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <script setup lang='ts'>
  2. const router = useRouter();
  3. </script>
  4. <template>
  5. <div class='home'>
  6. <!-- <img class="logo-icon" src="@/assets/images/logo.png" alt=""> -->
  7. <div class="logo-icon">
  8. <div class="title">中山大学科考船</div>
  9. <div class="disc">虚拟漫游</div>
  10. </div>
  11. <div class="logo-welcome" @click="() => { router.push('/detail') }">开始探索</div>
  12. </div>
  13. </template>
  14. <style lang='less' scoped>
  15. .home {
  16. width: 100vw;
  17. height: 100vh;
  18. background: url(@/assets/images/bg.png);
  19. background-size: 100% 100%;
  20. .logo-icon {
  21. width: 23%;
  22. // height: 12vh;
  23. position: absolute;
  24. right: 16%;
  25. top: 10%;
  26. background: url(/src/assets/images/logoBg.png);
  27. background-size: 100% 100%;
  28. padding: 20px 40px;
  29. color: #1286AB;
  30. font-family: 'PangMenZhengDao-Regular';
  31. box-sizing: border-box;
  32. text-shadow: 0px 4px 8px #FFFFFF, 0px 4px 3px #FFFFFF;
  33. letter-spacing: 5px;
  34. .title {
  35. font-size: 4em;
  36. white-space: nowrap;
  37. @media screen and (max-width: 2300px) {
  38. font-size: 3.5em;
  39. }
  40. @media screen and (max-width: 2000px) {
  41. font-size: 2.8em;
  42. }
  43. }
  44. .disc {
  45. font-size: 2.5em;
  46. }
  47. }
  48. .logo-boat {
  49. width: 85%;
  50. height: 90%;
  51. position: absolute;
  52. right: 8%;
  53. top: 4%;
  54. }
  55. .logo-welcome {
  56. width: 40vw;
  57. height: 15vh;
  58. position: absolute;
  59. left: 50%;
  60. bottom: 0vh;
  61. transform: translateX(-50%);
  62. cursor: pointer;
  63. background: url(@/assets/images/begin-bg.png);
  64. background-size: 100% 100%;
  65. color: #FFFFFF;
  66. letter-spacing: 3px;
  67. text-shadow: 0px 4px 10px #000000;
  68. display: flex;
  69. justify-content: center;
  70. align-items: center;
  71. font-size: 1.5em;
  72. padding-bottom: 15px;
  73. cursor: pointer;
  74. opacity: 0.7;
  75. }
  76. }
  77. </style>