-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrawer.html
More file actions
54 lines (50 loc) · 1.81 KB
/
Copy pathdrawer.html
File metadata and controls
54 lines (50 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@if (isOpen()) {
<div class="fixed inset-0 z-50 overflow-hidden">
<!-- Backdrop -->
<div
class="absolute inset-0 bg-slate-900/40 dark:bg-black/60 backdrop-blur-xs transition-opacity duration-200"
(click)="onBackdropClick()"
(keydown.escape)="onBackdropClick()"
tabindex="0"
role="button"
aria-label="Fechar painel lateral"
></div>
<div class="fixed inset-y-0 right-0 max-w-full flex pl-10">
<!-- Slide Panel -->
<div
[class]="widthClass()"
class="w-screen bg-white dark:bg-slate-800 shadow-2xl flex flex-col transform transition-transform duration-300 ease-in-out border-l border-gray-200 dark:border-slate-700"
>
<!-- Drawer Header -->
<div
class="px-6 py-4 border-b border-gray-100 dark:border-slate-700/80 flex items-center justify-between shrink-0 bg-gray-50/50 dark:bg-slate-800/50"
>
<div class="flex items-center gap-2">
@if (icon()) {
<app-icon [name]="icon()!" size="w-5 h-5 text-[#4F8A6B]" />
}
<h2 class="text-base font-semibold text-gray-900 dark:text-slate-100">{{ title() }}</h2>
</div>
<button
type="button"
(click)="close()"
class="p-1.5 rounded-lg text-gray-400 hover:text-gray-600 dark:hover:text-slate-200 hover:bg-gray-100 dark:hover:bg-slate-700 transition-colors"
title="Fechar"
>
<app-icon name="x" size="w-5 h-5" />
</button>
</div>
<!-- Drawer Content -->
<div class="flex-1 overflow-y-auto p-6">
<ng-content />
</div>
<!-- Drawer Footer (Optional) -->
<div
class="px-6 py-3 border-t border-gray-100 dark:border-slate-700/80 bg-gray-50/50 dark:bg-slate-800/50 shrink-0"
>
<ng-content select="[footer]" />
</div>
</div>
</div>
</div>
}