Skip to content

Commit c6eebc6

Browse files
Merge PR #5 from dev-branch
Add some simple dropdown designs
2 parents b761835 + b4fa7bc commit c6eebc6

File tree

4 files changed

+115
-4
lines changed

4 files changed

+115
-4
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<div class="relative inline-block text-left">
2+
<button
3+
type="button"
4+
class="flex size-10 items-center justify-center rounded-full border border-white/20 bg-white/10 shadow-lg backdrop-blur-md transition-all hover:bg-white/20"
5+
>
6+
<img
7+
src="https://ui-avatars.com/api/?name=FT&background=random"
8+
alt="User"
9+
class="size-8 rounded-full"
10+
/>
11+
</button>
12+
13+
<div
14+
class="absolute right-0 z-50 mt-3 w-64 origin-top-right overflow-hidden rounded-3xl border border-white/20 bg-white/80 shadow-2xl backdrop-blur-xl dark:border-gray-700/50 dark:bg-gray-900/80"
15+
>
16+
<div class="bg-gradient-to-br from-primary-500/10 to-transparent p-4">
17+
<p class="text-xs font-semibold uppercase tracking-wider text-gray-500">
18+
Account
19+
</p>
20+
<p class="mt-1 text-sm font-bold text-gray-900 dark:text-white">
21+
Fabian Ternis
22+
</p>
23+
</div>
24+
<div class="space-y-0.5 p-2">
25+
<a
26+
href="#"
27+
class="group flex items-center justify-between rounded-2xl px-4 py-2.5 text-sm transition-all hover:bg-white dark:hover:bg-gray-800"
28+
>
29+
<span class="text-gray-700 dark:text-gray-300">Profile Settings</span>
30+
<div class="size-1.5 rounded-full bg-primary-500 opacity-0 group-hover:opacity-100"></div>
31+
</a>
32+
<a
33+
href="#"
34+
class="group flex items-center justify-between rounded-2xl px-4 py-2.5 text-sm transition-all hover:bg-white dark:hover:bg-gray-800"
35+
>
36+
<span class="text-gray-700 dark:text-gray-300">Notifications</span>
37+
<span class="rounded-md bg-gray-100 px-1.5 py-0.5 text-[10px] dark:bg-gray-700">12</span>
38+
</a>
39+
</div>
40+
</div>
41+
</div>
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<div class="relative inline-block text-left">
2+
<button
3+
type="button"
4+
class="group flex items-center gap-2 rounded-xl border border-gray-200 bg-white p-1.5 pr-3 transition-all hover:border-gray-300 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
5+
>
6+
<img
7+
src="https://ui-avatars.com/api/?name=Fabian+Ternis&background=0D8ABC&color=fff"
8+
alt="Avatar"
9+
class="size-7 rounded-lg object-cover"
10+
/>
11+
<span class="text-sm font-medium text-gray-700 dark:text-gray-200"
12+
>Fabian</span
13+
>
14+
<svg
15+
xmlns="http://www.w3.org/2000/svg"
16+
fill="none"
17+
viewBox="0 0 24 24"
18+
stroke-width="2"
19+
stroke="currentColor"
20+
class="size-3.5 text-gray-400 transition-transform group-hover:translate-y-0.5"
21+
>
22+
<path
23+
stroke-linecap="round"
24+
stroke-linejoin="round"
25+
d="m19.5 8.25-7.5 7.5-7.5-7.5"
26+
/>
27+
</svg>
28+
</button>
29+
30+
<div
31+
class="absolute right-0 z-50 mt-2 w-48 origin-top-right rounded-2xl border border-gray-200 bg-white p-1.5 shadow-2xl dark:border-gray-800 dark:bg-gray-900"
32+
>
33+
<a
34+
href="#"
35+
class="flex items-center gap-2 rounded-xl px-3 py-2 text-sm text-gray-600 transition-colors hover:bg-gray-50 hover:text-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-100"
36+
>
37+
My Account
38+
</a>
39+
<a
40+
href="#"
41+
class="flex items-center gap-2 rounded-xl px-3 py-2 text-sm text-gray-600 transition-colors hover:bg-gray-50 hover:text-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-100"
42+
>
43+
Billing
44+
</a>
45+
<div class="my-1 border-t border-gray-100 dark:border-gray-800"></div>
46+
<button
47+
type="button"
48+
class="flex w-full items-center gap-2 rounded-xl px-3 py-2 text-sm font-medium text-red-500 transition-colors hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-900/20"
49+
>
50+
Logout
51+
</button>
52+
</div>
53+
</div>

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

33
return [
4-
'APP_VERSION' => '1.4.0',
4+
'APP_VERSION' => '1.4.1',
55
'BRAND_NAME' => 'mtex.dev',
66
];

data/components.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,36 @@
1717
"id": "810e1094-5d30-4d4f-8921-db3407c8f98c",
1818
"category": "Dropdowns",
1919
"name": "Actions Dropdown",
20-
"path": "components/dropdowns/actions-dropdown.html"
20+
"path": "components/dropdowns/actions-dropdown.html",
21+
"is_full": false
2122
},
2223
{
2324
"id": "66557385-e525-402e-a3e4-d3caeebbd227",
2425
"category": "Dropdowns",
2526
"name": "Status Dropdown",
26-
"path": "components/dropdowns/status-dropdown.html"
27+
"path": "components/dropdowns/status-dropdown.html",
28+
"is_full": false
2729
},
2830
{
2931
"id": "fdd532a9-b851-45f0-80df-eb0c2eb0d902",
3032
"category": "Dropdowns",
3133
"name": "Organizations Dropdown",
32-
"path": "components/dropdowns/organizations-dropdown.html"
34+
"path": "components/dropdowns/organizations-dropdown.html",
35+
"is_full": false
36+
},
37+
{
38+
"id": "14f8a26b-28f0-4d62-921d-9e6b54130093",
39+
"category": "Dropdowns",
40+
"name": "Simple Profile Dropdown",
41+
"path": "components/dropdowns/simple-profile-dropdown.html",
42+
"is_full": false
43+
},
44+
{
45+
"id": "b3c5a6d7-e8f9-4a1b-bc2d-3e4f5a6b7c8d",
46+
"category": "Dropdowns",
47+
"name": "Glass User Menu",
48+
"path": "components/dropdowns/glass-user-menu.html",
49+
"is_full": false
3350
},
3451
{
3552
"id": "6e64699d-f807-4aeb-adf2-fb4f84623665",

0 commit comments

Comments
 (0)