Skip to content

Commit

Permalink
hardcoded year box
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyareddy04 committed Feb 25, 2024
1 parent c85e798 commit 2e927c3
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 1 deletion.
37 changes: 37 additions & 0 deletions frontend/src/pages/Courses/Courses.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

.Container {
margin: 2% 0% 3% 2%;
}
.Row {
display: flex;
flex-direction: row;
margin-bottom: 0.5%;
}

.Column {
display: flex;
flex-direction: column;
margin-right: 2%;
width: 100%;
}

.Grade {
font-weight: 600;
font-size:larger;
margin-right: 0.5%;
}

.Year {
font-size:small;
font-weight: 600;
color: #727272;
vertical-align: bottom;
}

.Course {
border-radius: 25px;
background-color: #E1E9F8;
margin-bottom: 0.5%;
padding: 1%;
}
10 changes: 9 additions & 1 deletion frontend/src/pages/Courses/Courses.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import React from "react";
import YearBox from "./components/YearBox";

export default function Courses() {
return <div>Courses Page</div>;
return (
<div>
<YearBox text="First Year"/>
<YearBox text="Sophmore"/>
<YearBox text="Junior"/>
<YearBox text="Senior"/>
</div>
);
}
15 changes: 15 additions & 0 deletions frontend/src/pages/Courses/components/CourseBox.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import styles from "./../Courses.module.css"


type Props = {
readonly text: string;
};

export default function CourseBox({ text }: Props) {
return (
<div className={styles.Course}>
<div>{text}</div>
<div>{"full course name"}</div>
</div>
);
}
38 changes: 38 additions & 0 deletions frontend/src/pages/Courses/components/YearBox.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import styles from "./../Courses.module.css"
import CourseBox from "./CourseBox";

type Props = {
readonly text: string;
};

export default function YearBox({ text }: Props) {
return (
<div className={styles.Container}>
<div className={styles.Row}>
<div className={styles.Grade}>{text}</div>
<div className={styles.Year}>{"(year-year)"}</div>
</div>
<div className={styles.Row}>
<div className={styles.Column}>
<div className={styles.Row}>
<div>{"CREDITS"}</div>
<div>{"RATING"}</div>
<div>{"WORKLOAD"}</div>
<div>{"DISTRIBUTIONALS"}</div>
</div>
<CourseBox text="COURSE NAME #1"/>
<CourseBox text="COURSE NAME #2"/>
</div>
<div className={styles.Column}>
<div className={styles.Row}>
<div>{"CREDITS"}</div>
<div>{"RATING"}</div>
<div>{"WORKLOAD"}</div>
<div>{"DISTRIBUTIONALS"}</div>
</div>
<CourseBox text="COURSE NAME #3"/>
</div>
</div>
</div>
);
}

0 comments on commit 2e927c3

Please sign in to comment.