-
-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(document-driven): rendering flash (#1336)
Co-authored-by: Daniel Roe <[email protected]> Co-authored-by: Sébastien Chopin <[email protected]> Co-authored-by: Yaël Guilloux <[email protected]>
- Loading branch information
1 parent
4814ac1
commit ebf3e84
Showing
14 changed files
with
156 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<div> | ||
<NuxtLoadingBar /> | ||
<NuxtPage /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<div> | ||
<div style="display: flex; align-items: center"> | ||
<div style="font-size: 64px;"> | ||
❕ | ||
</div> | ||
<div> | ||
<h3 style="margin: 0"> | ||
<Markdown :use="$slots.title" unwrap="p" /> | ||
</h3> | ||
<div> | ||
<Markdown :use="$slots.default" unwrap="p" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script setup lang="ts"> | ||
// Utils from Nuxt Content | ||
const { flatUnwrap } = useUnwrap() | ||
</script> | ||
|
||
<template> | ||
<ul> | ||
<li v-for="(item, index) of flatUnwrap($slots.default(), ['ul'])" :key="index"> | ||
☑︎ | ||
<span><Markdown :use="() => item" unwrap="li" /></span> | ||
</li> | ||
</ul> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
layout: blog | ||
--- | ||
|
||
::alert{icon="ph:circle-wavy-warning-duotone"} | ||
#title | ||
This is an alert | ||
#default | ||
This is the default content of my alert! | ||
:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
::list | ||
- Item 1 | ||
::list{icon="ph:check-circle-light"} | ||
- Item 1.1 | ||
- Item 1.2 | ||
:: | ||
- Item 2 | ||
:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
<template> | ||
<div> | ||
<NuxtLoadingBar /> | ||
|
||
<NuxtPage /> | ||
|
||
<slot /> | ||
<PageNav /> | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
<script setup> | ||
definePageMeta({ | ||
layout: 'reversed' | ||
documentDriven: { | ||
surround: false | ||
} | ||
}) | ||
const { page } = useContent() | ||
useContentHead(page) | ||
</script> | ||
|
||
<template> | ||
<ContentRenderer :value="page" /> | ||
<NuxtLayout name="reversed"> | ||
<ContentRenderer :value="page" /> | ||
</NuxtLayout> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<template> | ||
<div style="max-width: 680px; margin: 0 auto"> | ||
<NuxtLoadingBar /> | ||
|
||
<PageNav /> | ||
|
||
<slot /> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
body, html { | ||
margin: 0; | ||
padding: 0; | ||
min-height: 100vh; | ||
min-width: 100vw; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
<template> | ||
<div> | ||
<NuxtLoadingBar /> | ||
|
||
<PageNav /> | ||
|
||
<NuxtPage /> | ||
<slot /> | ||
</div> | ||
</template> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<NuxtPage /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters