Skip to content

Commit fadb356

Browse files
committed
Layout of the header of the welcome page
(#4769, #4773, PLG-138)
1 parent f8d2533 commit fadb356

File tree

2 files changed

+60
-10
lines changed

2 files changed

+60
-10
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import { css } from 'lit';
2+
3+
export const welcomeStyles = css`
4+
.welcome::before {
5+
content: ' ';
6+
position: absolute;
7+
top: 0;
8+
left: 50%;
9+
transform: translateX(-50%) translateY(-40%);
10+
z-index: -1;
11+
12+
width: 620px;
13+
height: 517px;
14+
15+
border-radius: 100%;
16+
background: radial-gradient(76.32% 76.32% at 50% 7.24%, #7b00ff 29.72%, rgba(255, 0, 242, 0) 100%);
17+
opacity: 0.25;
18+
mix-blend-mode: color;
19+
filter: blur(53px);
20+
}
21+
.welcome__section {
22+
display: flex;
23+
flex-flow: column;
24+
justify-content: center;
25+
align-items: center;
26+
text-align: center;
27+
}
28+
.welcome__section p {
29+
font-size: larger;
30+
max-width: calc(620px * 0.75);
31+
}
32+
33+
.welcome__header {
34+
margin-top: 5rem;
35+
margin-bottom: 2rem;
36+
max-width: 620px;
37+
margin-left: auto;
38+
margin-right: auto;
39+
}
40+
.welcome__header gitlens-logo {
41+
transform: translateX(-0.75rem);
42+
}
43+
.welcome__header h1 {
44+
margin-bottom: 0;
45+
}
46+
47+
.welcome__accent {
48+
color: #cb64ff;
49+
}
50+
`;

src/webviews/apps/welcome/welcome.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import type { LoggerContext } from '../shared/contexts/logger';
99
import type { HostIpc } from '../shared/ipc';
1010
import { WelcomeStateProvider } from './stateProvider';
1111
import '../shared/components/gitlens-logo';
12+
import { welcomeStyles } from './welcome.css';
1213

1314
@customElement('gl-welcome-app')
1415
export class GlWelcomeApp extends GlAppHost<State> {
15-
static override styles = [scrollableBase];
16+
static override styles = [scrollableBase, welcomeStyles];
1617

1718
protected override createStateProvider(
1819
bootstrap: string,
@@ -25,18 +26,17 @@ export class GlWelcomeApp extends GlAppHost<State> {
2526
override render(): unknown {
2627
return html`
2728
<div class="welcome scrollable">
28-
<div>
29-
<h1><gitlens-logo></gitlens-logo></h1>
30-
<p>Supercharge Git in Cursor with GitLens</p>
31-
</div>
32-
33-
<div>
34-
<h2>🚀 Getting Started</h2>
29+
<div class="welcome__section welcome__header">
30+
<gitlens-logo></gitlens-logo>
31+
<h1>GitLens is now installed in Cursor</h1>
3532
<p>
36-
GitLens is now installed and ready to help you visualize code authorship, navigate Git history,
37-
and collaborate more effectively.
33+
Understand every line of code — instantly. GitLens reveals authorship, activity, and history
34+
inside the editor
3835
</p>
3936
</div>
37+
<div class="welcome__section">
38+
<p>With <span class="welcome__accent">PRO</span> subscription you get more</p>
39+
</div>
4040
4141
<div>
4242
<h2>✨ Key Features</h2>

0 commit comments

Comments
 (0)