diff --git a/oidc-ui/README.md b/oidc-ui/README.md index 6aedc7bc8..10be01bc0 100644 --- a/oidc-ui/README.md +++ b/oidc-ui/README.md @@ -66,6 +66,12 @@ The application runs on PORT=3000 by default. - REACT_APP_WALLET_LOGO_URL: URL for the logo in the wallet QRCode. This feature supports cross-origin-enabled image URLs only. - REACT_APP_CONSENT_SCREEN_TIME_OUT_BUFFER_IN_SEC: Buffer time for the consent screen expiry timer. - REACT_APP_WALLET_QR_CODE_AUTO_REFRESH_LIMIT: Limit for the QR code auto refresh. + - REACT_APP_BACKGROUND_LOGO: Set a logo in the main page, in ledt side of the main card + - REACT_APP_FOOTER: Set footer in the main page + +- Theme based configuration + + For theming your oidc-ui you have to change variable in `variables.css` which can be find inside `public` folder. According to your need you change the css variable, which will reflect in your oidc-ui. It contains color, images path and number in px (for height, width etc.). - Build and run Docker for a service: diff --git a/oidc-ui/public/images/footer_logo.png b/oidc-ui/public/images/footer_logo.png new file mode 100644 index 000000000..9773f974c Binary files /dev/null and b/oidc-ui/public/images/footer_logo.png differ diff --git a/oidc-ui/public/locales/ar.json b/oidc-ui/public/locales/ar.json index 626636ae7..61dd27af3 100644 --- a/oidc-ui/public/locales/ar.json +++ b/oidc-ui/public/locales/ar.json @@ -134,6 +134,10 @@ "backgroud_image_alt": "قم بتسجيل الدخول باستخدام e-Signet", "language": "لغة" }, + "footer": { + "powered_by": "مشغل بواسطة", + "logo_alt": "شعار التذييل" + }, "tabs": { "pin_tab_name": "قم بتسجيل الدخول باستخدام PIN", "biometric_tab_name": "تسجيل الدخول باستخدام القياسات الحيوية" diff --git a/oidc-ui/public/locales/en.json b/oidc-ui/public/locales/en.json index 9e5410502..6facb6c16 100644 --- a/oidc-ui/public/locales/en.json +++ b/oidc-ui/public/locales/en.json @@ -134,6 +134,10 @@ "backgroud_image_alt": "Sign in with e-Signet", "language": "Language" }, + "footer": { + "powered_by": "Powered by", + "logo_alt": "Footer logo" + }, "tabs": { "pin_tab_name": "Login with PIN", "biometric_tab_name": "Login with Biometrics" diff --git a/oidc-ui/public/variables.css b/oidc-ui/public/variables.css index ffe22075b..8da3d7224 100644 --- a/oidc-ui/public/variables.css +++ b/oidc-ui/public/variables.css @@ -8,6 +8,7 @@ --brand-only-logo-url: url("logo.png"); --brand-logo-url: url(""); --background-logo-url: url("images/illustration_one.png"); + --footer-brand-logo-url: url("images/footer_logo.png"); --primary-button-color: #FFFFFF; --primary-button-bg-color: #0953FA; --primary-button-border-color: #0953FA; @@ -40,4 +41,6 @@ --toggle-button-active-ball-color: #1262C9; --toggle-button-active-ball-border-color: #1262C9; --toggle-button-ring-color: #1262C9; + --header-height: 55px; + --header-footer-height: 103px; } diff --git a/oidc-ui/src/App.css b/oidc-ui/src/App.css index 92ba754db..3b6a96391 100644 --- a/oidc-ui/src/App.css +++ b/oidc-ui/src/App.css @@ -117,3 +117,21 @@ border-color: var(--toggle-button-active-ball-border-color); background-color: var(--toggle-button-active-ball-color); } + +.footer-brand-logo { + content: var(--footer-brand-logo-url); + height: 25px; +} + +.footer-container { + padding-top: 11px; + padding-bottom: 11px; +} + +.flexible-header-only { + height: calc(100% - var(--header-height)); +} + +.flexible-header-footer { + height: calc(100% - var(--header-footer-height)); +} \ No newline at end of file diff --git a/oidc-ui/src/App.js b/oidc-ui/src/App.js index b858e427c..48a7a4502 100644 --- a/oidc-ui/src/App.js +++ b/oidc-ui/src/App.js @@ -10,6 +10,7 @@ import { useTranslation } from "react-i18next"; import EsignetDetailsPage from "./pages/EsignetDetails"; import LoadingIndicator from "./common/LoadingIndicator"; import { LoadingStates as states } from "./constants/states"; +import Footer from "./components/Footer"; function App() { const { i18n } = useTranslation(); @@ -109,6 +110,7 @@ function App() { } /> +