diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-29 12:13:34 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-29 18:30:05 +0200 |
| commit | 7e16f500cb7bc0cfd8bafbf6bb1555704f771231 (patch) | |
| tree | bfc2b4a475cb06a787e2c4bdf284165644e82952 /src/components/MetaItems/MetaItem | |
| parent | 5324664e87bedfaa01ba62c0c847ef5b861e69b3 (diff) | |
chore: remove old pages, components, helpers and types
Since I'm using new components, I will also rewrite the GraphQL queries
so it is easier to start from scratch.
Diffstat (limited to 'src/components/MetaItems/MetaItem')
| -rw-r--r-- | src/components/MetaItems/MetaItem/MetaItem.module.scss | 18 | ||||
| -rw-r--r-- | src/components/MetaItems/MetaItem/MetaItem.tsx | 36 |
2 files changed, 0 insertions, 54 deletions
diff --git a/src/components/MetaItems/MetaItem/MetaItem.module.scss b/src/components/MetaItems/MetaItem/MetaItem.module.scss deleted file mode 100644 index 0b159ca..0000000 --- a/src/components/MetaItems/MetaItem/MetaItem.module.scss +++ /dev/null @@ -1,18 +0,0 @@ -.wrapper--article { - display: flex; - flex-flow: row wrap; -} - -.title--article { - margin-right: var(--spacing-2xs); - color: var(--color-fg-light); -} - -.body--article { - &:not(:first-of-type) { - &::before { - content: "/"; - margin: 0 var(--spacing-2xs); - } - } -} diff --git a/src/components/MetaItems/MetaItem/MetaItem.tsx b/src/components/MetaItems/MetaItem/MetaItem.tsx deleted file mode 100644 index 5c51283..0000000 --- a/src/components/MetaItems/MetaItem/MetaItem.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { MetaKind } from '@ts/types/app'; -import { ReactElement } from 'react'; -import styles from './MetaItem.module.scss'; - -const MetaItem = ({ - title, - value, - values, - info, - kind = 'list', -}: { - title: string; - value?: ReactElement | string; - values?: ReactElement[] | string[]; - info?: string; - kind: MetaKind; -}) => { - return ( - <div className={styles[`wrapper--${kind}`]}> - <dt className={styles[`title--${kind}`]}>{title}</dt> - {value && ( - <dd className={styles[`body--${kind}`]} title={info}> - {value} - </dd> - )} - {values && - values.map((currentValue, index) => ( - <dd key={index} className={styles[`body--${kind}`]} title={info}> - {currentValue} - </dd> - ))} - </div> - ); -}; - -export default MetaItem; |
