File tree Expand file tree Collapse file tree 3 files changed +25
-2
lines changed
shell/feature-shell-web/src/lib Expand file tree Collapse file tree 3 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 11export * from './lib/ad-image-banner/ad-image-banner.component' ;
22export * from './lib/ad-image-banner/ad-image-banner-data.interface' ;
33export * 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';
1616import {
1717 AdImageBanner ,
1818 AlBannerCarouselComponent ,
19+ TopBannerComponent ,
1920} from '@angular-love/blog/shared/ad-banner' ;
2021
2122@Component ( {
2223 selector : 'al-root-shell' ,
2324 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">
2527 <al-header
2628 class="block w-full"
2729 [language]="language()"
@@ -30,7 +32,7 @@ import {
3032 <al-search />
3133 </al-header>
3234 </div>
33- <al-layout class="mt-20 " [ngClass]="{ 'mt-40 ': adBannerVisible() }">
35+ <al-layout class="mt-0 " [ngClass]="{ 'mt-20 ': adBannerVisible() }">
3436 @if (slides()?.length && slides(); as slides) {
3537 <al-banner-carousel
3638 class="mb-4 inline-block"
@@ -50,6 +52,7 @@ import {
5052 SearchComponent ,
5153 NgClass ,
5254 AlBannerCarouselComponent ,
55+ TopBannerComponent ,
5356 ] ,
5457} )
5558export class RootShellComponent {
You can’t perform that action at this time.
0 commit comments