course-card-title.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <div class="classification-title-box">
  3. <i class="left"></i>
  4. <h3>{{ title }}</h3>
  5. <i class="right"></i>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: "course-card-title",
  11. props: {
  12. title: ''
  13. }
  14. }
  15. </script>
  16. <style lang="scss">
  17. .classification-title-box {
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. margin-bottom: 144px;
  22. i {
  23. display: inline-block;
  24. width: 67px;
  25. height: 26px;
  26. background-repeat: no-repeat;
  27. background-size: cover;
  28. }
  29. i.left {
  30. transform: rotate(-180deg);
  31. background-image: url("~static/images/client/course/animation/title-line.png");
  32. }
  33. i.right {
  34. background-image: url("~static/images/client/course/animation/title-line.png");
  35. }
  36. h3 {
  37. font-size: 36px;
  38. font-weight: 400;
  39. color: #333333;
  40. margin: 0 45px;
  41. }
  42. @media (max-width: 768px){
  43. margin-bottom: 42px;
  44. i {
  45. display: inline-block;
  46. width: 41px;
  47. height: 16px;
  48. }
  49. h3 {
  50. font-size: 16px;
  51. font-weight: 700;
  52. color: #333333;
  53. margin: 0 15px;
  54. }
  55. }
  56. }
  57. </style>