Skip to content

Commit 69d8172

Browse files
d13cmgriffing
andcommitted
Updates workshop banner styles
Co-authored-by: Chris Griffing <[email protected]>
1 parent 5d6a7b3 commit 69d8172

File tree

2 files changed

+58
-57
lines changed

2 files changed

+58
-57
lines changed

src/webviews/apps/welcome/welcome.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ <h1 class="welcome__brand"><gitlens-logo></gitlens-logo> <small>Git Supercharged
4949
</p>
5050
</header>
5151
<main class="welcome__main">
52-
<div class="workshop-banner" id="workshop-banner">
53-
<p class="workshop-banner__date"><strong>April 30th 1PM ET</strong></p>
54-
55-
<p class="workshop-banner__content">
56-
<span>Discover faster, easier onboarding with GitLens</span>
57-
<span><strong>Free Workshop</strong></span>
58-
</p>
59-
<gl-button
60-
href="https://event.sessions.us/gitkraken/fast-easy-onboarding-with-gitlens-in-vs-code?utm_campaign=GitKraken%20Workshops&utm_source=twitter&utm_medium=social&utm_term=GitLens%20Workshop"
61-
class="workshop-banner__register-button"
62-
>
63-
Register Now
64-
</gl-button>
65-
</div>
6652
<section class="welcome__section">
53+
<div class="workshop-banner" id="workshop-banner">
54+
<p class="workshop-banner__date"><strong>April 30th 1PM ET</strong></p>
55+
56+
<p class="workshop-banner__content">
57+
<span>Discover faster, easier onboarding with GitLens</span>
58+
<span><strong>Free Workshop</strong></span>
59+
</p>
60+
<gl-button
61+
href="https://event.sessions.us/gitkraken/fast-easy-onboarding-with-gitlens-in-vs-code?utm_campaign=GitKraken%20Workshops&utm_source=twitter&utm_medium=social&utm_term=GitLens%20Workshop"
62+
class="workshop-banner__register-button"
63+
>
64+
Register Now
65+
</gl-button>
66+
</div>
6767
<p class="t-feature">
6868
Supercharge Git and unlock <strong>untapped knowledge</strong> within your repository to better
6969
<strong>understand</strong>, <strong>write</strong>, and <strong>review</strong> code. Focus,

src/webviews/apps/welcome/welcome.scss

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -278,55 +278,12 @@ gk-card p {
278278
grid-template-columns: 1fr;
279279
grid-template-rows: min-content;
280280
gap: 1.6rem 3rem;
281-
282-
.workshop-banner {
283-
border: thin solid #c64eff;
284-
border-radius: 3px;
285-
display: flex;
286-
flex-direction: row;
287-
margin: 1rem;
288-
align-items: center;
289-
justify-content: space-between;
290-
padding: 1rem 2rem;
291-
gap: 1rem;
292-
margin-right: 6rem;
293-
294-
&__date {
295-
margin-bottom: 0;
296-
}
297-
298-
&__content {
299-
display: flex;
300-
flex-direction: column;
301-
align-items: center;
302-
justify-content: center;
303-
gap: 0.5rem;
304-
margin-bottom: 0;
305-
}
306-
307-
&__register-button {
308-
--button-foreground: white;
309-
--button-background: #c64eff;
310-
--button-hover-background: #d98ffb;
311-
font-weight: bold;
312-
border-radius: 2px;
313-
padding: 0.5rem 2rem;
314-
}
315-
316-
@media screen and (width < 1000px) {
317-
flex-direction: column;
318-
margin-right: 0;
319-
text-align: center;
320-
padding: 1rem 1rem;
321-
}
322-
}
323281
}
324282

325283
&__section {
326284
& + & {
327285
// border-top: 1px solid var(--vscode-editorWidget-border);
328286
padding-top: 0.5rem;
329-
max-width: 692px;
330287
}
331288

332289
> *:last-child {
@@ -439,6 +396,7 @@ gk-card p {
439396
}
440397
&__section {
441398
grid-column: 1;
399+
max-width: 692px;
442400

443401
&:nth-child(3) {
444402
grid-column: 2;
@@ -583,3 +541,46 @@ body {
583541
border-left-color: var(--color-alert-errorBorder);
584542
}
585543
}
544+
545+
.workshop-banner {
546+
border: thin solid #c64eff;
547+
border-radius: 3px;
548+
display: flex;
549+
flex-direction: row;
550+
margin: 1rem;
551+
align-items: center;
552+
justify-content: space-between;
553+
padding: 1rem 2rem;
554+
gap: 1rem;
555+
text-align: center;
556+
557+
&__date {
558+
flex: none;
559+
margin-bottom: 0;
560+
}
561+
562+
&__content {
563+
display: flex;
564+
flex-direction: column;
565+
align-items: center;
566+
justify-content: center;
567+
gap: 0.5rem;
568+
margin-bottom: 0;
569+
}
570+
571+
&__register-button {
572+
flex: none;
573+
--button-foreground: white;
574+
--button-background: #c64eff;
575+
--button-hover-background: #d98ffb;
576+
font-weight: bold;
577+
border-radius: 2px;
578+
padding: 0.5rem 2rem;
579+
}
580+
581+
@media screen and (width < 1000px) {
582+
flex-direction: column;
583+
text-align: center;
584+
padding-inline: 1rem;
585+
}
586+
}

0 commit comments

Comments
 (0)