From edea15c845b33848b7b4f63616841e675b74d572 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 15 Apr 2022 22:20:09 +0200
Subject: chore: add an Overview component

---
 src/components/organisms/layout/overview.tsx | 33 ++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 src/components/organisms/layout/overview.tsx

(limited to 'src/components/organisms/layout/overview.tsx')

diff --git a/src/components/organisms/layout/overview.tsx b/src/components/organisms/layout/overview.tsx
new file mode 100644
index 0000000..3f83342
--- /dev/null
+++ b/src/components/organisms/layout/overview.tsx
@@ -0,0 +1,33 @@
+import ResponsiveImage, {
+  type ResponsiveImageProps,
+} from '@components/molecules/images/responsive-image';
+import Meta, { type MetaMap } from '@components/molecules/layout/meta';
+import { VFC } from 'react';
+import styles from './overview.module.scss';
+
+export type OverviewProps = {
+  cover?: Pick<ResponsiveImageProps, 'alt' | 'src' | 'width' | 'height'>;
+  meta: MetaMap;
+};
+
+/**
+ * Overview component
+ *
+ * Render an overview.
+ */
+const Overview: VFC<OverviewProps> = ({ cover, meta }) => {
+  return (
+    <div className={styles.wrapper}>
+      {cover && (
+        <ResponsiveImage
+          objectFit="cover"
+          className={styles.cover}
+          {...cover}
+        />
+      )}
+      <Meta data={meta} layout="column" responsiveLayout={true} />
+    </div>
+  );
+};
+
+export default Overview;
-- 
cgit v1.2.3

