Skip to content

Commit 53c6924

Browse files
authored
Update courseoverview.style.js
Signed-off-by: Safiya <147792763+safiya2610@users.noreply.github.com>
1 parent 09a7608 commit 53c6924

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

src/sections/Learn-Layer5/Course-Overview/courseoverview.style.js

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ export const CourseOverviewWrapper = styled.div`
2727
}
2828
.course-overview-hero {
2929
display: flex;
30+
justify-content: center; /* center horizontally */
31+
align-items: center;
3032
}
3133
.course-info-content {
32-
width: 55%;
34+
width: 50%;
3335
padding: 5rem 6rem;
3436
button {
3537
background-color: white;
@@ -54,17 +56,26 @@ export const CourseOverviewWrapper = styled.div`
5456
}
5557
}
5658
.course-hero-head-image {
57-
width: 15%;
59+
margin-top: 50px;
60+
width: 50%;
61+
display: flex;
62+
justify-content: center;
63+
align-items: center;
64+
65+
div {
66+
width: 100%;
5867
display: flex;
59-
justify-content: center;
60-
div {
61-
width: 100%;
62-
}
63-
img {
64-
margin: auto;
65-
height: 100%;
66-
}
68+
justify-content: center;
6769
}
70+
71+
img {
72+
width: 250px;
73+
height: 250px;
74+
border-radius: 50%;
75+
object-fit: contain;
76+
}
77+
}
78+
6879
.course-hero-head {
6980
h2 {
7081
margin: 1rem 0;
@@ -164,3 +175,4 @@ export const CourseOverviewWrapper = styled.div`
164175
}
165176
}
166177
`;
178+

0 commit comments

Comments
 (0)