From 240810d517156273a4c1530ab81b1dcc71de71a7 Mon Sep 17 00:00:00 2001 From: Vincent Latombe Date: Tue, 5 Sep 2023 09:29:01 +0200 Subject: [PATCH] Add branding to login screen This demonstrates branding of the login/register screen made possible via https://github.com/jenkinsci/jenkins/pull/8462 --- pom.xml | 2 +- .../DesignLibrarySimplePageDecorator.java | 8 +++++ .../simple-branding.jelly | 31 +++++++++++++++++++ src/main/webapp/css/branding.css | 14 +++++++++ src/main/webapp/images/design-library.svg | 8 +++++ 5 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 src/main/java/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator.java create mode 100644 src/main/resources/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator/simple-branding.jelly create mode 100644 src/main/webapp/css/branding.css create mode 100644 src/main/webapp/images/design-library.svg diff --git a/pom.xml b/pom.xml index da4eb1a8..ca5961ff 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ THE SOFTWARE. 999999-SNAPSHOT jenkinsci/design-library-plugin - 2.415 + 2.422-rc34164.1202c5b_f2391 18.17.1 9.8.1 diff --git a/src/main/java/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator.java b/src/main/java/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator.java new file mode 100644 index 00000000..69334cc8 --- /dev/null +++ b/src/main/java/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator.java @@ -0,0 +1,8 @@ +package io.jenkins.plugins.designlibrary; + +import hudson.Extension; +import jenkins.model.SimplePageDecorator; + +@Extension +public class DesignLibrarySimplePageDecorator extends SimplePageDecorator { +} diff --git a/src/main/resources/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator/simple-branding.jelly b/src/main/resources/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator/simple-branding.jelly new file mode 100644 index 00000000..fd7a55fc --- /dev/null +++ b/src/main/resources/io/jenkins/plugins/designlibrary/DesignLibrarySimplePageDecorator/simple-branding.jelly @@ -0,0 +1,31 @@ + + + + + + diff --git a/src/main/webapp/css/branding.css b/src/main/webapp/css/branding.css new file mode 100644 index 00000000..f721aacd --- /dev/null +++ b/src/main/webapp/css/branding.css @@ -0,0 +1,14 @@ +.jdl-branding { + position: absolute; + inset: 0; + z-index: 1; + background: linear-gradient( + 99.6deg, + rgb(112, 128, 152) 10.6%, + rgb(242, 227, 234) 32.9%, + rgb(234, 202, 213) 52.7%, + rgb(220, 227, 239) 72.8%, + rgb(185, 205, 227) 81.1%, + rgb(154, 180, 212) 102.4% + ); +} diff --git a/src/main/webapp/images/design-library.svg b/src/main/webapp/images/design-library.svg new file mode 100644 index 00000000..ce8be897 --- /dev/null +++ b/src/main/webapp/images/design-library.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file