diff --git a/package.json b/package.json index 8b04002..b60798d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "private": true, "dependencies": { + "@douyinfe/semi-icons": "^2.70.1", "@douyinfe/semi-ui": "^2.70.1", "class-variance-authority": "^0.7.0", "clsx": "^1.2.1", diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 929d3aa..ad241c6 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -1,6 +1,7 @@ import React from "react"; import {FaCloudflare, FaReact} from "react-icons/fa"; import {RiTailwindCssFill} from "react-icons/ri"; +import {IconSemiLogo} from "@douyinfe/semi-icons"; const Footer = ({github}) => { return ( @@ -30,12 +31,19 @@ const Footer = ({github}) => { Tailwind CSS + + + Semi Design + - Cloudflare + Cloud flare

diff --git a/src/components/NavBar.jsx b/src/components/NavBar.jsx index bb92a13..af0f6bd 100644 --- a/src/components/NavBar.jsx +++ b/src/components/NavBar.jsx @@ -28,12 +28,12 @@ const NavBar = ({skipUrl}) => { {/*>*/} {/* Tools*/} {/**/} - {/**/} - {/* Urls*/} - {/**/} + + Urls + { + return ( +
+
+ {data.map((item, index) => ( + window.open(item.src, '_blank') : undefined} + className="group relative border border-gray-200 rounded-lg hover:shadow-lg transition-all" + > + + } + /> + {item.describe && ( + + {item.describe} + + } + > + + + )} + + ))} +
+
+ ); +}; + +export default CustomCardList; diff --git a/src/components/Urls/UrlsCategorySection.jsx b/src/components/Urls/UrlsCategorySection.jsx new file mode 100644 index 0000000..0dc55fd --- /dev/null +++ b/src/components/Urls/UrlsCategorySection.jsx @@ -0,0 +1,15 @@ +import React from 'react'; +import CustomCardList from './CustomCardList'; + +const ToolsCategorySection = ({title, data}) => { + return ( +
+

{title}

+
+ +
+
+ ); +}; + +export default ToolsCategorySection; \ No newline at end of file diff --git a/src/components/Urls/index.jsx b/src/components/Urls/index.jsx index de0e2ab..20d5a40 100644 --- a/src/components/Urls/index.jsx +++ b/src/components/Urls/index.jsx @@ -1,13 +1,21 @@ import React from "react"; +import {motion} from "framer-motion"; import {Button} from "@douyinfe/semi-ui"; import {IoIosArrowBack} from "react-icons/io"; import {useNavigate} from "react-router-dom"; +import {frindsList, pageVariants} from "../../config"; +import ToolsCategorySection from "./UrlsCategorySection"; const Index = () => { const navigate = useNavigate() return ( -
-
+ + + + ); }; diff --git a/src/config.js b/src/config.js index 296d0f0..5d8728d 100644 --- a/src/config.js +++ b/src/config.js @@ -30,6 +30,39 @@ export const pageVariants = { exit: { opacity: 0, x: 100 }, }; +export const frindsList = [ + { + title: '声控烤箱', + src: 'https://blog.kazoottt.top/', + describe: '毛怪俱乐部前端', + img_src: 'https://img.tteam.icu/i/2024/11/30/114ctsb-3.webp' + }, + { + title: '行走在云端', + src: 'https://hexo.tomsawyer2.xyz/', + describe: '毛怪俱乐部前端', + img_src: 'https://img.tteam.icu/i/2024/11/30/116en4y-3.webp' + }, + { + title: 'Poivre', + src: 'https://blog.poivrehxx.site/', + describe: '毛怪俱乐部前端', + img_src: 'https://img.tteam.icu/i/2024/12/01/xu5aoq-3.webp' + }, + { + title: 'Roi\'s Blog', + src: 'https://roi.moe/', + describe: '毛怪俱乐部运维', + img_src: 'https://img.tteam.icu/i/2024/12/01/r8p265-3.webp' + }, + { + title: '思无道siudao', + src: 'https://siwudao.github.io/', + describe: '毛怪俱乐部切片', + img_src: 'https://img.tteam.icu/i/2024/11/30/12e1ezb-3.webp' + } +] + export const softwareTools = { development: { title: 'Development', @@ -136,6 +169,36 @@ export const devices = { } } }, + computer_device: { + title: 'Computer Input Device', + sections: { + devices: { + title: 'Devices', + tools: [ + { + name: '达尔优 A87 Pro', + description: '家用', + }, + { + name: '达尔优 A87', + description: '公司用', + }, + { + name: '罗技 G304', + description: '家用&公司用', + }, + { + name: '小米挂灯 1S', + description: '家用护眼', + }, + { + name: 'KOORUI MB27S7U', + description: '家用副屏', + } + ] + } + } + }, mobile: { title: 'Mobile Devices', sections: { @@ -185,6 +248,10 @@ export const devices = { { name: 'Sony WH-XM3', description: '头戴式耳机' + }, + { + name: '小爱音响 Pro', + description: '智能邮箱' } ] }