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

36 lines
962 B

  1. <!--头部组件-->
  2. <template>
  3. <!-- 头部容器 -->
  4. <div class="header">
  5. <!-- 系统Logo -->
  6. <div class="logo">Homily Link</div>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. // 组件名称:Header(由于是单个单词,已禁用多单词命名规则)
  12. // eslint-disable-next-line vue/multi-word-component-names
  13. name: 'Header'
  14. }
  15. </script>
  16. <style scoped>
  17. /* 头部样式 */
  18. .header {
  19. height: 60px; /* 高度60px */
  20. background-color: white; /* 白色背景 */
  21. display: flex; /* 使用flex布局 */
  22. align-items: center; /* 垂直居中对齐 */
  23. justify-content: flex-start; /* 内容靠左对齐 */
  24. padding-left: 20px; /* 左内边距20px */
  25. box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 添加底部阴影效果 */
  26. }
  27. /* Logo样式 */
  28. .logo {
  29. color: #e74c3c; /* 红色字体 */
  30. font-weight: bold; /* 粗体 */
  31. font-size: 18px; /* 字体大小18px */
  32. }
  33. </style>