From 90f3c3a79e6bdef33b73e89ef1963af10bb99bef Mon Sep 17 00:00:00 2001 From: sakshigupta12feb Date: Mon, 19 Jan 2026 21:16:28 +0530 Subject: [PATCH] Reverted the header sub header logic (#2337) * updated the text * updated margin --------- Co-authored-by: Sakshi Gupta --- src/Explorer/SplashScreen/SplashScreen.less | 2 +- src/Explorer/SplashScreen/SplashScreen.tsx | 24 ++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/Explorer/SplashScreen/SplashScreen.less b/src/Explorer/SplashScreen/SplashScreen.less index b9474c6c3..4c1cefe77 100644 --- a/src/Explorer/SplashScreen/SplashScreen.less +++ b/src/Explorer/SplashScreen/SplashScreen.less @@ -54,6 +54,6 @@ .mainButtonsContainer { display: flex; gap: 0 16px; - margin-bottom: 10px + margin: 40px auto } \ No newline at end of file diff --git a/src/Explorer/SplashScreen/SplashScreen.tsx b/src/Explorer/SplashScreen/SplashScreen.tsx index f87bd3ee8..7376f5c8e 100644 --- a/src/Explorer/SplashScreen/SplashScreen.tsx +++ b/src/Explorer/SplashScreen/SplashScreen.tsx @@ -164,6 +164,23 @@ export const SplashScreen: React.FC = ({ explorer }) => { const container = explorer; const subscriptions: Array<{ dispose: () => void }> = []; + let title: string; + let subtitle: string; + + switch (userContext.apiType) { + case "Postgres": + title = "Welcome to Azure Cosmos DB for PostgreSQL"; + subtitle = "Get started with our sample datasets, documentation, and additional tools."; + break; + case "VCoreMongo": + title = "Welcome to Azure DocumentDB (with MongoDB compatibility)"; + subtitle = "Get started with our sample datasets, documentation, and additional tools."; + break; + default: + title = "Welcome to Azure Cosmos DB"; + subtitle = "Globally distributed, multi-model database service for any scale"; + } + React.useEffect(() => { subscriptions.push( { @@ -902,10 +919,11 @@ export const SplashScreen: React.FC = ({ explorer }) => { return (
-

- Welcome to Azure Cosmos DB +

+ {title} +

-
Globally distributed, multi-model database service for any scale
+
{subtitle}
{getSplashScreenButtons()} {useCarousel.getState().showCoachMark && (