HyHeader.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <header>
  3. <div class="leftsidebar">
  4. <a href="http://221.12.135.185:8090/bigScreen_new/home.html">
  5. <img src="../assets/logo.png" alt="" />
  6. </a>
  7. </div>
  8. <div class="mainbav">
  9. <a href="http://hy.ifarmcloud.com/screen/#/lvShanXiang">吕山牧场</a>
  10. <a
  11. href="http://hy.ifarmcloud.com/screen/#/butcher"
  12. >湖羊产业</a
  13. >
  14. <a class="h_m_active" href="javascrtpt:void(0)">特色湖羊</a>
  15. <a
  16. href="http://hy.ifarmcloud.com/screen/#/yield"
  17. >湖羊养殖</a
  18. >
  19. <a
  20. href="http://122.237.98.3:8888/LvShanDaShuJu/page/page_map.html"
  21. >智慧养殖</a
  22. >
  23. </div>
  24. <div class="rightsidebar">
  25. <div>
  26. <img src="../assets/yonghu.png" alt="" />
  27. <span>admin 欢迎你!</span>
  28. </div>
  29. <div>
  30. <img src="../assets/tuichu.png" alt="" />
  31. <span>退出</span>
  32. </div>
  33. </div>
  34. </header>
  35. </template>
  36. <script>
  37. export default {
  38. name: "HyHeader",
  39. };
  40. </script>
  41. <style scoped lang="scss">
  42. header {
  43. height: 133px;
  44. width: 100%;
  45. display: flex;
  46. justify-content: space-between;
  47. }
  48. .leftsidebar {
  49. width: 1036px;
  50. background-image: url(../assets/zs.png);
  51. background-size: 360% 180%;
  52. background-repeat: no-repeat;
  53. height: 100%;
  54. }
  55. .leftsidebar img {
  56. margin-left: 80px;
  57. height: 80%;
  58. }
  59. .mainbav {
  60. width: 2000px;
  61. display: flex;
  62. align-items: center;
  63. justify-content: space-around;
  64. }
  65. .mainbav a {
  66. background-image: url(../assets/li_bg2.png);
  67. background-size: 100% 100%;
  68. background-repeat: no-repeat;
  69. display: block;
  70. width: 317px;
  71. height: 78px;
  72. line-height: 78px;
  73. text-align: center;
  74. font-size: 44px;
  75. font-weight: normal;
  76. font-stretch: normal;
  77. letter-spacing: 2px;
  78. font-size: 44px;
  79. color: grey;
  80. opacity: 0.5;
  81. }
  82. .h_m_active {
  83. width: 420px !important;
  84. height: 100px !important;
  85. line-height: 100px !important;
  86. font-size: 60px !important;
  87. opacity: 1 !important;
  88. color: #00fcff !important;
  89. }
  90. .rightsidebar {
  91. width: 690px;
  92. height: 80px;
  93. background-image: url(../assets/youshangjiao.png);
  94. background-size: 100% 100%;
  95. background-repeat: no-repeat;
  96. display: flex;
  97. justify-content: flex-end;
  98. flex-direction: row;
  99. align-items: center;
  100. }
  101. .rightsidebar > div {
  102. display: flex;
  103. flex-direction: row;
  104. align-items: center;
  105. margin-right: 20px;
  106. }
  107. .rightsidebar img {
  108. width: 36px;
  109. height: 38px;
  110. vertical-align: middle;
  111. }
  112. .rightsidebar span {
  113. margin: 0 25px;
  114. font-family: "Noto Sans SC";
  115. font-size: 28px;
  116. font-weight: normal;
  117. font-stretch: normal;
  118. letter-spacing: 1px;
  119. color: #00cdff;
  120. }
  121. </style>