Skip to content

Commit 253ed09

Browse files
committed
updates home view banners
1 parent 3ebf9c3 commit 253ed09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/webviews/apps/home/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
}
9494
</style>
9595
<div class="ribbon-banner-container" data-banner="cyberweek2022" hidden>
96-
<a href="#" class="ribbon-banner">
96+
<a href="https://bit.ly/3V2uvVY" class="ribbon-banner">
9797
<h2>
9898
<strong>50% off</strong>
9999
<span class="ribbon-banner__subtext">GitLens Pro &amp; all GitKraken products!</span>

src/webviews/apps/home/home.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,11 @@ function toggleArrayItem(list: string[] = [], item: string, add = true) {
357357
return list;
358358
}
359359

360+
const cyberweekStart = Date.parse('2022-11-28T07:00:00.000-08:00');
360361
const cyberweekEnding = Date.parse('2022-12-06T00:00:00.000-08:00');
361362
function showCyberWeek() {
362-
return Date.now() < cyberweekEnding;
363+
const now = Date.now();
364+
return now < cyberweekEnding && now >= cyberweekStart;
363365
}
364366

365367
new HomeApp();

0 commit comments

Comments
 (0)