Skip to content

Commit 9f34835

Browse files
authored
chore : init poule 2 (#8)
1 parent 9fb0ddb commit 9f34835

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

config/mode.template.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { TemplateInformations } from './templates';
2+
3+
export const ModeTemplate: TemplateInformations = {
4+
eventId: 1,
5+
eventName: 'Code In The Dark #2',
6+
referenceImage: '/templates/mode/page.jpg',
7+
instructions: `
8+
--- The rules ---
9+
10+
1) No previews - of either results or assets!
11+
2) Stay in this editor at all times
12+
3) No measurement tools
13+
4) Stop coding when the time's up
14+
5) After the round is over, press "Finish"
15+
16+
Good luck and most important of all : have fun ! 🥳
17+
18+
--- Assets ---
19+
20+
⚠️ Remember to resize images if necessary
21+
⚠️ Beware of file extensions !
22+
⚠️ All images have straight borders, no radius !
23+
24+
img-woman.jpeg (w 900 x h 1350)
25+
img-keyboard.jpeg (w 800 x h 367)
26+
27+
--- Font ---
28+
29+
'Helvetica' is loaded
30+
31+
--- Colors ---
32+
33+
black: #000000
34+
white: #FFFFFF
35+
`,
36+
showPreview: true,
37+
demoMode: true,
38+
};

config/templates.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {ModeTemplate} from "./mode.template";
12
import {CityTemplate} from "./city.template";
23

34
export interface TemplateInformations {
@@ -11,6 +12,7 @@ export interface TemplateInformations {
1112
}
1213

1314
export enum TemplateName {
15+
MODE= 'MODE',
1416
CITY = 'CITY',
1517
}
1618

@@ -20,5 +22,6 @@ export const templatesDictionary: Record<
2022
TemplateNameList,
2123
TemplateInformations
2224
> = {
25+
MODE: ModeTemplate,
2326
CITY: CityTemplate,
2427
};

public/img-keyboard.jpeg

61.1 KB
Loading

public/img-woman.jpeg

163 KB
Loading

public/templates/mode/page.jpg

1.87 MB
Loading

0 commit comments

Comments
 (0)