diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-10-09 18:26:23 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:14:41 +0100 |
| commit | 15522ec9146f6f1956620355c44dea2a6a75b67c (patch) | |
| tree | 7be0c4ca96cb3e59d2ee989785a6b6a286e6169d /src/components/organisms/layout/summary.fixture.tsx | |
| parent | 891441a76173c708c6604fa203b175aefa222333 (diff) | |
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.
Diffstat (limited to 'src/components/organisms/layout/summary.fixture.tsx')
| -rw-r--r-- | src/components/organisms/layout/summary.fixture.tsx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/components/organisms/layout/summary.fixture.tsx b/src/components/organisms/layout/summary.fixture.tsx deleted file mode 100644 index bb3ebcb..0000000 --- a/src/components/organisms/layout/summary.fixture.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { type SummaryMeta } from './summary'; - -export const cover = { - alt: 'A cover', - height: 480, - src: 'http://placeimg.com/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 = '#'; |
