Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. <template>
  2. <div class="card">
  3. <div class="card-header">
  4. <h1 class="card-header-title">{{ kitty.name }}</h1>
  5. <pet-rarity :rarity="kitty.rarity" />
  6. </div>
  7. <div class="card-body">
  8. <img class="card-body-preview" :src="kitty.image">
  9. <div class="card-body-exp">
  10. <pet-level :kitty="kitty" />
  11. </div>
  12. <div class="card-body-feature">
  13. {{ kitty.description }}
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18.  
  19. <script>
  20. import PetLevel from "./PetLevel";
  21. import PetRarity from "./PetRarity";
  22.  
  23. import {VPopover} from 'v-tooltip';
  24.  
  25. export default {
  26. props: ["kitty"],
  27.  
  28. components: {
  29. PetLevel,
  30. PetRarity,
  31. VPopover
  32. },
  33. }
  34. </script>
  35.  
  36. <style scoped>
  37. .card {
  38. position: relative;
  39. display: flex;
  40. flex-flow: column;
  41. align-items: center;
  42. margin: 0 10px;
  43. padding: 40px 10px 10px;
  44. min-height: 460px;
  45. width: 202px;
  46. border-radius: 8px;
  47. background: #263448;
  48. }
  49.  
  50. .card-header {
  51. margin-bottom: 20px;
  52. }
  53.  
  54. .card-header-title {
  55. height: 30px;
  56. font-size: 16px;
  57. text-align: center;
  58. font-family: Helvetica;
  59. margin: 0 0 16px;
  60. }
  61.  
  62. .card-body-preview {
  63. display: block;
  64. width: 100%;
  65. margin: 20px auto;
  66. }
  67.  
  68. .card-body-price {
  69. max-width: 110px;
  70. position: relative;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. margin: 0 auto;
  75. font-size: 14px;
  76. font-family: Helvetica;
  77. }
  78.  
  79. .card-body-price-sign {
  80. position: relative;
  81. left: 0;
  82. }
  83.  
  84. .card-body-price span {
  85. display: inline-block;
  86. min-width: 80px;
  87. text-align: left;
  88. }
  89.  
  90. .card-body-feature {
  91. font-family: Helvetica;
  92. font-size: 14px;
  93. font-weight: 600;
  94. line-height: 1.3;
  95. text-align: center;
  96. margin-top: 10px;
  97. }
  98.  
  99. .card-body-level {
  100. font-family: Helvetica;
  101. font-weight: 600;
  102. font-size: 14px;
  103. text-align: center;
  104. }
  105.  
  106. .card-body-stars {
  107. margin-top: 5px;
  108. text-align: center;
  109. }
  110. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement