mirror of
https://github.com/bakateam/merakiui.git
synced 2025-12-08 22:53:24 +00:00
* Add dark mode to webiste * wip * wip * wip * wip * wip * Add dark mode to all components and fix some style
58 lines
3.4 KiB
Vue
58 lines
3.4 KiB
Vue
<template>
|
|
<view-component :name="name" :code="code">
|
|
<div class="px-3 py-6" slot="component">
|
|
<div class="max-w-2xl mx-auto px-8 py-4 bg-white dark:bg-gray-800 rounded-lg shadow-md">
|
|
<div class="flex justify-between items-center">
|
|
<span class="font-light text-gray-600 dark:text-gray-400 text-sm">Mar 10, 2019</span>
|
|
<a class="px-3 py-1 bg-gray-600 text-gray-100 text-sm font-bold rounded hover:bg-gray-500">Design</a>
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
<a href="#" class="text-2xl text-gray-700 dark:text-white font-bold hover:text-gray-600 dark:hover:text-gray-200 hover:underline">Accessibility tools for designers and developers</a>
|
|
<p class="mt-2 text-gray-600 dark:text-gray-300">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempora expedita dicta totam aspernatur doloremque. Excepturi iste iusto eos enim reprehenderit nisi, accusamus delectus nihil quis facere in modi ratione libero!</p>
|
|
</div>
|
|
|
|
<div class="flex justify-between items-center mt-4">
|
|
<a href="#" class="text-blue-600 dark:text-blue-400 hover:underline">Read more</a>
|
|
|
|
<div class="flex items-center">
|
|
<img class="mx-4 w-10 h-10 object-cover rounded-full hidden sm:block" src="https://images.unsplash.com/photo-1502980426475-b83966705988?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=40&q=80" alt="avatar">
|
|
<a class="text-gray-700 dark:text-gray-200 font-bold cursor-pointer">Khatab wedaa</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</view-component>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
name: 'Article',
|
|
code: `
|
|
<div class="max-w-2xl mx-auto px-8 py-4 bg-white dark:bg-gray-800 rounded-lg shadow-md">
|
|
<div class="flex justify-between items-center">
|
|
<span class="font-light text-gray-600 dark:text-gray-400 text-sm">Mar 10, 2019</span>
|
|
<a class="px-3 py-1 bg-gray-600 text-gray-100 text-sm font-bold rounded hover:bg-gray-500">Design</a>
|
|
</div>
|
|
|
|
<div class="mt-2">
|
|
<a href="#" class="text-2xl text-gray-700 dark:text-white font-bold hover:text-gray-600 dark:hover:text-gray-200 hover:underline">Accessibility tools for designers and developers</a>
|
|
<p class="mt-2 text-gray-600 dark:text-gray-300">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Tempora expedita dicta totam aspernatur doloremque. Excepturi iste iusto eos enim reprehenderit nisi, accusamus delectus nihil quis facere in modi ratione libero!</p>
|
|
</div>
|
|
|
|
<div class="flex justify-between items-center mt-4">
|
|
<a href="#" class="text-blue-600 dark:text-blue-400 hover:underline">Read more</a>
|
|
|
|
<div class="flex items-center">
|
|
<img class="mx-4 w-10 h-10 object-cover rounded-full hidden sm:block" src="https://images.unsplash.com/photo-1502980426475-b83966705988?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=40&q=80" alt="avatar">
|
|
<a class="text-gray-700 dark:text-gray-200 font-bold cursor-pointer">Khatab wedaa</a>
|
|
</div>
|
|
</div>
|
|
</div>`
|
|
}
|
|
}
|
|
}
|
|
</script>
|