From 37bc9d25deecb04b7970881d46551d5b33fe88df Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 17 Dec 2021 19:21:11 +0100 Subject: chore: add meta to single posts --- src/components/PostFooter/PostFooter.module.scss | 5 ++++ src/components/PostFooter/PostFooter.tsx | 35 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/components/PostFooter/PostFooter.module.scss create mode 100644 src/components/PostFooter/PostFooter.tsx (limited to 'src/components/PostFooter') diff --git a/src/components/PostFooter/PostFooter.module.scss b/src/components/PostFooter/PostFooter.module.scss new file mode 100644 index 0000000..e80f5ed --- /dev/null +++ b/src/components/PostFooter/PostFooter.module.scss @@ -0,0 +1,5 @@ +@use "@styles/abstracts/placeholders"; + +.list { + @extend %flex-list; +} diff --git a/src/components/PostFooter/PostFooter.tsx b/src/components/PostFooter/PostFooter.tsx new file mode 100644 index 0000000..8c09d69 --- /dev/null +++ b/src/components/PostFooter/PostFooter.tsx @@ -0,0 +1,35 @@ +import { t } from '@lingui/macro'; +import { SubjectPreview } from '@ts/types/taxonomies'; +import Link from 'next/link'; +import styles from './PostFooter.module.scss'; + +const PostFooter = ({ subjects }: { subjects: SubjectPreview[] }) => { + const getSubjects = () => { + return subjects.map((subject) => { + return ( +
  • + + {subject.title} + +
  • + ); + }); + }; + + return ( + + ); +}; + +export default PostFooter; -- cgit v1.2.3