Repository navigation
Expand file tree
/
Copy pathindex.ts
More file actions
40 lines (36 loc) · 1.34 KB
/
Copy pathindex.ts
File metadata and controls
40 lines (36 loc) · 1.34 KB
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
/** Time delays (in milliseconds) */
export const DELAYS = {
/** Debounce delay for console logo */
CONSOLE_LOGO_DEBOUNCE: 1000,
/** Delay before showing project video on hover */
PROJECT_HOVER_VIDEO: 1000,
/** Delay for avatar sneeze debounce */
AVATAR_SNEEZE_DEBOUNCE: 100,
/** Initial delay for force star animation */
STAR_ANIMATION_INITIAL: 1000,
} as const;
/** Trigger thresholds */
export const THRESHOLDS = {
/** Number of hovers before triggering sneeze */
SNEEZE_TRIGGER_INTERVAL: 5,
/** Total sneezes before triggering aaaahhhh */
AAAAHHHH_TRIGGER_COUNT: 6,
/** Minimum number of stars before forcing animation */
MIN_STARS_FOR_ANIMATION: 15,
} as const;
/** Network performance thresholds */
export const NETWORK = {
/** Network types considered slow */
SLOW_NETWORK_TYPES: ['slow-2g', '2g', '3g'] as const,
} as const;
/** Animation durations (in milliseconds) */
export const ANIMATIONS = {
/** How long the avatar holds the first sneeze frame before advancing to the second */
SNEEZE_STAGE_1: 500,
/** How long the avatar holds the second sneeze frame before advancing to the third */
SNEEZE_STAGE_2: 300,
/** How long the avatar holds the third sneeze frame before returning to the default image */
SNEEZE_STAGE_3: 1000,
} as const;
/** The maximum number of stars to render in the background */
export const MAX_STARS = 600;