docs: embed playground

This commit is contained in:
Benjamin Canac
2023-09-12 14:50:35 +02:00
parent edbbb33f69
commit ab26e4ba7d
4 changed files with 31 additions and 30 deletions

24
docs/pages/playground.vue Normal file
View File

@@ -0,0 +1,24 @@
<script setup>
const title = 'Playground'
const description = 'Play online with our interactive Nuxt Image playground.'
useSeoMeta({
title,
ogTitle: 'Nuxt UI Playground',
description
})
defineOgImage({
component: 'Docs',
title,
description
})
</script>
<template>
<div class="h-[calc(100vh-var(--header-height))]">
<ClientOnly>
<iframe :src="`https://stackblitz.com/edit/nuxt-ui?embed=1&file=app.config.ts,app.vue&theme=${$colorMode.preference}`" width="100%" height="100%" />
</ClientOnly>
</div>
</template>