Skip to content

Commit

Permalink
chore(docs): add soon badges
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Oct 12, 2021
1 parent f7819f7 commit 7064728
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/components/organisms/SectionContentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
>
<img loading="lazy" :src="image" :alt="`A ${title} image`">
</InjectComponent>
<h3 class="mb-1 text-center text-body-lg lg:text-body-xl font-bold">
<h3 class="relative inline-flex mb-1 text-center text-body-lg items-center lg:text-body-xl font-bold">
{{ title }}
<span v-if="soon" class="absolute -right-48px inline-flex items-center mt-1px px-1.5 py-0.5 rounded text-xs font-medium font-mono bg-cloud-surface dark:bg-sky-dark dark:text-white">soon</span>
</h3>
<p class="text-center text-sm lg:text-base mb-4">
{{ description }}
Expand All @@ -35,6 +36,10 @@ export default defineComponent({
type: String,
default: ''
},
soon: {
type: Boolean,
default: false
},
hoverClass: {
type: String,
default: ''
Expand Down
2 changes: 2 additions & 0 deletions docs/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Nuxt 3 has been re-architected with a smaller core and optimized for faster perf
::
::section-content-item
---
soon: true
title: Hybrid
description: 'Incremental Static Generation and other advanced modes are now possible.'
image: IconHybrid
Expand Down Expand Up @@ -85,6 +86,7 @@ Nuxt 3 has been re-architected with a smaller core and optimized for faster perf
::
::section-content-item
---
soon: true
title: Nuxt Devtools
description: 'Work faster with info and quick fixes right in the browser.'
image: IconDevtools
Expand Down

0 comments on commit 7064728

Please sign in to comment.