diff --git a/components/DarkModeBtn.tsx b/components/DarkModeBtn.tsx
index ecdf3ce..e4e17a5 100644
--- a/components/DarkModeBtn.tsx
+++ b/components/DarkModeBtn.tsx
@@ -1,6 +1,6 @@
import { useTheme } from 'next-themes';
import { useEffect, useState } from 'react';
-import { FiMoon, FiSun } from 'react-icons/fi';
+import { FiMoon, FiSun, FiHeart } from 'react-icons/fi';
const DarkModeBtn = () => {
const [mounted, setMounted] = useState(false);
@@ -10,7 +10,12 @@ const DarkModeBtn = () => {
const currentTheme = theme === 'system' ? systemTheme : theme;
- if (!mounted) return null;
+ if (!mounted)
+ return (
+
+ );
return (
<>
diff --git a/components/NavBar.tsx b/components/NavBar.tsx
index 5bc831c..2692c2c 100644
--- a/components/NavBar.tsx
+++ b/components/NavBar.tsx
@@ -111,7 +111,7 @@ const HeadBar = () => {
- {mounted && (
+ {mounted ? (
{
}
placeholder="Search..."
/>
+ ) : (
+
)}
diff --git a/components/post/PostTOC.tsx b/components/post/PostTOC.tsx
index cb7d697..00b2176 100644
--- a/components/post/PostTOC.tsx
+++ b/components/post/PostTOC.tsx
@@ -18,7 +18,8 @@ const PostTOC = ({ headings }: Props) => {
{
'rounded-lg border border-gray-300',
'dark:bg-rua-gray-800 dark:border-rua-gray-600',
'select-none cursor-pointer',
- 'flex justify-between items-center'
+ 'flex justify-between items-center',
+ '!text-2xl'
)}
onClick={handleClick}
>
diff --git a/pages/_document.tsx b/pages/_document.tsx
index cc7b9c6..3ec9521 100644
--- a/pages/_document.tsx
+++ b/pages/_document.tsx
@@ -7,9 +7,9 @@ export default function Document() {
+ >
code {
padding: 0;
@@ -252,14 +253,16 @@ h6:hover::before {
white-space: pre;
background: transparent;
border: 0;
+ font-family: 'JetBrains Mono', -apple-system, monospace;
}
#article code,
#article kbd,
#article pre,
#article samp {
- font-family: monospace, monospace;
- font-size: 17px;
+ /* font-family: monospace, monospace; */
+ font-family: 'JetBrains Mono', -apple-system, monospace;
+ font-size: 16px;
}
#article mark {
@@ -336,3 +339,8 @@ h6:hover::before {
#article img {
border-radius: 6px;
}
+
+#article .cm-editor .cm-line {
+ font-size: 15px;
+ font-family: 'JetBrains Mono', -apple-system, monospace;
+}
diff --git a/tailwind.config.js b/tailwind.config.js
index 8617665..4db3709 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -12,6 +12,7 @@ module.exports = {
'Aref-Ruqaa': ['Aref Ruqaa', 'serif'],
Barlow: ['Barlow', 'sans-serif'],
Poppins: ['Poppins', 'sans-serif'],
+ Mono: ['JetBrains Mono', 'monospace'],
},
colors: {
bluish: {