Compare commits

...
5 Commits
Author SHA1 Message Date
Keith Solomon 19d4dfd89c Merge branch 'main' of ssh://git.keithsolomon.net:222/Solo-Web-Works/CWC
Deploy to Dreamhost (dev) / build (push) Successful in 35s
Sync TODOs with Issues / sync_todos (push) Successful in 5s
2026-07-05 12:07:59 -05:00
Keith Solomon d56ec2ac96 build: regenerate dist with blog post card styles 2026-07-05 11:08:19 -05:00
Keith Solomon a15209e176 test(blog): assert Read more link is present in the first card 2026-07-05 11:04:09 -05:00
Keith Solomon aafea68342 feat(blog): style the post card body, title, byline, and Read more link 2026-07-05 11:01:06 -05:00
Keith Solomon 77f3a0dd3c feat(blog): add Read more link to post card 2026-07-05 10:54:34 -05:00
3 changed files with 41 additions and 5568 deletions
-5568
View File
File diff suppressed because it is too large Load Diff
+35
View File
@@ -9,3 +9,38 @@
margin: 0 0 2rem; margin: 0 0 2rem;
text-align: left; text-align: left;
} }
.post-list__post {
border-color: var(--color-cwc-blue-03);
overflow: hidden;
}
.post-list__img {
border-bottom: 0;
}
.post-list__details {
background: var(--color-cwc-blue-03);
color: var(--color-cwc-blue-01);
}
.post-list__title {
color: var(--color-cwc-blue-01);
font-weight: 700;
}
.post-list__byline {
color: var(--color-cwc-blue-01);
font-size: 0.875rem;
}
.post-list__read-more {
color: var(--color-secondary);
font-weight: 600;
margin-top: 0.75rem;
text-decoration: none;
}
.post-list__read-more:hover {
text-decoration: underline;
}
+6
View File
@@ -34,6 +34,12 @@ test.describe("blog page", () => {
await expect(firstCard.locator(".post-list__title")).toBeVisible(); await expect(firstCard.locator(".post-list__title")).toBeVisible();
await expect(firstCard.locator(".post-list__byline")).toBeVisible(); await expect(firstCard.locator(".post-list__byline")).toBeVisible();
// First card has a "Read more" link.
const readMore = firstCard.locator(".post-list__read-more");
await expect(readMore).toBeVisible();
await expect(readMore).toHaveText(/^Read more\s*\S+$/);
await expect(readMore).toHaveAttribute("href", /\/[a-z0-9-]+\/?$/);
// First card does NOT have a categories row or an excerpt. // First card does NOT have a categories row or an excerpt.
expect(await firstCard.locator(".post-list__cats").count()).toBe(0); expect(await firstCard.locator(".post-list__cats").count()).toBe(0);
expect(await firstCard.locator(".post-list__excerpt").count()).toBe(0); expect(await firstCard.locator(".post-list__excerpt").count()).toBe(0);