Skip to content

Commit 75bfb77

Browse files
committed
fix(banner): add missing SCSS and register component in SharedModule
Add kubecon-banner.component.scss with responsive banner styles. Register KubeconBannerComponent in SharedModule declarations and exports. Resolves: linuxfoundation/easycla#4888 Assisted by [Cursor](https://cursor.com/) Signed-off-by: ahmedomosanya <[email protected]>
1 parent 7b0d4a3 commit 75bfb77

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright The Linux Foundation and each contributor to CommunityBridge.
2+
// SPDX-License-Identifier: MIT
3+
// Assisted with Cursor, assisted with Claude AI
4+
5+
.kubecon-banner {
6+
display: block;
7+
background-color: rgb(0, 148, 255);
8+
color: white;
9+
text-align: center;
10+
height: 3.5rem;
11+
font-size: 0.875rem;
12+
line-height: 1.75rem;
13+
margin-top: 60px;
14+
15+
a {
16+
color: white;
17+
text-decoration: underline;
18+
white-space: nowrap;
19+
20+
&:hover {
21+
text-decoration: none;
22+
}
23+
}
24+
25+
// Responsive styles
26+
@media (min-width: 640px) {
27+
height: 1.75rem;
28+
}
29+
}

src/app/shared/shared.module.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { FooterComponent } from './components/footer/footer.component';
1919
import { ConsentComponent } from './components/consent/consent.component';
2020
import { CommonModule } from '@angular/common';
2121
import { TrackEventDirective } from './directives/track-event.directive';
22+
import { KubeconBannerComponent } from './components/kubecon-banner/kubecon-banner.component';
2223

2324
@NgModule({
2425
declarations: [
@@ -33,7 +34,8 @@ import { TrackEventDirective } from './directives/track-event.directive';
3334
CheckboxComponent,
3435
FooterComponent,
3536
ConsentComponent,
36-
TrackEventDirective
37+
TrackEventDirective,
38+
KubeconBannerComponent
3739
],
3840
imports: [
3941
CommonModule
@@ -50,7 +52,8 @@ import { TrackEventDirective } from './directives/track-event.directive';
5052
CheckboxComponent,
5153
FooterComponent,
5254
ConsentComponent,
53-
TrackEventDirective
55+
TrackEventDirective,
56+
KubeconBannerComponent
5457
],
5558
providers: [StorageService, AuthService, LfxHeaderService, InterceptorService]
5659
})

0 commit comments

Comments
 (0)