hjyd的手机端
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.

77 lines
1.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="headline_container">
  3. <h2 class="title_h2">
  4. {{ flip ? title : '' }}
  5. <span class="theme">{{ themeTitle }}</span>
  6. {{ !flip ? title : '' }}
  7. </h2>
  8. <div class="scale">
  9. <p class="line1" v-if="line1">{{ line1 }}</p>
  10. <p class="line2" v-if="line2">{{ line2 }}</p>
  11. </div>
  12. </div>
  13. </template>
  14. <script setup>
  15. const props = defineProps({
  16. themeTitle: {
  17. type: String,
  18. default: '',
  19. },
  20. flip: {
  21. type: Boolean,
  22. default: false,
  23. },
  24. title: {
  25. type: String,
  26. },
  27. line1: {
  28. type: String,
  29. },
  30. line2: {
  31. type: String,
  32. },
  33. })
  34. </script>
  35. <style lang="scss" scoped>
  36. .headline_container {
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. padding: 36px 0;
  41. box-sizing: border-box;
  42. .title_h2 {
  43. font-size: 11px;
  44. font-family: Source Han Sans CN;
  45. font-weight: 500;
  46. color: #191919;
  47. margin-bottom: 10px;
  48. display: flex;
  49. align-items: center;
  50. }
  51. .theme {
  52. color: #f94622;
  53. }
  54. .scale {
  55. font-size: 14px;
  56. transform: scale(0.5);
  57. width: 200%;
  58. .line1 {
  59. font-family: Source Han Sans CN;
  60. font-weight: 300;
  61. color: #595959;
  62. line-height: 16px;
  63. text-align: center;
  64. }
  65. .line2 {
  66. font-family: Alibaba PuHuiTi;
  67. font-weight: 300;
  68. color: #595959;
  69. text-align: center;
  70. line-height: 9px;
  71. margin-top: 4px;
  72. }
  73. }
  74. }
  75. </style>