Skip to content

Commit 4afdf35

Browse files
authored
Redesign PlatformPlatform landing page with minimalistic approach (#791)
### Summary & Motivation Redesign the landing page with a minimalistic approach to provide a cleaner, more professional first impression. The previous landing page contained multiple feature sections, community content, and technology showcases that were removed in favor of a simple welcome message encouraging users to customize the page with their own branding. - Remove all feature sections, community section, technology sections, and CTA sections (10 component files deleted) - Create new reusable `PublicNavigation` and `PublicFooter` components for consistent public-facing pages - Add support for routes to opt out of `AuthSyncModal` via `disableAuthSync` context flag - Fix tenant switching to preserve the current path after navigation (important for landing page experience) - Change login/signup layout breakpoint from `md` to `lg` for better responsive behavior - Update footer attribution to "Built with PlatformPlatform" with HTML comment The new landing page displays a welcome message, navigation with login/signup buttons, theme/locale switchers, and a footer with social links. This provides a minimal starting point that downstream projects can easily customize. ### Checklist - [x] I have added tests, or done manual regression tests - [x] I have updated the documentation, if necessary
2 parents 6eea486 + 228aece commit 4afdf35

File tree

26 files changed

+317
-837
lines changed

26 files changed

+317
-837
lines changed

application/account-management/WebApp/federated-modules/common/TenantSelector.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { t } from "@lingui/core/macro";
22
import { Trans } from "@lingui/react/macro";
33
import type { UserInfo } from "@repo/infrastructure/auth/AuthenticationProvider";
4+
import { loggedInPath } from "@repo/infrastructure/auth/constants";
45
import { useUserInfo } from "@repo/infrastructure/auth/hooks";
56
import { Badge } from "@repo/ui/components/Badge";
67
import { Button } from "@repo/ui/components/Button";
@@ -270,11 +271,10 @@ export default function TenantSelector({ onShowInvitationDialog, variant = "defa
270271
setIsSwitching(true);
271272
},
272273
onSuccess: () => {
273-
// Keep the loader visible briefly before redirecting
274+
// Stay on the same path, but default to loggedInPath if on root
274275
// Don't set isSwitching to false here - let the redirect handle it
275-
setTimeout(() => {
276-
window.location.href = "/";
277-
}, 250);
276+
const targetPath = window.location.pathname === "/" ? loggedInPath : window.location.pathname;
277+
window.location.href = targetPath;
278278
},
279279
onError: () => {
280280
// Hide the loader on error

application/account-management/WebApp/federated-modules/sideMenu/FederatedSideMenu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { t } from "@lingui/core/macro";
2+
import { loggedInPath } from "@repo/infrastructure/auth/constants";
23
import { useUserInfo } from "@repo/infrastructure/auth/hooks";
34
import { SideMenu } from "@repo/ui/components/SideMenu";
45
import { useState } from "react";
@@ -30,10 +31,9 @@ export default function FederatedSideMenu({ currentSystem }: Readonly<FederatedS
3031
setIsSwitching(true);
3132
},
3233
onSuccess: () => {
33-
// Keep the loader visible briefly before redirecting
34-
setTimeout(() => {
35-
window.location.href = "/";
36-
}, 250);
34+
// Stay on the same path, but default to loggedInPath if on root
35+
const targetPath = globalThis.location.pathname === "/" ? loggedInPath : globalThis.location.pathname;
36+
globalThis.location.href = targetPath;
3737
},
3838
onError: () => {
3939
setIsSwitching(false);

application/account-management/WebApp/routes/(index)/-components/CommunitySection.tsx

Lines changed: 0 additions & 72 deletions
This file was deleted.

application/account-management/WebApp/routes/(index)/-components/CtaSection.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

application/account-management/WebApp/routes/(index)/-components/CtaSection2.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

application/account-management/WebApp/routes/(index)/-components/CtaSection3.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

application/account-management/WebApp/routes/(index)/-components/FeatureSection.tsx

Lines changed: 0 additions & 99 deletions
This file was deleted.

application/account-management/WebApp/routes/(index)/-components/FeatureSection2.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)