about summary refs log tree commit diff
path: root/components/Posts/PostList/PurePostList.vue
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-27 17:53:19 +0100
committerGitHub <noreply@github.com>2020-01-27 17:53:19 +0100
commit4f5d597cf08a609e64741b0fdaf16577284249ba (patch)
tree6fe224aac15e46ed4f527b12b86fdac7ab376b29 /components/Posts/PostList/PurePostList.vue
parent6a87f4d381bb43bea3a2b64ea930d4f46783e22c (diff)
parent3c2ac6715dfffc2eda38e014ed0b4986ccc7f75a (diff)
downloadpuszcza-4f5d597cf08a609e64741b0fdaf16577284249ba.tar.gz
puszcza-4f5d597cf08a609e64741b0fdaf16577284249ba.zip
Merge pull request #25 from 19pdh/develop
Camp & images
Diffstat (limited to 'components/Posts/PostList/PurePostList.vue')
-rw-r--r--components/Posts/PostList/PurePostList.vue18
1 files changed, 13 insertions, 5 deletions
diff --git a/components/Posts/PostList/PurePostList.vue b/components/Posts/PostList/PurePostList.vue
index ace069f..210973e 100644
--- a/components/Posts/PostList/PurePostList.vue
+++ b/components/Posts/PostList/PurePostList.vue
@@ -1,6 +1,6 @@
 <template>
   <div class="post-list">
-    <div v-if="loading" class="post-list-container">
+    <div v-if="loading" class="post-list-container loading">
       <div class="loading-post" v-for="(_, index) in 4" :key="index"></div>
     </div>
     <div v-else-if="!posts" class="no-posts">Brak wpisów</div>
@@ -12,6 +12,7 @@
           :route="post.route"
           :title="post.title"
           :description="post.description"
+          :image="post.image"
         />
       </div>
     </transition>
@@ -27,14 +28,14 @@ export default {
   props: {
     posts: {
       type: Array,
-      required: true
+      required: true,
     },
     loading: {
       type: Boolean,
       required: false,
-      default: () => false
-    }
-  }
+      default: () => false,
+    },
+  },
 }
 </script>
 
@@ -52,6 +53,13 @@ export default {
   justify-content: center;
 }
 
+@media (max-width: 920px) {
+  .post-list-container.loading div:nth-child(1),
+  .post-list-container.loading div:nth-child(2) {
+    display: none;
+  }
+}
+
 @keyframes loading {
   0%,
   100% {