Makes the shoot blocks smaller and livelier
At the owner's review: the shoot photos are smaller (MediaText's new `small` size), each shoot gets a square detail photo overlapping the main one, and the text, now at most 36rem wide, sits centred between the photos and the edge. Every shoot has its own band, alternating paper and paper.alt, instead of a hairline. Existing MediaText callers are unchanged. The route test expects the portfolio links once the portfolio page is indexed, so it stays green when that page goes live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+16
-3
@@ -199,10 +199,23 @@ describe('app', () => {
|
||||
'/#contact',
|
||||
'/#contact',
|
||||
]);
|
||||
// The portfolio is still a placeholder: no links to it yet
|
||||
// Links to the filtered portfolio only once that page is live
|
||||
// (indexed); they switch on by themselves when it is
|
||||
expect(
|
||||
within(main).queryAllByRole('link', { name: /^Bekijk meer/ }),
|
||||
).toHaveLength(0);
|
||||
within(main)
|
||||
.queryAllByRole('link', { name: /^Bekijk meer/ })
|
||||
.map((link) => link.getAttribute('href')),
|
||||
).toEqual(
|
||||
sitePages['/portfolio'].indexed
|
||||
? [
|
||||
'/portfolio?shoot=newborn',
|
||||
'/portfolio?shoot=zwangerschap',
|
||||
'/portfolio?shoot=gezin',
|
||||
'/portfolio?shoot=loveshoot',
|
||||
'/portfolio?shoot=portret',
|
||||
]
|
||||
: [],
|
||||
);
|
||||
expect(
|
||||
screen.getByRole('link', { name: 'de pakketten' }),
|
||||
).toHaveAttribute('href', '/#prijzen');
|
||||
|
||||
Reference in New Issue
Block a user