specialTitle.vue 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div class="title-container">
  3. <div class="main-title-container">
  4. <hr>
  5. <h1 class="title">{{title}}</h1>
  6. <hr>
  7. </div>
  8. <h2 class="eng-title">{{engTitle}}</h2>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. name: "specialTitle",
  14. props:['title','engTitle']
  15. }
  16. </script>
  17. <style scoped lang="less">
  18. @import "../assets/less/_variable.less";
  19. .title-container{
  20. & .main-title-container{
  21. display: flex;
  22. justify-content: space-between;
  23. align-items: center;
  24. width: 1200px;
  25. hr{
  26. width: 420px;
  27. border: solid 1px #e5e5e5;
  28. }
  29. .title{
  30. /*margin: 0 20px;*/
  31. font-size: 35px;
  32. line-height: 35px;
  33. font-weight: 700;
  34. color: lightBlack;
  35. }
  36. }
  37. & .eng-title{
  38. margin-top: 13px;
  39. font-size: 20px;
  40. color: @lighterBlack;
  41. }
  42. }
  43. </style>