From f1fb9e26e256a1eba5809a2fdd6054684537ee75 Mon Sep 17 00:00:00 2001 From: Tuan Cao Date: Fri, 25 Mar 2022 15:18:36 +0700 Subject: [PATCH] Add Follow me alert to content. --- pages/index.js | 7 ++++++- pages/note/[id].js | 13 +++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/pages/index.js b/pages/index.js index cc7d432..719f0de 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,7 +1,8 @@ import Layout, {siteTitle} from "../components/layout"; import {getSinglePost, getGraphData, getDirectoryData, convertObject, getFlattenArray} from "../lib/utils"; import FolderTree from "../components/FolderTree"; -import {Box} from '@mui/material' +import Alert from '@mui/material/Alert'; +import AlertTitle from '@mui/material/AlertTitle'; export default function Home({content, graphdata, filenames, tree, flattenNodes, ...props}) { @@ -12,6 +13,10 @@ export default function Home({content, graphdata, filenames, tree, flattenNodes,
+ + Want to know more? + 🌱 Follow or DM me on Twitter at @tuancm +
diff --git a/pages/note/[id].js b/pages/note/[id].js index 013cbf1..4174489 100644 --- a/pages/note/[id].js +++ b/pages/note/[id].js @@ -7,6 +7,8 @@ import {getPostListData, getSinglePost, getGraphData, convertObject, getDirector import { Network } from "../../components/graph"; import FolderTree from "../../components/FolderTree"; import {getFlattenArray} from "../../lib/utils"; +import Alert from '@mui/material/Alert'; +import AlertTitle from '@mui/material/AlertTitle'; export default function Home({ note, graphdata,tree, flattenNodes, ...props }) { var jsnx = require('jsnetworkx'); @@ -62,10 +64,13 @@ export default function Home({ note, graphdata,tree, flattenNodes, ...props }) { -
-
+
+ + Want to know more? + 🌱 Follow or DM me on Twitter at @tuancm + +
+