Skip to content

Commit

Permalink
馃帹 Improve task window styling
Browse files Browse the repository at this point in the history
  • Loading branch information
awtkns committed Apr 14, 2023
1 parent c9416cb commit 6e7b012
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/TaskWindow.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React from "react";
import { FaListAlt } from "react-icons/fa";
import FadeIn from "./motions/FadeIn";
import Expand from "./motions/expand";

type TaskWindowProps = {
tasks: string[];
};
export const TaskWindow = ({ tasks }: TaskWindowProps) => {
return (
<FadeIn className="xl m-3 hidden h-[65%] w-[20rem] flex-col items-center overflow-auto rounded-2xl border-2 border-white/30 bg-zinc-900 font-mono shadow-2xl xl:flex">
<Expand className="xl m-3 hidden h-[65%] w-[20rem] flex-col items-center overflow-auto rounded-2xl border-2 border-white/30 bg-zinc-900 font-mono shadow-2xl xl:flex">
<div className="w-full px-2">
<div className="sticky top-0 my-2 flex items-center justify-center gap-2 bg-zinc-900 p-2 text-white">
<FaListAlt /> Current tasks
Expand All @@ -18,7 +19,7 @@ export const TaskWindow = ({ tasks }: TaskWindowProps) => {
))}
</div>
</div>
</FadeIn>
</Expand>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const Home: NextPage = () => {
</Button>
</Expand>
</div>
<TaskWindow tasks={tasks} />
{tasks.length && <TaskWindow tasks={tasks} />}
</div>
</main>
</DefaultLayout>
Expand Down

0 comments on commit 6e7b012

Please sign in to comment.