From 9d797704bd01947a14802864d96118a6f7d8f48e Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Fri, 7 Sep 2018 15:19:13 -0700 Subject: [PATCH 1/5] SHIBUI-811 Implemented customizable theme --- ui/src/app/app.brand.ts | 44 ++++++++++++++++++++++++++ ui/src/app/app.component.html | 23 ++++++++------ ui/src/app/app.component.ts | 6 ++++ ui/src/app/core/model/brand.ts | 29 +++++++++++++++++ ui/src/app/shared/pipe/replace.pipe.ts | 10 ++++++ ui/src/app/shared/shared.module.ts | 5 ++- ui/src/brand.scss | 31 ++++++++++++++++++ ui/src/brand.ts | 21 ++++++++++++ ui/src/theme/_palette.scss | 26 ++++++++------- 9 files changed, 172 insertions(+), 23 deletions(-) create mode 100644 ui/src/app/app.brand.ts create mode 100644 ui/src/app/core/model/brand.ts create mode 100644 ui/src/app/shared/pipe/replace.pipe.ts create mode 100644 ui/src/brand.scss create mode 100644 ui/src/brand.ts diff --git a/ui/src/app/app.brand.ts b/ui/src/app/app.brand.ts new file mode 100644 index 000000000..a17c34cc0 --- /dev/null +++ b/ui/src/app/app.brand.ts @@ -0,0 +1,44 @@ +import { brand as customBrand } from '../brand'; +import { Brand } from './core/model/brand'; + +export const brand: Brand = { + header: { + title: 'Source Management' + }, + logo: { + default: '/assets/shibboleth_logowordmark_color.png', + small: '/assets/shibboleth_icon_color_130x130.png', + large: '/assets/shibboleth_logowordmark_color.png', + alt: 'Shibboleth Logo - Click to be directed to www.shibboleth.net', + link: { + label: 'Shibboleth', + url: 'https://www.shibboleth.net/' + } + }, + footer: { + links: [ + { + label: 'Home Page', + url: 'https://www.shibboleth.net/', + description: 'Shibboleth.net open-source community home page' + }, + { + label: 'Wiki', + url: 'https://wiki.shibboleth.net/', + description: 'Shibboleth.net open-source community wiki' + }, + { + label: 'Issue Tracker', + url: 'https://issues.shibboleth.net/', + description: 'Shibboleth.net open-source community issue tracker' + }, + { + label: 'Mailing List', + url: 'https://www.shibboleth.net/community/lists/', + description: 'Shibboleth.net open-source community mailing list' + } + ], + text: 'Links to Shibboleth resources:' + }, + ...customBrand +}; diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html index 17b5742e3..694a691ab 100644 --- a/ui/src/app/app.component.html +++ b/ui/src/app/app.component.html @@ -1,10 +1,10 @@