mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +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' },
|
||||
logoImage: { width: 140 },
|
||||
searchBox: { width: 540, margin: '40px 0px' },
|
||||
subtitle: { marginTop: '28px', color: '#FFFFFF', fontSize: 12 },
|
||||
subHeaderLabel: { marginTop: '-16px', color: '#FFFFFF', fontSize: 12 },
|
||||
};
|
||||
|
||||
@ -192,6 +193,9 @@ export const HomePageHeader = () => {
|
||||
</Row>
|
||||
<HeaderContainer>
|
||||
<Image src={themeConfig.assets.logoUrl} preview={false} style={styles.logoImage} />
|
||||
{themeConfig.content.subtitle && (
|
||||
<Typography.Text style={styles.subtitle}>{themeConfig.content.subtitle}</Typography.Text>
|
||||
)}
|
||||
<AutoComplete
|
||||
style={styles.searchBox}
|
||||
options={suggestionsData?.autoComplete?.suggestions.map((result: string) => ({
|
||||
|
||||
@ -24,6 +24,7 @@ export type Theme = {
|
||||
};
|
||||
content: {
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
homepage: {
|
||||
homepageMessage: string;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user