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

TopHeader.vue 6.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <div>
  3. <div class="bg-container">
  4. <div class="bg">
  5. <div class="bg-01"></div>
  6. <div class="bg-02"></div>
  7. <div class="bg-03"></div>
  8. <div class="bg-04"></div>
  9. </div>
  10. <div class="title-c">
  11. <div class="title-main">科技创新2030</div>
  12. <div class="title-second">新一代人工智能重大项目成果展示</div>
  13. </div>
  14. <div class="menu">
  15. <TopMenu :menu="menu"></TopMenu>
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import TopMenu from './TopMenu.vue';
  22. export default {
  23. name: "TopHeader",
  24. props: {
  25. menu: { type: Number, default: -1 },
  26. },
  27. components: {
  28. TopMenu
  29. },
  30. data() {
  31. return {
  32. list: [],
  33. };
  34. },
  35. methods: {},
  36. mounted() { },
  37. };
  38. </script>
  39. <style scoped lang="less">
  40. .bg-container {
  41. height: 200px;
  42. width: 100%;
  43. background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%221%22%20x1%3D%220%22%20x2%3D%221%22%20y1%3D%220%22%20y2%3D%220%22%20gradientTransform%3D%22matrix(0.9059999999999998%2C%20-0.8390000000000001%2C%200.016184413580246918%2C%200.9059999999999998%2C%20-0.183%2C%200.683)%22%3E%3Cstop%20stop-color%3D%22%233bb6fe%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%232250cf%22%20stop-opacity%3D%221%22%20offset%3D%220.61%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%237c23b4%22%20stop-opacity%3D%221%22%20offset%3D%220.99%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");
  44. overflow: hidden;
  45. position: relative;
  46. .bg {
  47. position: absolute;
  48. width: 100%;
  49. height: 100%;
  50. left: 67%;
  51. top: 23%;
  52. .bg-01 {
  53. position: absolute;
  54. top: -296.85px;
  55. left: -100.21px;
  56. width: 11.52px;
  57. height: 430.36px;
  58. transform: rotate(46deg);
  59. border-radius: 45px;
  60. display: flex;
  61. background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%221%22%20x1%3D%220%22%20x2%3D%221%22%20y1%3D%220%22%20y2%3D%220%22%20gradientTransform%3D%22matrix(2.6570000000000005%2C%20-1.366%2C%201906.3802884596842%2C%202.6570000000000005%2C%20-0.714%2C%201.313)%22%3E%3Cstop%20stop-color%3D%22%2315cf16%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23ed6bc9%22%20stop-opacity%3D%220%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");
  62. }
  63. .bg-02 {
  64. position: absolute;
  65. top: -130.68px;
  66. left: -213.01px;
  67. width: 3.64px;
  68. height: 430.36px;
  69. transform: rotate(46deg);
  70. border-radius: 45px;
  71. background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%221%22%20x1%3D%220%22%20x2%3D%221%22%20y1%3D%220%22%20y2%3D%220%22%20gradientTransform%3D%22matrix(2.6570000000000005%2C%20-1.366%2C%2019094.65120710059%2C%202.6570000000000005%2C%20-0.714%2C%201.313)%22%3E%3Cstop%20stop-color%3D%22%23ffffff%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23ed6bc9%22%20stop-opacity%3D%220%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");
  72. }
  73. .bg-03 {
  74. position: absolute;
  75. top: -178.07px;
  76. left: -50.045px;
  77. width: 111.15px;
  78. height: 306.28px;
  79. transform: rotate(46deg);
  80. border-radius: 63px;
  81. background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%221%22%20x1%3D%220%22%20x2%3D%221%22%20y1%3D%220%22%20y2%3D%220%22%20gradientTransform%3D%22matrix(2.6570000000000005%2C%20-1.366%2C%2010.372156049382713%2C%202.6570000000000005%2C%20-0.714%2C%201.313)%22%3E%3Cstop%20stop-color%3D%22%23f8da77%22%20stop-opacity%3D%221%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23ed6bc9%22%20stop-opacity%3D%220%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");
  82. }
  83. .bg-04 {
  84. position: absolute;
  85. top: -218.72px;
  86. left: 239.81px;
  87. width: 20.38px;
  88. height: 306.28px;
  89. transform: rotate(46deg);
  90. border-radius: 45px;
  91. background: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%221%22%20x1%3D%220%22%20x2%3D%221%22%20y1%3D%220%22%20y2%3D%220%22%20gradientTransform%3D%22matrix(2.6570000000000005%2C%20-1.366%2C%20308.5173674049777%2C%202.6570000000000005%2C%20-0.714%2C%201.313)%22%3E%3Cstop%20stop-color%3D%22%2377f8f8%22%20stop-opacity%3D%220.6%22%20offset%3D%220%22%3E%3C%2Fstop%3E%3Cstop%20stop-color%3D%22%23ed6bc9%22%20stop-opacity%3D%220%22%20offset%3D%221%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%231)%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");
  92. }
  93. }
  94. .title-c {
  95. position: absolute;
  96. top: 0;
  97. left: 0;
  98. width: 100%;
  99. height: 100%;
  100. z-index: 1;
  101. .title-main {
  102. text-align: center;
  103. color: rgba(255, 230, 21, 1);
  104. font-weight: 700;
  105. text-shadow: rgb(34 7 94) 0px 2px 6px;
  106. line-height: 39px;
  107. font-size: 28px;
  108. margin: 26px 0 4px;
  109. }
  110. .title-second {
  111. text-align: center;
  112. font-weight: 700;
  113. text-shadow: rgb(34 7 94) 0px 2px 6px;
  114. color: rgb(255, 255, 255);
  115. font-size: 36px;
  116. font-weight: 500;
  117. line-height: 50px;
  118. }
  119. }
  120. .menu {
  121. position: absolute;
  122. bottom: 0;
  123. height: 40px;
  124. width: 100%;
  125. z-index: 2;
  126. padding: 0 140px;
  127. }
  128. }
  129. </style>