diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-28 19:55:17 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-28 19:55:17 +0100 |
commit | 474d2bd31fdb0d13e07793c31d82e4eb264731cf (patch) | |
tree | 86cbfd30da21cc7abecc611c6ecdc6140a542a28 /components/Posts | |
parent | c6b9b1e2846e769dbeb7cbb567a4e9ec08f3dd9c (diff) | |
parent | a441d3e5284bf1883a55810e7387b43ff4836de3 (diff) | |
download | puszcza-474d2bd31fdb0d13e07793c31d82e4eb264731cf.tar.gz puszcza-474d2bd31fdb0d13e07793c31d82e4eb264731cf.zip |
Merge remote-tracking branch 'origin/master' into feature/json-api
Diffstat (limited to 'components/Posts')
-rw-r--r-- | components/Posts/EmptyCampStory.vue | 19 | ||||
-rw-r--r-- | components/Posts/PostList/PurePostList.vue | 9 |
2 files changed, 27 insertions, 1 deletions
diff --git a/components/Posts/EmptyCampStory.vue b/components/Posts/EmptyCampStory.vue new file mode 100644 index 0000000..b9ecd12 --- /dev/null +++ b/components/Posts/EmptyCampStory.vue @@ -0,0 +1,19 @@ +<template> + <div style="width: 100%"> + <h3 style="margin: 10vh 10vmin 0 10vmin"> + Tutaj niedługo znajdziesz relację z obozu + </h3> + <pure-post-list loading :posts="[]" style="margin-bottom: 30px" /> + </div> +</template> + +<script> +import PurePostList from '~/components/Posts/PostList/PurePostList' + +export default { + name: 'EmptyCampStory', + components: { + PurePostList, + }, +} +</script> diff --git a/components/Posts/PostList/PurePostList.vue b/components/Posts/PostList/PurePostList.vue index c87b9dc..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> @@ -53,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% { |