Skip to content

Commit

Permalink
feat: add BasePlaceholderPage and BasePlaceload demos
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 18, 2023
1 parent b43cc31 commit 015561f
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .playground/pages/tests/base/placeholder.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<script setup lang="ts">
definePageMeta({
title: 'BasePlaceholderPage',
icon: 'system-uicons:component-add',
description: 'Placeholder component',
section: 'base',
})
</script>

<template>
<div>
<NuiPreviewContainer title="BasePlaceholderPage">
<NuiPreview title="Default" description="Placeholder component default">
<BasePlaceholderPage
title="Looks like you are new!"
subtitle="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Erat enim Polemonis. Duo Reges."
>
<template #image>
<img
src="https://tairo.cssninja.io/img/illustrations/placeholders/people/2.svg"
alt="placeholder-image"
/>
</template>

<div class="mt-2 flex justify-center gap-2">
<BaseButton color="primary" shape="curved" class="h-11 w-40">
Take some action
</BaseButton>
</div>
</BasePlaceholderPage>
</NuiPreview>
</NuiPreviewContainer>
</div>
</template>
46 changes: 46 additions & 0 deletions .playground/pages/tests/base/placeload.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<script setup lang="ts">
definePageMeta({
title: 'BasePlaceload',
icon: 'system-uicons:card-timeline',
description: 'Placeload component',
section: 'base',
})
</script>

<template>
<div>
<NuiPreviewContainer title="BasePlaceload">
<NuiPreview title="Text" description="Placeload component text">
<div class="max-w-sm space-y-2">
<BasePlaceload class="h-4 w-full rounded" />
<BasePlaceload class="h-4 w-[85%] rounded" />
</div>
</NuiPreview>

<NuiPreview title="Shape" description="Placeload component shape">
<div class="flex flex-wrap items-end gap-2">
<BasePlaceload class="h-10 w-10 rounded" />
<BasePlaceload class="h-12 w-12 rounded-xl" />
<BasePlaceload class="h-16 w-16 rounded-full" />
</div>
</NuiPreview>

<NuiPreview
title="Composition"
description="Placeload component composition"
>
<div class="max-w-sm">
<BaseCard shape="rounded" class="p-4 md:p-6">
<div class="flex items-center">
<BasePlaceload class="h-10 w-10 rounded-full" />
<div class="ms-3 grow space-y-2">
<BasePlaceload class="h-3 w-full rounded" />
<BasePlaceload class="h-3 w-[85%] rounded" />
</div>
</div>
</BaseCard>
</div>
</NuiPreview>
</NuiPreviewContainer>
</div>
</template>

0 comments on commit 015561f

Please sign in to comment.