Skip to content

Commit b136e92

Browse files
committed
feat: change logo
1 parent b015d7c commit b136e92

File tree

9 files changed

+88
-86
lines changed

9 files changed

+88
-86
lines changed

public/co-logo-orchestrating.png

-143 KB
Binary file not shown.

public/locales/en.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"Login": {
3-
"welcomeMessage": "Welcome to openMCP UI",
4-
"description": "Your place to manage your openMCPs, see your installed components and managed resources!",
5-
"learnMore": "Learn more in our documentation",
6-
"signInButton": "Sign in"
2+
"SignInPage": {
3+
"welcomeMessage": "Welcome to ManagedControlPlane UI",
4+
"subtitle": "Your central hub to orchestrate control planes, components, and managed resources",
5+
"learnMoreLink": "Learn about ManagedControlPlanes",
6+
"signInButton": "Sign In"
77
},
88
"Entities": {
99
"ManagedControlPlane": "Managed Control Plane",

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useAuthOnboarding } from './spaces/onboarding/auth/AuthContextOnboardin
33
import '@ui5/webcomponents-icons/dist/AllIcons.d.ts';
44
import { useEffect } from 'react';
55
import { useFrontendConfig } from './context/FrontendConfigContext.tsx';
6-
import LoginView from './views/Login.tsx';
6+
import { SignInPage } from './spaces/onboarding/pages/SignInPage/SignInPage.tsx';
77
import { BusyIndicator } from '@ui5/webcomponents-react';
88
import * as Sentry from '@sentry/react';
99

@@ -22,7 +22,7 @@ function App() {
2222
}
2323

2424
if (!auth.isAuthenticated) {
25-
return <LoginView />;
25+
return <SignInPage />;
2626
}
2727

2828
Sentry.setUser({
55.1 KB
Loading
59.7 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.container {
2+
height: 100vh;
3+
}
4+
5+
.cardContent {
6+
padding: 2rem 3rem;
7+
}
8+
9+
.heading {
10+
margin-bottom: 0.75rem;
11+
}
12+
13+
.description {
14+
font-size: 1.25em;
15+
}
16+
17+
.logo {
18+
width: 240px;
19+
height: 290px;
20+
margin: 3rem;
21+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import { useEffect } from 'react';
2+
import { useTranslation } from 'react-i18next';
3+
import * as Sentry from '@sentry/react';
4+
5+
import { Button, Card, FlexBox, Text, Title } from '@ui5/webcomponents-react';
6+
import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js';
7+
8+
import { useAuthOnboarding } from '../../auth/AuthContextOnboarding';
9+
import { useLink } from '../../../../lib/shared/useLink';
10+
import { useTheme } from '../../../../hooks/useTheme';
11+
12+
import LogoLight from '../../../../assets/images/co-logo-orchestrating.png';
13+
import LogoDark from '../../../../assets/images/co-logo-orchestrating-dark.png';
14+
15+
import styles from './SignInPage.module.css';
16+
17+
export function SignInPage() {
18+
const auth = useAuthOnboarding();
19+
const { documentationHomepage } = useLink();
20+
const { t } = useTranslation();
21+
const { isDarkTheme } = useTheme();
22+
23+
useEffect(() => {
24+
Sentry.addBreadcrumb({
25+
category: 'auth',
26+
message: 'Visit SignInPage',
27+
level: 'info',
28+
});
29+
}, []);
30+
return (
31+
<FlexBox className={styles.container} justifyContent="Center" alignItems="Center" direction="Column">
32+
<FlexBox direction="Column" gap="1em">
33+
<Card>
34+
<FlexBox alignItems="Center" direction="Column" className={styles.cardContent}>
35+
<Title level="H1" size="H2" className={styles.heading}>
36+
{t('SignInPage.welcomeMessage')}
37+
</Title>
38+
39+
<Text className={styles.description}> {t('SignInPage.subtitle')}</Text>
40+
41+
<img className={styles.logo} src={isDarkTheme ? LogoDark : LogoLight} alt="" />
42+
43+
<FlexBox direction="Column" alignItems="Center" gap="1em">
44+
<Button design={ButtonDesign.Emphasized} onClick={() => void auth.login()}>
45+
{t('SignInPage.signInButton')}
46+
</Button>
47+
</FlexBox>
48+
</FlexBox>
49+
</Card>
50+
<FlexBox justifyContent="End">
51+
<a href={documentationHomepage} target="_blank" rel="noreferrer">
52+
<Button tabIndex={-1} design="Transparent">
53+
{t('SignInPage.learnMoreLink')}
54+
</Button>
55+
</a>
56+
</FlexBox>
57+
</FlexBox>
58+
</FlexBox>
59+
);
60+
}

src/views/Login.tsx

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

src/views/login.css

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

0 commit comments

Comments
 (0)