diff options
| author | FifthWit <fifthwitbusiness@gmail.com> | 2025-08-14 14:01:01 -0500 |
|---|---|---|
| committer | FifthWit <fifthwitbusiness@gmail.com> | 2025-08-14 14:01:01 -0500 |
| commit | 6a8b909afbe1560be95f7ad0a3e19cfe4717aec6 (patch) | |
| tree | 83cdbe3b5b7e5b83d5f0d08964634cc942264072 /frontend/src/components/ConfirmDialog.tsx | |
| parent | Switched to Vite as build tool (diff) | |
| download | lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.tar.gz lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.tar.bz2 lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.zip | |
Switched to tailwind/vite
Diffstat (limited to 'frontend/src/components/ConfirmDialog.tsx')
| -rw-r--r-- | frontend/src/components/ConfirmDialog.tsx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/frontend/src/components/ConfirmDialog.tsx b/frontend/src/components/ConfirmDialog.tsx index c89d9ea..8f2ce7a 100644 --- a/frontend/src/components/ConfirmDialog.tsx +++ b/frontend/src/components/ConfirmDialog.tsx | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | import React from "react"; | 1 | import React from "react"; |
| 2 | 2 | ||
| 3 | import "@css/Dialog.css"; | ||
| 4 | |||
| 5 | interface ConfirmDialogProps { | 3 | interface ConfirmDialogProps { |
| 6 | title: string; | 4 | title: string; |
| 7 | subtitle: string; | 5 | subtitle: string; |
| @@ -16,17 +14,17 @@ const ConfirmDialog: React.FC<ConfirmDialogProps> = ({ | |||
| 16 | onCancel, | 14 | onCancel, |
| 17 | }) => { | 15 | }) => { |
| 18 | return ( | 16 | return ( |
| 19 | <div className="dimmer"> | 17 | <div className="fixed w-[200%] h-full bg-black bg-opacity-50 z-[4]"> |
| 20 | <div className="dialog"> | 18 | <div className="fixed z-[4] top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-surface rounded-3xl overflow-hidden min-w-[350px] border border-border animate-[dialog_in_0.2s_cubic-bezier(0.075,0.82,0.165,1.1)] text-foreground font-[--font-barlow-semicondensed-regular]"> |
| 21 | <div className="dialog-element dialog-header"> | 19 | <div className="p-2 text-2xl bg-mantle"> |
| 22 | <span>{title}</span> | 20 | <span>{title}</span> |
| 23 | </div> | 21 | </div> |
| 24 | <div className="dialog-element dialog-description"> | 22 | <div className="p-2"> |
| 25 | <span>{subtitle}</span> | 23 | <span>{subtitle}</span> |
| 26 | </div> | 24 | </div> |
| 27 | <div className="dialog-element dialog-btns-container"> | 25 | <div className="p-2 flex justify-end border-t-2 border-border bg-mantle"> |
| 28 | <button onClick={onCancel}>Cancel</button> | 26 | <button className="mr-2 px-4 py-2 bg-muted text-foreground rounded hover:bg-overlay1 transition-colors" onClick={onCancel}>Cancel</button> |
| 29 | <button onClick={onConfirm}>Confirm</button> | 27 | <button className="px-4 py-2 bg-primary text-background rounded hover:bg-mauve transition-colors" onClick={onConfirm}>Confirm</button> |
| 30 | </div> | 28 | </div> |
| 31 | </div> | 29 | </div> |
| 32 | </div> | 30 | </div> |