created reusable text component, and setup typing for it automatically. also fixed bugs with autoload and scraper so that it would handle appending course name headers

This commit is contained in:
Sriram Hariharan
2023-03-05 17:34:56 -06:00
parent 0956525e94
commit 6147289b40
14 changed files with 161 additions and 48 deletions

26
src/views/styles/fonts.module.scss.d.ts vendored Normal file
View File

@@ -0,0 +1,26 @@
export interface IWeights {
light: number;
regular: number;
medium: number;
bold: number;
semi_bold: number;
black: number;
}
export interface ISizes {
x_small: number;
small: number;
medium: number;
large: number;
x_large: number;
xx_large: number;
}
/**
* This is a file that we need to create to tell typescript what the shape of the css modules is
* when we import them into ts/tsx files
*/
export type IFonts = IWeights & ISizes;
declare const fonts: IFonts;
export default fonts;