Skip to content

Commit a1ed1a0

Browse files
committed
List to review
1 parent a33628b commit a1ed1a0

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

packages/manfred2html/src/engine/cv-jedi-minimalism/html-parts/html-document-start/html-document-start.part.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,25 @@ import ejs from 'ejs';
22
import { HexColor } from '@/model';
33
import htmlDocumentStartTemplate from './html-document-start.ejs?raw';
44

5-
export const generateHtmlDocumentStart = (color: HexColor): string => ejs.render(htmlDocumentStartTemplate, { color });
5+
export const generateHtmlDocumentStart = (color: HexColor): string => {
6+
const jediColor = () => {
7+
switch (color) {
8+
case HexColor.default:
9+
return '#11383A';
10+
case HexColor.red:
11+
return '#6A0B18';
12+
case HexColor.green:
13+
return '#0D5127';
14+
case HexColor.orange:
15+
return '#5F2816';
16+
case HexColor.yellow:
17+
return '#66570C';
18+
case HexColor.dark:
19+
return '#0D1418';
20+
default:
21+
return '#11383A';
22+
}
23+
};
24+
25+
return ejs.render(htmlDocumentStartTemplate, { color: jediColor() });
26+
};

0 commit comments

Comments
 (0)