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:
parent
ab3abe7f6b
commit
e7ac2d0462
|
|
@ -17,6 +17,7 @@ import {TeamComponent} from './team/team.component';
|
|||
import {AboutComponent} from './about/about.component';
|
||||
import {SocialsComponent} from './socials/socials.component';
|
||||
import {VoteComponent} from './vote/vote.component';
|
||||
import {BirthdaysComponent} from './birthdays/birthdays.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{path: '', component: HomeComponent},
|
||||
|
|
@ -26,6 +27,7 @@ const routes: Routes = [
|
|||
{path: 'about', component: AboutComponent},
|
||||
{path: 'socials', component: SocialsComponent},
|
||||
{path: 'team', component: TeamComponent},
|
||||
{path: 'birthdays', component: BirthdaysComponent},
|
||||
{path: 'terms', component: TermsComponent},
|
||||
{path: 'privacy', component: PrivacyComponent},
|
||||
];
|
||||
|
|
@ -43,6 +45,7 @@ const routes: Routes = [
|
|||
AboutComponent,
|
||||
SocialsComponent,
|
||||
TeamComponent,
|
||||
BirthdaysComponent,
|
||||
TermsComponent,
|
||||
PrivacyComponent,
|
||||
],
|
||||
|
|
|
|||
16
frontend/src/app/birthdays/birthdays.component.html
Normal file
16
frontend/src/app/birthdays/birthdays.component.html
Normal 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>
|
||||
0
frontend/src/app/birthdays/birthdays.component.scss
Normal file
0
frontend/src/app/birthdays/birthdays.component.scss
Normal file
23
frontend/src/app/birthdays/birthdays.component.spec.ts
Normal file
23
frontend/src/app/birthdays/birthdays.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
13
frontend/src/app/birthdays/birthdays.component.ts
Normal file
13
frontend/src/app/birthdays/birthdays.component.ts
Normal 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) {
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user