change text of boursemes"

This commit is contained in:
2026-06-01 09:48:39 +03:30
parent 6827cd1ab5
commit b0dfe51239
7 changed files with 109 additions and 9 deletions
+36 -3
View File
@@ -13,6 +13,25 @@ export function isBoursecuProject() {
return getConfigApp('name') === 'boursecu'
}
export const BOURSECU_BRAND_RED = '#bc3c3b'
export const BOURSECU_BRAND_NAV = '#133050'
export function getProjectBrandRed() {
return isBoursecuProject() ? BOURSECU_BRAND_RED : null
}
export function resolveProjectColor(color?: string | null) {
if (!color || !isBoursecuProject()) {
return color
}
if (color === 'red' || color.startsWith('red-')) {
return BOURSECU_BRAND_RED
}
return color
}
export function getProjectLoginLogo(avatar?: string | null) {
if (isBoursecuProject()) {
return boursecuLogo
@@ -26,13 +45,13 @@ export function getProjectLoginTaglineLines() {
}
return [
'بورس مس',
'مرجع هوشمند معاملات و سرمایه‌گذاری در صنعت مس',
'بورس مس مرجع هوشمند معاملات',
' و سرمایه‌گذاری در صنعت مس',
]
}
export function getProjectSplashBackground() {
return isBoursecuProject() ? '#133050' : '#ffffff'
return isBoursecuProject() ? BOURSECU_BRAND_NAV : '#ffffff'
}
export function getProjectFontFamily() {
@@ -46,6 +65,20 @@ export function applyProjectFont() {
}
}
export function applyProjectTheme() {
applyProjectFont()
if (!isBoursecuProject()) {
return
}
document.documentElement.classList.add('project-boursecu')
document.documentElement.style.setProperty('--App-brand-red', BOURSECU_BRAND_RED)
document.documentElement.style.setProperty('--App-brand-red-50', '#f8ecec')
document.documentElement.style.setProperty('--App-brand-red-100', '#f0d8d8')
document.documentElement.style.setProperty('--App-brand-red-700', '#963130')
}
export function getReferralShareTitle(projectName?: string | null) {
return projectName ?? getConfigApp('name_fa') ?? getConfigApp('name') ?? 'طلا'
}