Skip to content

Commit 2baa678

Browse files
committed
chore: remove Logto signature branding
1 parent 66927f5 commit 2baa678

9 files changed

Lines changed: 2 additions & 279 deletions

File tree

packages/account/src/App.module.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@
100100
position: relative;
101101
background: var(--color-bg-body);
102102
}
103-
104-
.signature {
105-
margin: _.unit(10) 0 _.unit(2);
106-
}
107103
}
108104

109105
:global(body.desktop) {
@@ -121,14 +117,6 @@
121117
box-shadow: var(--color-shadow-2);
122118
}
123119

124-
.signature {
125-
position: absolute;
126-
bottom: 0;
127-
transform: translateY(calc(100% + _.unit(7)));
128-
// Have to use padding instead of margin. Overflow margin spacing will be ignored by the browser.
129-
padding-bottom: _.unit(7);
130-
}
131-
132120
@media only screen and (max-width: 800px) {
133121
.main:not(.cardMain) {
134122
width: auto;

packages/account/src/App.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import LogtoSignature from '@experience/shared/components/LogtoSignature';
21
import { LogtoProvider, ReservedScope, useLogto, UserScope } from '@logto/react';
32
import { accountCenterApplicationId, SignInIdentifier } from '@logto/schemas';
43
import classNames from 'classnames';
@@ -189,8 +188,7 @@ export const Main = () => {
189188
};
190189

191190
const Layout = () => {
192-
const { accountCenterSettings, experienceSettings, theme, platform } = useContext(PageContext);
193-
const hideLogtoBranding = experienceSettings?.hideLogtoBranding === true;
191+
const { accountCenterSettings, experienceSettings, platform } = useContext(PageContext);
194192
const { pathname } = useLocation();
195193
const showsSecurityPage = hasVisibleSecuritySection(accountCenterSettings, experienceSettings);
196194
const hasProfilePage = isDevFeaturesEnabled;
@@ -245,12 +243,6 @@ const Layout = () => {
245243
<Main />
246244
</LogtoErrorBoundary>
247245
</ErrorBoundary>
248-
{!isFullPage && !hideLogtoBranding && (
249-
<LogtoSignature
250-
className={classNames(styles.signature, layoutClassNames.signature)}
251-
theme={theme}
252-
/>
253-
)}
254246
</main>
255247
</AccountLayoutProvider>
256248
</div>

packages/account/src/components/PageFooter/index.module.scss

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838
}
3939
}
4040

41-
.signature {
42-
flex-shrink: 0;
43-
max-width: 100%;
44-
}
45-
4641
:global(body.mobile) {
4742
.footer {
4843
flex-wrap: wrap;

packages/account/src/components/PageFooter/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import LogtoSignature from '@experience/shared/components/LogtoSignature';
21
import { useContext } from 'react';
32
import { useTranslation } from 'react-i18next';
43

@@ -8,8 +7,7 @@ import styles from './index.module.scss';
87

98
const PageFooter = () => {
109
const { t } = useTranslation();
11-
const { theme, experienceSettings } = useContext(PageContext);
12-
const hideLogtoBranding = experienceSettings?.hideLogtoBranding === true;
10+
const { experienceSettings } = useContext(PageContext);
1311
const { termsOfUseUrl, privacyPolicyUrl, supportEmail, supportWebsiteUrl } =
1412
experienceSettings ?? {};
1513
// Use `||` to treat empty string as missing so the mailto fallback works
@@ -37,7 +35,6 @@ const PageFooter = () => {
3735
</a>
3836
)}
3937
</div>
40-
{!hideLogtoBranding && <LogtoSignature className={styles.signature} theme={theme} />}
4138
</footer>
4239
);
4340
};

packages/account/src/constants/layout.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export const layoutClassNames = Object.freeze({
1616
cardContainer: 'logto_ac-card-container',
1717
/** Card-style `<main>` inside the card container. */
1818
cardMain: 'logto_ac-card-main',
19-
/** Logto signature / branding footer. */
20-
signature: 'logto_ac-signature',
2119
/** Top-level page header (logo + app name bar). */
2220
pageHeader: 'logto_ac-page-header',
2321
/** Page title text (on Security / Home page). */

packages/experience/src/Layout/AppLayout/index.module.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
position: relative;
2929
background: var(--color-bg-body);
3030
}
31-
32-
.signature {
33-
margin: _.unit(10) 0 _.unit(2);
34-
}
3531
}
3632

3733
:global(body.desktop) {
@@ -49,14 +45,6 @@
4945
box-shadow: var(--color-shadow-2);
5046
}
5147

52-
.signature {
53-
position: absolute;
54-
bottom: 0;
55-
transform: translateY(calc(100% + _.unit(7)));
56-
// Have to use padding instead of margin. Overflow margin spacing will be ignored by the browser.
57-
padding-bottom: _.unit(7);
58-
}
59-
6048
@media only screen and (max-width: 580px) {
6149
.main {
6250
align-self: stretch;

packages/experience/src/shared/components/LogtoSignature/index.module.scss

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

packages/experience/src/shared/components/LogtoSignature/index.tsx

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

packages/experience/src/utils/consts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ export const layoutClassNames = Object.freeze({
22
pageContainer: 'logto_page-container',
33
mainContent: 'logto_main-content',
44
customContent: 'logto_custom-content',
5-
signature: 'logto_signature',
65
brandingHeader: 'logto_branding-header',
76
});

0 commit comments

Comments
 (0)