Skip to content

Commit

Permalink
Add branding to login screen
Browse files Browse the repository at this point in the history
This demonstrates branding of the login/register screen made possible via jenkinsci/jenkins#8462
  • Loading branch information
Vlatombe committed Sep 5, 2023
1 parent cd72d67 commit 240810d
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ THE SOFTWARE.
<properties>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/design-library-plugin</gitHubRepo>
<jenkins.version>2.415</jenkins.version>
<jenkins.version>2.422-rc34164.1202c5b_f2391</jenkins.version>
<node.version>18.17.1</node.version>
<npm.version>9.8.1</npm.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.jenkins.plugins.designlibrary;

import hudson.Extension;
import jenkins.model.SimplePageDecorator;

@Extension
public class DesignLibrarySimplePageDecorator extends SimplePageDecorator {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
The MIT License
Copyright (c) 2023, CloudBees, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core">
<link rel="stylesheet" href="${resURL}/plugin/design-library/css/branding.css" type="text/css" />
<section class="app-sign-in-register__branding">
<div class="jdl-branding"></div>
<img src="${resURL}/plugin/design-library/images/design-library.svg" alt="${%logo}"/>
</section>
</j:jelly>
14 changes: 14 additions & 0 deletions src/main/webapp/css/branding.css
Original file line number Diff line number Diff line change
@@ -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%
);
}
8 changes: 8 additions & 0 deletions src/main/webapp/images/design-library.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 240810d

Please sign in to comment.