Skip to content

Commit 762e01b

Browse files
committed
Add heading to blog carousel
1 parent 8167ad4 commit 762e01b

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

assets/scss/components/_blog-carousel.scss

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@
1111
}
1212

1313
.card {
14-
display: flex;
14+
display: flex;
1515
justify-content: center;
16-
align-items: center;
17-
height: 300px;
18-
border-radius: 8px;
19-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 0, 0, 0.1);
16+
align-items: center;
17+
min-height: 300px;
18+
border-radius: 8px;
19+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 0, 0, 0.1);
2020
padding: 20px;
21-
margin: 20px;
22-
text-align: center;
23-
flex-direction: column;
24-
}
21+
margin: 20px;
22+
text-align: center;
23+
flex-direction: column;
24+
}
25+
26+
.row.g-0 {
27+
margin-left: 0;
28+
margin-right: 0;
29+
}

layouts/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@
2020
</div>
2121

2222
<div class="strip">
23-
{{ partial "blog-carousel.html" . }}
23+
<div class="container-fluid py-5 m-0">
24+
<div class="row g-0">
25+
<div class="col-12 col-md-2 p-0 d-flex align-items-center justify-content-center">
26+
<h2 class="text-center">Our Latest <br> Posts</h2>
27+
</div>
28+
<div class="col-12 col-md-10 p-0">
29+
{{ partial "blog-carousel.html" . }}
30+
</div>
31+
</div>
32+
</div>
2433
</div>
2534

2635
{{ $services := where (where .Site.RegularPages "Type" "services") ".Params.featured" true }}

0 commit comments

Comments
 (0)