Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeBellTMH committed Mar 19, 2021
2 parents a5f391b + c419e8d commit 19364be
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 18 deletions.
5 changes: 3 additions & 2 deletions components/MessageBoard/MessageBoard.css
Expand Up @@ -41,11 +41,12 @@
border-radius: 10px;
border: 1px;
margin-left: 10px;
height: 300px;
height: 850px;
/* width: 85%;
left: 50px; */
margin-left: 30px;
bottom: 50px;
/* bottom: 50px; */
top: 2rem;
}

.customToolbar {
Expand Down
26 changes: 18 additions & 8 deletions components/MessageBoard/MessageListDirect.tsx
Expand Up @@ -288,13 +288,23 @@ class MessageListDirectImpl extends JCComponent<Props, State> {
return (
<Card
key={index}
style={{
borderRadius: 10,
minHeight: 50,
borderColor: "#ffffff",
marginLeft: isReply ? 50 : 0,
marginBottom: 35,
}}
style={
style == "courseResponse"
? {
borderRadius: 10,
minHeight: 50,
borderColor: "#ffffff",
marginLeft: isReply ? 50 : 0,
marginBottom: 20,
}
: {
borderRadius: 10,
minHeight: 50,
borderColor: "#ffffff",
marginLeft: isReply ? 50 : 0,
marginBottom: 35,
}
}
>
<CardItem style={this.styles.style.eventPageMessageBoard}>
<Left style={this.styles.style.eventPageMessageBoardLeft}>
Expand Down Expand Up @@ -404,7 +414,7 @@ class MessageListDirectImpl extends JCComponent<Props, State> {
}
inverted={this.props.inputAt === "bottom"}
onEndReached={!this.state.fetchingData ? () => this.getMoreDirectMessages() : undefined}
style={{ height: this.props.style == "courseResponse" ? "6rem" : 0.5 * height }}
style={{ height: this.props.style == "courseResponse" ? null : 0.5 * height }}
ListFooterComponent={() => this.messagesLoader()}
refreshing={this.state.fetchingData}
onEndReachedThreshold={0.1}
Expand Down
15 changes: 12 additions & 3 deletions components/courseStyles.tsx
Expand Up @@ -331,7 +331,7 @@ const courseStyles = EStyleSheet.create({
marginTop: 30,
borderRadius: 4,
shadowOffset: { width: 0, height: 5 },
shadowColor: "rgba(0, 0, 0, 0.45)",
shadowColor: "rgba(0, 0, 0, 0.19)",
shadowRadius: 30,
height: "auto",
width: 446,
Expand All @@ -352,7 +352,7 @@ const courseStyles = EStyleSheet.create({
marginTop: 30,
borderRadius: 4,
shadowOffset: { width: 0, height: 5 },
shadowColor: "rgba(0, 0, 0, 0.45)",
shadowColor: "rgba(0, 0, 0, 0.19)",
shadowRadius: 30,
height: "auto",
width: 446,
Expand All @@ -371,10 +371,11 @@ const courseStyles = EStyleSheet.create({
marginTop: 30,
borderRadius: 4,
shadowOffset: { width: 0, height: 5 },
shadowColor: "rgba(0, 0, 0, 0.45)",
shadowColor: "rgba(0, 0, 0, 0.19)",
shadowRadius: 30,
height: "auto",
width: 446,
paddingTop: 30,
}
: {
flex: 70,
Expand All @@ -388,6 +389,7 @@ const courseStyles = EStyleSheet.create({
borderRadius: 4,
height: "auto",
width: 446,
paddingTop: 30,
},
courseAssignmentMainContainer:
Platform.OS === "web"
Expand Down Expand Up @@ -886,6 +888,13 @@ const courseStyles = EStyleSheet.create({
alignSelf: "flex-end",
marginRight: 6,
},
courseAccordionIcons: {
color: "#000000",
width: 18,
height: 18,
top: 2,
marginRight: 5,
},

"@media (min-width: 350) and (max-width: 768)": {
courseAssignmentScreenRightCard: {
Expand Down
18 changes: 16 additions & 2 deletions screens/CourseOverviewScreen/Accordion.tsx
Expand Up @@ -22,8 +22,22 @@ export default class Accordion extends Component<Props, State> {
render() {
return (
<View>
<TouchableOpacity onPress={() => this.toggleExpand()}>{this.props.header}</TouchableOpacity>
<View />
<TouchableOpacity
onPress={() => this.toggleExpand()}
style={{
width: "100%",
borderRadius: 4,
backgroundColor: "#F0493E",
paddingTop: 13,
paddingBottom: 13,
paddingLeft: 20,
paddingRight: 20,
marginTop: 20,
marginBottom: 20,
}}
>
{this.props.header}
</TouchableOpacity>
{this.state.expanded && this.props.children}
</View>
)
Expand Down
21 changes: 18 additions & 3 deletions screens/CourseOverviewScreen/CourseOverviewScreen.web.tsx
Expand Up @@ -1016,11 +1016,12 @@ export default class CourseScreen extends JCComponent<Props, State> {
<>
<Text
style={{
fontFamily: "Graphik-Regular-App",
fontFamily: "Graphik-SemiBold-App",
fontSize: 16,
lineHeight: 24,
letterSpacing: -0.3,
color: "#333333",
color: "#ffffff",
alignSelf: "center",
}}
>
Week {index1 + 1} - {item.title}
Expand All @@ -1031,7 +1032,21 @@ export default class CourseScreen extends JCComponent<Props, State> {
<View>
{item.lessons.items.map((lesson, index2: number) => {
return (
<Text key={index2}>
<Text
key={index2}
style={{
fontFamily: "Graphik-Regular-App",
fontSize: 16,
lineHeight: 24,
letterSpacing: -0.3,
color: "#333333",
paddingLeft: 20,
}}
>
<Image
style={this.styles.style.courseAccordionIcons}
source={require("../../assets/svg/document.svg")}
/>
{index1 + 1}.{index2 + 1} - {lesson.name}
</Text>
)
Expand Down

0 comments on commit 19364be

Please sign in to comment.