styling updates

This commit is contained in:
2025-07-15 14:40:38 -06:00
parent c93c0b0e22
commit 2432e0408f
5 changed files with 83 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ export function CourseNavigation() {
const canvasQuizzesQuery = useCanvasQuizzesQuery(); const canvasQuizzesQuery = useCanvasQuizzesQuery();
return ( return (
<div className="pb-1 ps-5 flex flex-row gap-3"> <div className="pb-1 flex flex-row gap-3">
<Link href={"/"} className="btn" shallow={true}> <Link href={"/"} className="btn" shallow={true}>
Back to Course List Back to Course List
</Link> </Link>
@@ -76,6 +76,24 @@ export function CourseNavigation() {
Reload Canvas Data Reload Canvas Data
</button> </button>
)} )}
{settings?.startDate && (
<div className="my-auto text-slate-500">
{getSemesterName(settings.startDate)}
</div>
)}
</div> </div>
); );
} }
function getSemesterName(startDate: string) {
const start = new Date(startDate);
const year = start.getFullYear();
const month = start.getMonth();
if (month < 4) {
return `Spring ${year}`;
} else if (month < 7) {
return `Summer ${year}`;
} else {
return `Fall ${year}`;
}
}

View File

@@ -43,13 +43,15 @@ export default function CourseCalendar() {
return ( return (
<div <div
className=" className="
min-h-0 min-h-0
flex-grow flex-grow
border-2 border-2
border-gray-900 border-gray-900
rounded-lg rounded-lg
bg-slate-950/70 bg-linear-to-br
sm:p-1 from-blue-950/30
to-fuchsia-950/10 to-60%
sm:p-1
" "
> >
<div <div

View File

@@ -57,7 +57,7 @@ export default function Day({ day, month }: { day: string; month: number }) {
const meetingClasses = const meetingClasses =
classOnThisDay && isInSemester && holidayNameToday.length === 0 classOnThisDay && isInSemester && holidayNameToday.length === 0
? " bg-slate-900 " ? " bg-slate-900 "
: " "; : " bg-gray-950";
const todayClasses = isToday const todayClasses = isToday
? " border border-blue-700 shadow-[0_0px_10px_0px] shadow-blue-500/50 " ? " border border-blue-700 shadow-[0_0px_10px_0px] shadow-blue-500/50 "

View File

@@ -131,9 +131,25 @@ export default function EditAssignment({
Body={ Body={
<> <>
{showHelp && ( {showHelp && (
<pre className=" max-w-96"> <div className=" max-w-96">
<code>{getAssignmentHelpString(settings)}</code> <pre>
</pre> <code>{getAssignmentHelpString(settings)}</code>
</pre>
<a
href="https://www.markdownguide.org/cheat-sheet/"
target="_blank"
className="text-blue-400 underline"
>
Markdown Cheat Sheet
</a>
<a
href="https://mermaid.live/edit"
target="_blank"
className="text-blue-400 underline ps-3"
>
Mermaid Live Editor
</a>
</div>
)} )}
<div className="flex-1 h-full"> <div className="flex-1 h-full">
<MonacoEditor key={monacoKey} value={text} onChange={textUpdate} /> <MonacoEditor key={monacoKey} value={text} onChange={textUpdate} />

View File

@@ -20,7 +20,42 @@ AllowedFileUploadExtensions:
description goes here description goes here
## Markdown
You can use markdown to format your assignment description. For example, you can make lists like this:
- Item 1
- Item 2
- Item 3
**Bold text**
*Italic text*
[Link to Canvas](https://canvas.instructure.com)
\`Inline code\`
> Blockquote
---
1. First item
2. Second item
3. Third item
you can make mermaid diagrams like this:
\`\`\`mermaid
flowchart TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
\`\`\`
## Rubric ## Rubric
- 1pt: singular point - 1pt: singular point
- 1pts: plural points - 1pts: plural points
- 10pts: (extra credit) extra credit points - 10pts: (extra credit) extra credit points