Skip to content

Commit a411b74

Browse files
Merge pull request #2236 from nestjs/chore/ukraine-banner
chore(): add top banner
2 parents 5deebab + c9b4412 commit a411b74

File tree

5 files changed

+34
-22
lines changed

5 files changed

+34
-22
lines changed

src/app/homepage/header/header.component.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<div class="top-bar">
2+
<a href="https://supportukrainenow.org/">STOP RUSSIA'S INVASION OF UKRAINE 🇺🇦</a>
3+
</div>
14
<header>
25
<button
36
class="icon-wrapper"
@@ -74,14 +77,4 @@
7477
</li>
7578
</ul>
7679
</div>
77-
<!--<div class="workshop-wrapper">
78-
<img src="/assets/ng-camp-small.svg" alt="AngularCamp, Barcelona" />
79-
<div class="workshop-info">
80-
<h3 class="long-title">
81-
<span>NestJS</span> at 2018 JSCamp Conference, Barcelona</h3>
82-
<h3 class="short-title">
83-
<span>NestJS</span> 2018 JSCamp</h3>
84-
<a href="https://angularcamp.tech/workshops/scalable-nodejs-with-nest/" target="_blank">LEARN MORE</a>
85-
</div>
86-
</div>-->
8780
</header>

src/app/homepage/header/header.component.scss

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,42 @@
22
@import '../../../scss/utils.scss';
33

44
:host {
5-
background: $black-color;
6-
display: block;
7-
width: 100%;
8-
height: 70px;
95
position: fixed;
106
z-index: 10000;
7+
width: 100%;
8+
height: 105px;
119

1210
@media print {
1311
position: relative;
1412
}
1513
}
1614

15+
.top-bar {
16+
background: #0a0a0a;
17+
text-align: center;
18+
height: 35px;
19+
padding: 4px;
20+
letter-spacing: 0.2px;
21+
box-sizing: border-box;
22+
23+
span {
24+
margin: 0;
25+
}
26+
27+
a {
28+
color: #fff;
29+
font-weight: 600;
30+
font-size: 18px;
31+
}
32+
}
33+
1734
header {
18-
height: 100%;
19-
width: 100%;
2035
display: block;
2136
position: relative;
37+
background: $black-color;
38+
width: 100%;
39+
height: 70px;
40+
z-index: 10000;
2241
}
2342

2443
.icon-wrapper {

src/app/homepage/homepage.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
//@include transform(translateX(250px));
2323
margin-left: 250px;
2424
width: calc(100% - 250px);
25-
padding: 85px 85px 0;
25+
padding: 120px 85px 0;
2626
display: inline-block;
2727
vertical-align: top;
2828
position: relative;
@@ -38,7 +38,7 @@
3838
//@include transform(translateX(250px));
3939
margin-left: 250px;
4040
width: calc(100% - 250px);
41-
padding: 85px 50px 0;
41+
padding: 120px 50px 0;
4242
&.wide {
4343
width: 100%;
4444
}
@@ -47,7 +47,7 @@
4747
//@include transform(translateX(0));
4848
margin-left: 0;
4949
width: 100%;
50-
padding: 85px 20px 0;
50+
padding: 120px 20px 0;
5151
}
5252

5353
@media print {

src/app/homepage/menu/menu.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@extend .transition;
66
@extend .box-sizing;
77
@include transform(translateX(-100%));
8-
padding: 90px 17px 40px 24px;
8+
padding: 125px 17px 40px 24px;
99
width: 250px;
1010
background: #f5f5f5;
1111
position: fixed !important;
@@ -27,7 +27,7 @@
2727
}
2828
}
2929
@include media(medium) {
30-
padding: 85px 25px 20px 25px;
30+
padding: 120px 25px 20px 25px;
3131
}
3232
@include media(small) {
3333
width: 100%;

src/app/shared/components/toc/toc.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
padding-left: 45px;
77
box-sizing: border-box;
88
position: fixed;
9-
top: 90px;
9+
top: 125px;
1010
right: 20px;
1111
max-height: 350px;
1212
max-height: calc(100vh - 350px);

0 commit comments

Comments
 (0)