mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
styling updates
This commit is contained in:
@@ -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}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -48,7 +48,9 @@ export default function CourseCalendar() {
|
|||||||
border-2
|
border-2
|
||||||
border-gray-900
|
border-gray-900
|
||||||
rounded-lg
|
rounded-lg
|
||||||
bg-slate-950/70
|
bg-linear-to-br
|
||||||
|
from-blue-950/30
|
||||||
|
to-fuchsia-950/10 to-60%
|
||||||
sm:p-1
|
sm:p-1
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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 "
|
||||||
|
|||||||
@@ -131,9 +131,25 @@ export default function EditAssignment({
|
|||||||
Body={
|
Body={
|
||||||
<>
|
<>
|
||||||
{showHelp && (
|
{showHelp && (
|
||||||
<pre className=" max-w-96">
|
<div className=" max-w-96">
|
||||||
|
<pre>
|
||||||
<code>{getAssignmentHelpString(settings)}</code>
|
<code>{getAssignmentHelpString(settings)}</code>
|
||||||
</pre>
|
</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} />
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user