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

Commit 0c2a64e

Browse files
fix(app-blog-featured): update feature blog style to look less awkward for medium and small spacing
1 parent 9e078d5 commit 0c2a64e

File tree

2 files changed

+24
-28
lines changed

2 files changed

+24
-28
lines changed

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

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,22 @@
99
}
1010
}
1111

12+
.featured-title {
13+
h2 {
14+
color: $gray-dark;
15+
margin-bottom: 2rem;
16+
}
17+
18+
h4 {
19+
@include media-breakpoint-down(sm) {
20+
margin-top: 4rem;
21+
}
22+
}
23+
}
24+
1225
.featured-image {
1326
border-collapse: separate;
14-
display: inline-block;
27+
display: flex;
1528
height: 100%;
1629
width: 100%;
1730

@@ -26,25 +39,6 @@
2639
}
2740
}
2841

29-
.info {
30-
h2 {
31-
color: black;
32-
&:hover {
33-
text-decoration: underline black;
34-
}
35-
36-
@include media-breakpoint-down(sm) {
37-
margin-top: 2rem;
38-
}
39-
}
40-
41-
h4 {
42-
@include media-breakpoint-down(sm) {
43-
display: none;
44-
}
45-
}
46-
}
47-
4842
.summary {
4943
margin-top: 25px;
5044
}

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,21 @@ export class AppBlogFeatured {
1919
<div class="blog-featured">
2020
<div class="container">
2121
<div class="row">
22-
<div class="blog-featured-image-wrapper col-md-6 order-md-2">
23-
<div class="featured-image">
22+
<div class="col-12 featured-title">
23+
<h4>What's New in Our Blog</h4>
2424
<stencil-route-link url={`/blog/${this.blogPost.slug}`}>
25-
<img src={this.blogPost.featured_image} />
25+
<h2>{this.blogPost.title}</h2>
2626
</stencil-route-link>
27-
</div>
2827
</div>
29-
<div class="info col-md-6 order-md-1">
30-
<h4>What's New in Our Blog</h4>
28+
</div>
29+
30+
<div class="row">
31+
<div class="col-md-6 order-md-2 featured-image">
3132
<stencil-route-link url={`/blog/${this.blogPost.slug}`}>
32-
<h2>{this.blogPost.title}</h2>
33+
<img src={this.blogPost.featured_image} />
3334
</stencil-route-link>
34-
35+
</div>
36+
<div class="col-md-6 order-md-1 info ">
3537
<div class="summary">{this.blogPost.summary}</div>
3638
<p class="date">{formatDate(publishDate)}</p>
3739
<div class="author">

0 commit comments

Comments
 (0)