Skip to content

Commit 2fc9f9c

Browse files
authored
Feature: Update landing page closes #218 (#243)
* Feature: Update landing page closes #218 feat(home): add discord link to landing page style(home): match button to match rest of website * style(elections): format election test files - fix automated formatter * fix(button colour): match colour of theme
1 parent 8d31759 commit 2fc9f9c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

src/app/pages/home/home.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ <h2>Computing Science Student Society</h2>
66
<p>Please read and accept the terms of condition below.</p>
77
<nav>
88
<a><code-button label="README" [icon]="fileIcon" (click)="readmeAction()" /></a>
9+
<a><code-button label="Discord" [icon]="discordIcon" (click)="discordAction()" /></a>
910
</nav>
1011
</article>

src/app/pages/home/home.component.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Component, inject } from '@angular/core';
22
import { Router } from '@angular/router';
33
import { CodeButtonComponent } from '@csss-code/button/button.component';
44
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
5+
import { faDiscord } from '@fortawesome/free-brands-svg-icons';
56
import { faFile, faSquare } from '@fortawesome/free-solid-svg-icons';
67
import { csssLogo } from 'assets/icons/csss-logo';
78
import { RainbowDirective } from './directives/rainbow.directive';
@@ -16,10 +17,15 @@ export class HomeComponent {
1617
csssIcon = csssLogo;
1718
squareIcon = faSquare;
1819
fileIcon = faFile;
20+
discordIcon = faDiscord;
1921

2022
private router = inject(Router);
2123

2224
readmeAction(): void {
2325
this.router.navigate(['/readme']);
2426
}
27+
28+
discordAction(): void {
29+
window.open('https://discord.gg/sfucsss', '_blank');
30+
}
2531
}

src/ui/csss-code/button/button.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ button {
88
transition: transform 0.1s ease;
99

1010
&:hover {
11-
background-color: g.$accent2;
11+
background-color: g.$accent;
1212
}
1313

1414
&:active {

0 commit comments

Comments
 (0)