Skip to content

Commit

Permalink
优化footer和链接
Browse files Browse the repository at this point in the history
  • Loading branch information
buyfakett committed Jan 27, 2025
1 parent 748e8e7 commit 72ccab0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 3 additions & 5 deletions src/components/AboutMe/Links.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { motion } from 'framer-motion';
import { Link } from 'react-router-dom';
import { Typography } from '@douyinfe/semi-ui';
import { FaCoffee } from 'react-icons/fa';
import { skipUrl } from '../../config';

const Links = () => {
const { Paragraph } = Typography;
Expand All @@ -17,16 +18,13 @@ const Links = () => {
<div className="flex items-center justify-center">
<Paragraph
copyable={{
content: 'https://blog.tteam.icu/rss.xml',
content: `${skipUrl.blog}/rss.xml`,
copyTip: 'copy',
}}
className="text-sm font-bold dark:hover:text-blue-400 transition-colors duration-200 cursor-pointer">
<span
onClick={() =>
window.open(
'https://blog.tteam.icu/rss.xml',
'_blank',
)
window.open(`${skipUrl.blog}/rss.xml`, '_blank')
}>
Follow Me
</span>
Expand Down
9 changes: 6 additions & 3 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import React from 'react';
import { FaCloudflare, FaReact } from 'react-icons/fa';
import { FaCloudflare, FaReact, FaRegCopyright } from 'react-icons/fa';
import { RiTailwindCssFill } from 'react-icons/ri';
import { IconSemiLogo } from '@douyinfe/semi-icons';
import { skipUrl } from '../config';

const Footer = ({ buildInfo }) => {
const year = new Date().getFullYear();

return (
<>
<footer className="border-t border-gray-700 py-6 text-center text-sm mt-20 bg-gray-800 text-gray-300">
<div className="max-w-4xl mx-auto">
<p className="mb-2">
© 2024
<p className="mb-2 flex items-center justify-center">
<FaRegCopyright className="mr-1 text-sm" />
2024 - {year}
<a
href={skipUrl.github}
target="_blank"
Expand Down

0 comments on commit 72ccab0

Please sign in to comment.