change text of boursemes"
This commit is contained in:
+36
-3
@@ -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') ?? 'طلا'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user