From 5712e2c0acb5fce9e4b1f964e2c9bd7e50a65a36 Mon Sep 17 00:00:00 2001 From: Govind <69693657+Govind-icu@users.noreply.github.com> Date: Wed, 16 Nov 2022 13:55:54 +0530 Subject: [PATCH 1/4] Create Comments.js --- src/components/ProductPage/Comments.js | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/components/ProductPage/Comments.js diff --git a/src/components/ProductPage/Comments.js b/src/components/ProductPage/Comments.js new file mode 100644 index 00000000..4fdd8603 --- /dev/null +++ b/src/components/ProductPage/Comments.js @@ -0,0 +1,32 @@ +import React from 'react'; +import './Comments.scss'; + +export default function Comments({ comments = [] }) { + return
+

Comments

+ +
; +} + +export const layout = { + areaId: 'productPageMiddleLeft', + sortOrder: 45 +} + +export const query = ` + query { + comments(productId: getContextValue("productId")) { + commentId + userName + comment + createdAt + } + } +`; From 305449b8fda22f36c5d6962b56d5a4dede37a482 Mon Sep 17 00:00:00 2001 From: Govind <69693657+Govind-icu@users.noreply.github.com> Date: Wed, 16 Nov 2022 13:57:11 +0530 Subject: [PATCH 2/4] Create Comments.scss --- src/components/ProductPage/Comments.scss | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/components/ProductPage/Comments.scss diff --git a/src/components/ProductPage/Comments.scss b/src/components/ProductPage/Comments.scss new file mode 100644 index 00000000..fc6dc8b0 --- /dev/null +++ b/src/components/ProductPage/Comments.scss @@ -0,0 +1,18 @@ + +.comment-list { + margin-bottom: 20px; + li { + padding: 10px 0; + border-bottom: 1px solid #eee; + :last-child { + border-bottom: 0; + } + } + .user-name { + font-weight: bold; + margin-bottom: 5px; + } + .comment{ + font-style: italic; + } +} From 6db7808237344e64e486cbf71a88c85c8bce5d4e Mon Sep 17 00:00:00 2001 From: Govind <69693657+Govind-icu@users.noreply.github.com> Date: Wed, 16 Nov 2022 14:05:08 +0530 Subject: [PATCH 3/4] Create 404.md --- src/pages/404.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/pages/404.md diff --git a/src/pages/404.md b/src/pages/404.md new file mode 100644 index 00000000..88759edc --- /dev/null +++ b/src/pages/404.md @@ -0,0 +1,11 @@ +--- +title: Not Found +hero: This does not exist +permalink: /404.html +sitemap: false +--- + +## 404 +Sorry, but the page you were trying to view is gone amiss---perhaps you can try a site search to find it. + +{% include site-search.html %} From 368f6f09632c317155735d3f49aed03d3f06e6fd Mon Sep 17 00:00:00 2001 From: Govind <69693657+Govind-icu@users.noreply.github.com> Date: Wed, 16 Nov 2022 14:07:48 +0530 Subject: [PATCH 4/4] Create privacy.md --- src/pages/privacy.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/pages/privacy.md diff --git a/src/pages/privacy.md b/src/pages/privacy.md new file mode 100644 index 00000000..ecebeb34 --- /dev/null +++ b/src/pages/privacy.md @@ -0,0 +1,9 @@ +--- +title: Privacy +permalink: /privacy/ +hero: Privacy +--- + +This website does not collect or store any data and does not use cookies or tracking/analytics services. + +This site uses the Gumroad e-commerce platform. Please refer to [privacy policy] for further information.