Skip to content

Commit ab7bf33

Browse files
committed
feat(playground): add polished demos
1 parent d6649b5 commit ab7bf33

3 files changed

Lines changed: 383 additions & 124 deletions

File tree

playground/app.vue

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,20 @@ useSeoMeta({
1818
<AppAnnouncement />
1919

2020
<v-main>
21-
<v-container>
21+
<v-container class="py-8">
2222
<v-row>
2323
<v-col cols="12">
24-
<h1>{{ nuxtifyConfig.brand?.name }} playground</h1>
25-
</v-col>
26-
</v-row>
27-
28-
<!-- Nuxtify config -->
29-
<v-row>
30-
<v-col cols="12">
31-
<v-card class="pa-4">
32-
<h2>nuxtifyConfig</h2>
33-
<pre>{{ nuxtifyConfig }}</pre>
34-
</v-card>
24+
<h1>Welcome to the {{ nuxtifyConfig.brand?.name }} playground!</h1>
25+
<p class="text-body-1 text-medium-emphasis">
26+
Explore the core functionalities and configuration of the <strong>@nuxtify/core</strong> module.
27+
</p>
3528
</v-col>
3629
</v-row>
3730
</v-container>
3831

3932
<DemoCore />
33+
34+
<DemoConfig />
4035
</v-main>
4136

4237
<AppToast class="d-print-none" />
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<script setup lang="ts">
2+
// STATE - GLOBAL
3+
const nuxtifyConfig = useNuxtifyConfig()
4+
</script>
5+
6+
<template>
7+
<v-container>
8+
<v-row>
9+
<v-col cols="12">
10+
<div class="d-flex align-center mb-4">
11+
<v-icon
12+
icon="mdi-cog-outline"
13+
color="secondary"
14+
size="large"
15+
class="mr-2"
16+
/>
17+
<h2 class="text-h5 font-weight-bold">
18+
Active Module Config
19+
</h2>
20+
</div>
21+
<p class="text-body-1 text-medium-emphasis mb-4">
22+
The following config properties have been synced from <code>app.config.ts</code> to the <code>useNuxtifyConfig</code> composable, allowing layout templates and components to remain decoupled and highly flexible.
23+
</p>
24+
25+
<v-card
26+
class="pa-4 bg-grey-darken-4 text-light-blue-lighten-4 font-mono rounded"
27+
elevation="2"
28+
>
29+
<pre style="overflow-x: auto; white-space: pre-wrap;">{{ JSON.stringify(nuxtifyConfig, null, 2) }}</pre>
30+
</v-card>
31+
</v-col>
32+
</v-row>
33+
</v-container>
34+
</template>

0 commit comments

Comments
 (0)