-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e927c3
commit c4a3338
Showing
9 changed files
with
145 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,61 @@ | ||
import styles from "./../Courses.module.css" | ||
|
||
import fall_image from './../images/fall.png'; | ||
import spring_image from './../images/spring.png'; | ||
import checkmark from './../images/checkmark.png'; | ||
|
||
type Props = { | ||
readonly text: string; | ||
readonly course: string; | ||
readonly season: string; | ||
readonly completed: string; | ||
}; | ||
|
||
export default function CourseBox({ text }: Props) { | ||
return ( | ||
<div className={styles.Course}> | ||
<div>{text}</div> | ||
<div>{"full course name"}</div> | ||
</div> | ||
); | ||
export default function CourseBox({ season, course, completed }: Props) { | ||
return ( | ||
<div | ||
style={{ | ||
borderRadius: "20px", | ||
backgroundColor: completed === "true" ? "#E1E9F8" : "#F5F5F5", | ||
marginBottom: "0.5%", | ||
padding: "1%" | ||
}} | ||
> | ||
<div className={styles.Row}> | ||
<img src={checkmark} | ||
alt={completed} | ||
style={{ | ||
marginLeft: "1%", | ||
display: completed === "true" ? "flow" : "none" | ||
}}></img> | ||
<img src={season === "fall" ? fall_image : spring_image} alt={season} className={styles.Season}></img> | ||
<div className={styles.Column}> | ||
<div className={styles.CourseCode}>{course}</div> | ||
<div className={styles.CourseName}>{"full course name"}</div> | ||
</div> | ||
<div className={styles.Row} style={{ fontSize: "small", alignItems: "center"}}> | ||
<div className={styles.MetadataBox} | ||
style={{ | ||
borderRadius: "25px", | ||
marginRight: "5%" | ||
}}> | ||
{"~4.0"} | ||
</div> | ||
<div className={styles.MetadataBox} | ||
style={{ | ||
borderRadius: "25px", | ||
marginRight: "5%" | ||
}}> | ||
{"~4.0"} | ||
</div> | ||
<div className={styles.MetadataBox} | ||
style={{ | ||
borderRadius: "25px", | ||
marginRight: "5%" | ||
}}>{ | ||
"~3.8"} | ||
</div> | ||
</div> | ||
</div> | ||
</div > | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import styles from "./../Courses.module.css" | ||
|
||
|
||
type Props = { | ||
readonly heading: string; | ||
readonly text: string; | ||
}; | ||
|
||
export default function MetadataBox({ heading, text }: Props) { | ||
return ( | ||
<div className={styles.MetadataColumn}> | ||
<div className={styles.MetadataHeading}>{heading}</div> | ||
<div className={styles.Row} style={{marginBottom:"10%"}}> | ||
<div className={styles.MetadataBox} style={{borderRadius: "7px"}}>{text}</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styles from "./../Courses.module.css" | ||
import CourseBox from "./CourseBox"; | ||
import MetadataBox from "./MetadataBox"; | ||
|
||
|
||
type Props = { | ||
readonly season: string; | ||
}; | ||
|
||
export default function SemesterBox({ season }: Props) { | ||
return ( | ||
<div className={styles.Column}> | ||
<div className={styles.Row}> | ||
<MetadataBox heading="CREDITS" text="5.5"/> | ||
<MetadataBox heading="RATING" text="~4.0"/> | ||
<MetadataBox heading="WORKLOAD" text="~3.8"/> | ||
<MetadataBox heading="DISTRIBUTIONALS" text="So"/> | ||
</div> | ||
<CourseBox season={season} course="COURSE NAME #1" completed="true"/> | ||
<CourseBox season={season} course="COURSE NAME #2" completed="false"/> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.