Skip to content

Commit 2168ff6

Browse files
committed
Added black border to AddCourses
- Black border + - i made the borders rounded cuz i thought it looked nice + - made the label font color slightly redder so its a tiny bit more visible than the previous light grayish color #740
1 parent dba02f7 commit 2168ff6

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

frontend/src/components/Filters.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ export const SearchFilter = ({}: props) => {
9494

9595
return (
9696
<section>
97-
<div className="flex flex-col border-2 border-black bg-barely-pink p-2">
97+
<div className="flex flex-col border-2 border-black bg-barely-pink p-2 rounded-lg">
9898
{" "}
9999
{/* Div for Whole Filter Component*/}
100-
<h1 className="m-4 text-center text-lg font-extrabold sm:m-2 sm:ml-8 sm:mt-8 sm:w-full sm:text-left sm:text-2xl sm:font-extrabold">
100+
<h1 className="text-center text-lg font-extrabold sm:m-2 sm:ml-8 sm:mt-8 sm:w-full sm:text-left sm:text-2xl sm:font-extrabold">
101101
Filters
102102
</h1>{" "}
103103
{/* h1 For Filter Title */}

frontend/src/components/courses/AddCourses.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,32 +132,32 @@ export function AddCourses({ onAddCourse, searchParams }: Props) {
132132

133133
return (
134134
<div className="h-full min-w-full">
135-
<nav className="flex gap-2">
135+
<nav className="flex gap-2 z-10">
136136
<Link
137137
href={subjectView.href}
138138
data-active={state.view === "subject"}
139-
className="w-1/3 rounded-bl-none rounded-br-none rounded-tl-lg rounded-tr-lg bg-dusty-pink px-4 py-2 text-left font-bold capitalize text-[#CFBEBE] duration-150 data-[active=true]:bg-bulldog-red data-[active=true]:text-white"
139+
className="w-1/3 rounded-bl-none rounded-br-none rounded-tl-lg rounded-tr-lg bg-dusty-pink border-2 border-black border-b-0 px-4 py-2 text-left font-bold capitalize text-[#dbabab] duration-150 data-[active=true]:bg-bulldog-red data-[active=true]:text-white"
140140
>
141141
By Subject
142142
</Link>
143143
<Link
144144
href={instructorView.href}
145145
data-active={state.view === "instructor"}
146-
className="w-1/3 rounded-bl-none rounded-br-none rounded-tl-lg rounded-tr-lg bg-dusty-pink px-4 py-2 text-left font-bold capitalize text-[#CFBEBE] duration-150 data-[active=true]:bg-bulldog-red data-[active=true]:text-white"
146+
className="w-1/3 rounded-bl-none rounded-br-none rounded-tl-lg rounded-tr-lg bg-dusty-pink border-2 border-black border-b-0 px-4 py-2 text-left font-bold capitalize text-[#dbabab] duration-150 data-[active=true]:bg-bulldog-red data-[active=true]:text-white"
147147
>
148148
By Instructor
149149
</Link>
150150
<Link
151151
href={crnView.href}
152152
data-active={state.view === "crn"}
153-
className="w-1/3 rounded-bl-none rounded-br-none rounded-tl-lg rounded-tr-lg bg-dusty-pink px-4 py-2 text-left font-bold capitalize text-[#CFBEBE] duration-150 data-[active=true]:bg-bulldog-red data-[active=true]:text-white"
153+
className="w-1/3 rounded-bl-none rounded-br-none rounded-tl-lg rounded-tr-lg bg-dusty-pink border-2 border-black border-b-0 px-4 py-2 text-left font-bold capitalize text-[#dbabab] duration-150 data-[active=true]:bg-bulldog-red data-[active=true]:text-white"
154154
>
155155
By CRN
156156
</Link>
157157
</nav>
158158

159159
<form
160-
className="flex flex-col gap-16 border-2 border-t-0 border-black bg-barely-pink px-8 py-10"
160+
className="flex flex-col rounded-b-lg gap-16 border-2 border-t-2 border-black bg-barely-pink px-8 py-10 -mt-[2px]"
161161
onSubmit={handleSubmit}
162162
>
163163
{state.view === "subject" && <SearchBySubject {...subjectView} />}

frontend/src/components/courses/TimeDistanceFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function TimeDistanceFilter() {
4848

4949
return (
5050
// Main container with 2 columns
51-
<div className="grid max-w-80 grid-cols-2 gap-4">
51+
<div className="grid max-w-80 grid-cols-2 gap-4 rounded-lg">
5252
{/* Left column: Labels */}
5353
<div className="grid grid-rows-3 gap-4">
5454
<label className="text-right font-extrabold">Start Time:</label>

0 commit comments

Comments
 (0)