-
Notifications
You must be signed in to change notification settings - Fork 518
Expand file tree
/
Copy pathconstants.ts
More file actions
47 lines (41 loc) · 2.19 KB
/
constants.ts
File metadata and controls
47 lines (41 loc) · 2.19 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
41
42
43
44
45
46
47
import { env } from '@codebuff/common/env'
// Get the website URL from environment or use default
export const WEBSITE_URL = env.NEXT_PUBLIC_CODEBUFF_APP_URL
// Codebuff ASCII Logo - compact version for 80-width terminals
export const LOGO = `
██████╗ ██████╗ ██████╗ ███████╗██████╗ ██╗ ██╗███████╗███████╗
██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗██║ ██║██╔════╝██╔════╝
██║ ██║ ██║██║ ██║█████╗ ██████╔╝██║ ██║█████╗ █████╗
██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗██║ ██║██╔══╝ ██╔══╝
╚██████╗╚██████╔╝██████╔╝███████╗██████╔╝╚██████╔╝██║ ██║
╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝
`
// UI Color constants
export const LINK_COLOR_DEFAULT = '#3b82f6'
export const LINK_COLOR_CLICKED = '#1e40af'
export const COPY_SUCCESS_COLOR = '#22c55e'
export const COPY_ERROR_COLOR = '#ef4444'
export const WARNING_COLOR = '#ef4444'
// Shadow/border characters that receive the sheen animation effect
export const SHADOW_CHARS = new Set([
'╚',
'═',
'╝',
'║',
'╔',
'╗',
'╠',
'╣',
'╦',
'╩',
'╬',
])
// Modal sizing constants
export const DEFAULT_TERMINAL_HEIGHT = 24
export const MODAL_VERTICAL_MARGIN = 2 // Space for top positioning (1) + bottom margin (1)
export const MAX_MODAL_BASE_HEIGHT = 22 // Maximum height when no warning banner
export const WARNING_BANNER_HEIGHT = 3 // Height of invalid credentials banner (padding + text + padding)
// Sheen animation constants
export const SHEEN_WIDTH = 5
export const SHEEN_STEP = 2 // Advance 2 positions per frame for efficiency
export const SHEEN_INTERVAL_MS = 150