Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Crown Logo to be customised #40

Open
Sparrow0hawk opened this issue May 1, 2024 · 1 comment
Open

Allow Crown Logo to be customised #40

Sparrow0hawk opened this issue May 1, 2024 · 1 comment

Comments

@Sparrow0hawk
Copy link

We are building a service that doesn't live directly under gov.uk which means there are restrictions on the use of the Crown Logo and GDS Transport font.

The service is using GOV.UK One Login for authentication and incorporates the service header which uses the logo and font.

It would be helpful if the service header supported the ability to customise the logo to allow non-GOV.UK services to comply with the above restrictions.

@markhobson
Copy link
Contributor

Here is an example of how we customise src/nunjucks/template.njk:

       <div class="one-login-header__logo">
         <a href="{{ homepageLink }}" class="one-login-header__link one-login-header__link--homepage">
-          <span class="one-login-header__logotype">
-            <!--[if gt IE 8]><!-->
-              <svg
-                aria-hidden="true"
-                focusable="false"
-                class="one-login-header__logotype-crown"
-                xmlns="http://www.w3.org/2000/svg"
-                viewBox="0 0 32 30"
-                height="30"
-                width="32">
-                <path fill="currentColor" fill-rule="evenodd" d="M22.6 10.4c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m-5.9 6.7c-.9.4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s-.1 2-1 2.4m10.8-3.7c-1 .4-2-.1-2.4-1-.4-.9.1-2 1-2.4.9-.4 2 .1 2.4 1s0 2-1 2.4m3.3 4.
-            </svg>
-            <!--<![endif]-->
-            <span>
-              GOV.UK
-            </span>
-          </span>
+          <img class="one-login-header__logotype ate-header__logotype" src="{{ url_for('static', filename='ate-header/ATE_WHITE_LANDSCP_AW.png') }}" alt="Active Travel England"/>
+          <img class="one-login-header__logotype ate-header__logotype--focus" src="{{ url_for('static', filename='ate-header/ATE_BLK_LANDSCP_AW.png') }}" alt="Active Travel England"/>
         </a>
       </div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants