Skip to content

Commit

Permalink
Fixed minor details
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewzpu committed Jun 3, 2024
1 parent bbe5eb8 commit e846e4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 36 deletions.
43 changes: 8 additions & 35 deletions frontend/src/components/ProgramProfileTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function ProgramProfileTable({
outerDivClass = className;
}

const tableClass = "h-full w-full border-collapse";
let tdClass = "border-pia_neutral_gray border-[1px]";
const tableClass = "h-full w-full border-collapse table-auto";
let tdClass = "border-pia_neutral_gray border-[1px] text-nowrap overflow-hidden";
let thClass = "bg-pia_light_gray border-t-0";
let dotClass = "rounded-full";

Expand All @@ -45,35 +45,35 @@ export function ProgramProfileTable({
status = status.toLowerCase();
if (status === "joined") {
return (
<div className="flex flex-row">
<div className="flex w-[100px] flex-row">
<p className={dotClass + " bg-joined_green"} />
<p className="text-joined_green">Joined</p>
</div>
);
} else if (status === "waitlisted") {
return (
<div className="flex flex-row">
<div className="flex w-[100px] flex-row">
<p className={dotClass + " bg-waitlisted_yellow"} />
<p className="text-waitlisted_yellow">Waitlisted</p>
<p className="grow-0 text-waitlisted_yellow">Waitlisted</p>
</div>
);
} else if (status === "archived") {
return (
<div className="flex flex-row">
<div className="flex w-[100px] flex-row">
<p className={dotClass + " bg-archived_gray"} />
<p className="text-archived_gray">Archived</p>
</div>
);
} else if (status === "not a fit") {
return (
<div className="flex flex-row">
<div className="flex w-[100px] flex-row">
<p className={dotClass + " bg-notafit_red"} />
<p className="text-notafit_red">Not a Fit</p>
</div>
);
} else {
return (
<div className="flex flex-row">
<div className="flex w-[100px] flex-row">
<p className={dotClass + " bg-black"} />
<p className="text-black">Invalid</p>
</div>
Expand Down Expand Up @@ -137,33 +137,6 @@ export function ProgramProfileTable({
<td className={tdClass + " border-r-0"}>{enrollment.authNumber}</td>
</tr>
))}
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
<tr>
<td className={tdClass}>temp</td>
</tr>
</tbody>
)}
</table>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/programs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export default function Programs() {
}
}

let addButtonClass = "m-0 rounded-3xl bg-pia_dark_green text-white";
let addButtonClass =
"m-0 rounded-3xl bg-pia_dark_green text-white hover:opacity-80 active:opacity-90";
if (isTablet) {
addButtonClass += " text-[10px] h-6 px-[10px]";
} else {
Expand Down

0 comments on commit e846e4e

Please sign in to comment.