Update 13 files
- /TeacherDashboard/index.html - /TeacherDashboard/TeacherDashboard.code-workspace - /TeacherDashboard/components/resourceModal.html - /TeacherDashboard/components/subjectModal.html - /TeacherDashboard/components/topicModal.html - /TeacherDashboard/js/main.js - /TeacherDashboard/js/subjects/colors.js - /TeacherDashboard/js/subjects/subjectManager.js - /TeacherDashboard/js/subjects/SubjectModel.js - /TeacherDashboard/js/subjects/SubjectStorage.js - /TeacherDashboard/js/topics/TopicModel.js - /TeacherDashboard/js/topics/topicManager.js - /TeacherDashboard/styles/main.css
This commit is contained in:
committed by
Matthias Grief
parent
3977f48367
commit
2369f7158d
21
TeacherDashboard/js/subjects/colors.js
Normal file
21
TeacherDashboard/js/subjects/colors.js
Normal file
@@ -0,0 +1,21 @@
|
||||
export const subjectColors = {
|
||||
red: { hex: '#FF6B6B', name: 'Rot' },
|
||||
teal: { hex: '#4ECDC4', name: 'Türkis' },
|
||||
blue: { hex: '#45B7D1', name: 'Blau' },
|
||||
green: { hex: '#96CEB4', name: 'Grün' },
|
||||
brown: { hex: '#D4A373', name: 'Braun' },
|
||||
purple: { hex: '#9B5DE5', name: 'Lila' },
|
||||
pink: { hex: '#F15BB5', name: 'Pink' },
|
||||
yellow: { hex: '#FEE440', name: 'Gelb' },
|
||||
lightBlue: { hex: '#00BBF9', name: 'Hellblau' },
|
||||
mint: { hex: '#00F5D4', name: 'Mint' }
|
||||
};
|
||||
|
||||
export function generateColorPalette() {
|
||||
return Object.entries(subjectColors)
|
||||
.map(([key, color]) => ({
|
||||
id: key,
|
||||
hex: color.hex,
|
||||
name: color.name
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user