Skip to content

Commit df34cea

Browse files
authored
feat: add FAB button for starting a new task (#47)
1 parent d0ab94c commit df34cea

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev-dist/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ define(['./workbox-21a80088'], (function (workbox) { 'use strict';
7979
*/
8080
workbox.precacheAndRoute([{
8181
"url": "index.html",
82-
"revision": "0.v4bl8mgtcdg"
82+
"revision": "0.dkv277t7u3k"
8383
}], {});
8484
workbox.cleanupOutdatedCaches();
8585
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

src/components/NewTaskForm.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
SelectValue
1010
} from '@/components/ui/select';
1111
import { Textarea } from '@/components/ui/textarea';
12-
import { ClockPlus, Plus } from 'lucide-react';
12+
import { Plus } from 'lucide-react';
1313
import { useTimeTracking } from '@/hooks/useTimeTracking';
1414

1515
interface NewTaskFormProps {
@@ -56,12 +56,12 @@ export const NewTaskForm: React.FC<NewTaskFormProps> = ({ onSubmit }) => {
5656
if (!isOpen) {
5757
return (
5858
<Button
59-
variant="outline"
59+
variant="default"
6060
onClick={() => setIsOpen(true)}
61-
className="w-full font-bold border-green-700 text-green-700 hover:bg-green-50 hover:text-green-700 flex items-center justify-center space-x-2 py-3"
61+
className="fixed bottom-20 md:bottom-6 right-6 w-16 h-16 rounded-full text-white text-md shadow-2xl hover:shadow-3xl transition-all duration-200 flex items-center justify-center z-50 hover:scale-110"
62+
aria-label="New Task"
6263
>
63-
<ClockPlus className="w-4 h-4" />
64-
New Task
64+
<Plus style={{ fontSize: '1.5rem', width: '1.5rem', height: '1.5rem' }} />
6565
</Button>
6666
);
6767
}

0 commit comments

Comments
 (0)