Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Sep 8, 2024
1 parent eea8cc9 commit 29eec13
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,14 @@ THE SOFTWARE.
</head>
<body>
<div class="simple-page" role="main">
<div class="modal signup">
<div class="signupIntroDefault">
<div class="logo" />
<h1 class="loading">
<l:spinner text="${%Please wait while Jenkins is restarting}" />
</h1>
<p>
${%blurb}
</p>
</div>
<div class="app-jenkins-booting">
<div class="logo" />
<h1 class="loading">
<l:spinner text="${%Please wait while Jenkins is restarting}" />
</h1>
<p>
${%blurb}
</p>
</div>
</div>
<script src="${resURL}/scripts/loading.js" type="text/javascript" />
Expand Down
20 changes: 9 additions & 11 deletions core/src/main/resources/hudson/util/HudsonIsLoading/index.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,16 @@ THE SOFTWARE.
</head>
<body>
<div class="simple-page" role="main">
<div class="modal signup">
<div class="signupIntroDefault">
<div class="logo">
<img src="${imagesURL}/svgs/logo.svg" alt="Jenkins logo" />
</div>
<h1 class="loading">
<l:spinner text="${%Please wait while Jenkins is getting ready to work}" />
</h1>
<p class="restarting">
${%Your browser will reload automatically when Jenkins is ready}
</p>
<div class="app-jenkins-booting">
<div class="logo">
<img src="${imagesURL}/svgs/logo.svg" alt="Jenkins logo" />
</div>
<h1 class="loading">
<l:spinner text="${%Please wait while Jenkins is getting ready to work}" />
</h1>
<p class="restarting">
${%Your browser will reload automatically when Jenkins is ready}
</p>
</div>
</div>
<script src="${resURL}/scripts/loading.js" type="text/javascript" />
Expand Down
41 changes: 19 additions & 22 deletions core/src/main/resources/hudson/util/HudsonIsRestarting/index.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,26 @@ THE SOFTWARE.
</head>
<body>
<div class="simple-page" role="main">
<div class="modal signup">
<div class="signupIntroDefault">
<div class="logo">
<img src="${imagesURL}/svgs/logo.svg" alt="Jenkins logo" />
</div>
<h1 class="loading">
<l:spinner text="${%Please wait while Jenkins is restarting}" />
</h1>
<p class="restarting">
${%Your browser will reload automatically when Jenkins is ready}
</p>
<j:if test="${it.safeRestart}">
<div class="safe-restarting">
<p>
<strong>${%Safe Restart}</strong>
</p>
<p>
${%Builds on agents can usually continue.}
</p>
</div>
</j:if>

<div class="app-jenkins-booting">
<div class="logo">
<img src="${imagesURL}/svgs/logo.svg" alt="Jenkins logo" />
</div>
<h1 class="loading">
<l:spinner text="${%Please wait while Jenkins is restarting}" />
</h1>
<p class="restarting">
${%Your browser will reload automatically when Jenkins is ready}
</p>
<j:if test="${it.safeRestart}">
<div class="safe-restarting">
<p>
<strong>${%Safe Restart}</strong>
</p>
<p>
${%Builds on agents can usually continue.}
</p>
</div>
</j:if>
</div>
</div>
<script src="${resURL}/scripts/loading.js" type="text/javascript" />
Expand Down
8 changes: 5 additions & 3 deletions war/src/main/scss/simple-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,21 @@
color: var(--danger-color, #c4000a);
}

@keyframes dotheroar {
@keyframes fade-in-jenkins-booting {
from {
scale: 97.5%;
opacity: 0;
filter: blur(1px);
}
}

.signupIntroDefault {
.app-jenkins-booting {
display: flex;
flex-direction: column;
gap: 1rem;
animation: dotheroar 0.4s both 0.2s;
animation: fade-in-jenkins-booting 0.4s both 0.2s;
// Optical compensation to visually center content
margin-top: -2rem;

* {
font-size: 1rem;
Expand Down

0 comments on commit 29eec13

Please sign in to comment.