-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add BasePlaceholderPage and BasePlaceload demos
- Loading branch information
1 parent
b43cc31
commit 015561f
Showing
2 changed files
with
80 additions
and
0 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,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> |
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,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> |