mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
making the colors closer together
This commit is contained in:
@@ -19,7 +19,16 @@ export default function CourseCalendar() {
|
||||
const months = getMonthsBetweenDates(startDateTime, endDateTime);
|
||||
|
||||
return (
|
||||
<div className="overflow-y-scroll h-full border bg-slate-950">
|
||||
<div
|
||||
className="
|
||||
h-full
|
||||
overflow-y-scroll
|
||||
border-4
|
||||
border-slate-600
|
||||
rounded-xl
|
||||
bg-slate-950
|
||||
"
|
||||
>
|
||||
{months.map((month) => (
|
||||
<CalendarMonth key={month.month + "" + month.year} month={month} />
|
||||
))}
|
||||
|
||||
@@ -6,8 +6,7 @@ import { useCourseContext } from "../context/courseContext";
|
||||
export default function Day({ day, month }: { day: Date; month: number }) {
|
||||
const context = useCourseContext();
|
||||
|
||||
|
||||
const isInSameMonth = day.getMonth() + 1 != month
|
||||
const isInSameMonth = day.getMonth() + 1 != month;
|
||||
const backgroundClass = isInSameMonth ? "" : "bg-slate-900";
|
||||
|
||||
const todaysAssignments = context.localCourse.modules
|
||||
@@ -50,17 +49,21 @@ export default function Day({ day, month }: { day: Date; month: number }) {
|
||||
);
|
||||
});
|
||||
return (
|
||||
<div className={"border rounded rounded-3 p-2 pb-4 m-1 " + backgroundClass}>
|
||||
<div
|
||||
className={
|
||||
"border border-slate-600 rounded-lg p-2 pb-4 m-1 " + backgroundClass
|
||||
}
|
||||
>
|
||||
{day.getDate()}
|
||||
<ul className="list-disc ms-4">
|
||||
{todaysAssignments.map((a) => (
|
||||
<li key={a.name}> {a.name}</li>
|
||||
<li key={a.name}>{a.name}</li>
|
||||
))}
|
||||
{todaysQuizzes.map((q) => (
|
||||
<li key={q.name}> {q.name}</li>
|
||||
<li key={q.name}>{q.name}</li>
|
||||
))}
|
||||
{todaysPages.map((p) => (
|
||||
<li key={p.name}> {p.name}</li>
|
||||
<li key={p.name}>{p.name}</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user