diff --git a/YuJianBlog-Web-Next/src/components/ArticleBox/index.module.scss b/YuJianBlog-Web-Next/src/components/ArticleBox/index.module.scss index 8f5ec20..a023ad5 100644 --- a/YuJianBlog-Web-Next/src/components/ArticleBox/index.module.scss +++ b/YuJianBlog-Web-Next/src/components/ArticleBox/index.module.scss @@ -18,6 +18,7 @@ } @media (max-width: 1280px) { + margin-bottom: 3rem; width: 90%; } diff --git a/YuJianBlog-Web-Next/src/components/ArticleBox/index.tsx b/YuJianBlog-Web-Next/src/components/ArticleBox/index.tsx index 5c296c7..b5ca61b 100644 --- a/YuJianBlog-Web-Next/src/components/ArticleBox/index.tsx +++ b/YuJianBlog-Web-Next/src/components/ArticleBox/index.tsx @@ -7,19 +7,10 @@ import { qprogressStart } from "../../utils"; const ArticleBox = ({ articleData }: { articleData: ArticleData }) => { const { id, title, description, cover_url, createdAt } = articleData; - const onLinkClick = () => { - qprogressStart(); - }; - return ( -
- +
qprogressStart()}> +
{title} {description} diff --git a/YuJianBlog-Web-Next/src/components/BlogImage/index.tsx b/YuJianBlog-Web-Next/src/components/BlogImage/index.tsx index eeb1295..88f20f2 100644 --- a/YuJianBlog-Web-Next/src/components/BlogImage/index.tsx +++ b/YuJianBlog-Web-Next/src/components/BlogImage/index.tsx @@ -2,8 +2,8 @@ import Image from "next/image"; import { imagesLoader } from "../../utils"; import type { BlogImageType } from "./type"; -export default ({ height, imageUrl, imageAlt, radius }: BlogImageType) => ( -
+export default ({ imageUrl, imageAlt, radius }: BlogImageType) => ( +
diff --git a/YuJianBlog-Web-Next/src/components/Navigation/index.tsx b/YuJianBlog-Web-Next/src/components/Navigation/index.tsx index cd0ec85..4d246f9 100644 --- a/YuJianBlog-Web-Next/src/components/Navigation/index.tsx +++ b/YuJianBlog-Web-Next/src/components/Navigation/index.tsx @@ -14,7 +14,13 @@ const Navigation = () => (
- YuJianLogo + YuJianLogo
YuJian's Blog @@ -65,14 +71,32 @@ const DarkModeButton = () => { const onDarkMode = (value: boolean) => { if (value) { document.documentElement.style.setProperty("--theme-bg-color", "#0f0f0f"); - document.documentElement.style.setProperty("--theme-font-color", "#ced8de"); - document.documentElement.style.setProperty("--theme-box-color", "#2d3235"); - document.documentElement.style.setProperty("--theme-slogan-color", "linear-gradient(45deg,rgba(147, 181, 207, 1) 0%,rgba(147, 181, 207, 0.4) 100%)"); + document.documentElement.style.setProperty( + "--theme-font-color", + "#ced8de" + ); + document.documentElement.style.setProperty( + "--theme-box-color", + "#2d3235" + ); + document.documentElement.style.setProperty( + "--theme-slogan-color", + "linear-gradient(45deg,rgba(147, 181, 207, 1) 0%,rgba(147, 181, 207, 0.4) 100%)" + ); } else { document.documentElement.style.setProperty("--theme-bg-color", "#fafafa"); - document.documentElement.style.setProperty("--theme-font-color", "#000000"); - document.documentElement.style.setProperty("--theme-box-color", "#ffffff"); - document.documentElement.style.setProperty("--theme-slogan-color", "linear-gradient(45deg,rgba(43, 115, 175, 1) 0%,rgba(43, 115, 175, 0.4) 100%)"); + document.documentElement.style.setProperty( + "--theme-font-color", + "#000000" + ); + document.documentElement.style.setProperty( + "--theme-box-color", + "#ffffff" + ); + document.documentElement.style.setProperty( + "--theme-slogan-color", + "linear-gradient(45deg,rgba(43, 115, 175, 1) 0%,rgba(43, 115, 175, 0.4) 100%)" + ); } setDarkMode(value); diff --git a/YuJianBlog-Web-Next/src/pages/Article/[id].tsx b/YuJianBlog-Web-Next/src/pages/Article/[id].tsx index 839d84f..3689bf8 100644 --- a/YuJianBlog-Web-Next/src/pages/Article/[id].tsx +++ b/YuJianBlog-Web-Next/src/pages/Article/[id].tsx @@ -26,7 +26,6 @@ const Article = ({ data }: { data: ArticleData }) => {