Skip to content

Commit e9aca02

Browse files
authored
chore : init finale (#9)
1 parent 9f34835 commit e9aca02

File tree

6 files changed

+42
-1
lines changed

6 files changed

+42
-1
lines changed

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import styles from '../styles/register.module.scss';
1212
export default function Page() {
1313
const router = useRouter();
1414
const [selectedTemplate, setSelectedTemplate] = useState<TemplateName>(
15-
TemplateName.CITY
15+
TemplateName.CITD
1616
);
1717
const { entry, updateFullName, updateId, updateIsLoading, updateTemplate } =
1818
useEntryStore();

config/citd.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 CitdTemplate: TemplateInformations = {
4+
eventId: 1,
5+
eventName: 'Code In The Dark #2',
6+
referenceImage: '/templates/citd/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+
logo-zenika.jpeg (w 350 x h 107)
25+
logo-indy.jpeg (w 200 x h 102)
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,5 +1,6 @@
11
import {ModeTemplate} from "./mode.template";
22
import {CityTemplate} from "./city.template";
3+
import {CitdTemplate} from "./citd.template";
34

45
export interface TemplateInformations {
56
eventId: number;
@@ -14,6 +15,7 @@ export interface TemplateInformations {
1415
export enum TemplateName {
1516
MODE= 'MODE',
1617
CITY = 'CITY',
18+
CITD = 'CITD',
1719
}
1820

1921
export type TemplateNameList = keyof typeof TemplateName;
@@ -24,4 +26,5 @@ export const templatesDictionary: Record<
2426
> = {
2527
MODE: ModeTemplate,
2628
CITY: CityTemplate,
29+
CITD: CitdTemplate
2730
};

public/logo-indy.png

14.4 KB
Loading

public/logo-zenika.png

22.8 KB
Loading

public/templates/citd/page.jpg

827 KB
Loading

0 commit comments

Comments
 (0)