Skip to content

Commit 75c9602

Browse files
committed
refactor: clean up TaskCard and TaskModal components
- Removed unnecessary blank lines and improved code formatting for better readability. - Standardized the use of commas in function parameters and object properties. - Enhanced the styling of TaskModal for a more consistent UI experience. - Improved the layout and structure of the TaskCard component for better maintainability. - Updated the comment section in TaskModal to improve user experience with file attachments.
1 parent 4362883 commit 75c9602

7 files changed

Lines changed: 1023 additions & 850 deletions

File tree

frontend/src/App.tsx

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,38 @@ function App() {
105105

106106
if (!token) {
107107
return (
108-
<div className="flex flex-col justify-center items-center min-h-screen p-4 text-white relative overflow-hidden">
108+
<div className="flex flex-col justify-center items-center min-h-screen p-4 text-white relative overflow-hidden bg-[#050810]">
109+
{/* decorative orbs */}
110+
<div className="pointer-events-none absolute inset-0 overflow-hidden">
111+
<div className="absolute -top-32 -left-32 w-96 h-96 rounded-full bg-sky-600/20 blur-[120px]" />
112+
<div className="absolute -bottom-32 -right-32 w-96 h-96 rounded-full bg-violet-600/20 blur-[120px]" />
113+
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 rounded-full bg-sky-900/20 blur-[80px]" />
114+
{/* subtle grid */}
115+
<div
116+
className="absolute inset-0 opacity-[0.03]"
117+
style={{
118+
backgroundImage:
119+
"linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px)",
120+
backgroundSize: "40px 40px",
121+
}}
122+
/>
123+
</div>
124+
109125
<AnimatePresence>
110126
<AuthCard onAuthSuccess={handleAuth} />
111127
</AnimatePresence>
112128

113129
<ToastContainer
114130
position="top-right"
115-
autoClose={3000} // durasi otomatis hilang (ms)
131+
autoClose={3000}
116132
hideProgressBar={false}
117133
newestOnTop={false}
118134
closeOnClick
119135
rtl={false}
120136
pauseOnFocusLoss={false}
121137
draggable
122138
pauseOnHover
123-
theme="dark" // <- gunakan dark mode
139+
theme="dark"
124140
/>
125141
</div>
126142
);

0 commit comments

Comments
 (0)