From af8ac3cde2c455936967d3145cdfb818836ae001 Mon Sep 17 00:00:00 2001 From: mmelko Date: Thu, 24 Oct 2024 22:21:07 +0200 Subject: [PATCH] fix(AboutModal): Add backgroung image to aboutModal closes #1031 --- app/public/hawtconfig.json | 1 + app/public/img/background-inverted.svg | 15 +++++++++++++++ app/public/pf-background.svg | 8 ++++++++ packages/hawtio/src/core/config-manager.ts | 1 + packages/hawtio/src/ui/about/HawtioAbout.tsx | 3 ++- 5 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 app/public/img/background-inverted.svg create mode 100644 app/public/pf-background.svg diff --git a/app/public/hawtconfig.json b/app/public/hawtconfig.json index 8ca4561a..a408e0df 100644 --- a/app/public/hawtconfig.json +++ b/app/public/hawtconfig.json @@ -19,6 +19,7 @@ "title": "Hawtio Management Console", "description": "A Hawtio reimplementation based on TypeScript + React.", "imgSrc": "hawtio-logo.svg", + "backgroundImgSrc": "pf-background.svg", "productInfo": [ { "name": "ABC", "value": "1.2.3" }, { "name": "XYZ", "value": "7.8.9" } diff --git a/app/public/img/background-inverted.svg b/app/public/img/background-inverted.svg new file mode 100644 index 00000000..93c27994 --- /dev/null +++ b/app/public/img/background-inverted.svg @@ -0,0 +1,15 @@ + + + BG + Created with Sketch. + + + + + + + + + + + diff --git a/app/public/pf-background.svg b/app/public/pf-background.svg new file mode 100644 index 00000000..c4b5b991 --- /dev/null +++ b/app/public/pf-background.svg @@ -0,0 +1,8 @@ + + + + + + + diff --git a/packages/hawtio/src/core/config-manager.ts b/packages/hawtio/src/core/config-manager.ts index 1d2393c8..f609097a 100644 --- a/packages/hawtio/src/core/config-manager.ts +++ b/packages/hawtio/src/core/config-manager.ts @@ -76,6 +76,7 @@ export type AboutConfig = { title?: string description?: string imgSrc?: string + backgroundImgSrc?: string productInfo?: AboutProductInfo[] copyright?: string } diff --git a/packages/hawtio/src/ui/about/HawtioAbout.tsx b/packages/hawtio/src/ui/about/HawtioAbout.tsx index f6dfca28..c2f57151 100644 --- a/packages/hawtio/src/ui/about/HawtioAbout.tsx +++ b/packages/hawtio/src/ui/about/HawtioAbout.tsx @@ -19,6 +19,7 @@ export const HawtioAbout: React.FunctionComponent = props => { } const imgSrc = about.imgSrc || imgLogo + const backgroundImgSrc = about.backgroundImgSrc const title = about.title || 'Hawtio Management Console' const copyright = about.copyright || '© Hawtio project' @@ -36,7 +37,6 @@ export const HawtioAbout: React.FunctionComponent = props => { const productInfo = about.productInfo || [] productInfo.sort((a, b) => stringSorter(a.name, b.name)) log.debug('Product info:', productInfo) - const AboutProductInfo = () => ( Component versions @@ -57,6 +57,7 @@ export const HawtioAbout: React.FunctionComponent = props => { onClose={props.onClose} productName={title} brandImageSrc={imgSrc} + backgroundImageSrc={backgroundImgSrc} brandImageAlt={title} trademark={copyright} >