President's Address
diff --git a/src/app/pages/readme/readme.component.scss b/src/app/pages/readme/readme.component.scss
index 32c45e1b..7fe2dd75 100644
--- a/src/app/pages/readme/readme.component.scss
+++ b/src/app/pages/readme/readme.component.scss
@@ -58,6 +58,7 @@ hgroup {
max-width: 60rem;
& > section {
+ padding-top: 10svh;
margin-bottom: 5rem;
width: 90%;
}
@@ -97,7 +98,7 @@ hgroup {
place-items: center;
height: 100%;
width: 100%;
- gap: 1rem;
+ gap: 2rem;
& > a {
@include g.no-select;
diff --git a/src/app/pages/readme/readme.component.ts b/src/app/pages/readme/readme.component.ts
index 501bb960..85ea589c 100644
--- a/src/app/pages/readme/readme.component.ts
+++ b/src/app/pages/readme/readme.component.ts
@@ -1,3 +1,4 @@
+import { NgOptimizedImage } from '@angular/common';
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CardComponent } from '@csss-code/card/card.component';
@@ -15,7 +16,8 @@ import { RouteLinkComponent } from 'components/url/route-link/route-link.compone
FontAwesomeModule,
ExternalLinkComponent,
RouteLinkComponent,
- NgxTypewriterComponent
+ NgxTypewriterComponent,
+ NgOptimizedImage
],
templateUrl: './readme.component.html',
styleUrl: './readme.component.scss',
@@ -28,7 +30,7 @@ export class ReadMeComponent {
scrollTo(id: string): void {
const target = document.getElementById(id);
if (target) {
- target.scrollIntoView({ behavior: 'smooth' });
+ target.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
}
}
diff --git a/src/index.html b/src/index.html
index 4a6edd4e..1423a638 100644
--- a/src/index.html
+++ b/src/index.html
@@ -10,7 +10,13 @@
content="Site dedicated to and maintained by SFU's Computing Science Student Society"
/>
-
+
diff --git a/src/styles.scss b/src/styles.scss
index 11d9a467..57eec77c 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -7,7 +7,15 @@
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
- src: url('/fonts/montserrat-regular.woff2') format('woff2');
+ src: url('/fonts/montserrat-latin-regular.woff2') format('woff2');
+}
+
+@font-face {
+ font-display: swap;
+ font-family: 'Montserrat';
+ font-style: normal;
+ font-weight: 700;
+ src: url('/fonts/montserrat-latin-700.woff2') format('woff2');
}
@font-face {
@@ -15,15 +23,31 @@
font-family: 'Fira Code';
font-style: normal;
font-weight: 400;
- src: url('/fonts/fira-code-regular.woff2') format('woff2');
+ src: url('/fonts/fira-code-latin-regular.woff2') format('woff2');
+}
+
+@font-face {
+ font-display: swap;
+ font-family: 'Fira Code';
+ font-style: normal;
+ font-weight: 700;
+ src: url('/fonts/fira-code-latin-700.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Inter';
font-style: normal;
- font-weight: 400;
- src: url('/fonts/inter-regular.woff2') format('woff2');
+ font-weight: 100;
+ src: url('/fonts/inter-latin-regular.woff2') format('woff2');
+}
+
+@font-face {
+ font-display: swap;
+ font-family: 'Inter';
+ font-style: normal;
+ font-weight: 900;
+ src: url('/fonts/inter-latin-700.woff2') format('woff2');
}
html {
diff --git a/src/ui/csss-code/card/card.component.html b/src/ui/csss-code/card/card.component.html
index 6dbc7430..60f26e70 100644
--- a/src/ui/csss-code/card/card.component.html
+++ b/src/ui/csss-code/card/card.component.html
@@ -1 +1,2 @@
+
diff --git a/src/ui/csss-code/card/card.component.scss b/src/ui/csss-code/card/card.component.scss
index a0a49b31..d6a7e495 100644
--- a/src/ui/csss-code/card/card.component.scss
+++ b/src/ui/csss-code/card/card.component.scss
@@ -1,9 +1,6 @@
:host {
display: block;
position: relative;
- background-repeat: no-repeat;
- background-size: cover;
- background-position: center;
height: 100%;
width: 100%;
diff --git a/src/ui/csss-code/card/card.component.ts b/src/ui/csss-code/card/card.component.ts
index 1da61452..00d7476b 100644
--- a/src/ui/csss-code/card/card.component.ts
+++ b/src/ui/csss-code/card/card.component.ts
@@ -1,36 +1,18 @@
-import {
- ChangeDetectionStrategy,
- Component,
- ElementRef,
- HostBinding,
- inject,
- input
-} from '@angular/core';
-import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
-import { pathToCssUrl } from 'utils/string-utils';
+import { NgOptimizedImage } from '@angular/common';
+import { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';
@Component({
selector: 'code-card',
+ imports: [NgOptimizedImage],
templateUrl: './card.component.html',
styleUrl: './card.component.scss',
- changeDetection: ChangeDetectionStrategy.OnPush
+ changeDetection: ChangeDetectionStrategy.OnPush,
+ host: {
+ '[class.hoverable]': 'isHoverOn()'
+ }
})
export class CardComponent {
- /**
- * The CSS background image URL.
- */
- @HostBinding('style.background-image') protected get backgroundImage(): SafeStyle {
- return this.sanitizer.bypassSecurityTrustStyle(pathToCssUrl(this.bgImg()));
- }
-
- /**
- * The CSS class that enables this to be hoverable.
- */
- @HostBinding('class.hoverable') get hoverable(): boolean {
- return this.isHoverOn();
- }
-
- public elementRef = inject(ElementRef);
+ elementRef = inject(ElementRef);
/**
* URL of the image to use.
@@ -45,9 +27,4 @@ export class CardComponent {
* false makes the card have no hover effects.
*/
public isHoverOn = input(true);
-
- /**
- * Sanitizes inputs for Angular.
- */
- private sanitizer = inject(DomSanitizer);
}