fnHeader.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="header">
  3. <div class="title">
  4. <img src="@/assets/images/common/logo.png" alt="" />
  5. <span>飞鸟智慧确权平台</span>
  6. <img src="@/assets/images/common/logo-icon.png" alt="" />
  7. </div>
  8. <div class="date" v-show="showDate">
  9. <el-icon size="25"><MoreFilled /></el-icon>
  10. <div class="time">
  11. <div>21:05:46</div>
  12. <span>2024.11.04 星期一</span>
  13. </div>
  14. </div>
  15. </div>
  16. <!-- 四个方向的阴影 -->
  17. <div class="page-shadow">
  18. <div class="page-bg bg-top"></div>
  19. <div class="page-bg bg-right"></div>
  20. <div class="page-bg bg-bottom"></div>
  21. <div class="page-bg bg-left"></div>
  22. </div>
  23. </template>
  24. <script setup>
  25. const props = defineProps({
  26. showDate:{
  27. type:Boolean,
  28. defalut:false
  29. },
  30. })
  31. </script>
  32. <style lang="scss" scoped>
  33. .header {
  34. width: 100%;
  35. height: 74px;
  36. display: flex;
  37. justify-content: space-between;
  38. box-sizing: border-box;
  39. pointer-events: all;
  40. position: relative;
  41. .title {
  42. width: 100%;
  43. height: 100%;
  44. font-size: 24px;
  45. letter-spacing: 2px;
  46. line-height: 72px;
  47. padding-left: 20px;
  48. box-sizing: border-box;
  49. background: url("@/assets/images/common/header-bg.png") no-repeat center
  50. center / 100% 100%;
  51. span {
  52. margin: 0 5px;
  53. font-family: "PangMenZhengDao";
  54. }
  55. }
  56. .date {
  57. display: flex;
  58. align-items: center;
  59. position: absolute;
  60. right: 30px;
  61. top: 24px;
  62. .time{
  63. margin-left: 14px;
  64. line-height: 18px;
  65. div{
  66. font-family: "PangMenZhengDao";
  67. letter-spacing: 1px;
  68. font-size: 16px;
  69. }
  70. span{
  71. font-size: 11px;
  72. font-family: 'SOURCEHANTIFINE';
  73. }
  74. }
  75. }
  76. }
  77. // 阴影样式
  78. .page-bg{
  79. position: fixed;
  80. z-index: -1;
  81. }
  82. .bg-top{
  83. top: 0;
  84. width: 100%;
  85. height: 200px;
  86. background: linear-gradient( 0deg, rgba(0, 21, 31,0), #00151f);
  87. }
  88. .bg-right{
  89. right: 0;
  90. width: 600px;
  91. height: 100%;
  92. background: linear-gradient( 90deg, rgba(0, 21, 31,0), rgb(0, 21, 31,0.7));
  93. }
  94. .bg-bottom{
  95. bottom: 0;
  96. width: 100%;
  97. height: 200px;
  98. background: linear-gradient( 180deg, rgba(0, 21, 31,0), rgb(0, 21, 31,0.7));
  99. }
  100. .bg-left{
  101. left: 0;
  102. width: 600px;
  103. height: 100%;
  104. background: linear-gradient( 270deg, rgba(0, 21, 31,0), rgb(0, 21, 31,0.7));
  105. }
  106. </style>