File tree 3 files changed +25
-2
lines changed
shell/feature-shell-web/src/lib
3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1
1
export * from './lib/ad-image-banner/ad-image-banner.component' ;
2
2
export * from './lib/ad-image-banner/ad-image-banner-data.interface' ;
3
3
export * from './lib/banner-carousel/al-banner-carousel.component' ;
4
+ export * from './lib/top-banner.component' ;
Original file line number Diff line number Diff line change
1
+ import { Component } from '@angular/core' ;
2
+
3
+ @Component ( {
4
+ selector : 'al-top-banner' ,
5
+ template : `
6
+ <a
7
+ class="flex w-full flex-wrap justify-center gap-[5px] px-[10px] py-3 text-[18px] font-medium text-white"
8
+ style="background-image: linear-gradient(0.25turn, #fe5758, #8d52fe)"
9
+ href="https://houseofangular.io/the-ultimate-guide-to-angular-evolution/?utm_source=www-al&utm_medium=baner&utm_campaign=angular19-evolution"
10
+ >
11
+ <span>Enhance Your Project with</span>
12
+ <span class="rounded-[4px] bg-white px-[6px] text-[#f9506a]">
13
+ Angular 19
14
+ </span>
15
+ <span class="underline">Download a free ebook!</span>
16
+ </a>
17
+ ` ,
18
+ } )
19
+ export class TopBannerComponent { }
Original file line number Diff line number Diff line change @@ -16,12 +16,14 @@ import { SearchComponent } from '@angular-love/blog/search/feature-search';
16
16
import {
17
17
AdImageBanner ,
18
18
AlBannerCarouselComponent ,
19
+ TopBannerComponent ,
19
20
} from '@angular-love/blog/shared/ad-banner' ;
20
21
21
22
@Component ( {
22
23
selector : 'al-root-shell' ,
23
24
template : `
24
- <div class="fixed top-0 z-10 w-full">
25
+ <al-top-banner #topBanner />
26
+ <div class="sticky top-0 z-10 w-full">
25
27
<al-header
26
28
class="block w-full"
27
29
[language]="language()"
@@ -30,7 +32,7 @@ import {
30
32
<al-search />
31
33
</al-header>
32
34
</div>
33
- <al-layout class="mt-20 " [ngClass]="{ 'mt-40 ': adBannerVisible() }">
35
+ <al-layout class="mt-0 " [ngClass]="{ 'mt-20 ': adBannerVisible() }">
34
36
@if (slides()?.length && slides(); as slides) {
35
37
<al-banner-carousel
36
38
class="mb-4 inline-block"
@@ -50,6 +52,7 @@ import {
50
52
SearchComponent ,
51
53
NgClass ,
52
54
AlBannerCarouselComponent ,
55
+ TopBannerComponent ,
53
56
] ,
54
57
} )
55
58
export class RootShellComponent {
You can’t perform that action at this time.
0 commit comments