Skip to content

Commit 5a4c4c4

Browse files
committed
mini cards
1 parent 9b11aa0 commit 5a4c4c4

File tree

5 files changed

+88
-5
lines changed

5 files changed

+88
-5
lines changed

examples/views/events-page.hbs

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,47 @@
122122
</div>
123123
</div>
124124
<div class="events-page__section">
125-
<div class="row no-gutters justify-content-between align-items-center">
125+
<div class="row no-gutters justify-content-between align-items-center mb-5">
126126
<div class="flex-1">
127127
<h2 class="bold">Upcoming Workshops and Contests</h2>
128128
</div>
129129
<button class="button-solid button-orange">View All</button>
130130
</div>
131-
</div>
132-
</div>
131+
<div class="row">
132+
<div class="col-4 pt-5">
133+
<div class="br-10 label-card">
134+
<div class="br-10 label-card__head">
135+
<div class="label-card__label all-center">
136+
<div class="white bold">LIVE WEBINAR</div>
137+
</div>
138+
<img
139+
src="https://previews.123rf.com/images/baranq/baranq1603/baranq160300758/53954805-businessman-portrait.jpg" class="label-card__head__cover">
140+
</div>
141+
<div class="br-10 label-card__foot px-md-5 px-4">
142+
<div class="label-card__foot__tag s-100x100">
143+
<div class="t-align-c">
144+
<div class="font-mdxl bold gradient-text-orange">10</div>
145+
<div class="bold">SEPT</div>
146+
</div>
147+
</div>
148+
<h4 class="bold">Machine Learning</h4>
149+
<div class="mt-1">Face Recognition</div>
150+
<div class="mentor-row my-4">
151+
<div class="mentor-row__image-container">
152+
<img src="https://minio.codingblocks.com/amoeba/4078be4e-72e1-451a-9c4e-9223d2bbcc2c"
153+
alt="photo ofRishab Kapoor" class="mentor-row__image-container__mentor-image s-60x60">
154+
<div class="mentor-row__text-container">
155+
<div>By</div>
156+
<div class="bold">Rishab Kapoor</div>
157+
</div>
158+
</div>
159+
</div>
160+
<div class="row no-gutters justify-content-between align-items-center">
161+
<div class="font-sm">7:30 Onwards</div>
162+
<button class="button-solid button-orange">Register</button>
163+
</div>
164+
</div>
165+
</div>
166+
</div>
167+
</div>
168+
</div>

examples/views/index.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<div class="row p-3"><a target="preview" href="items-card.html">items-card</a></div>
5454
<div class="row p-3"><a target="preview" href="my-order.html">my-order</a></div>
5555
<div class="row p-3"><a target="preview" href="new-checkout.html">new-checkout</a></div>
56+
<div class="row p-3"><a target="preview" href="events-page.html">events-page</a></div>
5657
<div class="row p-3"><a target="preview" href="form-input.html">form-input</a></div>
5758
<div class="row p-3"><a target="preview" href="hb-author-card.html">hb-author-card</a></div>
5859
<div class="row p-3"><a target="preview" href="hb-landing.html">hb-landing</a></div>

sass/styles/_components.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
@import "components/topnav.scss";
1313
@import "components/live-classes.scss";
1414
@import "components/img-review-card.scss";
15-
@import "components/events-page.scss";
15+
@import "components/events-page.scss";
16+
@import "components/label-card.scss";
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
.label-card {
2+
&__head {
3+
height: 225px;
4+
position: relative;
5+
background: $gradient-orange;
6+
7+
&__cover {
8+
border-top-left-radius: 10px;
9+
border-top-right-radius: 10px;
10+
object-fit: cover;
11+
}
12+
}
13+
14+
&__label {
15+
border-top-left-radius: 10px;
16+
border-top-right-radius: 10px;
17+
background: $gradient-orange;
18+
position: absolute;
19+
height: 40px;
20+
width: 55%;
21+
top: -40px;
22+
left: 22.5%;
23+
}
24+
25+
&__foot {
26+
border: 1px solid $search-box-color;
27+
margin-top: -15px;
28+
background: $white;
29+
position: relative;
30+
padding-top: 3.8rem;
31+
padding-bottom: 3rem;
32+
33+
&__tag {
34+
position: absolute;
35+
background: $white;
36+
top: -50px;
37+
right: 7.5%;
38+
display: flex;
39+
align-items: center;
40+
justify-content: center;
41+
border: 1px solid $orange;
42+
border-radius: 50%;
43+
}
44+
}
45+
}

sass/styles/objects/card.mentors.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292

9393
.mentor-row {
9494
display: flex;
95-
align-items: center;
95+
align-items: center !important;
9696

9797
&__image-container {
9898
display: flex;

0 commit comments

Comments
 (0)