Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ describe('ElectionSpeechesComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ElectionSpeechesComponent]
})
.compileComponents();
}).compileComponents();

fixture = TestBed.createComponent(ElectionSpeechesComponent);
component = fixture.componentInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ describe('UpcomingComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ElectionsScheduleComponent]
})
.compileComponents();
}).compileComponents();

fixture = TestBed.createComponent(ElectionsScheduleComponent);
component = fixture.componentInstance;
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ <h2>Computing Science Student Society</h2>
<p>Please read and accept the terms of condition below.</p>
<nav>
<a><code-button label="README" [icon]="fileIcon" (click)="readmeAction()" /></a>
<a><code-button label="Discord" [icon]="discordIcon" (click)="discordAction()" /></a>
</nav>
</article>
6 changes: 6 additions & 0 deletions src/app/pages/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component, inject } from '@angular/core';
import { Router } from '@angular/router';
import { ButtonComponent } from '@csss-code/button/button.component';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { faDiscord } from '@fortawesome/free-brands-svg-icons';
import { faFile, faSquare } from '@fortawesome/free-solid-svg-icons';
import { csssLogo } from 'assets/icons/csss-logo';
import { RainbowDirective } from './directives/rainbow.directive';
Expand All @@ -16,10 +17,15 @@ export class HomeComponent {
csssIcon = csssLogo;
squareIcon = faSquare;
fileIcon = faFile;
discordIcon = faDiscord;

private router = inject(Router);

readmeAction(): void {
this.router.navigate(['/readme']);
}

discordAction(): void {
window.open('https://discord.gg/sfucsss', '_blank');
}
}
2 changes: 1 addition & 1 deletion src/ui/csss-code/button/button.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ button {
transition: transform 0.1s ease;

&:hover {
background-color: g.$accent2;
background-color: g.$accent;
}

&:active {
Expand Down
Loading