-
General information about UIs customization
-
1.4 Examples
-
How to customize Developer Portal
2.1 Details about Developer Portal customization
All four user interfaces provided inside ModelBank support customization. Depending on your needs, you can choose, which fields and UIs to customize.
For Developer Portal you can customize logo, CSS styles, content of all the pages, xml
and json
examples in Play with Data section, currency of the examples, available SCA approaches and supported languages.
For Online Banking UI, Admin UI and TPP UI you can customize logo and CSS styles.
Here is a general instruction on how to customize any user interface in ModelBank except Developer Portal. Detailed examples of customization and features of each user interface you can find in related sections of Table of Content.
- Create
json
file with name UITheme (e.g. UITheme.json). Json
example (this is a general example which can be used in any of user interfaces. For more features seejson
example for every user interface you want to customize):
{
"globalSettings": {
"logo": "obp-ch.png",
"favicon": {
"type": "image/x-icon",
"href": "favicon.ico"
},
"cssVariables": {
"fontFamily": "Arial, sans-serif",
"buttonBgGradient1": "#2D3364",
"buttonBgGradient2": "#F85F3D",
"buttonHoveredGradient1": "#2D3364",
"buttonHoveredGradient2": "#000000",
"buttonClickedGradient1": "#2D3364",
"buttonClickedGradient2": "#000000"
}
}
}
- Fill all the needed fields ( fields listed down are common fields and can be used for any of user interfaces. For more features have a look at json fields for every user interface you want to customize. You can find these features in a related section of Table of Content):
Name | Usage | Parent property | Child properties | Accepted values | Required |
---|---|---|---|---|---|
globalSettings | Used for setting global settings, such as logo and favicon | - | logo, favicon | logo, favicon properties | Yes |
logo | Used to set a path to an upper logo picture | globalSettings | - | string, http url or file name with extension or ' ' | Yes |
favicon | Used to set a path to favicon picture | globalSettings | type, href | type, href properties | No |
type | Type of favicon | favicon | - | string | Yes |
href | A path to a favicon picture of favicon | favicon | - | string, http url | Yes |
cssVariables | A set of CSS variables used for styling customization | - | See Common CSS properties for details | child properties | No |
- When you create
UITheme.json
file and fill all required fields, put this file withlogo
(e.g.logo.png
) andfavicon
images in folder./src/assets/UI/custom/
of your user interface. - Steps for putting files in this folder:
- Local environment customization
- Before running all services of the ModelBank local, put your files in folder ./developer-portal-ui/src/assets/UI/custom/
- Openshift environment customization
- Install the Openshift Command Line Tools: https://docs.okd.io/latest/cli_reference/get_started_cli.html
- Navigate to local source folder (where the customisation files are stored): cd ./local_src_folder/- Login to Openshift: oc login- Navigate to the Openshift project.
- We select the development environment for our example.
- Please choose one of the following:
oc project adorsys-dynamic-sandbox-dev- Copy the customisation files to the running Developer Portal UI application pod: - oc cp ./logo.png $(oc get pods |grep "developerportalui" |awk '{print
$1}'):/usr/share/nginx/html/assets/UI/custom/ - oc cp ./contact.png $ (oc get pods |grep "developerportalui" |awk '{print$1}'):/usr/share/nginx/html/assets/UI/custom/ - oc cp ./ $ (oc get pods |grep "developerportalui" |awk '{print $1}'):/usr/share/nginx/html/assets/UI/custom/
- Local environment customization
- Customization completed, congratulations!
All the default variables are defined at
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
fontFamily | You can set preferred font family in a property fontFamily |
font-family | Standard font values | Examples of font customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
textFontSize | Customize text size for screen size wider than 1024px for all usual text in div and p html-tag |
font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of text size customization |
textFontWeight | Customize text weight for screen size wider than 1024px for all usual text in div and p html-tag |
font-weight | Standard values for font-weight CSS property |
Examples of text weight customization |
textFontSize1024px | Customize text size for screen size between 1024px and 768px for all usual text in div and p html-tag |
font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of text size customization |
textFontWeight1024px | Customize text weight for screen size between 1024px and 768px for all usual text in div and p html-tag |
font-weight | Standard values for font-weight CSS property |
Examples of text weight customization |
textFontSize768px | Customize text size for screen size smaller than 768px for all usual text in div and p html-tag |
font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of text size customization |
textFontWeight768px | Customize text weight for screen size smaller than 768px for all usual text in div and p html-tag |
font-weight | Standard values for font-weight CSS property |
Examples of text weight customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
h1FontSize | Customize h1 size for all h1 html tags | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h1 size customization |
h1FontWeight | Customize h1 weight for all h1 html tags | font-weight | Standard values for font-weight CSS property |
Examples of h1 weight customization |
h1FontSize1024px | Customize h1 size for all h1 html tags for screens wider than 768px but smaller than 1024px | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h1 size customization |
h1FontWeight1024px | Customize h1 weight for all h1 html tags for screens wider than 768px but smaller than 1024px | font-weight | Standard values for font-weight CSS property |
Examples of h1 weight customization |
h1FontSize768px | Customize h1 size for all h1 html tags for screens smaller than 768px | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h1 size customization |
h1FontWeight768px | Customize h1 weight for all h1 html tags for screens smaller than 768px | font-weight | Standard values for font-weight CSS property |
Examples of h1 weight customization |
h2FontSize | Customize h2 size for all h2 html tags | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h2 size customization |
h2FontWeight | Customize h2 weight for all h2 html tags | font-weight | Standard values for font-weight CSS property |
Examples of h2 weight customization |
h2FontSize1024px | Customize h2 size for all h2 html tags for screens wider than 768px but smaller than 1024px | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h2 size customization |
h2FontWeight1024px | Customize h2 weight for all h2 html tags for screens wider than 768px but smaller than 1024px | font-weight | Standard values for font-weight CSS property |
Examples of h2 weight customization |
h2FontSize768px | Customize h2 size for all h2 html tags for screens smaller than 768px | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h2 size customization |
h2FontWeight768px | Customize h2 weight for all h2 html tags for screens smaller than 768px | font-weight | Standard values for font-weight CSS property |
Examples of h2 weight customization |
h3FontSize | Customize h3 size for all h3 html tags | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h3 size customization |
h3FontWeight | Customize h3 weight for all h3 html tags | font-weight | Standard values for font-weight CSS property |
Examples of h3 weight customization |
h3FontSize1024px | Customize h3 size for all h3 html tags for screens wider than 768px but smaller than 1024px | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h3 size customization |
h3FontWeight1024px | Customize h3 weight for all h3 html tags for screens wider than 768px but smaller than 1024px | font-weight | Standard values for font-weight CSS property |
Examples of h3 weight customization |
h3FontSize768px | Customize h3 size for all h3 html tags for screens smaller than 768px | font-size | Standard values for font-size CSS property (px, vw, %, em, rem etc) |
Examples of h3 size customization |
h3FontWeight768px | Customize h3 weight for all h3 html tags for screens smaller than 768px | font-weight | Standard values for font-weight CSS property |
Examples of h3 weight customization |
Colors are used in dividers and heading colors. To customize primary and secondary color of the application, use the following properties:
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
colorPrimary | Used as a for a primary application color | background-color | This property may contain any legal CSS color values supported by modern browsers | Examples of color customization |
colorSecondary | Used as a for a secondary application color | background-color | This property may contain any legal CSS color values supported by modern browsers | Examples of color customization |
You can customize html body background color and font color with the following properties:
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
bodyBG | Customization of html body background color | background-color | This property may contain any legal CSS color values supported by modern browsers | Examples of html body customization |
bodyFontColor | Customization of html body font color | font-color | This property may contain any legal CSS color values supported by modern browsers | Examples of html body customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
headerBG | The background color of the navigation header can be changed using this property | background-color | May contain any legal CSS color values supported by modern browsers | Examples of navigation bar customization |
headerFontColor | The font color of the navigation header can be changed using this property | background-color | May contain any legal CSS color values supported by modern browsers | Examples of navigation bar customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
footerBG | The background color of the footer can be changed using this property | background-color | May contain any legal CSS color values supported by modern browsers | Examples of footer customization |
footerFontColor | The font color of the footer can be changed using this property | background-color | May contain any legal CSS color values supported by modern browsers | Examples of footer customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
anchorFontColor | Used to customize font color of all the links within <a> html tag |
font-color | May contain any legal CSS color values supported by modern browsers | Examples of anchor customization |
anchorFontColorHover | T Used to customize font color of all the links within <a> html tag while mouse is hovered over an anchor |
font-color | May contain any legal CSS color values supported by modern browsers | Examples of anchor customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
buttonTextColor | Used to customize text color of the button | font-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonBG | Used to customize background color of the button | background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonBgGradient1 | Used to specify first gradient background color of the button, if the gradient is used. Should be used with buttonBgGradient2 property. In this case property buttonBG should not be used |
background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonBgGradient2 | Used to specify first gradient background color of the button, if the gradient is used. Should be used with buttonBgGradient1 property. In this case property buttonBG should not be used |
background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonHovered | Used to customize background color of the button when button is hovered | background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonHoveredGradient1 | Used to specify first gradient background color of the button when button is hovered, if the gradient is used. Should be used with buttonHoveredGradient2 property. In this case property buttonHovered should not be used |
background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonHoveredGradient2 | Used to specify first gradient background color of the button when button is hovered, if the gradient is used. Should be used with buttonHoveredGradient1 property. In this case property buttonHovered should not be used |
background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonClicked | Used to customize background color of the button when button is clicked | background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonClickedGradient1 | Used to specify first gradient background color of the button when button is clicked, if the gradient is used. Should be used with buttonClickedGradient2 property. In this case property buttonHovered should not be used |
background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
buttonClickedGradient2 | Used to specify first gradient background color of the button when button is clicked, if the gradient is used. Should be used with buttonClickedGradient1 property. In this case property buttonHovered should not be used |
background, background-color | May contain any legal CSS color values supported by modern browsers | Examples of button customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
inputBG | Used to customize background color of <input> html element |
background-color | May contain any legal CSS color values supported by modern browsers | Examples of input customization |
inputBorderStyleLeft | Used to customize border style of the left border of <input> html element |
border-left | May contain any legal CSS value for border-style CSS property | Examples of input customization |
inputBorderStyleRight | Used to customize border style of the right border of <input> html element |
border-right | May contain any legal CSS value for border-style CSS property | Examples of input customization |
inputBorderStyleBottom | Used to customize border style of the bottom border of <input> html element |
border-bottom | May contain any legal CSS value for border-style CSS property | Examples of input customization |
inputBorderStyleTop | Used to customize border style of the top border of <input> html element |
border-top | May contain any legal CSS value for border-style CSS property | Examples of input customization |
inputBorderRadius | Used to customize border radius of <input> html element |
border-radius | May contain any legal CSS value for border-radius CSS property |
Examples of input customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
selectBG | Used to customize background color of <select> html element |
background-color | May contain any legal CSS color values supported by modern browsers | Examples of select customization |
selectColor | Used to customize text color of <select> html element |
color | May contain any legal CSS color values supported by modern browsers | Examples of select customization |
selectBorderStyleLeft | Used to customize border style of the left border of <select> html element |
border-left | May contain any legal CSS value for border-style CSS property | Examples of select customization |
selectBorderStyleRight | Used to customize border style of the right border of <select> html element |
border-right | May contain any legal CSS value for border-style CSS property | Examples of select customization |
selectBorderStyleBottom | Used to customize border style of the bottom border of <select> html element |
border-bottom | May contain any legal CSS value for border-style CSS property | Examples of select customization |
selectBorderStyleTop | Used to customize border style of the top border of <select> html element |
border-top | May contain any legal CSS value for border-style CSS property | Examples of select customization |
selectBorderRadius | Used to customize border radius of <select> html element |
border-radius | May contain any legal CSS value for border-radius CSS property |
Examples of select customization |
- Arial font:
"fontFamily": "Arial, sans-serif"
"textFontSize": "24px"
"textFontSize1024px": "20px"
"textFontSize768px": "18px",
Back to reading abouttextFontSize
property.
"textFontWeight": "bold"
"textFontWeight1024px": "bold"
"textFontWeight768px": "bold"
Back to reading abouttextFontWeight
property.
"h1FontSize": "2rem"
"h1FontSize768px": "1rem"
"h1FontSize1024px": "3rem"
Back to reading abouth1FontSize
property.
"h1FontWeight": "bold"
"h1FontWeight768px": "bold"
"h1FontWeight1024px": "bold"
Back to reading abouth1FontWeight
property.
"h2FontSize": "18px",
"h2FontSize1024px": "16px",
"h2FontSize768px": "16px",
Back to reading abouth2FontWeight
property.
"h2FontWeight": "bold",
"h2FontWeight1024px": "bold",
"h2FontWeight768px": "bold",
Back to reading abouth2FontWeight
property.
"h3FontSize": "16px",
"h3FontSize768px": "14px",
"h3FontSize1024px": "14px",
Back to reading about h3FontSize
property.
"h3FontWeight": "bold",
"h3FontWeight768px": "bold",
"h3FontWeight1024px": "bold",
- Primary color - blue, secondary - yellow.
"colorPrimary": "#054f72",
"colorSecondary": "#eed52f"
- Primary color - black, secondary - red.
"colorPrimary": "#000000",
"colorSecondary": "red"
"bodyBG": "#fafafa",
"bodyFontColor": "#868e96"
Back to reading about html body settings.
- White header with black font.
"headerBG": "#ffffff"
"headerFontColor": "#000000"
- Violet header with white font.
"headerBG": "#2D3364",
"headerFontColor": "#ffffff"
Back to reading about navigation bar colors.
- Blue footer with white font:
"footerBG": "#054f72"
"footerFontColor": "#ffffff"
- Black footer with white font:
"footerBG": "#000000"
"footerFontColor": "#ffffff"
Back to reading about footer colors.
"anchorFontColor": "#0984bf"
"anchorFontColorHover": "#054f72"
Back to reading about anchor colors.
- Plain buttons without gradient:
"buttonBG": "#CC0033",
"buttonTextColor": "#FFFFFF",
"buttonHovered": "#891023",
"buttonClicked": "#AA112D",
- Buttons with gradient:
"buttonBgGradient1": "#2D3364",
"buttonBgGradient2": "#F85F3D",
"buttonHoveredGradient1": "#2D3364",
"buttonHoveredGradient2": "#000000",
"buttonClickedGradient1": "#2D3364",
"buttonClickedGradient2": "#000000",
Back to reading about buttons.
- Default ModelBank input:
"inputBG": "white",
"inputBorderStyleLeft": "1px solid #dcdcdc",
"inputBorderStyleRight": "1px solid #dcdcdc",
"inputBorderStyleBottom": "1px solid #dcdcdc",
"inputBorderStyleTop": "1px solid #dcdcdc",
"inputBorderRadius": "0.1rem",
- Customized input:
"inputBG": "#E0E5E8",
"inputBorderStyleLeft": "1px solid #000000",
"inputBorderStyleBottom": "1px solid #000000",
- Default select:
"selectBG": "white",
"selectColor": "#3b4151",
"selectBorderStyleLeft": "none",
"selectBorderStyleRight": "none",
"selectBorderStyleBottom": "none",
"selectBorderStyleTop": "none",
"selectBorderRadius": "none",
- Customized select:
"selectBG": "#E0E5E8",
"selectColor": "#000000",
Back to reading about selects.
- Create a
json
file with name UITheme (e.g. UITheme.json). - Fill all the needed fields.
- When you create
UITheme.json
file and fill all required fields, put this file withlogo
(e.g.logo.png
) andfavicon
and other needed images in the folder./src/assets/content/custom-content/
of your user interface.
Here is a detailed example json for Developer portal:
{
"globalSettings": {
"supportedLanguagesDictionary": {
"en": "united-kingdom.png",
"de": "germany.png",
"ua": "ukraine.png"
},
"googleAnalyticsTrackingId": "UA-160845388-1",
"logo": "Logo_XS2ASandbox.png",
"favicon": "favicon.ico",
"cssVariables": {
"fontFamily": "Arial, sans-serif",
"buttonBgGradient1": "#2D3364",
"buttonBgGradient2": "#F85F3D",
"buttonHoveredGradient1": "#2D3364",
"buttonHoveredGradient2": "#000000",
"buttonClickedGradient1": "#2D3364",
"buttonClickedGradient2": "#000000"
}
},
"pagesSettings": {
"contactPageSettings": {
"contactInfo": {
"img": "Rene.png",
"name": "René Pongratz",
"position": "Software Architect & Expert for API Management",
"email": "psd2@adorsys.de"
},
"officesInfo": [
{
"city": "Nürnberg",
"company": "adorsys GmbH & Co. KG",
"addressFirstLine": "Fürther Str. 246a, Gebäude 32 im 4.OG",
"addressSecondLine": "90429 Nürnberg",
"phone": "+49(0)911 360698-0",
"email": "psd2@adorsys.de"
},
{
"city": "Frankfurt",
"company": "adorsys GmbH & Co. KG",
"addressFirstLine": "Frankfurter Straße 63 - 69",
"addressSecondLine": "65760 Eschborn",
"email": "frankfurt@adorsys.de"
}
]
},
"homePageSettings": {
"contactInfo": {
"img": "Rene.png",
"name": "René Pongratz",
"position": "Software Architect & Expert for API Management",
"email": "psd2@adorsys.de"
},
"showProductHistory": true,
"showSlider": true
},
"navigationBarSettings": {
"allowedNavigationSize": 5
},
"footerSettings": {
"socialMedia": {
"facebookLink": "https://www.facebook.com/adorsysGmbH",
"twitterLink": "https://twitter.com/adorsys",
"xingLink": "https://www.xing.com/companies/adorsysgmbh%26cokg",
"linkedinLink": "https://www.linkedin.com/company/adorsys"
}
},
"playWithDataSettings": {
"supportedApproaches": ["redirect", "embedded"],
"examplesCurrency": "EUR",
"tppSettings": {
"tppDefaultNokRedirectUrl": "https://www.google.com",
"tppDefaultRedirectUrl": "https://adorsys-platform.de/solutions/xs2a-sandbox/"
}
}
}
}
Additional properties for Developer Portal:
Name | Usage | Parent property | Child properties | Accepted values | Required |
---|---|---|---|---|---|
globalSettings | Global settings of Developer Portal | - | supportedLanguagesDictionary, socialMedia, googleAnalyticsTrackingId, favicon | child properties | Yes |
cssVariables | A set of CSS variables used for styling customization | globalSettings | - | child properties | No |
pagesSettings | Content settings of Developer Portal | - | contactPageSettings, homePageSettings, navigationBarSettings | child properties | No |
contactPageSettings | Content settings of Contact Page | pagesSettings | contactInfo, officesInfo | child properties | No |
homePageSettings | Content settings of Home Page | pagesSettings | showProductHistory, contactInfo, showSlider | child properties | No |
showProductHistory | Defines if product history should be shown on Home Page or not | homePageSettings | - | boolean | No |
showSlider | Defines if slider with ModelBank features should be shown on Home Page or not | homePageSettings | - | boolean | No |
navigationBarSettings | Navigation bar settings | pagesSettings | allowedNavigationSize, logo, logoLink | child properties | No |
footerSettings | Footer settings | pagesSettings | allowedNavigationSize, socialMedia | child properties | Yes |
allowedNavigationSize | Defines the amount of the Menu items displays in Navigation Bar. If the amount of menu items is more than allowedNavigationSize, menu would be collapsed in mobile view menu | navigationBarSettings | - | number | Yes |
logo | Used to set a path to a logo picture | globalSettings | - | string, http url or file name with extension or ' ' | Yes |
logoLink | Used to set a link for the click on logo picture | globalSettings | - | http url | No |
contactInfo | Used for customizing contact information on Contact page and Ask questions card (lower section of the Home page) |
contactPageSettings or homePageSettings | name, position, img, phone | child properties | Yes |
name | Used for customizing name of the person in contact information on Contact page and Ask questions card (lower section of the Home page) |
contactInfo | - | string | Yes |
position | Used for customizing position of the person in contact information on Contact page and Ask questions card (lower section of the Home page) |
contactInfo | - | string | Yes |
position | Used for customizing position of the person in contact information on Contact page and Ask questions card (lower section of the Home page) |
contactInfo | - | string | Yes |
img | Used for customizing image of the person in contact information on Contact page and Ask questions card (lower section of the Home page) |
contactInfo | - | string, http url or file name with extension | Yes |
Used for customizing email of the person in contact information on Contact page and Ask questions card (lower section of the Home page) |
contactInfo | - | string | No | |
phone | Used for customizing phone of the person in contact information on Contact page and Ask questions card (lower section of the Home page) |
contactInfo | - | string | No |
officesInfo | Used for customizing offices information on Contact page |
contactPageSettings | city, company, addressFirstLine, addressSecondLine, phone, email | Array of two elements with child properties | Yes |
city | Used for customizing city of the office in contact information on Contact page |
officesInfo | - | string | Yes |
company | Used for customizing company namy in contact information on Contact page |
officesInfo | - | string | Yes |
addressFirstLine | Used for customizing company address (first line in the card) in contact information on Contact page |
officesInfo | - | string | Yes |
addressSecondLine | Used for customizing company address (second line in the card) in contact information on Contact page |
officesInfo | - | string | Yes |
Used for customizing email of the office in contact information on Contact page |
officesInfo | - | string | No | |
phone | Used for customizing phone of the office in contact information on Contact page |
officesInfo | - | string | No |
playWithDataSettings | Content settings of Test cases section and Play with data tab | pagesSettings | supportedApproaches, examplesCurrency, tppSettings | child properties | No |
supportedLanguages | Used to customize supported languages of Developer Portal | - | - | Array of supported languages. Default configuration is ["en", "de", "es", "ua"] | Yes |
supportedApproaches | Used to customize shown information about SCA approaches | playWithDataSettings | - | Array of supported SCA approaches. Default configuration is ["redirect", "embedded"] | Yes |
examplesCurrency | Main currency of developer portal examples. When you input a currency, all the jsons currencies are changed to the desired currency. | playWithDataSettings | - | All currency values in ISO standard. Default configuration is "EUR" | Yes |
tppSettings | Settings related to a particular TPP using the ModelBank | playWithDataSettings | tppDefaultNokRedirectUrl, tppDefaultRedirectUrl | child properties | Yes |
tppDefaultNokRedirectUrl | TPP not OK link, used in all XS2A requests in Play with data section and related to XS2A standard header for Redirect SCA approach TPP-Nok-Redirect-URI |
tppSettings | - | Https url. Default value is https://www.google.com |
Yes |
tppDefaultRedirectUrl | TPP not OK link, used in all XS2A requests in Play with data section and related to XS2A standard header for Redirect SCA approach TPP-Redirect-URI |
tppSettings | - | Https url. Default value is https://adorsys-platform.de/solutions/xs2a-sandbox/ |
Yes |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
mainBG | Background of the main html element (not body) | background-color | May contain any legal CSS color values supported by modern browsers | Examples of MainBG customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
heroBG | Background of the hero html element on home page | background-color | May contain any legal CSS color values supported by modern browsers | Examples of HeroBG customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
stepBG | Background of the steps (How to use ModelBank) html element on home page | background-color | May contain any legal CSS color values supported by modern browsers | Examples of StepBG customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
contactsCardBG | Background of contact card html element on contact page | background-color | May contain any legal CSS color values supported by modern browsers | Examples of ContactsCardBG customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
testCasesLeftSectionBG | Background of the left section of Test cases page | background-color | May contain any legal CSS color values supported by modern browsers | Examples of Test cases customization |
testCasesRightSectionBG | Background of the right section of Test cases page | background-color | May contain any legal CSS color values supported by modern browsers | [Examples of Test cases customization](#examples-of-test-cases customization) |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
tableColor | Color of the table content font | font-color | May contain any legal CSS color values supported by modern browsers | Examples of Table customization |
tableBG | Background of table | background-color | May contain any legal CSS color values supported by modern browsers | Examples of Table customization |
tableStripedBG | Background of the every second row in the table. Could be used for having a striped background | background-color | May contain any legal CSS color values supported by modern browsers | Examples of Table customization |
tableHeaderBG | Background of the table header | background-color | May contain any legal CSS color values supported by modern browsers | Examples of Table customization |
tableBorderStyleBottom | Style of the bottom table border | border-style | May contain any legal CSS value for border-style property | Examples of Table customization |
tableBorderStyleLeft | Style of the left table border | border-style | May contain any legal CSS value for border-style property | Examples of Table customization |
tableBorderStyleRight | Style of the right table border | border-style | May contain any legal CSS value for border-style property | Examples of Table customization |
tableBorderStyleTop | Style of the top table border | border-style | May contain any legal CSS value for border-style property | Examples of Table customization |
Name | Usage | Bound to CSS property | Accepted values | Examples |
---|---|---|---|---|
checkBoxMarkColor | Color of the checkbox mark | font-color | May contain any legal CSS color values supported by modern browsers | Examples of Checkbox customization |
checkBoxBGChecked | Background of a checked checkbox | background-color | May contain any legal CSS color values supported by modern browsers | Examples of Checkbox customization |
checkBoxBG | Background of an unchecked checkbox | background-color | May contain any legal CSS color values supported by modern browsers | Examples of Checkbox customization |
checkBoxBGHovered | Background of a hovered checkbox | background-color | May contain any legal CSS color values supported by modern browsers | Examples of Checkbox customization |
checkBoxMarkWidth | Chekbox mark width | width | May contain any legal CSS value for width property | Examples of Checkbox customization |
checkBoxMarkHeight | Checkbox mark height | height | May contain any legal CSS value for height property | Examples of Checkbox customization |
checkBoxMarkTop | Position of a checkbox mark to the top | top | May contain any legal CSS value for top property | Examples of Checkbox customization |
checkBoxMarkLeft | Position of a checkbox mark to the left | left | May contain any legal CSS value for top property | Examples of Checkbox customization |
"mainBG": "transparent"
Back to reading about main backgroung settings.
"heroBG": "#eeeeee"
Back to reading about hero backgroung settings.
"stepBG": "#cccccc"
Back to reading about steps backgroung settings.
"contactsCardBG": "#eeeeee"
Back to reading about contacts card backgroung settings.
"testCasesLeftSectionBG": "#ffffff"
"testCasesRightSectionBG": "#eeeeee"
Back to reading about test cases settings.
- Default table style:
"tableColor": "black",
"tableBG": "#fafafa",
"tableStripedBG": "#f3f3f3",
"tableHeaderBG": "#f3f3f3",
"tableBorderStyleBottom": "none",
"tableBorderStyleLeft": "none",
"tableBorderStyleRight": "none",
"tableBorderStyleTop": "none"
- Customized table:
"tableStripedBG": "#FFFFFF",
"tableHeaderBG": "#E0E5E8",
"tableBorderStyleBottom": "1px solid #C4CCD3",
"tableBG": "#FFFFFF",
Back to reading about table settings.
- Default checkbox style:
"checkBoxBGChecked": "white",
"checkBoxBG": "#eee",
"checkBoxBGHovered": "#ccc",
"checkBoxMarkColor": "white",
"checkBoxMarkLeft": "30%",
"checkBoxMarkTop": "30%",
"checkBoxMarkWidth": "7px",
"checkBoxMarkHeight": "8px"
- Customizes checkbox:
"checkBoxMarkColor": "#000000",
"checkBoxBGChecked": "#E0E5E8",
"checkBoxBG": "#E0E5E8",
"checkBoxMarkLeft": "40%",
"checkBoxMarkTop": "30%;",
"checkBoxMarkWidth": "5px",
"checkBoxMarkHeight": "8px",
Back to reading about checkbox settings.
Content of all the pages of Developer Portal could be customized and changed. The content of each page (texts) are located in .md
files in the following structure:
This is a default content, including 3 languages and pages for them. Each .md
file name corresponds to a page or a component. To change a content of a page, you simply must change .md
file with the name of the page (for example, "home.md").
If you want to have more languages on Developer Portal, for each language you need a separate folder and every language must be added to a UITheme.json in sections "supportedLanguagesDictionary".
For each language a language folder with the same name should be provided, and a picture for the language icon. A separate json with static translations should also be put in 'i18n' folder.
Example (English is taken as an example language):
- Create a folder named 'en' in 'i18n' folder.
- Add icon picture to the root of the 'en' folder.
- Add 'en.json' in root of the 'i18n' folder. The structure of 'en.json' could be found in default set of 'i18n' folder in assets.
- Add 'en' with icon picture path to UITheme:
"supportedLanguagesDictionary": {
"en": "united-kingdom.png"
},
In each language folder you have navigation.json
file. Each item of navigation.json
corresponds to a menu item. This is a default navigation.json
:
{
"navigation": [
{
"navName": "Home",
"route": "home",
"type": "default"
},
{
"navName": "Getting started",
"route": "getting-started",
"type": "default"
},
{
"navName": "Test cases",
"route": "test-cases",
"type": "default"
},
{
"navName": "FAQs",
"route": "faq",
"type": "markdown"
},
{
"navName": "Contact",
"route": "contact",
"type": "default"
}
]
}
The menu looks like on the following picture:
navName
is a property for a display name. There you can specify visible name of the navigation item. For each language this name could be different.
route
is a property for navigation route of the page, displayed in URL.
Home, Getting started, Test cases and Contact have type
property set to default. Only these 4 pages can use default type, because they are bound to Angular components inside of the application. Custom pages should use two other types: markdown
and redirect
.
If you have a look at the definition of FAQs page, it has type markdown
. It means that page is generated from markdown file with name faq.md
and route page/faq
. route
property for custom pages specifies route (to which prefix page/
always added automatically) and corresponding markdown file name (to which extension .md
added automatically).
Type redirect
means that the page would redirect to an external link on click. Example:
{
"navName": "Contact",
"route": "https://adorsys.de",
"type": "redirect"
}