createSubject and editSubject removed, upsertSubject added. Tasks and assignments removed from top-level tabs and now only accessible through Subjects -> Assignments -> Tasks. More styling in general.
This commit is contained in:
53
lib/subjectColors.ts
Normal file
53
lib/subjectColors.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
export type SubjectColor =
|
||||
| 'blue'
|
||||
| 'emerald'
|
||||
| 'amber'
|
||||
| 'violet'
|
||||
| 'cyan'
|
||||
| 'rose'
|
||||
| 'slate';
|
||||
|
||||
export const SUBJECT_COLORS: Record<
|
||||
SubjectColor,
|
||||
{ soft: string; strong: string; label: string }
|
||||
> = {
|
||||
blue: {
|
||||
soft: '#DCEFF5',
|
||||
strong: '#2F6F88',
|
||||
label: 'Blue',
|
||||
},
|
||||
emerald: {
|
||||
soft: '#DDEFE5',
|
||||
strong: '#2F7D55',
|
||||
label: 'Emerald',
|
||||
},
|
||||
amber: {
|
||||
soft: '#F6E8C6',
|
||||
strong: '#9A6A16',
|
||||
label: 'Amber',
|
||||
},
|
||||
violet: {
|
||||
soft: '#E9E2F5',
|
||||
strong: '#6D4BA3',
|
||||
label: 'Violet',
|
||||
},
|
||||
cyan: {
|
||||
soft: '#DDF0EF',
|
||||
strong: '#287C7A',
|
||||
label: 'Cyan',
|
||||
},
|
||||
rose: {
|
||||
soft: '#F4E1DF',
|
||||
strong: '#9B4A43',
|
||||
label: 'Rose',
|
||||
},
|
||||
slate: {
|
||||
soft: '#E8E4DA',
|
||||
strong: '#52616B',
|
||||
label: 'Slate',
|
||||
},
|
||||
};
|
||||
|
||||
export const SUBJECT_COLOR_KEYS = Object.keys(
|
||||
SUBJECT_COLORS
|
||||
) as SubjectColor[];
|
||||
@@ -1,3 +1,5 @@
|
||||
import type { SubjectColor } from '@/lib/subjectColors';
|
||||
|
||||
export type Task = {
|
||||
tId: string;
|
||||
title: string;
|
||||
@@ -26,4 +28,5 @@ export type Subject = {
|
||||
isActive: boolean;
|
||||
lastChanged: string;
|
||||
uId: string;
|
||||
color?: SubjectColor;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user