Skip to content

Commit

Permalink
Revert color to red
Browse files Browse the repository at this point in the history
  • Loading branch information
Ascent817 committed Dec 11, 2023
1 parent 24052fd commit 8ae7415
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
--pull-width: 0px;
--nav-width: 0px;

--primary: #07f;
--primary-light: #e8f0fe;
--primary-dark: #1553aa;
--primary: #cb2036;
--primary-light: #fee8e8;
--primary-dark: #8d1625;

--white: #fff;
--whiteish: #f6f7f9;
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TagBar,
TopBar,
} from './components';
import { ParsePDF } from './components/ParsePDF';
// import { ParsePDF } from './components/ParsePDF';
import firebase from 'firebase/compat/app';
import { FC, useCallback, useEffect } from 'react';

Expand Down Expand Up @@ -47,7 +47,7 @@ const App: FC<AppProps> = ({user, classItems, authLevel }): JSX.Element => {
return (
<div className="App">
<ContactForm />
<ParsePDF />
{/* <ParsePDF /> */}
<div className="container">
<Navigation authLevel={authLevel} />
</div>
Expand Down
9 changes: 7 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const renderDOM = (courseItems: JSX.Element[], userData = user): void => {

let width = getWidth();

if (width > 1500) {
if (width > 1400) {
numColumns = 4;
} else if (width > 1100) {
numColumns = 3;
Expand Down Expand Up @@ -106,7 +106,12 @@ const initializeCourseViewer = (): void => {
});
}

const courseIDtoCourse = (courseID: string): CourseType => courseData[courseIDtoNameMap.get(courseID) ?? ''] ?? '';
console.log(courseIDtoNameMap);

const courseIDtoCourse = (courseID: string): CourseType => {
let courseid = courseID.match(/[A-Z][A-Z][A-Z][0-9][0-9][0-9]/)?.[0] ?? '';
return courseData[courseIDtoNameMap.get(courseid) ?? ''] ?? '';
};

const courseArray = Object.keys(courseData);

Expand Down

0 comments on commit 8ae7415

Please sign in to comment.