From 5c3f6cb4eedc943e129857cc20079faff1f9e1f3 Mon Sep 17 00:00:00 2001 From: Tuan Cao Date: Tue, 19 Apr 2022 08:48:11 +0700 Subject: [PATCH] - Add Powered By Footer - Some small styling - Handle no Backlink case. --- components/Graph.js | 11 ++++++----- components/MDContent.js | 23 ++++++++++++++++------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/components/Graph.js b/components/Graph.js index 5b81886..74b8fc8 100644 --- a/components/Graph.js +++ b/components/Graph.js @@ -34,7 +34,7 @@ const styleSheet = [{ selector: "node", style: { "background-color": "#666", - "font-size": "10px", + "font-size": "12px", "width": "20px", "height": "20px", "label":"data(label)" @@ -48,7 +48,7 @@ const styleSheet = [{ style: { 'width': 2, "height": 200, - 'line-color': '#9a9a9a', + 'line-color': '#b2b2b2', 'target-arrow-color': '#ccc', // 'target-arrow-shape': 'triangle', 'curve-style': 'straight' @@ -72,11 +72,12 @@ function Graph({graph}) { return ( <>
-

Links to this notes

+

Interactive Graph

+

Link to this note

{(linkList != null && linkList.length > 0) ? <> -

Link to this note

+
{linkList.map(aLink => )}
- : <>} + : <>

No backlinks found

}
); } @@ -36,6 +36,7 @@ function MDContent({content, backLinks, handleOpenNewContent}) { //TODO: handle clicking on internal link, go fetching md content from file then passing it up to parent handleOpenNewContent(content) } + useRouter(); return ( @@ -51,6 +52,14 @@ function MDContent({content, backLinks, handleOpenNewContent}) {
+
+
); }