Skip to content

Commit e402103

Browse files
d13eamodio
authored andcommitted
Updates home banners
1 parent ebb3900 commit e402103

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

src/webviews/apps/home/home.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
data-vscode-context='{ "webview": "#{webviewId}", "webviewInstance": "#{webviewInstanceId}" }'
2323
>
2424
<div class="home__nav">
25+
<div class="promo-banner promo-banner--eyebrow" id="promo-pro50" hidden>
26+
<a
27+
class="promo-banner__link"
28+
href="command:gitlens.plus.purchase"
29+
title="Special: 50% off first seat of Pro — only $4/month!"
30+
>Special: 50% off first seat of Pro — only $4/month!</a
31+
>
32+
</div>
2533
<nav class="inline-nav" id="links" aria-label="Help and Resources">
2634
<div class="inline-nav__group">
2735
<a
@@ -141,11 +149,6 @@ <h1 class="alert__title">Untrusted workspace</h1>
141149
50% off first seat of Pro — only $4/month!
142150
</a>
143151
</div>
144-
<div class="promo-banner" id="promo-pro50" hidden>
145-
<a class="promo-banner__link" href="command:gitlens.plus.purchase"
146-
>Special: 50% off first seat of Pro — only $4/month!</a
147-
>
148-
</div>
149152
<nav class="nav-list">
150153
<h2 class="nav-list__title t-eyebrow">Popular views</h2>
151154
<a

src/webviews/apps/home/home.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ ul {
147147
text-align: center;
148148
margin-bottom: 1rem;
149149

150+
&--eyebrow {
151+
color: var(--color-foreground--50);
152+
margin-bottom: 0.2rem;
153+
}
154+
150155
&__link {
151156
display: inline-block;
152157
font-size: 1.1rem;
@@ -161,9 +166,18 @@ ul {
161166
}
162167
}
163168

169+
&--eyebrow &__link {
170+
display: block;
171+
white-space: nowrap;
172+
font-weight: normal;
173+
max-width: 100%;
174+
text-overflow: ellipsis;
175+
overflow: hidden;
176+
}
177+
164178
&__media {
165179
// width: 100%;
166-
max-width: 100%;
180+
max-width: 8.6rem;
167181
height: auto;
168182

169183
&.is-light {
11 KB
Loading

0 commit comments

Comments
 (0)