Skip to content

Commit 241fb8d

Browse files
committed
feat: tour info when no articles
1 parent 7255914 commit 241fb8d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

components/content/ArticlesList.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ const articles = computed(() => _articles.value || [])
2121
<ArticlesListItem v-for="(article, index) in articles.slice(1)" :key="index" :article="article" />
2222
</div>
2323
</div>
24+
<div v-else class="tour">
25+
<p>Seems like there are no articles yet.</p>
26+
<p>
27+
You can start by
28+
<!-- eslint-disable-next-line -->
29+
<ProseA href="https://alpine.nuxt.space/articles/write-articles">creating</ProseA> one in the <ProseCodeInline>articles</ProseCodeInline> folder.
30+
</p>
31+
</div>
2432
</template>
2533

2634
<style scoped lang="ts">
@@ -50,6 +58,13 @@ css({
5058
gridTemplateColumns: 'repeat(3, minmax(0, 1fr))',
5159
},
5260
}
61+
},
62+
'.tour': {
63+
minHeight: '30vh',
64+
display: 'flex',
65+
flexDirection: 'column',
66+
alignItems: 'center',
67+
justifyContent: 'center',
5368
}
5469
})
5570
</style>

0 commit comments

Comments
 (0)