aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/constants.ts
blob: b6f06679c0f2ebb7a3518734f62d7c42bd257283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export const GITHUB_API = 'https://api.github.com/graphql';

export const PERSONAL_LINKS = {
  GITHUB: 'https://github.com/ArmandPhilippot',
  GITLAB: 'https://gitlab.com/ArmandPhilippot',
  LINKEDIN: 'https://www.linkedin.com/in/armandphilippot',
} as const;

/**
 * App routes.
 *
 * All static routes should be configured here to avoid 404 if a route changes.
 */
export const ROUTES = {
  ARTICLE: '/article',
  BLOG: '/blog',
  CONTACT: '/contact',
  CV: '/cv',
  HOME: '/',
  LEGAL_NOTICE: '/mentions-legales',
  NOT_FOUND: '/404',
  PROJECTS: '/projets',
  RSS: '/feed',
  SEARCH: '/recherche',
  THEMATICS: '/thematique',
  TOPICS: '/sujet',
} as const;

export const PAGINATED_ROUTE_PREFIX = '/page';

// cSpell:ignore legales thematique developpement

export const ARTICLE_ID = 'article';
export const AUTHOR_ID = 'branding';
export const COMMENT_ID_PREFIX = 'comment-';
export const COMMENTS_SECTION_ID = 'comments';

export const STORAGE_KEY = {
  ACKEE: 'ackee-tracking',
  MOTION: 'reduced-motion',
  PRISM: 'prismjs-color-scheme',
  THEME: 'theme',
} as const;

export const PRISM_THEME_ATTRIBUTE = 'data-prismjs-color-scheme-current';

export const VALID_THEMES = ['dark', 'light', 'system'] as const;