diff --git a/blog.config.js b/blog.config.js index d250381b..d590af63 100644 --- a/blog.config.js +++ b/blog.config.js @@ -5,6 +5,7 @@ const BLOG = { link: 'https://tangly1024.com', description: '分享编程技术与记录生活', headerStrings: ['Hi,我是一个程序员', 'Hi,我是一个打工人', 'Hi,我是一个干饭人', '欢迎来到我的博客🎉'], // 首页文字 + bannerImage: './bg_image.jpg', // 首图 lang: 'zh-CN', // ['zh-CN','en-US'] default lang => see /lib/lang.js for more. notionPageId: process.env.NOTION_PAGE_ID || 'bee1fccfa3bd47a1a7be83cc71372d83', // Important page_id!!! notionAccessToken: process.env.NOTION_ACCESS_TOKEN || '', // Useful if you prefer not to make your database public diff --git a/components/Header.js b/components/Header.js index 668d20b8..f9a247be 100644 --- a/components/Header.js +++ b/components/Header.js @@ -1,6 +1,6 @@ import BLOG from '@/blog.config' import { useGlobal } from '@/lib/global' -import { faArrowDown } from '@fortawesome/free-solid-svg-icons' +import { faAngleDown } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { useCallback, useEffect, useState } from 'react' import Typed from 'typed.js' @@ -93,7 +93,7 @@ export default function Header () { style={{ height: 'calc(100vh + 1px)', backgroundImage: - 'linear-gradient(rgba(0, 0, 0, 0.5), rgba(0,0,0,0.4), rgba(0, 0, 0, 0.5) ),url("./bg_image.jpg")' + `linear-gradient(rgba(0, 0, 0, 0.8), rgba(0,0,0,0.2), rgba(0, 0, 0, 0.8) ),url("${BLOG.bannerImage}")` }} >