From 15522ec9146f6f1956620355c44dea2a6a75b67c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 9 Oct 2023 18:26:23 +0200 Subject: refactor(components): replace ResponsiveImage with Figure component The styles applied to ResponsiveImage are related to the figure and figcaption elements. Those elements could be use with other contents than images. So I extracted them in a Figure component. The ResponsiveImage component is no longer useful: the consumer should use the Image component from `next` and wrap it in a link if needed. --- src/components/organisms/layout/summary.fixture.ts | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/components/organisms/layout/summary.fixture.ts (limited to 'src/components/organisms/layout/summary.fixture.ts') diff --git a/src/components/organisms/layout/summary.fixture.ts b/src/components/organisms/layout/summary.fixture.ts new file mode 100644 index 0000000..6f90b4a --- /dev/null +++ b/src/components/organisms/layout/summary.fixture.ts @@ -0,0 +1,25 @@ +import type { SummaryMeta } from './summary'; + +export const cover = { + alt: 'A cover', + height: 480, + src: 'https://picsum.photos/640/480', + width: 640, +}; + +export const intro = + 'Perspiciatis quasi libero nemo non eligendi nam minima. Deleniti expedita tempore. Praesentium explicabo molestiae eaque consectetur vero. Quae nostrum quisquam similique. Ut hic est quas ut esse quisquam nobis.'; + +export const meta: SummaryMeta = { + dates: { publication: '2022-04-11' }, + wordsCount: intro.split(' ').length, + thematics: [ + { id: 1, name: 'Cat 1', url: '#' }, + { id: 2, name: 'Cat 2', url: '#' }, + ], + commentsCount: 1, +}; + +export const title = 'Odio odit necessitatibus'; + +export const url = '#'; -- cgit v1.2.3