Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <template>
  2. <article class="pri-color card flex" :style="'background-image: url(' + list.thumb + ');'">
  3. <div>
  4. <div class="title white-bcolor">
  5. <h3 class="tags grey-shade-color condensed">{{ list.tags | join }}</h3>
  6. <h2 class="black-color condensed">{{ list.title }}</h2>
  7. </div>
  8. <span class="flex subtitle white-color">
  9. <div class="price pri-bcolor medium-condensed">110,00€</div>
  10. <div class="icon visite-bcolor"><i class="material-icons">home</i></div>
  11. <div class="icon gastronomie-bcolor"><i class="material-icons">home</i></div>
  12. <div class="icon patrimoine-bcolor"><i class="material-icons">home</i></div>
  13. </span>
  14. </div>
  15. </article>
  16. </template>
  17.  
  18. <script>
  19. export default {
  20. components: {},
  21. name: 'ListCard',
  22. props: ['list'],
  23. filters: {
  24. join: (value) => '#' + value.join(' #')
  25. }
  26. }
  27. </script>
  28.  
  29. <style lang="scss" scoped>
  30. @import "../../styles/_vars";
  31.  
  32. .card {
  33. height: 250px;
  34. border-radius: 4px;
  35. transition: all 0.34s;
  36. background-size: cover;
  37. background-position: center center;
  38. cursor: pointer;
  39. align-items: flex-end;
  40. box-shadow: 0px 2px 3px rgba(0,0,0,0.3);
  41. overflow: hidden;
  42.  
  43. .title {
  44. font-size: 16px;
  45. padding: 15px 35px 15px 15px;
  46. min-width: 40%;
  47. overflow: hidden;
  48.  
  49. .tags {
  50. max-width: 250px;
  51. font-size: 12px;
  52. text-transform: uppercase;
  53. margin-bottom: 5px;
  54. white-space: nowrap;
  55. text-overflow: ellipsis;
  56. overflow: hidden;
  57. }
  58. }
  59.  
  60. .subtitle {
  61. font-size: 14px;
  62. justify-content: flex-start;
  63.  
  64. .price {
  65. padding: 10px;
  66. width: 100px;
  67. }
  68. }
  69.  
  70. .icon {
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. width: 35px;
  75. }
  76.  
  77. &:hover {
  78. box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  79. }
  80. }
  81. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement