Files
merakiui/src/components/ui/Heros/WithPattern.vue
khatab Wedaa ce79c7f31a Dark Mode (#33)
* Add dark mode to webiste

* wip

* wip

* wip

* wip

* wip

* Add dark mode to all components and fix some style
2020-12-26 12:35:46 +02:00

111 lines
6.7 KiB
Vue

<template>
<view-component :name="name" :code="code">
<div class="py-6" slot="component">
<header class="pattern bg-gray-900">
<div class="container mx-auto px-6">
<nav class="flex flex-col py-2 sm:flex-row sm:justify-between sm:items-center">
<div>
<a href="#" class="text-2xl font-semibold text-white hover:text-gray-300">Brand</a>
</div>
<div class="flex items-center -mx-2 mt-2 sm:mt-0">
<a href="#" class="px-3 py-1 border-2 font-semibold rounded text-sm text-white hover:bg-gray-700">Sign In</a>
<a href="#" class="mx-2 px-3 py-2 font-semibold bg-black rounded text-sm text-white hover:bg-gray-800">Sign Up</a>
</div>
</nav>
<div class="flex items-center flex-col py-6 md:h-128 md:flex-row">
<div class="md:w-1/2">
<h2 class="text-4xl font-semibold text-gray-100">Brand</h2>
<h3 class="text-2xl font-semibold text-gray-100">
Hello <span class="text-indigo-400">Guest</span>
</h3>
<p class="text-gray-100 mt-3">Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
</div>
<div class="md:w-1/2 flex md:justify-end mt-8 md:mt-0">
<div class="max-w-sm bg-white dark:bg-gray-800 rounded-lg">
<div class="p-5 text-center">
<h2 class="text-2xl font-semibold text-gray-700 dark:text-white fo">Sign In</h2>
<form action="#">
<div class="mt-4">
<input class="w-full py-2 px-4 bg-white dark:bg-gray-800 text-gray-700 border border-gray-300 dark:border-gray-600 rounded placeholder-gray-500 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring" type="email" placeholder="Email address" aria-label="Email address">
<input class="mt-4 w-full py-2 px-4 bg-white dark:bg-gray-800 text-gray-700 border border-gray-300 dark:border-gray-600 rounded placeholder-gray-500 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring" type="password" placeholder="Password" aria-label="Password">
</div>
<div class="mt-4 flex items-center justify-between">
<a href="#" class="text-gray-600 dark:text-gray-200 text-sm hover:underline">Forget Password?</a>
<button class="px-4 py-2 font-semibold bg-gray-900 rounded text-white hover:bg-gray-800 dark:hover:bg-gray-700 focus:outline-none focus:bg-gray-800 dark:focus:bg-gray-700">Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</header>
</div>
</view-component>
</template>
<script>
export default {
data() {
return {
name: 'With Pattern',
code: `
<header class="pattern bg-gray-900">
<div class="container mx-auto px-6">
<nav class="flex flex-col py-2 sm:flex-row sm:justify-between sm:items-center">
<div>
<a href="#" class="text-2xl font-semibold text-white hover:text-gray-300">Brand</a>
</div>
<div class="flex items-center -mx-2 mt-2 sm:mt-0">
<a href="#" class="px-3 py-1 border-2 font-semibold rounded text-sm text-white hover:bg-gray-700">Sign In</a>
<a href="#" class="mx-2 px-3 py-2 font-semibold bg-black rounded text-sm text-white hover:bg-gray-800">Sign Up</a>
</div>
</nav>
<div class="flex items-center flex-col py-6 md:h-128 md:flex-row">
<div class="md:w-1/2">
<h2 class="text-4xl font-semibold text-gray-100">Brand</h2>
<h3 class="text-2xl font-semibold text-gray-100">
Hello <span class="text-indigo-400">Guest</span>
</h3>
<p class="text-gray-100 mt-3">Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
</div>
<div class="md:w-1/2 flex md:justify-end mt-8 md:mt-0">
<div class="max-w-sm bg-white dark:bg-gray-800 rounded-lg">
<div class="p-5 text-center">
<h2 class="text-2xl font-semibold text-gray-700 dark:text-white fo">Sign In</h2>
<form action="#">
<div class="mt-4">
<input class="w-full py-2 px-4 bg-white dark:bg-gray-800 text-gray-700 border border-gray-300 dark:border-gray-600 rounded block placeholder-gray-500 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring" type="email" placeholder="Email address" aria-label="Email address">
<input class="mt-4 w-full py-2 px-4 bg-white dark:bg-gray-800 text-gray-700 border border-gray-300 dark:border-gray-600 rounded block placeholder-gray-500 dark:placeholder-gray-400 focus:border-blue-500 dark:focus:border-blue-500 focus:outline-none focus:ring" type="password" placeholder="Password" aria-label="Password">
</div>
<div class="mt-4 flex items-center justify-between">
<a href="#" class="text-gray-600 dark:text-gray-200 text-sm hover:underline">Forget Password?</a>
<button class="px-4 py-2 font-semibold bg-gray-900 rounded text-white hover:bg-gray-800 dark:hover:bg-gray-700 focus:outline-none focus:bg-gray-800 dark:focus:bg-gray-700">Login</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</header>`,
}
}
}
</script>