Skip to content

Commit 6eb52c5

Browse files
authored
Updated 6.0 update CTA (#24563)
ref 5de4255 - This is a refinement of the commit above. It adds a link to the 6.0 landing page and updates the copy
1 parent a233b79 commit 6eb52c5

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

ghost/admin/app/styles/components/notifications.css

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,59 @@
345345
display: flex;
346346
justify-content: center;
347347
align-items: center;
348-
padding: 12px;
348+
padding: 14px;
349349
background: var(--black);
350350
color: #fff;
351351
font-size: 1.45rem;
352352
z-index: 30;
353353
}
354354

355355
.gh-update-banner a {
356-
font-weight: 700;
356+
font-weight: 500;
357357
color: var(--green-l2);
358358
}
359+
360+
.gh-update-banner.gh-60 a.whatsnew {
361+
position: relative;
362+
color: #fff;
363+
text-decoration: underline;
364+
}
365+
366+
.gh-update-banner.gh-60 {
367+
display: flex;
368+
align-items: center;
369+
justify-content: center;
370+
gap: 12px;
371+
font-weight: 500;
372+
}
373+
374+
.gh-update-banner.gh-60 .button {
375+
margin-left: 8px;
376+
height: 32px;
377+
font-weight: 600;
378+
display: flex;
379+
align-items: center;
380+
justify-content: center;
381+
padding: 4px 12px;
382+
border-radius: 5px;
383+
font-size: 14px;
384+
text-decoration: none;
385+
white-space: nowrap;
386+
}
387+
388+
.gh-update-banner.gh-60 {
389+
background: linear-gradient(45deg, #122220 0%, #172E2C 100%);
390+
}
391+
392+
.gh-update-banner.gh-60 .button {
393+
background: linear-gradient(45deg, #317B9B 0%, #319B99 100%);
394+
color: #fff;
395+
}
396+
397+
.gh-update-banner.gh-60 .button:hover {
398+
opacity: 0.9;
399+
}
400+
401+
.gh-update-banner.gh-60 .gh-alert-content {
402+
font-size: 1.45rem;
403+
}

ghost/admin/app/templates/application.hbs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
{{/if}}
1010

1111
{{#if (and this.session.user.isAdmin this.showUpdateBanner)}}
12-
<aside class="gh-update-banner">
12+
<aside class="gh-update-banner gh-60">
1313
{{#if this.session.user.isOwnerOnly}}
1414
<div class="gh-alert-content">
15-
A new major version of Ghost is available!&nbsp;
15+
A new major version of Ghost is available! <a href="https://ghost.org/6" target="_blank" rel="noopener noreferrer" class="whatsnew">See what's new</a>
1616
</div>
17-
<a href="#" {{on "click" this.openUpdateTab}}>Update to Ghost 6.0 &rarr;</a>
17+
<button class="button" type="button" {{on "click" this.openUpdateTab}}>
18+
Update to Ghost 6.0 &rarr;
19+
</button>
1820
{{else}}
1921
<div class="gh-alert-content">
2022
Your Ghost install is ready for a major update!

0 commit comments

Comments
 (0)