CocoPiTop.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <script setup>
  2. </script>
  3. <template>
  4. <div class="cocopi-top">
  5. <img class="backimg" src="../../assets/img/cocopiBack1.png" alt="">
  6. <img class="backimg" src="../../assets/img/cocopiBack2.png" alt="">
  7. <img class="backimg" src="../../assets/img/cocopiBack3.png" alt="">
  8. <div class="cocopi-top-content">
  9. <div>
  10. <h2>CocoPi</h2>
  11. <p>用於AIoT教學、運行<br />Linux系統的<span>掌上計算機</span></p>
  12. <p>All-in-One Product in <br />Technology Innovation Education</p>
  13. </div>
  14. <div>
  15. <img src="../../assets/img/cocopiImg.png" alt="">
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <style scoped lang="scss">
  21. .cocopi-top{
  22. width: 100%;
  23. position: relative;
  24. // height: 500px;
  25. .backimg{
  26. position: absolute;
  27. }
  28. .backimg:nth-child(1){
  29. top: -10px;
  30. left: 0;
  31. }
  32. .backimg:nth-child(2){
  33. top: 180px;
  34. right: 470px;
  35. width: 600px;
  36. }
  37. .backimg:nth-child(3){
  38. top: -50px;
  39. right: 10px;
  40. width: 600px;
  41. z-index: -1;
  42. }
  43. .cocopi-top-content{
  44. width: 70%;
  45. display: flex;
  46. justify-content: space-between;
  47. align-items: center;
  48. margin: 0 auto;
  49. padding: 0 0;
  50. div{
  51. position: relative;
  52. // width: 50%;
  53. font-size: 64px;
  54. h2{
  55. font-weight: 700;
  56. letter-spacing: 4%;
  57. color: #000;
  58. position: relative;
  59. margin-top: 125px;
  60. }
  61. h2::after{
  62. position: absolute;
  63. content: '';
  64. width: 450px;
  65. height: 24px;
  66. bottom: -5px;
  67. left: 0;
  68. background: linear-gradient(90deg, #3681FC 0%, rgba(54, 129, 252, 0) 100%);
  69. }
  70. p{
  71. color: #000;
  72. span{
  73. color: #3681FC;
  74. }
  75. }
  76. p:nth-child(2){
  77. margin-top: 120px;
  78. font-weight: 500;
  79. line-height: 100px;
  80. }
  81. p:nth-child(3){
  82. font-style: italic;
  83. color: #3681FC;
  84. font-size: 32px;
  85. margin-top: 18px;
  86. line-height: 48px;
  87. letter-spacing: 10%;
  88. }
  89. img{
  90. position: relative;
  91. z-index: 2;
  92. }
  93. }
  94. }
  95. }
  96. // .cocopi-top::before{
  97. // content: '';
  98. // width: 380px;
  99. // height: 380px;
  100. // position: absolute;
  101. // top: 0;
  102. // left: 15%;
  103. // background: #E67F36;
  104. // opacity: 0.1;
  105. // border-radius: 50%;
  106. // }
  107. </style>