mirror of
https://github.com/bakateam/merakiui.git
synced 2025-12-09 15:05:34 +00:00
59 lines
3.8 KiB
Vue
59 lines
3.8 KiB
Vue
<template>
|
|
<div :id="name | toId">
|
|
<nav class="bg-white shadow">
|
|
<div class="container mx-auto px-6 py-3">
|
|
<div class="md:flex md:items-center md:justify-between">
|
|
<div class="flex justify-between items-center">
|
|
<div class="text-xl font-semibold text-gray-700">
|
|
<a href="#" class="text-gray-800 text-xl font-bold hover:text-gray-700 md:text-2xl">Brand</a>
|
|
</div>
|
|
|
|
<div class="flex md:hidden">
|
|
<button @click="isOpen = !isOpen" type="button" class="text-gray-500 hover:text-gray-600 focus:outline-none focus:text-gray-600" aria-label="toggle menu">
|
|
<svg viewBox="0 0 24 24" class="h-6 w-6 fill-current">
|
|
<path fill-rule="evenodd" d="M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"></path>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div :class="!isOpen ? 'hidden' : ''" class="md:flex md:items-center md:justify-between flex-1">
|
|
<div class="flex flex-col -mx-4 md:flex-row md:items-center md:mx-8">
|
|
<a href="#" class="mx-2 mt-2 md:mt-0 px-2 py-1 text-sm text-gray-700 font-medium rounded-md hover:bg-gray-300">Join Slack</a>
|
|
<a href="#" class="mx-2 mt-2 md:mt-0 px-2 py-1 text-sm text-gray-700 font-medium rounded-md hover:bg-gray-300">Browse Topics</a>
|
|
<a href="#" class="mx-2 mt-2 md:mt-0 px-2 py-1 text-sm text-gray-700 font-medium rounded-md hover:bg-gray-300">Random Item</a>
|
|
<a href="#" class="mx-2 mt-2 md:mt-0 px-2 py-1 text-sm text-gray-700 font-medium rounded-md hover:bg-gray-300">Experts</a>
|
|
</div>
|
|
|
|
<div class="flex items-center mt-4 md:mt-0">
|
|
<button class="mx-4 hidden md:block text-gray-600 hover:text-gray-700 focus:text-gray-700 focus:outline-none" aria-label="show notifications">
|
|
<svg class="h-6 w-6" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M15 17H20L18.5951 15.5951C18.2141 15.2141 18 14.6973 18 14.1585V11C18 8.38757 16.3304 6.16509 14 5.34142V5C14 3.89543 13.1046 3 12 3C10.8954 3 10 3.89543 10 5V5.34142C7.66962 6.16509 6 8.38757 6 11V14.1585C6 14.6973 5.78595 15.2141 5.40493 15.5951L4 17H9M15 17V18C15 19.6569 13.6569 21 12 21C10.3431 21 9 19.6569 9 18V17M15 17H9" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
</svg>
|
|
</button>
|
|
|
|
<button type="button" class="flex items-center focus:outline-none" aria-label="toggle profile dropdown">
|
|
<div class="h-8 w-8 overflow-hidden rounded-full border-2 border-gray-400">
|
|
<img src="https://lh3.googleusercontent.com/a-/AOh14Gi0DgItGDTATTFV6lPiVrqtja6RZ_qrY91zg42o-g" class="h-full w-full object-cover" alt="avatar">
|
|
</div>
|
|
|
|
<h3 class="mx-2 text-sm text-gray-700 font-medium md:hidden">Khatab wedaa</h3>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
name: 'Navbar With Avatar',
|
|
isOpen: false,
|
|
}
|
|
}
|
|
}
|
|
</script> |