Skip to content

Commit

Permalink
Enhance Toaster component with dark theme and custom styles; update t…
Browse files Browse the repository at this point in the history
…oast duration in Timer component; remove unused win.html file
  • Loading branch information
akash2061 committed Nov 3, 2024
1 parent ea3a52a commit 2a6793a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
16 changes: 15 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,21 @@ function App() {
</div>
</div>
<Timer />
<Toaster richColors position="top-center" />
<Toaster richColors position="top-center" theme="dark"
toastOptions={{
style: {
fontSize: '1rem',
padding: '1rem',
marginTop: '1rem',
// backgroundColor: '#2d3748f0',
color: '#f7fafc',
borderRadius: '0.5rem',
boxShadow: '0 0 0.5rem rgba(0, 0, 0, 0.1)',
// border: '1px solid #2d3748',
zIndex: 9999
}
}}
/>
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Timer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const Timer = () => {
} else {
if (timerName !== 'Pomodoro Timer') {
toast.success(`${timerName} is done!`, {
duration: 3000
duration: 5000
});
} else {
toast.success('Time to take a break!', {
duration: 3000
duration: 5000
});
}
invoke('bring_window_to_front');
Expand Down
11 changes: 0 additions & 11 deletions src/components/win.html

This file was deleted.

0 comments on commit 2a6793a

Please sign in to comment.