Abdullahrasheed45 commited on
Commit
5be2e11
·
verified ·
1 Parent(s): c856491

Create index.ts

Browse files
Files changed (1) hide show
  1. src/constants/index.ts +54 -0
src/constants/index.ts ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const THEME = {
2
+ beigeLight: "#FFFAEB",
3
+ beigeMedium: "#FFF0C3",
4
+ beigeDark: "#E9E2CB",
5
+ mistralOrange: "#FF8205",
6
+ mistralOrangeDark: "#FA500F",
7
+ mistralOrangeLight: "#FFAF00",
8
+ mistralYellow: "#FFD800",
9
+ textBlack: "#1E1E1E",
10
+ black: "#000000",
11
+ white: "#FFFFFF",
12
+ errorRed: "#E10500",
13
+ } as const;
14
+
15
+ export const LAYOUT = {
16
+ MARGINS: {
17
+ DEFAULT: 20,
18
+ BOTTOM: 20,
19
+ },
20
+ DIMENSIONS: {
21
+ PROMPT_WIDTH: 420,
22
+ CAPTION_WIDTH: 150,
23
+ CAPTION_HEIGHT: 45,
24
+ },
25
+ TRANSITIONS: {
26
+ SCALE_DURATION: 200,
27
+ OPACITY_DURATION: 200,
28
+ TRANSFORM_DURATION: 400,
29
+ },
30
+ } as const;
31
+
32
+ export const TIMING = {
33
+ FRAME_CAPTURE_DELAY: 50,
34
+ VIDEO_RECOVERY_INTERVAL: 1000,
35
+ RESIZE_DEBOUNCE: 50,
36
+ SUGGESTION_DELAY: 50,
37
+ } as const;
38
+
39
+ const DEFAULT_PROMPT = "Describe what you see in one sentence.";
40
+ export const PROMPTS = {
41
+ default: DEFAULT_PROMPT,
42
+ placeholder: DEFAULT_PROMPT,
43
+
44
+ suggestions: [
45
+ DEFAULT_PROMPT,
46
+ "What is the color of my shirt?",
47
+ "Identify any text or written content visible.",
48
+ "What emotions or actions are being portrayed?",
49
+ "Name the object I am holding in my hand.",
50
+ ],
51
+
52
+ fallbackCaption: "Waiting for first caption...",
53
+ processingMessage: "Starting analysis...",
54
+ } as const;