Skip to content

Commit 96d0b1f

Browse files
font bolding and blog card list style internal review feedback
1 parent 215b289 commit 96d0b1f

File tree

17 files changed

+85
-38
lines changed

17 files changed

+85
-38
lines changed

src/components/blog-posts-list/blog-posts-list.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ export default class BlogPostsList extends HTMLElement {
2222
2323
return `
2424
<li class="${styles.postsListItem}">
25-
<img
26-
alt="${title}"
27-
class="${styles.postsListItemCoverImage}"
28-
height="80"
29-
width="80"
30-
src="${coverBackground}"
31-
style="padding-left: ${coverBackgroundPadding}"
32-
/>
25+
<a class="${styles.postsListItemContentLink}" href="${route}">
26+
<img
27+
alt="${title}"
28+
class="${styles.postsListItemCoverImage}"
29+
height="80"
30+
width="80"
31+
src="${coverBackground}"
32+
style="padding-left: ${coverBackgroundPadding}"
33+
/>
3334
34-
<div class="${styles.postsListItemContentContainer}">
35-
<h2 class="${styles.postsListItemContentTitle}">
36-
<a class="${styles.postsListItemContentLink}" href="${route}">${title}</a>
37-
</h2>
38-
<p class="${styles.postsListItemContentAbstract}">${abstract}</p>
39-
</div>
35+
<div class="${styles.postsListItemContentContainer}">
36+
<h2 class="${styles.postsListItemContentTitle}">${title}</h2>
37+
<p class="${styles.postsListItemContentAbstract}">${abstract}</p>
38+
</div>
4039
40+
</a>
4141
</li>
4242
`;
4343
})

src/components/blog-posts-list/blog-posts-list.module.css

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.postsList {
2-
/* padding: var(--size-1) auto; */
2+
padding: var(--size-1) auto;
33
}
44

55
.postsListItem {
@@ -14,14 +14,24 @@
1414
min-height: 150px;
1515
}
1616

17+
.postsListItemContentLink {
18+
display: inline-block;
19+
color: var(--color-secondary) !important;
20+
text-decoration: none;
21+
}
22+
23+
.postsListItemContentLink:hover {
24+
text-decoration: none;
25+
}
26+
1727
.postsListItemCoverImage {
1828
display: inline-block;
1929
object-fit: cover;
2030
min-width: 60px;
2131
max-width: 60px;
2232
max-height: var(--size-8);
2333
min-height: var(--size-8);
24-
border-radius: var(--radius-4);
34+
border-radius: var(--radius-3);
2535
border: 1px solid var(--color-secondary);
2636
padding: var(--size-1);
2737
background-color: var(--color-white);
@@ -35,16 +45,15 @@
3545
}
3646

3747
.postsListItemContentTitle {
48+
font-family: var(--font-primary-bold);
49+
font-size: var(--font-size-2);
3850
display: inline-flex;
39-
}
40-
41-
.postsListItemContentLink {
42-
display: inline-block;
43-
vertical-align: bottom;
51+
margin: 0 0 var(--size-1);
4452
}
4553

4654
.postsListItemContentAbstract {
4755
font-size: var(--font-size-1);
56+
line-height: var(--size-lineheight-2);
4857
}
4958

5059
@media (min-width: 768px) {
@@ -60,6 +69,10 @@
6069
.postsListItemContentContainer {
6170
margin: 0 0 0 var(--size-1);
6271
}
72+
73+
.postsListItemCoverImage {
74+
margin: var(--size-1);
75+
}
6376
}
6477

6578
@media (min-width: 1024px) {
@@ -74,6 +87,15 @@
7487
max-width: 80px;
7588
max-height: var(--size-9);
7689
min-height: var(--size-9);
90+
margin: var(--size-2);
91+
}
92+
93+
.postsListItemContentTitle {
94+
font-size: var(--font-size-3);
95+
}
96+
97+
.postsListItemContentAbstract {
98+
font-size: var(--font-size-2);
7799
}
78100
}
79101

src/pages/blog/index.html

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,33 @@
88
data-gwd-opt="static"
99
></script>
1010
<style>
11-
.container {
11+
.page-content .container {
1212
text-align: center;
1313
margin: var(--size-2);
1414
}
1515

16-
.heading {
17-
font-size: var(--font-size-6);
16+
.page-content .heading {
17+
font-size: var(--font-size-5);
18+
font-family: var(--font-primary-bold);
1819
}
1920

20-
.subHeading {
21+
.page-content .subHeading {
2122
margin: var(--size-4);
2223
font-size: var(--font-size-2);
2324
}
25+
26+
@media (min-width: 768px) {
27+
.page-content .heading {
28+
font-size: var(--font-size-8);
29+
}
30+
}
31+
2432
</style>
2533
</head>
2634

2735
<body>
2836
<div class="container">
29-
<h1 class="heading">News and Announcements</h1>
37+
<h1 class="heading">News and <br> Announcements</h1>
3038
<p class="subHeading">
3139
Get the latest updates and information about Greenwood releases and activities.
3240
</p>

src/pages/blog/release/v0-15-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v0.15.0 Release
2+
title: Release - v0.15.0
33
abstract: Introducing our newest feature, Theme Packs. It&apos;s like CSS Zen Garden but as a plugin.
44
published: 2021-08-06
55
layout: blog

src/pages/blog/release/v0-18-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v0.18.0 Release
2+
title: Release - v0.18.0
33
abstract: Let&apos;s review the latest enhancements now available in Greenwood.
44
published: 2021-10-22
55
layout: blog

src/pages/blog/release/v0-19-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v0.19.0 Release
2+
title: Release - v0.19.0
33
abstract: This release includes a new scaffolding tool for starting your next Greenwood project.
44
published: 2021-11-11
55
layout: blog

src/pages/blog/release/v0-20-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v0.20.0 Release
2+
title: Release - v0.20.0
33
abstract: We&apos;ve migrated to ESM! Let&apos;s discuss our journey there.
44
published: 2021-12-18
55
coverImage: /assets/blog/nodejs.png

src/pages/blog/release/v0-21-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v0.21.0 Release
2+
title: Release - v0.21.0
33
abstract: External data sources are now supported in Greenwood and template support to our new project scaffolding CLI.
44
published: 2022-01-08
55
layout: blog

src/pages/blog/release/v0-23-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v0.23.0 Release
2+
title: Release - v0.23.0
33
abstract: Server-Side Rendering is now available in Greenwood, so let&apos;s talk all about it.
44
published: 2022-02-11
55
layout: blog

src/pages/blog/release/v0-24-0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: v0.24.0 Release
2+
title: Release - v0.24.0
33
abstract: This release brings some exciting new features for optimizing the local development experience with Greenwood.
44
published: 2022-03-06
55
layout: blog

0 commit comments

Comments
 (0)