Skip to content

Commit 1e10150

Browse files
committed
Merge branch 'consistant-styling' into timetable-fixes
2 parents bd3f1fa + 024d35a commit 1e10150

4 files changed

Lines changed: 48 additions & 26 deletions

File tree

client/src/components/ui/focus/taskDisplay.tsx

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,40 @@ interface Time {
1616
export default function TaskDisplay({
1717
task,
1818
time,
19-
current
19+
current,
2020
}: {
2121
task: Task;
2222
time: Time;
23-
current: Boolean;
23+
current: boolean;
2424
}) {
2525
return (
26-
<div className={current ? "px-auto m-3 flex flex-auto flex-col rounded-3xl bg-indigo-500 p-4 shadow-md shadow-black/40 outline-3 outline outline-slate-50" : "px-auto m-3 flex flex-auto flex-col rounded-3xl bg-indigo-400 p-4 shadow-md shadow-black/40"}>
27-
<div className="flex flex-auto flex-row gap-4 px-3">
28-
<div>{task.name}:</div>
29-
<div>
30-
{time.start_time} - {time.end_time}
31-
</div>
26+
<div
27+
className={
28+
current
29+
? "px-auto outline-3 m-3 flex flex-auto flex-col rounded-3xl bg-indigo-500 p-4 shadow-md shadow-black/40 outline outline-slate-50"
30+
: "px-auto m-3 flex flex-auto flex-col rounded-3xl bg-indigo-400 p-4 shadow-md shadow-black/40"
31+
}
32+
>
33+
<div className="font-bold">{task.name}</div>
34+
<div>
35+
{time.day === 1
36+
? "Mon"
37+
: time.day === 2
38+
? "Tue"
39+
: time.day === 3
40+
? "Wed"
41+
: time.day === 4
42+
? "Thu"
43+
: time.day === 5
44+
? "Fri"
45+
: time.day === 6
46+
? "Sat"
47+
: time.day === 7
48+
? "Sun"
49+
: ""}{" "}
50+
- {time.start_time} - {time.end_time}
3251
</div>
33-
<div className="px-3 italic">{task.description}</div>
52+
<div className="italic">{task.description}</div>
3453
</div>
3554
);
3655
}

client/src/components/ui/focus/timer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Timer = (timeRemaining: number) => {
2424
};
2525

2626
return (
27-
<div className="rounded-full bg-indigo-400 p-3 px-8 font-inter text-xl font-semibold">
27+
<div className="w-32 rounded-full bg-indigo-400 p-3 px-8 font-inter text-xl font-semibold">
2828
{formatTime(timeRemaining)}
2929
</div>
3030
);

client/src/pages/login.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ export default function Login() {
7373

7474
<div className="mt-10 sm:mx-auto sm:w-full sm:max-w-sm">
7575
<form onSubmit={handleSubmit} className="space-y-6">
76-
<label className="block text-sm/6 font-medium text-gray-100">
77-
Username
78-
</label>
7976
<div className="mt-2">
77+
<label className="block text-sm/6 font-medium text-gray-100">
78+
Username
79+
</label>
8080
<input
8181
id="username"
8282
type="text"
@@ -87,10 +87,10 @@ export default function Login() {
8787
/>
8888
</div>
8989

90-
<label className="block text-sm/6 font-medium text-gray-100">
91-
Email
92-
</label>
9390
<div className="mt-2">
91+
<label className="block text-sm/6 font-medium text-gray-100">
92+
Email
93+
</label>
9494
<input
9595
id="email"
9696
type="email"
@@ -102,17 +102,17 @@ export default function Login() {
102102
</div>
103103

104104
<div>
105-
<div className="flex items-center justify-between">
106-
<label className="block text-sm/6 font-medium text-gray-100">
107-
Password
108-
</label>
109-
<div className="text-sm">
110-
<a className="font-semibold text-indigo-400 hover:text-indigo-300">
111-
Forgot password?
112-
</a>
113-
</div>
114-
</div>
115105
<div className="mt-2">
106+
<div className="flex items-center justify-between">
107+
<label className="block text-sm/6 font-medium text-gray-100">
108+
Password
109+
</label>
110+
<div className="text-sm">
111+
<a className="font-semibold text-indigo-400 hover:text-indigo-300">
112+
Forgot password?
113+
</a>
114+
</div>
115+
</div>
116116
<input
117117
id="password"
118118
type="password"

client/src/styles/globals.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
@layer base {
88
:root {
9+
10+
@apply font-inter;
911
--background: 0 0% 100%;
1012
--foreground: 222.2 84% 4.9%;
1113

@@ -91,6 +93,7 @@
9193

9294
@layer base {
9395
body {
96+
@apply font-inter;
9497
@apply bg-background text-foreground;
9598
@apply font-inter;
9699
}

0 commit comments

Comments
 (0)