Skip to content

Commit

Permalink
Introduce sample layer component and experiment page
Browse files Browse the repository at this point in the history
  • Loading branch information
LSViana committed Nov 16, 2024
1 parent 4ad56fe commit 48e927f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layers/sample/components/WlComponentLayer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<div>Component from the <code>sample</code> layer.</div>
</template>
4 changes: 4 additions & 0 deletions pages/experiments/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ const groups: ExperimentGroup[] = [
{
name: 'Error Handling',
route: '/experiments/nuxt/error-handling'
},
{
name: 'Layers',
route: '/experiments/nuxt/layers'
}
]
}
Expand Down
17 changes: 17 additions & 0 deletions pages/experiments/nuxt/layers/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template>
<NuxtLayout name="home">
<WlContainer class="flex flex-col gap-3 p-3">
<h1 class="text-xl">Layers</h1>
<p>A component from the <code>sample</code> layer:</p>
<WlExperimentCanvas>
<WlComponentLayer/>
</WlExperimentCanvas>
</WlContainer>
</NuxtLayout>
</template>

<script lang="ts" setup>
import WlExperimentCanvas from '~/components/shared/experiments/WlExperimentCanvas.vue'
import WlContainer from '~/components/shared/layout/WlContainer.vue'
import WlComponentLayer from '~/layers/sample/components/WlComponentLayer.vue'
</script>

0 comments on commit 48e927f

Please sign in to comment.