Browse Source

Updates home banners

main
Keith Daulton 11 months ago
parent
commit
0cbc118f6d
3 changed files with 23 additions and 6 deletions
  1. +8
    -5
      src/webviews/apps/home/home.html
  2. +15
    -1
      src/webviews/apps/home/home.scss
  3. BIN
      src/webviews/apps/media/cyberweek-2023-small-dark.png

+ 8
- 5
src/webviews/apps/home/home.html View File

@ -22,6 +22,14 @@
data-vscode-context='{ "webview": "#{webviewId}", "webviewInstance": "#{webviewInstanceId}" }' data-vscode-context='{ "webview": "#{webviewId}", "webviewInstance": "#{webviewInstanceId}" }'
> >
<div class="home__nav"> <div class="home__nav">
<div class="promo-banner promo-banner--eyebrow" id="promo-pro50" hidden>
<a
class="promo-banner__link"
href="command:gitlens.plus.purchase"
title="Special: 50% off first seat of Pro — only $4/month!"
>Special: 50% off first seat of Pro — only $4/month!</a
>
</div>
<nav class="inline-nav" id="links" aria-label="Help and Resources"> <nav class="inline-nav" id="links" aria-label="Help and Resources">
<div class="inline-nav__group"> <div class="inline-nav__group">
<a <a
@ -141,11 +149,6 @@
50% off first seat of Pro — only $4/month! 50% off first seat of Pro — only $4/month!
</a> </a>
</div> </div>
<div class="promo-banner" id="promo-pro50" hidden>
<a class="promo-banner__link" href="command:gitlens.plus.purchase"
>Special: 50% off first seat of Pro — only $4/month!</a
>
</div>
<nav class="nav-list"> <nav class="nav-list">
<h2 class="nav-list__title t-eyebrow">Popular views</h2> <h2 class="nav-list__title t-eyebrow">Popular views</h2>
<a <a

+ 15
- 1
src/webviews/apps/home/home.scss View File

@ -147,6 +147,11 @@ ul {
text-align: center; text-align: center;
margin-bottom: 1rem; margin-bottom: 1rem;
&--eyebrow {
color: var(--color-foreground--50);
margin-bottom: 0.2rem;
}
&__link { &__link {
display: inline-block; display: inline-block;
font-size: 1.1rem; font-size: 1.1rem;
@ -161,9 +166,18 @@ ul {
} }
} }
&--eyebrow &__link {
display: block;
white-space: nowrap;
font-weight: normal;
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
}
&__media { &__media {
// width: 100%; // width: 100%;
max-width: 100%;
max-width: 8.6rem;
height: auto; height: auto;
&.is-light { &.is-light {

BIN
src/webviews/apps/media/cyberweek-2023-small-dark.png View File

Before After
Width: 84  |  Height: 33  |  Size: 5.6 KiB Width: 168  |  Height: 66  |  Size: 16 KiB

Loading…
Cancel
Save