From 7e76331796ceed98a6d56798b46f3e3d17894aed Mon Sep 17 00:00:00 2001 From: "mr.sabri" Date: Wed, 19 Aug 2026 11:31:30 +0330 Subject: [PATCH] edit some things in landing page --- src/pages/login.vue | 8 +- src/utils/config.ts | 22 +++-- .../aboutUs/desktop/DesktopAboutUsView.vue | 32 ++++--- .../desktop/styles/desktop-about-us.less | 86 ++++++++++++------- 4 files changed, 98 insertions(+), 50 deletions(-) diff --git a/src/pages/login.vue b/src/pages/login.vue index bb688d9..284dc36 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -1,5 +1,5 @@ diff --git a/src/utils/config.ts b/src/utils/config.ts index a1f7f81..376a6a4 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -39,16 +39,28 @@ export function getLoginAppUrl() { /** صفحه Login اپ اصلی با فلگ نصب PWA */ export function getLoginInstallPwaUrl() { try { - const loginUrl = getLoginAppUrl() - const origin = import.meta.client - ? new URL(loginUrl, window.location.origin).origin - : new URL(loginUrl).origin - return `${origin}/login?installPwa=true` + return `${getLoginAppOrigin()}/login?installPwa=true` } catch { return 'https://app.boursemes.com/login?installPwa=true' } } +/** صفحه Login اپ اصلی روی بخش ثبت‌نام */ +export function getLoginRegisterUrl() { + try { + return `${getLoginAppOrigin()}/login?register=true` + } catch { + return 'https://app.boursemes.com/login?register=true' + } +} + +function getLoginAppOrigin() { + const loginUrl = getLoginAppUrl() + return import.meta.client + ? new URL(loginUrl, window.location.origin).origin + : new URL(loginUrl).origin +} + /** boursecu-only branch */ export function isBoursecuProject() { return true diff --git a/src/views/base/aboutUs/desktop/DesktopAboutUsView.vue b/src/views/base/aboutUs/desktop/DesktopAboutUsView.vue index 0821759..bfa4616 100644 --- a/src/views/base/aboutUs/desktop/DesktopAboutUsView.vue +++ b/src/views/base/aboutUs/desktop/DesktopAboutUsView.vue @@ -24,7 +24,7 @@ - @@ -435,7 +435,7 @@ - @@ -786,7 +786,7 @@