diff --git a/components/mdx/Image.module.css b/components/mdx/Image.module.css index bc1b15d..3423dd0 100644 --- a/components/mdx/Image.module.css +++ b/components/mdx/Image.module.css @@ -1,6 +1,7 @@ .imageContainer { width: 100%; padding: 10px 0; + position: relative; } .imageContainer > span { diff --git a/components/post/PostComment.tsx b/components/post/PostComment.tsx index 03f0bb9..8d6e4cc 100644 --- a/components/post/PostComment.tsx +++ b/components/post/PostComment.tsx @@ -2,6 +2,7 @@ import { FC } from 'react'; import Giscus from '@giscus/react'; import { useTheme } from 'next-themes'; import useInView from 'lib/hooks/useInView'; +import Image from 'next/image'; const PostComment: FC = () => { const { systemTheme, theme } = useTheme(); @@ -11,7 +12,23 @@ const PostComment: FC = () => { return ( <> -
+
+ {currentTheme === 'dark' ? ( + + ) : ( + + )} +
{inView && ( diff --git a/public/images/img/comment-line-dark.svg b/public/images/img/comment-line-dark.svg new file mode 100644 index 0000000..421bf32 --- /dev/null +++ b/public/images/img/comment-line-dark.svg @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file diff --git a/public/images/img/comment-line.svg b/public/images/img/comment-line.svg new file mode 100644 index 0000000..f522de1 --- /dev/null +++ b/public/images/img/comment-line.svg @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file