Skip to content

Commit

Permalink
feat(templates): add DevFest Nantes 2024 templates (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
CruuzAzul authored Nov 10, 2024
1 parent 9d802b3 commit b893559
Show file tree
Hide file tree
Showing 11 changed files with 2,024 additions and 1,558 deletions.
12 changes: 11 additions & 1 deletion config/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ import {WaveTemplate} from "./wave.template";
import {ModeTemplate} from "./mode.template";
import {CityTemplate} from "./city.template";
import {CitdTemplate} from "./citd.template";
import {TheDarkChapterOneTemplate} from './theDarkChapterOne.template';
import {TheDarkChapterTwoTemplate} from './theDarkChapterTwo.template';
import {TheDarkChapterThreeTemplate} from './theDarkChapterThree.template';


export interface TemplateInformations {
eventId: number;
Expand Down Expand Up @@ -44,6 +48,9 @@ export enum TemplateName {
MODE= 'MODE',
CITY = 'CITY',
CITD = 'CITD',
THE_DARK_CHAPTER_ONE = 'THE_DARK_CHAPTER_ONE',
THE_DARK_CHAPTER_TWO = 'THE_DARK_CHAPTER_TWO',
THE_DARK_CHAPTER_THREE = 'THE_DARK_CHAPTER_THREE'
}

export type TemplateNameList = keyof typeof TemplateName;
Expand All @@ -68,5 +75,8 @@ export const templatesDictionary: Record<
WAVE: WaveTemplate,
MODE: ModeTemplate,
CITY: CityTemplate,
CITD: CitdTemplate
CITD: CitdTemplate,
THE_DARK_CHAPTER_ONE: TheDarkChapterOneTemplate,
THE_DARK_CHAPTER_TWO: TheDarkChapterTwoTemplate,
THE_DARK_CHAPTER_THREE: TheDarkChapterThreeTemplate
};
39 changes: 39 additions & 0 deletions config/theDarkChapterOne.template.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { TemplateInformations } from './templates';

export const TheDarkChapterOneTemplate: TemplateInformations = {
eventId: 1,
eventName: 'DevFest Nantes 2024',
referenceImage: '/templates/the-dark-chapter/page.png',
instructions: `
--- The rules ---
1) No previews - of either results or assets!
2) Stay in this editor at all times
3) No measurement tools
4) Stop coding when the time's up
5) After the round is over, press "Finish"
Good luck and most important of all : have fun ! 🥳
--- Assets ---
⚠️ Remember to resize images if necessary
⚠️ Beware of file extensions !
⚠️ All images have straight borders, no radius !
And the blood already has the light shadow.
./templates/the-dark-chapter/logo-devfest.png (w 655 x h 228)
./templates/the-dark-chapter/blood.png (w 1512 x h 315)
--- Font ---
'Helvetica' is loaded
--- Colors ---
dark-red: #C03F40
light-red: #EB4A4B
`,
showPreview: true,
demoMode: true,
};
39 changes: 39 additions & 0 deletions config/theDarkChapterThree.template.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { TemplateInformations } from './templates';

export const TheDarkChapterThreeTemplate: TemplateInformations = {
eventId: 1,
eventName: 'DevFest Nantes 2024',
referenceImage: '/templates/the-dark-chapter/page-3.png',
instructions: `
--- The rules ---
1) No previews - of either results or assets!
2) Stay in this editor at all times
3) No measurement tools
4) Stop coding when the time's up
5) After the round is over, press "Finish"
Good luck and most important of all : have fun ! 🥳
--- Assets ---
⚠️ Remember to resize images if necessary
⚠️ Beware of file extensions !
⚠️ All images have straight borders, no radius !
And the blood already has the light shadow.
./templates/the-dark-chapter/logo-devfest.png (w 655 x h 228)
./templates/the-dark-chapter/blood.png (w 1512 x h 315)
--- Font ---
'Helvetica' is loaded
--- Colors ---
dark-red: #C03F40
light-red: #EB4A4B
`,
showPreview: true,
demoMode: true,
};
39 changes: 39 additions & 0 deletions config/theDarkChapterTwo.template.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { TemplateInformations } from './templates';

export const TheDarkChapterTwoTemplate: TemplateInformations = {
eventId: 1,
eventName: 'DevFest Nantes 2024',
referenceImage: '/templates/the-dark-chapter/page-2.png',
instructions: `
--- The rules ---
1) No previews - of either results or assets!
2) Stay in this editor at all times
3) No measurement tools
4) Stop coding when the time's up
5) After the round is over, press "Finish"
Good luck and most important of all : have fun ! 🥳
--- Assets ---
⚠️ Remember to resize images if necessary
⚠️ Beware of file extensions !
⚠️ All images have straight borders, no radius !
And the blood already has the light shadow.
./templates/the-dark-chapter/logo-devfest.png (w 655 x h 228)
./templates/the-dark-chapter/blood.png (w 1512 x h 315)
--- Font ---
'Helvetica' is loaded
--- Colors ---
dark-red: #C03F40
light-red: #EB4A4B
`,
showPreview: true,
demoMode: true,
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"eslint-config-prettier": "9.1.0",
"prettier": "3.2.5",
"typescript": "5.3.3"
}
},
"packageManager": "[email protected]+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903"
}
Loading

0 comments on commit b893559

Please sign in to comment.