Skip to content

Commit 3a86153

Browse files
committed
new card-mentor css
1 parent 2571310 commit 3a86153

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div class="px-md-5 px-4 live-courses">
2+
<div class="border-card p-md-5 p-4 bg-gradient-cyan coursepage-card white">
3+
<div class="bold" style="font-size: 2.85rem;">Master DS and Algo with C++</div>
4+
<div class="mt-4 font-lg">Start from Basics, become a C++ Master!</div>
5+
<div class="my-5">
6+
<div class="mentor-row d-flex align-items-center">
7+
<div class="mentor-row__image-container">
8+
<img src="https://minio.codingblocks.com/amoeba/4078be4e-72e1-451a-9c4e-9223d2bbcc2c"
9+
alt="photo ofRishab Kapoor" class="mentor-row__image-container__mentor-image s-60x60">
10+
<img src="https://minio.codingblocks.com/amoeba/27d05ebd-4820-4abf-a5f5-0846676bac48"
11+
alt="photo ofGarima Chhikara" class="mentor-row__image-container__mentor-image s-60x60"></div>
12+
<div class="pl-3">
13+
<div class="card-md font-normal">Instructors</div>
14+
<div class="bold">Rishab Kapoor, Garima Chhikara</div>
15+
</div>
16+
</div>
17+
</div>
18+
<div class="row no-gutters align-items-center justify-content-between">
19+
<h4 class="bold">Batch Starts 1st June 2020</h4>
20+
</div>
21+
</div>
22+
</div>

sass/styles/components/live-classes.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,8 @@
5656
}
5757
}
5858
}
59+
60+
.coursepage-card {
61+
position: relative;
62+
}
5963
}

sass/styles/objects/card.mentors.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,28 @@
8989
}
9090
}
9191
}
92+
93+
.mentor-row {
94+
display: flex;
95+
align-items: center;
96+
97+
&__image-container {
98+
display: flex;
99+
100+
&__mentor-image {
101+
border-radius: 50%;
102+
background-color: $card-mentor;
103+
border: 1px solid $white;
104+
105+
@for $i from 0 through 2 {
106+
&:nth-child(#{$i + 1}) {
107+
108+
z-index: 100 - $i;
109+
-ms-transform: translateX(multiply-px($i, -37%));
110+
-webkit-transform: translateX(multiply-px($i, -37%));
111+
transform: translateX(multiply-px($i, -37%));
112+
}
113+
}
114+
}
115+
}
116+
}

sass/styles/utilities/width-x-height.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@for $i from 1 through 12 {
1+
@for $i from 1 through 15 {
22
$width: ($i * 10px);
33
$height: ($i * 10px);
44

0 commit comments

Comments
 (0)