picturePopup.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div class="picture">
  3. <div class="title">
  4. <span>{{$t(title)}}</span>
  5. </div>
  6. <div class="picture_bg">
  7. <img :src="pictureImg"
  8. class="picture_img">
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. props: ['title', 'pictureImg',],
  15. }
  16. </script>
  17. <style lang="less" scoped>
  18. .picture {
  19. width: 300px;
  20. // height: 200px;
  21. background: linear-gradient(90deg, rgba(244, 255, 250, 1) 0%, rgba(230, 238, 255, 0.78) 49%, rgba(255, 227, 234, 1) 100%);
  22. .title {
  23. display: flex;
  24. justify-content: center;
  25. color: #fff;
  26. font-size: 18px;
  27. font-weight: bold;
  28. padding: 20px 0 0;
  29. transform: translateX(0) translateY(40%);
  30. }
  31. .picture_bg {
  32. width: 102px;
  33. height: 102px;
  34. background: linear-gradient(148.4deg, rgba(255, 212, 248, 1) 0%, rgba(245, 252, 255, 1) 100%);
  35. border-radius: 50%;
  36. transform: translateX(0) translateY(50%);
  37. margin: 0 auto 90px;
  38. display: flex;
  39. justify-content: center;
  40. align-items: center;
  41. .picture_img {
  42. border-radius: 50%;
  43. width: 100%;
  44. height: 100%;
  45. }
  46. }
  47. }
  48. </style>