Skip to content

Commit 5fb528a

Browse files
committed
Code for 4.1
1 parent 784bc6a commit 5fb528a

File tree

1 file changed

+10
-1
lines changed
  • 04-building-a-dropdown-menu/01-styling-the-basic-dropdown-elements/src/components

1 file changed

+10
-1
lines changed

04-building-a-dropdown-menu/01-styling-the-basic-dropdown-elements/src/components/AccountDropdown.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<template>
2-
<div></div>
2+
<div>
3+
<button class="block h-8 w-8 rounded-full overflow-hidden border-2 border-gray-600 focus:outline-none focus:border-white">
4+
<img class="h-full w-full object-cover" src="https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=256&q=80" alt="Your avatar">
5+
</button>
6+
<div class="mt-2 py-2 w-48 bg-white rounded-lg shadow-xl">
7+
<a href="#" class="block px-4 py-2 text-gray-800 hover:bg-indigo-500 hover:text-white">Account settings</a>
8+
<a href="#" class="block px-4 py-2 text-gray-800 hover:bg-indigo-500 hover:text-white">Support</a>
9+
<a href="#" class="block px-4 py-2 text-gray-800 hover:bg-indigo-500 hover:text-white">Sign out</a>
10+
</div>
11+
</div>
312
</template>
413

514
<script>

0 commit comments

Comments
 (0)