aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/posts-list.fixture.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-06 18:08:04 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commitc9c1c90b30e243563bb4f731da15b3fe657556d2 (patch)
tree8263c176b4096e2893b9d9319bfa7edb01fce188 /src/components/organisms/layout/posts-list.fixture.ts
parent2771de88f40a5f4ed7480bd8614532dda72deeda (diff)
refactor(components): replace Summary component with PostPreview
* rename component to PostPreview because Summary is an HTML element and it could lead to confusion * replace `title` and `titleLevel` with `heading` and `headingLvl` because `title` is a native attribute * rename `intro` prop to `excerpt` * extract `cover` from `meta` prop * rewrite meta type * extract meta logic into a new component
Diffstat (limited to 'src/components/organisms/layout/posts-list.fixture.ts')
-rw-r--r--src/components/organisms/layout/posts-list.fixture.ts61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/components/organisms/layout/posts-list.fixture.ts b/src/components/organisms/layout/posts-list.fixture.ts
deleted file mode 100644
index dfb0d97..0000000
--- a/src/components/organisms/layout/posts-list.fixture.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-import type { Post } from './posts-list';
-
-export const introPost1 =
- 'Esse et voluptas sapiente modi impedit unde et. Ducimus nulla ea impedit sit placeat nihil assumenda. Rem est fugiat amet quo hic. Corrupti fuga quod animi autem dolorem ullam corrupti vel aut.';
-
-export const introPost2 =
- 'Illum quae asperiores quod aut necessitatibus itaque excepturi voluptas. Incidunt exercitationem ullam saepe alias consequatur sed. Quam veniam quaerat voluptatum earum quia quisquam fugiat sed perspiciatis. Et velit saepe est recusandae facilis eos eum ipsum.';
-
-export const introPost3 =
- 'Sunt aperiam ut rem impedit dolor id sit. Reprehenderit ipsum iusto fugiat. Quaerat laboriosam magnam facilis. Totam sint aliquam voluptatem in quis laborum sunt eum. Enim aut debitis officiis porro iure quia nihil voluptas ipsum. Praesentium quis necessitatibus cumque quia qui velit quos dolorem.';
-
-export const cover = {
- alt: 'cover',
- height: 480,
- src: 'http://picsum.photos/640/480',
- width: 640,
-};
-
-export const posts: Post[] = [
- {
- intro: introPost1,
- id: 'post-1',
- meta: {
- cover,
- dates: { publication: '2022-02-26' },
- wordsCount: introPost1.split(' ').length,
- thematics: [
- { id: 1, name: 'Cat 1', url: '#' },
- { id: 2, name: 'Cat 2', url: '#' },
- ],
- commentsCount: 1,
- },
- title: 'Ratione velit fuga',
- url: '#',
- },
- {
- intro: introPost2,
- id: 'post-2',
- meta: {
- dates: { publication: '2022-02-20' },
- wordsCount: introPost2.split(' ').length,
- thematics: [{ id: 2, name: 'Cat 2', url: '#' }],
- commentsCount: 0,
- },
- title: 'Debitis laudantium laudantium',
- url: '#',
- },
- {
- intro: introPost3,
- id: 'post-3',
- meta: {
- cover,
- dates: { publication: '2021-12-20' },
- wordsCount: introPost3.split(' ').length,
- thematics: [{ id: 1, name: 'Cat 1', url: '#' }],
- commentsCount: 3,
- },
- title: 'Quaerat ut corporis',
- url: '#',
- },
-];