Skip to content

Commit eba837c

Browse files
author
harshitnagar031
committed
Restored to 'ffbd4f2d0d7df3c4274d11ef5cf1416054e003c6'
Replit-Restored-To:ffbd4f2d0d7df3c4274d11ef5cf1416054e003c6
1 parent 4eddaca commit eba837c

File tree

4 files changed

+22
-113
lines changed

4 files changed

+22
-113
lines changed

client/src/App.tsx

+16-27
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,30 @@ import { Toaster } from "@/components/ui/toaster";
55
import Home from "@/pages/home";
66
import CalendarView from "@/pages/calendar-view";
77
import MeView from "@/pages/me-view";
8-
import { ListTodo, Calendar, User, Plus } from "lucide-react";
9-
import { Button } from "@/components/ui/button";
8+
import { ListTodo, Calendar, User } from "lucide-react";
109

1110
function Navigation() {
1211
const [location] = useLocation();
1312

1413
return (
15-
<nav className="fixed bottom-0 left-0 right-0 bg-background border-t py-3 shadow-lg">
16-
<div className="container max-w-5xl mx-auto flex justify-around items-center relative">
14+
<nav className="fixed bottom-0 left-0 right-0 bg-background border-t py-2">
15+
<div className="container max-w-5xl mx-auto flex justify-around items-center">
1716
<Link href="/">
18-
<a className={`flex flex-col items-center gap-1.5 min-w-[64px] ${location === "/" ? "text-primary" : "text-muted-foreground"}`}>
19-
<ListTodo className="h-6 w-6" />
20-
<span className="text-xs font-medium">Tasks</span>
17+
<a className={`flex flex-col items-center gap-1 ${location === "/" ? "text-primary" : "text-muted-foreground"}`}>
18+
<ListTodo className="h-5 w-5" />
19+
<span className="text-xs">Tasks</span>
2120
</a>
2221
</Link>
2322
<Link href="/calendar">
24-
<a className={`flex flex-col items-center gap-1.5 min-w-[64px] ${location === "/calendar" ? "text-primary" : "text-muted-foreground"}`}>
25-
<Calendar className="h-6 w-6" />
26-
<span className="text-xs font-medium">Calendar</span>
23+
<a className={`flex flex-col items-center gap-1 ${location === "/calendar" ? "text-primary" : "text-muted-foreground"}`}>
24+
<Calendar className="h-5 w-5" />
25+
<span className="text-xs">Calendar</span>
2726
</a>
2827
</Link>
29-
30-
{/* Floating Action Button for adding tasks */}
31-
<Button
32-
size="icon"
33-
className="absolute -top-6 left-1/2 -translate-x-1/2 h-12 w-12 rounded-full shadow-lg"
34-
>
35-
<Plus className="h-6 w-6" />
36-
<span className="sr-only">Add Task</span>
37-
</Button>
38-
3928
<Link href="/me">
40-
<a className={`flex flex-col items-center gap-1.5 min-w-[64px] ${location === "/me" ? "text-primary" : "text-muted-foreground"}`}>
41-
<User className="h-6 w-6" />
42-
<span className="text-xs font-medium">Me</span>
29+
<a className={`flex flex-col items-center gap-1 ${location === "/me" ? "text-primary" : "text-muted-foreground"}`}>
30+
<User className="h-5 w-5" />
31+
<span className="text-xs">Me</span>
4332
</a>
4433
</Link>
4534
</div>
@@ -49,15 +38,15 @@ function Navigation() {
4938

5039
function Router() {
5140
return (
52-
<div className="min-h-screen bg-background pb-20">
53-
<header className="py-4 px-4 border-b bg-background/80 backdrop-blur-sm fixed top-0 left-0 right-0 z-10">
41+
<div className="min-h-screen bg-background pb-16">
42+
<header className="py-6 px-4 border-b">
5443
<div className="container max-w-5xl mx-auto flex justify-center items-center">
55-
<h1 className="text-2xl font-bold bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent animate-in fade-in slide-in-from-bottom-4 duration-1000">
44+
<h1 className="text-3xl font-bold bg-gradient-to-r from-primary to-primary/70 bg-clip-text text-transparent animate-in fade-in slide-in-from-bottom-4 duration-1000">
5645
TaskByte
5746
</h1>
5847
</div>
5948
</header>
60-
<main className="container max-w-5xl mx-auto px-4 pt-16">
49+
<main className="container max-w-5xl mx-auto px-4">
6150
<Switch>
6251
<Route path="/" component={Home} />
6352
<Route path="/calendar" component={CalendarView} />

client/src/components/ui/drawer.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const DrawerContent = React.forwardRef<
4141
<DrawerPrimitive.Content
4242
ref={ref}
4343
className={cn(
44-
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-[85vh] flex-col rounded-t-[20px] border bg-background touch-pan-y",
44+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
4545
className
4646
)}
4747
{...props}
@@ -69,7 +69,7 @@ const DrawerFooter = ({
6969
...props
7070
}: React.HTMLAttributes<HTMLDivElement>) => (
7171
<div
72-
className={cn("mt-auto flex flex-col gap-2 p-4 pb-8", className)}
72+
className={cn("mt-auto flex flex-col gap-2 p-4", className)}
7373
{...props}
7474
/>
7575
)
@@ -113,4 +113,4 @@ export {
113113
DrawerFooter,
114114
DrawerTitle,
115115
DrawerDescription,
116-
}
116+
}

client/src/hooks/use-theme.ts

-36
This file was deleted.

client/src/pages/me-view.tsx

+3-47
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,10 @@
11
import { TaskProgress } from "@/components/task-progress";
2-
import { Button } from "@/components/ui/button";
3-
import { Moon, Sun, Laptop } from "lucide-react";
4-
import { useTheme } from "@/hooks/use-theme";
52

63
export default function MeView() {
7-
const { theme, setTheme } = useTheme();
8-
94
return (
105
<div className="space-y-8">
11-
<section className="space-y-4">
12-
<h2 className="text-2xl font-semibold">My Progress</h2>
13-
<TaskProgress />
14-
</section>
15-
16-
<section className="space-y-4">
17-
<h2 className="text-2xl font-semibold">Appearance</h2>
18-
<div className="flex flex-wrap gap-4">
19-
<Button
20-
variant={theme === 'light' ? 'default' : 'outline'}
21-
onClick={() => setTheme('light')}
22-
className="flex-1"
23-
>
24-
<Sun className="mr-2 h-4 w-4" />
25-
Light
26-
</Button>
27-
<Button
28-
variant={theme === 'dark' ? 'default' : 'outline'}
29-
onClick={() => setTheme('dark')}
30-
className="flex-1"
31-
>
32-
<Moon className="mr-2 h-4 w-4" />
33-
Dark
34-
</Button>
35-
<Button
36-
variant={theme === 'system' ? 'default' : 'outline'}
37-
onClick={() => setTheme('system')}
38-
className="flex-1"
39-
>
40-
<Laptop className="mr-2 h-4 w-4" />
41-
System
42-
</Button>
43-
</div>
44-
</section>
45-
46-
<section className="space-y-4">
47-
<h2 className="text-2xl font-semibold">About TaskByte</h2>
48-
<p className="text-muted-foreground">
49-
Version 1.0.0
50-
</p>
51-
</section>
6+
<h2 className="text-2xl font-semibold">Me</h2>
7+
<TaskProgress />
528
</div>
539
);
54-
}
10+
}

0 commit comments

Comments
 (0)