skill_cert_header.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <div class="skill-cert-header">
  3. <div class="page-title">
  4. <span class="text">{{title}}</span>
  5. <span class="cert-status">未认证</span>
  6. </div>
  7. <div class="divider"></div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "skill_cert_header",
  13. props: {
  14. title: {
  15. type: String,
  16. default: ''
  17. }
  18. }
  19. }
  20. </script>
  21. <style lang="scss" scoped>
  22. .skill-cert-header {
  23. display: flex;
  24. flex-direction: column;
  25. width: 100%;
  26. box-sizing: border-box;
  27. .page-title {
  28. width: 100%;
  29. position: relative;
  30. height: 75px;
  31. .text {
  32. position: absolute;
  33. left: 50%;
  34. top: 50%;
  35. transform: translate(-50%, -50%);
  36. font-size: 24px;
  37. font-family: PingFangSC, PingFangSC-Semibold, sans-serif;
  38. font-weight: 600;
  39. color: #222222;
  40. text-align: center;
  41. }
  42. .cert-status {
  43. position: absolute;
  44. width: 61px;
  45. height: 30px;
  46. opacity: 0.8;
  47. background: #efefef;
  48. border-radius: 4px;
  49. font-size: 13px;
  50. font-family: PingFangSC, PingFangSC-Regular, sans-serif;
  51. font-weight: 400;
  52. text-align: center;
  53. color: #666666;
  54. line-height: 30px;
  55. right: 0;
  56. top: 22px;
  57. }
  58. }
  59. .divider {
  60. width: 110%;
  61. height: 2px;
  62. border: 1px solid rgba(0, 0, 0, 0.06);
  63. transform: translate(-4.5%, 0);
  64. }
  65. }
  66. </style>