Added Birthdays page

Introduced a new BirthdaysComponent with its corresponding HTML, SCSS, and spec files. Added a route for '/birthdays' in the application and integrated it into the module and routing. This component showcases staff and previous staff birthdays.
This commit is contained in:
Peter 2025-04-06 22:06:48 +02:00
parent ab3abe7f6b
commit e7ac2d0462
5 changed files with 55 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import {TeamComponent} from './team/team.component';
import {AboutComponent} from './about/about.component'; import {AboutComponent} from './about/about.component';
import {SocialsComponent} from './socials/socials.component'; import {SocialsComponent} from './socials/socials.component';
import {VoteComponent} from './vote/vote.component'; import {VoteComponent} from './vote/vote.component';
import {BirthdaysComponent} from './birthdays/birthdays.component';
const routes: Routes = [ const routes: Routes = [
{path: '', component: HomeComponent}, {path: '', component: HomeComponent},
@ -26,6 +27,7 @@ const routes: Routes = [
{path: 'about', component: AboutComponent}, {path: 'about', component: AboutComponent},
{path: 'socials', component: SocialsComponent}, {path: 'socials', component: SocialsComponent},
{path: 'team', component: TeamComponent}, {path: 'team', component: TeamComponent},
{path: 'birthdays', component: BirthdaysComponent},
{path: 'terms', component: TermsComponent}, {path: 'terms', component: TermsComponent},
{path: 'privacy', component: PrivacyComponent}, {path: 'privacy', component: PrivacyComponent},
]; ];
@ -43,6 +45,7 @@ const routes: Routes = [
AboutComponent, AboutComponent,
SocialsComponent, SocialsComponent,
TeamComponent, TeamComponent,
BirthdaysComponent,
TermsComponent, TermsComponent,
PrivacyComponent, PrivacyComponent,
], ],

View File

@ -0,0 +1,16 @@
<ng-container>
<app-header [current_page]="'birthdays'" height="460px" background_image="/public/img/backgrounds/staff.png"
[overlay_gradient]="0.5">
<div class="title" header-content>
<h1>Famous Altitude Staff Birthdays</h1>
<h2>(and previous staff)</h2>
</div>
</app-header>
<main>
<section class="darkmodeSection">
<div class="container" style="padding: 50px 0 0 0; justify-content: center;">
</div>
</section>
</main>
</ng-container>

View File

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { BirthdaysComponent } from './birthdays.component';
describe('BirthdaysComponent', () => {
let component: BirthdaysComponent;
let fixture: ComponentFixture<BirthdaysComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [BirthdaysComponent]
})
.compileComponents();
fixture = TestBed.createComponent(BirthdaysComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,13 @@
import {Component} from '@angular/core';
import {ScrollService} from '../scroll/scroll.service';
@Component({
selector: 'app-birthdays',
standalone: false,
templateUrl: './birthdays.component.html',
styleUrl: './birthdays.component.scss'
})
export class BirthdaysComponent {
constructor(public scrollService: ScrollService) {
}
}