mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-16 03:13:09 +00:00
feat(react): add optional subtitle to home page (#2591)
This commit is contained in:
parent
48d2b94203
commit
3fe997c624
@ -44,6 +44,7 @@ const styles = {
|
|||||||
searchContainer: { width: '100%', marginTop: '40px' },
|
searchContainer: { width: '100%', marginTop: '40px' },
|
||||||
logoImage: { width: 140 },
|
logoImage: { width: 140 },
|
||||||
searchBox: { width: 540, margin: '40px 0px' },
|
searchBox: { width: 540, margin: '40px 0px' },
|
||||||
|
subtitle: { marginTop: '28px', color: '#FFFFFF', fontSize: 12 },
|
||||||
subHeaderLabel: { marginTop: '-16px', color: '#FFFFFF', fontSize: 12 },
|
subHeaderLabel: { marginTop: '-16px', color: '#FFFFFF', fontSize: 12 },
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -192,6 +193,9 @@ export const HomePageHeader = () => {
|
|||||||
</Row>
|
</Row>
|
||||||
<HeaderContainer>
|
<HeaderContainer>
|
||||||
<Image src={themeConfig.assets.logoUrl} preview={false} style={styles.logoImage} />
|
<Image src={themeConfig.assets.logoUrl} preview={false} style={styles.logoImage} />
|
||||||
|
{themeConfig.content.subtitle && (
|
||||||
|
<Typography.Text style={styles.subtitle}>{themeConfig.content.subtitle}</Typography.Text>
|
||||||
|
)}
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
style={styles.searchBox}
|
style={styles.searchBox}
|
||||||
options={suggestionsData?.autoComplete?.suggestions.map((result: string) => ({
|
options={suggestionsData?.autoComplete?.suggestions.map((result: string) => ({
|
||||||
|
|||||||
@ -24,6 +24,7 @@ export type Theme = {
|
|||||||
};
|
};
|
||||||
content: {
|
content: {
|
||||||
title: string;
|
title: string;
|
||||||
|
subtitle?: string;
|
||||||
homepage: {
|
homepage: {
|
||||||
homepageMessage: string;
|
homepageMessage: string;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user