Logo.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <div class="logo">
  3. <!-- <div class="logo_s">
  4. <span>龍翔官立中學</span>
  5. </div>
  6. <div class="logo_h">
  7. <span>Lung Cheung Government Secondary School</span>
  8. </div> -->
  9. <img class="logo-cube" v-if="id == 'home'" :src="logoCube" />
  10. </div>
  11. </template>
  12. <script setup>
  13. import logoCube from '../assets/logo.png'
  14. defineProps({
  15. id: {
  16. type: String,
  17. default: 'home',
  18. },
  19. });
  20. </script>
  21. <style lang="scss">
  22. .logo {
  23. width: 463px;
  24. position: fixed;
  25. z-index: 1000;
  26. top: 30px;
  27. left: 30px;
  28. border-radius: 10px;
  29. .logo-cube {
  30. position: absolute;
  31. z-index: 1001;
  32. top: 10px;
  33. left: -15px;
  34. }
  35. .logo_s {
  36. width: 463px;
  37. height: 50px;
  38. background: rgba(1, 144, 64, 0.9);
  39. text-align: left;
  40. text-indent: 110px;
  41. border-top-left-radius: 10px;
  42. border-top-right-radius: 10px;
  43. span {
  44. line-height: 50px;
  45. font-size: 28px;
  46. }
  47. }
  48. .logo_h {
  49. height: 30px;
  50. text-indent: 110px;
  51. background: rgba(255, 255, 255, 0.9);
  52. color: black;
  53. text-align: left;
  54. border-bottom-left-radius: 10px;
  55. border-bottom-right-radius: 10px;
  56. span {
  57. line-height: 30px;
  58. font-size: 15px;
  59. }
  60. }
  61. }
  62. </style>