mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-30 04:08:12 +00:00
- Introduced `landing-copy.ts` containing text for the public landing page, supporting both English and Amharic languages. - Added `landing.css` for styling the landing page, ensuring scoped styles to prevent conflicts with other app styles. - Implemented smooth scrolling and animations for a better user experience.
14 lines
468 B
TypeScript
14 lines
468 B
TypeScript
import Cookies from 'js-cookie';
|
|
import { LandingPage } from '@ema-platform/ui';
|
|
import { authStorage } from '@ema-platform/auth';
|
|
|
|
/**
|
|
* Public `/` — mounts the shared landing page. Backoffice has no /signup
|
|
* (enableSignup: false) and no /verify route, so those props are omitted.
|
|
*/
|
|
export function LandingRoute() {
|
|
const token = authStorage.getToken() ?? Cookies.get('auth-token');
|
|
|
|
return <LandingPage primaryHref={token ? '/dashboard' : '/login'} />;
|
|
}
|