@@ -47,7 +47,7 @@ ${importSnippet}
4747// Use InstanceType to infer the exposed props
4848const cropper = ref<InstanceType<typeof ModernCropper>>()
4949
50- onMounted(() => {
50+ onMounted(async () => {
5151 // remember to await nextTick if you use Nuxt (Nuxt client component caveat)
5252 await nextTick()
5353
@@ -78,43 +78,43 @@ onMounted(() => {
7878 </script >
7979
8080<template >
81- <div class =" w-full h-full min-h-screen bg-neutral-50 dark:bg-neutral-900" >
82- <div class =" container mx-auto max-w-5xl relative " >
83- <nav class =" h-20 py-4 flex-between text-primary" >
84- <div class =" font-semibold text-xl flex-center gap-2" >
81+ <div class =" h-full min-h-screen w-full bg-neutral-50 dark:bg-neutral-900" >
82+ <div class =" relative mx-auto max-w-5xl container " >
83+ <nav class =" h-20 flex-between py-4 text-primary" >
84+ <div class =" flex-center gap-2 text-xl font-semibold " >
8585 <Logo class =" h-6 w-6" />
8686 <span class =" text-#327959" >Vue</span >Modern Cropper
8787 </div >
8888 <div class =" flex-center gap-4" >
89- <button class =" !bg-transparent opacity-50 hover:opacity-100 transition " @click =" (e) => toggleDarkmode()" >
90- <tabler:moon v-if =" isDark" class =" w -6 h -6" />
91- <tabler:sun v-else class =" w -6 h -6" />
89+ <button class =" opacity-50 transition !bg-transparent hover:opacity-100" @click =" (e) => toggleDarkmode()" >
90+ <tabler:moon v-if =" isDark" class =" h -6 w -6" />
91+ <tabler:sun v-else class =" h -6 w -6" />
9292 </button >
93- <a class =" opacity-50 hover:opacity-100 transition " href =" https://github.com/NamesMT/vue-modern-cropper" >
93+ <a class =" opacity-50 transition hover:opacity-100" href =" https://github.com/NamesMT/vue-modern-cropper" >
9494 <tabler:brand-github class =" h-6 w-6" />
9595 </a >
9696 </div >
9797 </nav >
9898 <header class =" py-20" >
9999 <div class =" font-extrabold" >
100100 <span class =" text-6xl text-neon" >Looking for a modern cropper?</span >
101- <div class =" text-6xl text-primary flex gap-2 " >
102- <Logo class =" w -15 h -15" />
101+ <div class =" flex gap-2 text-6xl text-primary" >
102+ <Logo class =" h -15 w -15" />
103103 <span class =" text-#327959" >Vue</span >Modern Cropper
104104 </div >
105105 </div >
106- <div class =" text-2xl font-semibold text-slate-700 py-4 dark:text-slate-200" >
106+ <div class =" py-4 text-2xl text-slate-700 font-semibold dark:text-slate-200" >
107107 Power-packed wrapper over cropperjs@next
108108 </div >
109- <div class =" text-xl italic font-semibold text-slate-700 py-4 dark:text-slate-200" >
109+ <div class =" py-4 text-xl text-slate-700 font-semibold italic dark:text-slate-200" >
110110 <p >Why "modern cropper"?</p >
111111 <p >
112112 It's mid 2024, I been searching, installing, trying all everything and can't find a maintained/bug-free,
113113 easy to use cropper component library for Vue -- <span class =" whitespace-nowrap" >(╯°□°)╯︵ ┻━┻</span >
114114 </p >
115115 <p >So I created this.</p >
116116 <p class =" text-base" >
117- btw, <a href =" https://github.com/NamesMT/nuxt-modern-cropper" class =" text-lime" >there's also a module for <b class =" text-#00DC82 text-xl " >Nuxt</b ></a >
117+ btw, <a href =" https://github.com/NamesMT/nuxt-modern-cropper" class =" text-lime" >there's also a module for <b class =" text-xl text-#00DC82 " >Nuxt</b ></a >
118118 </p >
119119 </div >
120120 <!-- <div class="flex gap-4 mt-8">
@@ -144,7 +144,7 @@ onMounted(() => {
144144 <div class =" flex items-center justify-center" >
145145 <ModernCropper
146146 ref =" cropper"
147- class =" w-80 h-40"
147+ class =" h-40 w-80 "
148148 :src =" imgSrc"
149149 :pass-through =" {
150150 cropper: { constructOptions: undefined },
@@ -157,7 +157,7 @@ onMounted(() => {
157157 </div >
158158 </div >
159159
160- <footer class =" mt-16 w-full [& _a]:( text-primary-600 dark:text-primary-300) " text =" slate-900 dark:slate-300 opacity-60 sm" >
160+ <footer class =" [& _a]:text-primary-600 [ & _a]: dark:text-primary-300 mt-16 w-full " text =" slate-900 dark:slate-300 opacity-60 sm" >
161161 <div class =" mb-2 flex justify-center" >
162162 <ThemeToggle />
163163 </div >
@@ -178,7 +178,7 @@ onMounted(() => {
178178 Follow me on Twitter
179179 </a >
180180 </span >
181- <span class =" px-2 text-primary-300" >|</span >
181+ <span class =" text-primary-300 px-2 " >|</span >
182182 <tabler:brand-github-filled class =" text-primary-400" />
183183 <span >
184184 <a href =" https://github.com/sponsors/NamesMT" target =" _blank" >
@@ -189,7 +189,7 @@ onMounted(() => {
189189 </div >
190190 </footer >
191191
192- <div class =" w-full mx-auto" />
192+ <div class =" mx-auto w-full " />
193193 </div >
194194 </div >
195195</template >
0 commit comments