Skip to content

Commit cfa4379

Browse files
committed
added shadows to task pages main components, removed some old hover effects that change text size for ones that increase brightness
1 parent bee6fe9 commit cfa4379

5 files changed

Lines changed: 13 additions & 19 deletions

File tree

client/src/components/task_item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function TaskItem({
122122
/* Item Display */
123123
}
124124
return (
125-
<div className="task flex h-fit w-full max-w-[28rem] flex-col gap-3 rounded-lg bg-slate-400 p-5 text-slate-200">
125+
<div className="task flex h-fit w-full max-w-[28rem] flex-col gap-3 rounded-lg bg-slate-400 p-5 text-slate-200 shadow-xl">
126126
<div className="task-title-container flex w-full flex-row items-center justify-start text-3xl font-bold text-slate-100 hover:text-slate-100">
127127
{/* Task Name and Completion */}
128128
<input

client/src/components/time_tag.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ function TimeTag({ start_time, end_time, display }: TimeTagProps) {
5050
display,
5151
);
5252
return (
53-
<div className="flex h-fit w-fit flex-row items-center justify-center rounded-full text-slate-300 hover:text-slate-100">
53+
<div className="flex h-fit w-fit flex-row items-center justify-center gap-1 rounded-full">
5454
<div className="placeholder-clock aspect-1/1 h-5 w-5 rounded-[50] bg-slate-200"></div>
55-
<p className="ml-1">{time_display_string}</p>
55+
<p className="hover:brightness-110">{time_display_string}</p>
5656
</div>
5757
);
5858
}
@@ -65,9 +65,9 @@ interface DayTagProps {
6565

6666
export function DayTag({ day }: DayTagProps) {
6767
return (
68-
<div className="flex h-fit w-fit flex-row items-center justify-center rounded-full text-slate-300 hover:text-slate-100">
68+
<div className="flex h-fit w-fit flex-row items-center justify-center gap-1 rounded-full">
6969
<div className="placeholder-calendar aspect-1/1/ h-5 w-5 bg-slate-200"></div>
70-
<p className="ml-1">{day}</p>
70+
<p className="hover:brightness-110">{day}</p>
7171
</div>
7272
);
7373
}

client/src/components/timetable_task.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ function TimetableTaskContent({
189189
}: TimetableTaskContentProps) {
190190
return (
191191
<div className="timetable-task-content h-full overflow-hidden">
192-
<h1 className="mb-1 text-2xl font-bold text-slate-200 hover:text-slate-100">
192+
<h1 className="mb-1 text-2xl font-bold text-slate-100 hover:brightness-110">
193193
{name}
194194
</h1>
195-
<div className="time-tag-wrapper text-lg font-medium">
195+
<div className="time-tag-wrapper text-lg font-medium text-slate-200">
196196
<TimeTag
197197
start_time={start_time}
198198
end_time={end_time}
@@ -209,7 +209,7 @@ function TimetableTaskContent({
209209
))}
210210
</div>
211211
<div className="description mt-1 flex flex-col text-justify">
212-
<p className="text-slate-300 hover:text-slate-100">{description}</p>
212+
<p className="text-slate-300 hover:brightness-110">{description}</p>
213213
</div>
214214
</div>
215215
);

client/src/components/topic_tag.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,12 @@ stored in color_hex.
1515
function TopicTag({ name, color_hex }: TopicTagProps) {
1616
const color_hex_code = "#" + color_hex.toString(16).padStart(6, "0");
1717
return (
18-
<div
19-
className={
20-
"flex w-fit flex-row items-center overflow-hidden rounded-full bg-slate-500/50 p-1 pl-2 pr-2 text-sm text-slate-300 hover:text-slate-100"
21-
}
22-
>
18+
<div className="topic-tag flex w-fit flex-row items-center overflow-hidden rounded-full bg-slate-500/50 p-1 pl-2 pr-2 text-sm text-slate-300 hover:brightness-110">
2319
<div
24-
className="aspect-1/1 mr-1 min-h-2 min-w-2 rounded-full"
20+
className="topic-tag-color aspect-1/1 mr-1 min-h-2 min-w-2 rounded-full"
2521
style={{ backgroundColor: color_hex_code }}
26-
>
27-
{" "}
28-
</div>
29-
<p className="truncate">{name}</p>
22+
></div>
23+
<p className="topic-tag-text truncate">{name}</p>
3024
</div>
3125
);
3226
}

client/src/pages/[id]/tasks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default function TasksPage() {
125125
availableTopics={availableTopics}
126126
/>
127127
</div>
128-
<div className="add-task-container flex h-full flex-col items-center justify-start rounded-lg bg-slate-400 p-3">
128+
<div className="add-task-container flex h-full flex-col items-center justify-start rounded-lg bg-slate-400 p-3 shadow-xl">
129129
<h1 className="text-3xl font-bold text-slate-100">Add Task</h1>
130130
<div className="task-form-wrapper h-full overflow-auto">
131131
<TaskForm

0 commit comments

Comments
 (0)