File tree 6 files changed +19
-19
lines changed
src/LinkDotNet.Blog.Web/Features/Components
tests/LinkDotNet.Blog.IntegrationTests/Web/Features
6 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 37
37
</div >
38
38
<div class =" description" >
39
39
<div class =" header" >
40
- <h1 >@BlogPost.Title </h1 >
40
+ <h4 class = " card-title " >@BlogPost.Title </h4 >
41
41
<BookmarkButton IsBookmarked =" isBookmarked" Bookmarked =" ToggleBookmark" ></BookmarkButton >
42
42
</div >
43
- <p >@MarkdownConverter.ToMarkupString(BlogPost.ShortDescription) </p >
43
+ <p class = " card-content " >@MarkdownConverter.ToMarkupString(BlogPost.ShortDescription) </p >
44
44
<p class =" read-more" >
45
45
<a href =" /blogPost/@BlogPost.Id/@BlogPost.Slug" aria-label =" @BlogPost.Title" >Read the whole article</a >
46
46
</p >
Original file line number Diff line number Diff line change 85
85
justify-content : space-between;
86
86
}
87
87
88
- .blog-card .description h1 {
89
- line-height : 1 ;
90
- margin : 0 0 5px 0 ;
91
- font-size : 1.7rem ;
92
- }
93
88
.blog-card .description .read-more {
94
89
text-align : right;
95
90
}
155
150
background-color : # ff8700 ;
156
151
}
157
152
158
- @media ( max-width : 400 px ) {
159
- . blog-card . description h1 {
160
- font-size : 1.25 rem ;
161
- }
153
+ . card-title {
154
+ font-weight : 600 ;
155
+ line-height : 1.3 ;
156
+ margin-right : 1 rem ;
162
157
}
158
+
159
+ .card-content {
160
+ font-weight : 300 ;
161
+ }
162
+
163
163
@media (min-width : 640px ) {
164
164
.blog-card {
165
165
flex-direction : row;
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ public async Task ShouldOnlyShowPublishedPosts()
27
27
var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
28
28
29
29
blogPosts . ShouldHaveSingleItem ( ) ;
30
- blogPosts [ 0 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "Not published" ) ;
30
+ blogPosts [ 0 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "Not published" ) ;
31
31
}
32
32
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public async Task ShouldOnlyDisplayBookmarkedPosts()
33
33
var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
34
34
35
35
blogPosts . ShouldHaveSingleItem ( ) ;
36
- blogPosts [ 0 ] . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Bookmarked Post" ) ;
36
+ blogPosts [ 0 ] . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Bookmarked Post" ) ;
37
37
}
38
38
39
39
[ Fact ]
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ public async Task ShouldShowAllBlogPostsWithLatestOneFirst()
30
30
var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
31
31
32
32
blogPosts . Count . ShouldBe ( 2 ) ;
33
- blogPosts [ 0 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "New" ) ;
34
- blogPosts [ 1 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "Old" ) ;
33
+ blogPosts [ 0 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "New" ) ;
34
+ blogPosts [ 1 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "Old" ) ;
35
35
}
36
36
37
37
[ Fact ]
@@ -50,7 +50,7 @@ public async Task ShouldOnlyShowPublishedPosts()
50
50
var blogPosts = cut . FindComponents < ShortBlogPost > ( ) ;
51
51
52
52
blogPosts . ShouldHaveSingleItem ( ) ;
53
- blogPosts [ 0 ] . Find ( ".description h1 " ) . InnerHtml . ShouldBe ( "Published" ) ;
53
+ blogPosts [ 0 ] . Find ( ".description h4 " ) . InnerHtml . ShouldBe ( "Published" ) ;
54
54
}
55
55
56
56
[ Fact ]
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public async Task ShouldFindBlogPostWhenTitleMatches()
23
23
var cut = ctx . Render < SearchPage > ( p => p . Add ( s => s . SearchTerm , "Title 1" ) ) ;
24
24
25
25
var blogPosts = cut . WaitForComponent < ShortBlogPost > ( ) ;
26
- blogPosts . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Title 1" ) ;
26
+ blogPosts . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Title 1" ) ;
27
27
}
28
28
29
29
[ Fact ]
@@ -39,7 +39,7 @@ public async Task ShouldFindBlogPostWhenTagMatches()
39
39
var cut = ctx . Render < SearchPage > ( p => p . Add ( s => s . SearchTerm , "Cat" ) ) ;
40
40
41
41
var blogPost = cut . WaitForComponent < ShortBlogPost > ( ) ;
42
- blogPost . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Title 1" ) ;
42
+ blogPost . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Title 1" ) ;
43
43
}
44
44
45
45
[ Fact ]
@@ -53,7 +53,7 @@ public async Task ShouldUnescapeQuery()
53
53
var cut = ctx . Render < SearchPage > ( p => p . Add ( s => s . SearchTerm , "Title%201" ) ) ;
54
54
55
55
var blogPosts = cut . WaitForComponent < ShortBlogPost > ( ) ;
56
- blogPosts . Find ( ".description h1 " ) . TextContent . ShouldBe ( "Title 1" ) ;
56
+ blogPosts . Find ( ".description h4 " ) . TextContent . ShouldBe ( "Title 1" ) ;
57
57
}
58
58
59
59
private void RegisterServices ( BunitContext ctx )
You can’t perform that action at this time.
0 commit comments