diff --git a/src/pages/categories.js b/src/pages/categories.js index 2d3462d6..b29e4039 100644 --- a/src/pages/categories.js +++ b/src/pages/categories.js @@ -14,7 +14,15 @@ import { FaDesktop, FaGlobe, FaCubes, - FaBook + FaBook, + FaBitcoin, + FaUtensils, + FaHdd, + FaCoffee, + FaAtom, + FaServer, + FaSearch, + FaExchange } from 'react-icons/fa' import { RiBookFill, @@ -26,9 +34,12 @@ import { RiNodejsFill, RiServerFill, RiVuejsFill, - RiWindowFill + RiWindowFill, + RiComputerLine } from 'react-icons/ri' +import { SiTypescript } from 'react-icons/si' + // CategoryCard 组件 export default function Categories() { return ( @@ -66,21 +77,21 @@ const categoriesData = [ enTitle: 'Backend', items: [ // 编程语言 - { name: 'Go', icon: , path: '/docs-hub/category/基础' }, - { name: 'Python', icon: , path: '/docs-hub/category/基础-1' }, - { name: 'Java', icon: , path: '/docs-hub/category/基础-2' }, + { name: 'Go', icon: , path: '/docs-hub/category/基础' }, + { name: 'Python', icon: , path: '/docs-hub/category/基础-1' }, + { name: 'Java', icon: , path: '/docs-hub/category/基础-2' }, // 中间件和服务 - { name: 'Docker', icon: , path: '/docs-hub/Backend/Docker/Docker-基础命令' }, - { name: 'Nginx', icon: , path: '/docs-hub/Backend/Nginx/Nginx基础入门' }, - { name: 'ElasticSearch', icon: , path: '/docs-hub/Backend/ElasticSearch/ElasticSearch-安装使用' }, - { name: 'MQ', icon: , path: '/docs-hub/Backend/MQ/Go-Kafka安装使用指南' }, + { name: 'Docker', icon: , path: '/docs-hub/Backend/Docker/Docker-基础命令' }, + { name: 'Nginx', icon: , path: '/docs-hub/Backend/Nginx/Nginx基础入门' }, + { name: 'ElasticSearch', icon: , path: '/docs-hub/Backend/ElasticSearch/ElasticSearch-安装使用' }, + { name: 'MQ', icon: , path: '/docs-hub/Backend/MQ/Go-Kafka安装使用指南' }, // 数据库 - { name: 'MySQL', icon: , path: '/docs-hub/Backend/MySQL/常用SQL语句' }, - { name: 'Redis', icon: , path: '/docs-hub/Backend/Redis/Redis-基础使用' }, - { name: 'MongoDB', icon: , path: '/docs-hub/Backend/MongoDB/MongoDB安装与使用' }, + { name: 'MySQL', icon: , path: '/docs-hub/Backend/MySQL/常用SQL语句' }, + { name: 'Redis', icon: , path: '/docs-hub/Backend/Redis/Redis-基础使用' }, + { name: 'MongoDB', icon: , path: '/docs-hub/Backend/MongoDB/MongoDB安装与使用' }, // 工具 - { name: 'Git', icon: , path: '/docs-hub/Backend/Git/Git-提交规范' }, - { name: '正则', icon: , path: '/docs-hub/Backend/Regular/正则表达式基础' }, + { name: 'Git', icon: , path: '/docs-hub/Backend/Git/Git-提交规范' }, + { name: '正则', icon: , path: '/docs-hub/Backend/Regular/正则表达式基础' }, ] }, { @@ -88,61 +99,61 @@ const categoriesData = [ enTitle: 'Frontend', items: [ // 核心语言 - { name: 'JavaScript', icon: , path: '/docs-hub/category/es3-es5' }, - { name: 'TypeScript', icon: , path: '/docs-hub/Frontend/TypeScript/TypeScript简介' }, + { name: 'JavaScript', icon: , path: '/docs-hub/category/es3-es5' }, + { name: 'TypeScript', icon: , path: '/docs-hub/Frontend/TypeScript/TypeScript简介' }, // Node相关 - { name: 'Node', icon: , path: '/docs-hub/Frontend/Node/NodeJS基本认知' }, + { name: 'Node', icon: , path: '/docs-hub/Frontend/Node/NodeJS基本认知' }, // 框架 - { name: 'Vue', icon: , path: '/docs-hub/category/vue基础入门' }, - { name: 'React', icon: , path: '/docs-hub/Frontend/React/初识React' }, + { name: 'Vue', icon: , path: '/docs-hub/category/vue基础入门' }, + { name: 'React', icon: , path: '/docs-hub/Frontend/React/初识React' }, // 工程化 - { name: '工程化', icon: , path: '/docs-hub/Frontend/Engineering/核心-Web-指标' }, + { name: '工程化', icon: , path: '/docs-hub/Frontend/Engineering/核心-Web-指标' }, // 基础技术 - { name: 'HTML', icon: , path: '/docs-hub/Frontend/HTML/DOCTYPE' }, - { name: 'CSS', icon: , path: '/docs-hub/Frontend/CSS/CSS-选择器-权重-匹配规则' }, - { name: 'DOM', icon: , path: '/docs-hub/Frontend/DOM/DOM初识-JS对象-XML-幻灯片案例展示' }, - { name: 'BOM', icon: , path: '/docs-hub/Frontend/BOM/深入理解BOM' }, - { name: 'Electron', icon: , path: '/docs-hub/Frontend/Electron/初识-基础' }, - { name: 'Quasar', icon: , path: '/docs-hub/Frontend/Quasar/Quasar项目搭建' }, + { name: 'HTML', icon: , path: '/docs-hub/Frontend/HTML/DOCTYPE' }, + { name: 'CSS', icon: , path: '/docs-hub/Frontend/CSS/CSS-选择器-权重-匹配规则' }, + { name: 'DOM', icon: , path: '/docs-hub/Frontend/DOM/DOM初识-JS对象-XML-幻灯片案例展示' }, + { name: 'BOM', icon: , path: '/docs-hub/Frontend/BOM/深入理解BOM' }, + { name: 'Electron', icon: , path: '/docs-hub/Frontend/Electron/初识-基础' }, + { name: 'Quasar', icon: , path: '/docs-hub/Frontend/Quasar/Quasar项目搭建' }, ] }, { title: '面试题', enTitle: 'Interview', items: [ - { name: '后端面试', icon: , path: '/docs-hub/Interview/Backend/占位' }, - { name: '前端面试', icon: , path: '/docs-hub/Interview/Frontend/浏览器是如何渲染页面的' }, + { name: '后端面试', icon: , path: '/docs-hub/Interview/Backend/占位' }, + { name: '前端面试', icon: , path: '/docs-hub/Interview/Frontend/浏览器是如何渲染页面的' }, ] }, { title: '网络', enTitle: 'Network', items: [ - { name: 'AJAX', icon: , path: '/docs-hub/Network/AJAX/JSON基础与数据解析-JSON方法-AJAX初识' }, - { name: 'HTTP', icon: , path: '/docs-hub/Network/HTTP/URL-客户端-服务端-域名操作' }, + { name: 'AJAX', icon: , path: '/docs-hub/Network/AJAX/JSON基础与数据解析-JSON方法-AJAX初识' }, + { name: 'HTTP', icon: , path: '/docs-hub/Network/HTTP/URL-客户端-服务端-域名操作' }, ] }, { title: 'Web3', enTitle: 'Web3', items: [ - { name: 'IPFS', icon: , path: '/docs-hub/Web3/IPFS/IPFS-Desktop-运行指南' }, - { name: 'Web3基础', icon: , path: '/docs-hub/Web3/Learning/Web2如何转Web3' }, + { name: 'IPFS', icon: , path: '/docs-hub/Web3/IPFS/IPFS-Desktop-运行指南' }, + { name: 'Web3基础', icon: , path: '/docs-hub/Web3/Learning/Web2如何转Web3' }, ] }, { title: '资源导航', enTitle: 'Resources', items: [ - { name: '软件', icon: , path: '/docs-hub/Resource/Soft/Windows装机软件' }, + { name: '软件', icon: , path: '/docs-hub/Resource/Soft/Windows装机软件' }, ] }, { title: '其他', enTitle: 'Others', items: [ - { name: '食谱', icon: , path: '/docs-hub/Other/CookBook/柠檬酸辣无骨鸡爪' }, - { name: '笔记', icon: , path: '/docs-hub/Other/Notes/使用指南' }, + { name: '食谱', icon: , path: '/docs-hub/Other/CookBook/柠檬酸辣无骨鸡爪' }, + { name: '笔记', icon: , path: '/docs-hub/Other/Notes/使用指南' }, ] } ] \ No newline at end of file diff --git a/src/pages/index.module.scss b/src/pages/index.module.scss index 0bca3d38..5e2a02c7 100644 --- a/src/pages/index.module.scss +++ b/src/pages/index.module.scss @@ -210,7 +210,7 @@ $font-body: 'Noto Sans SC', sans-serif; // 项目图标 .itemIcon { font-size: 1.4rem; - margin-bottom: 0.4rem; + // margin-bottom: 0.4rem; color: var(--ifm-color-primary); transition: $transition-fast; }