Skip to content

Commit

Permalink
Add login styling
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed Jan 7, 2025
1 parent 2eced88 commit 2d84c9b
Show file tree
Hide file tree
Showing 10 changed files with 295 additions and 2 deletions.
2 changes: 1 addition & 1 deletion META-INF/keycloak-themes.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"themes": [{
"name" : "nl-design-system",
"types": [ "login", "account" ]
"types": [ "login", "account", "welcome", "common" ]
}]
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@ In de templates kunnen omgevings variablen omgezet worden naar text. We gebruike
Om een indruk te geven van de template worden er wat screenshots beschikbaar gesteld

### Welkom pagina

![Welkom pagina 1](assets/welkom-setup.png)
![Welkom pagina 2](assets/welkom-toegang.png)
![Welkom pagina 3](assets/welkom-maak-gebruiker.png)

### Login pagina

![Login pagina 1](assets/login.png)
![Login pagina 1](assets/login-taal.png)
![Login pagina 1](assets/login-error.png)

### Account pagina
Binary file added assets/login-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/login-taal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
31 changes: 31 additions & 0 deletions theme/nl-design-system/login/resources/css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@


.language-dropdown {
position: relative;
display: inline;
}

.language-dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}


.language-dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}

.language-dropdown-content a:hover {
background-color: #f1f1f1;
}

.language-dropdown:hover .language-dropdown-content {
display: block;
}
236 changes: 236 additions & 0 deletions theme/nl-design-system/login/template.ftl

Large diffs are not rendered by default.

23 changes: 22 additions & 1 deletion theme/nl-design-system/login/theme.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
parent=base
import=common/keycloak

common=common/nl-design-system
locales=en,nl
stylesCommon=assets/fonts/index.css assets/icons/index.css assets/images/index.css component-library-css/index.css design-tokens/index.css
styles=css/login.css

meta=viewport==width=device-width,initial-scale=1

organizationName=${env.ORGANIZATION:Identiteits service}

kcBodyClass=rvo-theme rvo-responsive
kcHeaderClass=rvo-header


kcFormGroupClass=rvo-form
kcLabelClass=rvo-label
kcInputClass=utrecht-textbox utrecht-textbox--html-input utrecht-textbox--lg
kcInputErrorMessageClass=rvo-alert rvo-alert--error rvo-alert--padding-md
kcButtonClass=utrecht-button utrecht-button--rvo-md
kcButtonPrimaryClass=utrecht-button--primary-action

kcFormPasswordVisibilityButtonClass=utrecht-button utrecht-button--rvo-tertiary-action utrecht-button--rvo-md
kcFormPasswordVisibilityIconShow=utrecht-icon rvo-icon rvo-icon-info rvo-icon--xl rvo-icon--hemelblauw
kcFormPasswordVisibilityIconHide=utrecht-icon rvo-icon rvo-icon-kruis rvo-icon--xl rvo-icon--hemelblauw

0 comments on commit 2d84c9b

Please sign in to comment.