Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 3416fff

Browse files
fix(app-blog-featured): fixed alignment and text positioning
1 parent 33ae353 commit 3416fff

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

src/components/app-blog-featured/app-blog-featured.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.blog-featured {
22

33
.container {
4-
padding: 2.5rem;
4+
min-width: 90%;
55
margin-bottom: 2rem;
66

77
@include media-breakpoint-down(sm) {
@@ -25,16 +25,17 @@
2525
.featured-image {
2626
border-collapse: separate;
2727
display: flex;
28-
height: 100%;
29-
width: 100%;
28+
justify-content: center;
29+
text-align: center;
3030

3131
img {
32+
height: 75%;
33+
width: 75%;
34+
3235
@include media-breakpoint-up(sm) {
3336
border-radius: 15px;
34-
height: 100%;
3537
margin-top: 2rem;
3638
object-fit: cover;
37-
width: 100%;
3839
}
3940
}
4041
}

src/components/app-blog-featured/app-blog-featured.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,19 @@ export class AppBlogFeatured {
1818
return (
1919
<div class="blog-featured">
2020
<div class="container">
21-
<div class="row">
22-
<div class="col-12 featured-title">
23-
<h4>What's New in Our Blog</h4>
24-
<stencil-route-link url={`/blog/${this.blogPost.slug}`}>
25-
<h2>{this.blogPost.title}</h2>
26-
</stencil-route-link>
27-
</div>
28-
</div>
29-
3021
<div class="row">
3122
<div class="col-md-6 order-md-2 featured-image">
3223
<stencil-route-link url={`/blog/${this.blogPost.slug}`}>
3324
<img src={this.blogPost.featured_image} />
3425
</stencil-route-link>
3526
</div>
36-
<div class="col-md-6 order-md-1 info ">
27+
<div class="col-md-6 order-md-1">
28+
<div class="featured-title">
29+
<h4>What's New in Our Blog</h4>
30+
<stencil-route-link url={`/blog/${this.blogPost.slug}`}>
31+
<h2>{this.blogPost.title}</h2>
32+
</stencil-route-link>
33+
</div>
3734
<div class="summary">{this.blogPost.summary}</div>
3835
<p class="date">{formatDate(publishDate)}</p>
3936
<div class="author">

0 commit comments

Comments
 (0)