Skip to content

Commit

Permalink
Merge pull request #64 from mattpriestleydev/feature/new_crown_logo
Browse files Browse the repository at this point in the history
Update keycloak theme with new tudor crown logo
  • Loading branch information
James-Royds-HO authored Apr 17, 2024
2 parents c608f33 + 09937ed commit a287c29
Show file tree
Hide file tree
Showing 13 changed files with 78 additions and 64 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jspm_packages
.node_repl_history

# Built files
govuk/login/resources/
govuk/login/resources/css/
govuk/login/resources/vendor/
govuk-cop/login/resources/css/
govuk-internal/login/resources/
dist/
Expand Down
95 changes: 48 additions & 47 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
mariadb:
container_name: mariadb
image: mariadb:10.4.8
ports:
- "3306"
environment:
MYSQL_DATABASE: "keycloak"
MYSQL_PASSWORD: "password"
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_USER: "keycloak"
services:
mariadb:
container_name: mariadb
image: mariadb:10.4.8
ports:
- "3306"
environment:
MYSQL_DATABASE: "keycloak"
MYSQL_PASSWORD: "password"
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_USER: "keycloak"

keycloak:
container_name: keycloak
image: quay.io/ukhomeofficedigital/keycloak:v15.0.2
ports:
- "8080:8080"
links:
- mariadb
- maildev
volumes:
- ./.docker-compose/keycloak.env:/etc/secrets/keycloak.env
- ./govuk/:/opt/jboss/keycloak/themes/govuk/
- ./govuk-internal/:/opt/jboss/keycloak/themes/govuk-internal/
- ./govuk-internal-cba/:/opt/jboss/keycloak/themes/govuk-internal-cba/
- ./govuk-internal-dq/:/opt/jboss/keycloak/themes/govuk-internal-dq/
- ./govuk-cop/:/opt/jboss/keycloak/themes/govuk-cop/
- ./hmpo-lev/:/opt/jboss/keycloak/themes/hmpo-lev/
- ./govuk-social-providers/:/opt/jboss/keycloak/themes/govuk-social-providers/
- ./govuk-drt/:/opt/jboss/keycloak/themes/govuk-drt/
- ./govuk-rscas/:/opt/jboss/keycloak/themes/govuk-rscas/
environment:
DB_VENDOR: "mariadb"
MARIADB_PORT: "3306"
KEYCLOAK_ENVIRONMENT: "/etc/secrets/keycloak.env"
KEYCLOAK_PASSWORD: "admin"
KEYCLOAK_USER: "admin"
MYSQL_PORT_3306_TCP_ADDR: "mariadb"
MYSQL_PORT_3306_TCP_PORT: "3306"
WAIT_ON_ADDR: "mariadb"
WAIT_ON_PORT: "3306"
command:
- -b 0.0.0.0 --server-config=standalone.xml
keycloak:
container_name: keycloak
image: quay.io/ukhomeofficedigital/keycloak:v15.0.2
ports:
- "8080:8080"
links:
- mariadb
- maildev
volumes:
- ./.docker-compose/keycloak.env:/etc/secrets/keycloak.env
- ./govuk/:/opt/jboss/keycloak/themes/govuk/
- ./govuk-internal/:/opt/jboss/keycloak/themes/govuk-internal/
- ./govuk-internal-cba/:/opt/jboss/keycloak/themes/govuk-internal-cba/
- ./govuk-internal-dq/:/opt/jboss/keycloak/themes/govuk-internal-dq/
- ./govuk-cop/:/opt/jboss/keycloak/themes/govuk-cop/
- ./hmpo-lev/:/opt/jboss/keycloak/themes/hmpo-lev/
- ./govuk-social-providers/:/opt/jboss/keycloak/themes/govuk-social-providers/
- ./govuk-drt/:/opt/jboss/keycloak/themes/govuk-drt/
- ./govuk-rscas/:/opt/jboss/keycloak/themes/govuk-rscas/
environment:
DB_VENDOR: "mariadb"
MARIADB_PORT: "3306"
KEYCLOAK_ENVIRONMENT: "/etc/secrets/keycloak.env"
KEYCLOAK_PASSWORD: "admin"
KEYCLOAK_USER: "admin"
MYSQL_PORT_3306_TCP_ADDR: "mariadb"
MYSQL_PORT_3306_TCP_PORT: "3306"
WAIT_ON_ADDR: "mariadb"
WAIT_ON_PORT: "3306"
command:
- -b 0.0.0.0 --server-config=standalone.xml

maildev:
container_name: maildev
image: djfarrelly/maildev:1.1.0
ports:
- "8081:80"
- "25"
maildev:
container_name: maildev
image: djfarrelly/maildev:1.1.0
ports:
- "8081:80"
- "25"
6 changes: 3 additions & 3 deletions govuk-drt/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
rel="stylesheet"/><!--<![endif]-->
<!--[if lt IE 9]><script src="${url.resourcesPath}/vendor/govuk_template/javascripts/ie.js?0.22.1"></script><![endif]-->

<link rel="shortcut icon" href="${url.resourcesPath}/vendor/govuk_template/images/favicon.ico?0.22.1"
<link rel="shortcut icon" href="${url.resourcesPath}/assets/favicon.ico"
type="image/x-icon"/>
<link rel="mask-icon" href="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown.svg?0.22.1"
<link rel="mask-icon" href="${url.resourcesPath}/assets/crown-logo-mask.svg"
color="#0b0c0c">
<link rel="apple-touch-icon-precomposed" sizes="152x152"
href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-152x152.png?0.22.1">
Expand Down Expand Up @@ -122,7 +122,7 @@
<div class="header-global">
<div class="header-logo">
<a href="https://www.gov.uk" title="Go to the GOV.UK homepage" id="logo" class="content">
<img src="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown_invert_trans.png?0.22.1"
<img src="${url.resourcesPath}/assets/crown-invert-logo.svg"
width="36" height="32" alt=""> GOV.UK
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions govuk-internal-dq/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<!--[if gte IE 9]><!--><link href="${url.resourcesPath}/vendor/govuk_template/stylesheets/fonts.css?0.22.1" media="all" rel="stylesheet" /><!--<![endif]-->
<!--[if lt IE 9]><script src="${url.resourcesPath}/vendor/govuk_template/javascripts/ie.js?0.22.1"></script><![endif]-->

<link rel="shortcut icon" href="${url.resourcesPath}/vendor/govuk_template/images/favicon.ico?0.22.1" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown.svg?0.22.1" color="#0b0c0c">
<link rel="shortcut icon" href="${url.resourcesPath}/assets/favicon.ico" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/assets/crown-logo-mask.svg" color="#0b0c0c">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-152x152.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-120x120.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-76x76.png?0.22.1">
Expand Down
4 changes: 2 additions & 2 deletions govuk-internal/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<!--[if gte IE 9]><!--><link href="${url.resourcesPath}/vendor/govuk_template/stylesheets/fonts.css?0.22.1" media="all" rel="stylesheet" /><!--<![endif]-->
<!--[if lt IE 9]><script src="${url.resourcesPath}/vendor/govuk_template/javascripts/ie.js?0.22.1"></script><![endif]-->

<link rel="shortcut icon" href="${url.resourcesPath}/vendor/govuk_template/images/favicon.ico?0.22.1" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown.svg?0.22.1" color="#0b0c0c">
<link rel="shortcut icon" href="${url.resourcesPath}/assets/favicon.ico" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/assets/crown-logo-mask.svg" color="#0b0c0c">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-152x152.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-120x120.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-76x76.png?0.22.1">
Expand Down
6 changes: 3 additions & 3 deletions govuk-social-providers/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<!--[if gte IE 9]><!--><link href="${url.resourcesPath}/vendor/govuk_template/stylesheets/fonts.css?0.22.1" media="all" rel="stylesheet" /><!--<![endif]-->
<!--[if lt IE 9]><script src="${url.resourcesPath}/vendor/govuk_template/javascripts/ie.js?0.22.1"></script><![endif]-->

<link rel="shortcut icon" href="${url.resourcesPath}/vendor/govuk_template/images/favicon.ico?0.22.1" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown.svg?0.22.1" color="#0b0c0c">
<link rel="shortcut icon" href="${url.resourcesPath}/assets/favicon.ico" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/assets/crown-logo-mask.svg" color="#0b0c0c">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-152x152.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-120x120.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-76x76.png?0.22.1">
Expand Down Expand Up @@ -109,7 +109,7 @@
<div class="header-global">
<div class="header-logo">
<a href="https://www.gov.uk" title="Go to the GOV.UK homepage" id="logo" class="content">
<img src="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown_invert_trans.png?0.22.1" width="36" height="32" alt=""> GOV.UK
<img src="${url.resourcesPath}/assets/crown-invert-logo.svg" width="36" height="32" alt=""> GOV.UK
</a>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions govuk/login/resources/assets/crown-invert-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions govuk/login/resources/assets/crown-logo-mask.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions govuk/login/resources/assets/crown-logo.svg
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 govuk/login/resources/assets/favicon.ico
Binary file not shown.
6 changes: 3 additions & 3 deletions govuk/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<!--[if gte IE 9]><!--><link href="${url.resourcesPath}/vendor/govuk_template/stylesheets/fonts.css?0.22.1" media="all" rel="stylesheet" /><!--<![endif]-->
<!--[if lt IE 9]><script src="${url.resourcesPath}/vendor/govuk_template/javascripts/ie.js?0.22.1"></script><![endif]-->

<link rel="shortcut icon" href="${url.resourcesPath}/vendor/govuk_template/images/favicon.ico?0.22.1" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown.svg?0.22.1" color="#0b0c0c">
<link rel="shortcut icon" href="${url.resourcesPath}/assets/favicon.ico" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/assets/crown-logo-mask.svg" color="#0b0c0c">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-152x152.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-120x120.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-76x76.png?0.22.1">
Expand Down Expand Up @@ -109,7 +109,7 @@
<div class="header-global">
<div class="header-logo">
<a href="https://www.gov.uk" title="Go to the GOV.UK homepage" id="logo" class="content">
<img src="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown_invert_trans.png?0.22.1" width="36" height="32" alt=""> GOV.UK
<img src="${url.resourcesPath}/assets/crown-invert-logo.svg" width="36" height="32" alt=""> GOV.UK
</a>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions hmpo-lev/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<!--[if gte IE 9]><!--><link href="${url.resourcesPath}/vendor/govuk_template/stylesheets/fonts.css?0.22.1" media="all" rel="stylesheet" /><!--<![endif]-->
<!--[if lt IE 9]><script src="${url.resourcesPath}/vendor/govuk_template/javascripts/ie.js?0.22.1"></script><![endif]-->

<link rel="shortcut icon" href="${url.resourcesPath}/vendor/govuk_template/images/favicon.ico?0.22.1" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown.svg?0.22.1" color="#0b0c0c">
<link rel="shortcut icon" href="${url.resourcesPath}/assets/favicon.ico" type="image/x-icon" />
<link rel="mask-icon" href="${url.resourcesPath}/assets/crown-logo-mask.svg" color="#0b0c0c">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-152x152.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-120x120.png?0.22.1">
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="${url.resourcesPath}/vendor/govuk_template/images/apple-touch-icon-76x76.png?0.22.1">
Expand Down Expand Up @@ -109,7 +109,7 @@
<div class="header-global">
<div class="header-logo">
<a href="https://www.gov.uk" title="Go to the GOV.UK homepage" id="logo" class="content">
<img src="${url.resourcesPath}/vendor/govuk_template/images/gov.uk_logotype_crown_invert_trans.png?0.22.1" width="36" height="32" alt=""> GOV.UK
<img src="${url.resourcesPath}/assets/crown-invert-logo.svg" width="36" height="32" alt=""> GOV.UK
</a>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions sass/govuk_elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ $path: "../vendor/govuk_frontend_toolkit/images/";// Path to Frontend Toolkit im
display: inline;
}
}

/* Override the govuk_template_jinja css files with the new crown logo (Kings Tudor Crown) */
header#global-header #logo {
background: url("../assets/crown-logo.svg") no-repeat;
}

0 comments on commit a287c29

Please sign in to comment.