import BLOG from '@/blog.config' import { ArrowRightCircle, GlobeAlt } from '@/components/HeroIcons' import Link from 'next/link' import { useState } from 'react' import CONFIG from '../config' import Announcement from './Announcement' import Card from './Card' /** * 社交信息卡 * @param {*} props * @returns */ export function InfoCard(props) { const { siteInfo, notice } = props return (
{/* eslint-disable-next-line @next/next/no-img-element */} {BLOG.AUTHOR}

{BLOG.AUTHOR}

) } /** * 欢迎语 */ function GreetingsWords() { const greetings = CONFIG.INFOCARD_GREETINGS const [greeting, setGreeting] = useState(greetings[0]) // 每次点击,随机获取greetings中的一个 const handleChangeGreeting = () => { const randomIndex = Math.floor(Math.random() * greetings.length) setGreeting(greetings[randomIndex]) } return
{greeting}
} /** * 了解更多按鈕 * @returns */ function MoreButton() { return
了解更多
}