Skip to content

Commit eb3b9c8

Browse files
committed
Adds 2023 holiday banner
1 parent 83ef923 commit eb3b9c8

12 files changed

Lines changed: 28 additions & 26 deletions

File tree

src/webviews/apps/home/home.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,23 +130,23 @@ <h1 class="alert__title">Untrusted workspace</h1>
130130
<p data-requires="norepo">
131131
<code-icon icon="question"></code-icon> Features which need a repository are currently unavailable
132132
</p>
133-
<div class="promo-banner" id="promo-cw2023" hidden>
133+
<div class="promo-banner" id="promo-hs2023" hidden>
134134
<a
135135
class="promo-banner__link"
136-
href="https://www.gitkraken.com/cw23?utm_source=cyber_week&utm_medium=gitlens_banner&utm_campaign=cyber_week_2023"
137-
aria-label="Cyber Week Sale: 50% off first seat of Pro — only $4/month! Includes entire GitKraken suite of dev tools."
136+
href="https://www.gitkraken.com/hs23?utm_source=holiday_special&utm_medium=gitlens_banner&utm_campaign=holiday_special_2023"
137+
aria-label="Holiday Special: 50% off GitLens Pro (plus entire GitKraken Suite) — only $4/month! Includes all Pro versions: GitLens, GitKraken Client, CLI, Browser Extension & more!"
138138
>
139139
<img
140140
class="promo-banner__media is-dark"
141-
src="#{webroot}/media/cyberweek-2023-small-dark.webp"
141+
src="#{webroot}/media/holiday-2023-small-dark.webp"
142142
alt=""
143143
/>
144144
<img
145145
class="promo-banner__media is-light"
146-
src="#{webroot}/media/cyberweek-2023-small-light.webp"
146+
src="#{webroot}/media/holiday-2023-small-light.webp"
147147
alt=""
148148
/><br />
149-
50% off first seat of Pro — only $4/month!
149+
50% off GitLens Pro (plus entire GitKraken suite) all for only $4/month
150150
</a>
151151
</div>
152152
<nav class="nav-list">

src/webviews/apps/home/home.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ ul {
177177

178178
&__media {
179179
// width: 100%;
180-
max-width: 8.6rem;
180+
max-width: 9.9rem;
181181
height: auto;
182182

183183
&.is-light {

src/webviews/apps/home/home.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ export class HomeApp extends App<State> {
107107

108108
private updatePromos() {
109109
const {
110-
promoStates: { cw2023, pro50 },
110+
promoStates: { hs2023, pro50 },
111111
} = this.state;
112112

113-
setElementVisibility('promo-cw2023', cw2023);
113+
setElementVisibility('promo-hs2023', hs2023);
114114
setElementVisibility('promo-pro50', pro50);
115115
}
116116

27.4 KB
Loading
11.9 KB
Loading
9.13 KB
Loading
10.3 KB
Loading

src/webviews/apps/plus/account/components/account-content.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ export class AccountContent extends LitElement {
154154
}
155155

156156
private renderAccountState() {
157-
const inCyberPromo = Date.now() < new Date('2023-12-06T07:59:00.000Z').getTime();
157+
const expiresTime = new Date('2023-12-31T07:59:00.000Z').getTime(); // 2023-12-30 23:59:00 PST-0800
158+
const inHolidayPromo = Date.now() < expiresTime;
158159

159160
switch (this.state) {
160161
case SubscriptionState.VerificationRequired:
@@ -191,12 +192,12 @@ export class AccountContent extends LitElement {
191192
hosted repos.
192193
</p>
193194
${when(
194-
inCyberPromo,
195+
inHolidayPromo,
195196
() =>
196197
html`<p style="text-align: center;">
197198
<a
198-
href=${'https://www.gitkraken.com/cw23?utm_source=cyber_week&utm_medium=gitlens_banner&utm_campaign=cyber_week_2023'}
199-
>Cyber Week Sale: 50% off first seat of Pro — only $4/month! Includes entire
199+
href=${'https://www.gitkraken.com/hs23?utm_source=holiday_special&utm_medium=gitlens_banner&utm_campaign=holiday_special_2023'}
200+
>Holiday Special: 50% off first seat of Pro — only $4/month! Includes entire
200201
GitKraken suite of dev tools.</a
201202
>
202203
</p>`,
@@ -232,7 +233,7 @@ export class AccountContent extends LitElement {
232233
Once your trial ends, you'll need a paid plan to continue using ✨ features.
233234
</p>
234235
${when(
235-
inCyberPromo,
236+
inHolidayPromo,
236237
() =>
237238
html`<p style="text-align: center;">
238239
<a

src/webviews/apps/plus/shared/components/feature-gate-plus-state.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export class FeatureGatePlusState extends LitElement {
5757

5858
this.hidden = false;
5959
const appearance = (this.appearance ?? 'alert') === 'alert' ? 'alert' : nothing;
60-
const inCyberPromo = Date.now() < new Date('2023-12-06T07:59:00.000Z').getTime();
60+
const expiresTime = new Date('2023-12-31T07:59:00.000Z').getTime(); // 2023-12-30 23:59:00 PST-0800
61+
const inHolidayPromo = Date.now() < expiresTime;
6162

6263
switch (this.state) {
6364
case SubscriptionState.VerificationRequired:
@@ -102,12 +103,12 @@ export class FeatureGatePlusState extends LitElement {
102103
repos.
103104
</p>
104105
${when(
105-
inCyberPromo,
106+
inHolidayPromo,
106107
() =>
107108
html`<p style="text-align: center;">
108109
<a
109-
href=${'https://www.gitkraken.com/cw23?utm_source=cyber_week&utm_medium=gitlens_banner&utm_campaign=cyber_week_2023'}
110-
>Cyber Week Sale: <b>50% off first seat of Pro</b> — only $4/month!<br />
110+
href=${'https://www.gitkraken.com/hs23?utm_source=holiday_special&utm_medium=gitlens_banner&utm_campaign=holiday_special_2023'}
111+
>Holiday Special: <b>50% off first seat of Pro</b> — only $4/month!<br />
111112
Includes entire GitKraken suite of dev tools.</a
112113
>
113114
</p>`,

src/webviews/apps/welcome/welcome.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ <h1 class="welcome__brand"><gitlens-logo></gitlens-logo> <small>Git Supercharged
5757
</p>
5858
<div class="promo-banner" id="promo" hidden>
5959
<a
60-
href="https://www.gitkraken.com/cw23?utm_source=cyber_week&utm_medium=gitlens_banner&utm_campaign=cyber_week_2023"
61-
aria-label="Cyber Week Sale: 50% off first seat of Pro — only $4/month! Includes entire GitKraken suite of dev tools."
60+
href="https://www.gitkraken.com/hs23?utm_source=holiday_special&utm_medium=gitlens_banner&utm_campaign=holiday_special_2023"
61+
aria-label="Holiday Special: 50% off GitLens Pro (plus entire GitKraken Suite) — only $4/month! Includes all Pro versions: GitLens, GitKraken Client, CLI, Browser Extension & more!"
6262
>
6363
<img
6464
class="promo-banner__media is-dark"
65-
src="#{webroot}/media/cyberweek-2023-wide-dark.webp"
65+
src="#{webroot}/media/holiday-2023-large-dark.webp"
6666
alt=""
6767
/>
6868
<img
6969
class="promo-banner__media is-light"
70-
src="#{webroot}/media/cyberweek-2023-wide-light.webp"
70+
src="#{webroot}/media/holiday-2023-large-light.webp"
7171
alt=""
7272
/>
7373
</a>

0 commit comments

Comments
 (0)