summaryrefslogtreecommitdiff
path: root/src/views/Detail.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Detail.js')
-rw-r--r--src/views/Detail.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/views/Detail.js b/src/views/Detail.js
new file mode 100644
index 0000000..51598c1
--- /dev/null
+++ b/src/views/Detail.js
@@ -0,0 +1,31 @@
+/**
+ * Detail view, displaying text plus media
+ */
+
+export default function Detail({ node }) {
+ const index = id + 1;
+ const { id, data } = node;
+ return (
+ <div className="detail">
+ <div className="content">
+ <div className="title">
+ {index}
+ <br />
+ {data.author}
+ <br />
+ {data.title}
+ <br />
+ </div>
+ <div
+ className="caption"
+ dangerouslySetInnerHTML={{ __html: data.caption }}
+ />
+ <div
+ className="description"
+ dangerouslySetInnerHTML={{ __html: data.description }}
+ />
+ </div>
+ <div className="media"></div>
+ </div>
+ );
+}