-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ts
More file actions
146 lines (135 loc) · 3.66 KB
/
config.ts
File metadata and controls
146 lines (135 loc) · 3.66 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
import localFont from 'next/font/local'
import {Plus_Jakarta_Sans} from 'next/font/google'
import {anthropic} from '@ai-sdk/anthropic'
// Fonts
export const plusJakartaSans = Plus_Jakarta_Sans({
subsets: ['latin'],
weight: ['200', '300', '400', '500', '600', '700', '800'],
style: ['normal', 'italic'],
display: 'swap',
variable: '--font-plus-jakarta-sans'
})
export const modelica = localFont({
src: [
// Regular fonts
{
path: './app/fonts/modelica/BwModelicaSS01-Hairline.woff2',
weight: '100',
style: 'normal'
},
{
path: './app/fonts/modelica/BwModelicaSS01-Thin.woff2',
weight: '200',
style: 'normal'
},
{
path: './app/fonts/modelica/BwModelicaSS01-Light.woff2',
weight: '300',
style: 'normal'
},
{
path: './app/fonts/modelica/BwModelicaSS01-Regular.woff2',
weight: '400',
style: 'normal'
},
{
path: './app/fonts/modelica/BwModelicaSS01-Medium.woff2',
weight: '500',
style: 'normal'
},
{
path: './app/fonts/modelica/BwModelicaSS01-Bold.woff2',
weight: '700',
style: 'normal'
},
{
path: './app/fonts/modelica/BwModelicaSS01-ExtraBold.woff2',
weight: '800',
style: 'normal'
},
{
path: './app/fonts/modelica/BwModelicaSS01-Black.woff2',
weight: '900',
style: 'normal'
},
// Italic fonts
{
path: './app/fonts/modelica/BwModelicaSS01-HairlineItalic.woff2',
weight: '100',
style: 'italic'
},
{
path: './app/fonts/modelica/BwModelicaSS01-ThinItalic.woff2',
weight: '200',
style: 'italic'
},
{
path: './app/fonts/modelica/BwModelicaSS01-LightItalic.woff2',
weight: '300',
style: 'italic'
},
{
path: './app/fonts/modelica/BwModelicaSS01-RegularItalic.woff2',
weight: '400',
style: 'italic'
},
{
path: './app/fonts/modelica/BwModelicaSS01-MediumItalic.woff2',
weight: '500',
style: 'italic'
},
{
path: './app/fonts/modelica/BwModelicaSS01-BoldItalic.woff2',
weight: '700',
style: 'italic'
},
{
path: './app/fonts/modelica/BwModelicaSS01-ExtraBoldItalic.woff2',
weight: '800',
style: 'italic'
},
{
path: './app/fonts/modelica/BwModelicaSS01-BlackItalic.woff2',
weight: '900',
style: 'italic'
}
]
})
// Supporting services
export const defaultUrl = process.env.VERCEL_ENV === 'production'
? 'https://letraz.app'
: process.env.MAIN_URL || 'http://localhost:3000'
export const portfolio = 'https://subhajit.lol'
export const ghostBlogUrl = 'https://blog.letraz.app'
export const discordBotUrl = 'http://64.227.146.129:4000'
// Socials
export const discordHandle = 'https://discord.gg/jTkyKCYz2M'
export const githubHandle = 'https://github.com/pingSubhajit/letraz'
export const twitterHandle = 'https://x.com/LetrazApp'
export const linkedinHandle = 'https://www.linkedin.com/company/108621680'
export const instagramHandle = 'https://www.instagram.com/letraz.app/'
export const supportEmail = 'hello@letraz.app'
// Integrations
export const rizeUrl = 'https://rize.so'
export const rizeAdminApiUrl = `${rizeUrl}/api/admin`
// AI
export const model = anthropic('claude-3-haiku-20240307')
// Misc.
export const discordAnnouncementChannelId = '1325855779126902884'
// Password strength configuration
export const passwordStrengthConfig = {
requirements: {
minLength: 8,
requireUppercase: true,
requireLowercase: true,
requireNumbers: true,
requireSpecialChars: true
},
strengthLevels: {
weak: {minScore: 0, color: 'bg-red-500', label: 'Weak'},
fair: {minScore: 2, color: 'bg-orange-500', label: 'Fair'},
good: {minScore: 3, color: 'bg-yellow-500', label: 'Good'},
strong: {minScore: 4, color: 'bg-green-500', label: 'Strong'},
veryStrong: {minScore: 5, color: 'bg-emerald-500', label: 'Very Strong'}
}
}