Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add preview primitive #42

Merged
merged 11 commits into from
Jun 5, 2023
Prev Previous commit
Next Next commit
feat: add preview demo
  • Loading branch information
zernonia committed Jun 4, 2023
commit 1623185cb263a782abbc7e8f4ff70c25e1ebf364
20 changes: 20 additions & 0 deletions website/components/Preview/Demo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<script setup lang="ts">
</script>

<template>
<div>
<LegoPreview class="transition-transform ease-in-out duration-500 outline-none">
<!-- Pass -->
<!-- <slot /> -->

<img
src="https://images.unsplash.com/photo-1515268064940-5150b7c29f35?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&w=800&q=80"
class="w-full rounded-2xl" alt=""
>

<LegoPreviewDialog
class="fixed z-800 left-0 top-0 w-screen h-screen bg-white bg-opacity-50 backdrop-blur-md"
/>
</LegoPreview>
</div>
</template>