1
1
<div class =" flex flex-col space-y-2 lg:space-y-0 lg:flex-row lg:space-x-6 xl:space-x-8 lg:items-center" >
2
- <a class =" text-primary hover:underline" href =" # " >Home</a >
3
- <a class =" text-gray-500 hover:text-primary hover:underline" href =" # " >Components</a >
2
+ <a class =" text-primary hover:underline" href =" / " >Home</a >
3
+ <a class =" text-gray-500 hover:text-primary hover:underline" href =" /components " >Components</a >
4
4
<a class =" text-gray-500 hover:text-primary hover:underline" href =" #" >Featured</a >
5
5
<a class =" text-gray-500 hover:text-primary hover:underline" href =" #" >Blog</a >
6
6
<a class =" text-gray-500 hover:text-primary hover:underline" href =" #" >Cheatsheet</a >
16
16
<a href =" #" class =" px-4 py-2 text-sm font-semibold text-center text-white rounded-md bg-primary hover:bg-teal-300" >
17
17
Submit new component
18
18
</a >
19
-
20
- <button class =" flex items-center justify-center space-x-2 focus:outline-none" >
21
- <img class =" object-cover w-8 h-8 border-2 rounded-full border-primary lg:w-10 lg:h-10 " src =" https://images.unsplash.com/photo-1502767882403-636aee14f873?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" alt =" avatar" >
22
- <span class =" font-medium text-gray-800 lg:hidden" >Jane Doe</span >
23
- </button >
19
+
20
+ <div class =" relative" @mouseover =" dropdown = true" @mouseover .away =" dropdown = false" x-data =" { dropdown: true }" >
21
+ <!-- Dropdown toggle button -->
22
+ <button class =" flex items-center justify-center space-x-2 focus:outline-none" >
23
+ <img class =" object-cover w-8 h-8 border-2 rounded-full border-primary lg:w-10 lg:h-10 " src =" https://images.unsplash.com/photo-1502767882403-636aee14f873?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" alt =" avatar" >
24
+ <span class =" font-medium text-gray-800 lg:hidden" >Jane Doe</span >
25
+ </button >
26
+
27
+ <!-- Dropdown menu -->
28
+ <div
29
+ x-show =" dropdown"
30
+ x-transition:enter =" transition ease-out duration-100 transform"
31
+ x-transition:enter-start =" opacity-0 scale-95"
32
+ x-transition:enter-end =" opacity-100 scale-100"
33
+ x-transition:leave =" transition ease-in duration-75 transform"
34
+ x-transition:leave-start =" opacity-100 scale-100"
35
+ x-transition:leave-end =" opacity-0 scale-95"
36
+ class =" absolute right-0 z-20 w-48 py-1 mt-2 bg-white border border-gray-100 rounded-md shadow-xl dark:bg-gray-800" >
37
+ <a href =" #" class =" block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white" >
38
+ your profile
39
+ </a >
40
+
41
+ <a href =" #" class =" block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white" >
42
+ Settings
43
+ </a >
44
+ <hr >
45
+ <a href =" #" class =" block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white" >
46
+ Log Out
47
+ </a >
48
+ </div >
49
+ </div >
24
50
</div >
0 commit comments