diff --git a/src/app/equipment/page.tsx b/src/app/equipment/page.tsx new file mode 100644 index 0000000..a604521 --- /dev/null +++ b/src/app/equipment/page.tsx @@ -0,0 +1,100 @@ +import Link from "next/link" + +const list = [ + { + category: "核心生产力", + describe: "我们正在使用的装备提升了生产力", + items: [ + { + name: "MacBook Pro 2026", + image: "https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/mbp16-spacegray-select-202601?wid=904&hei=840&fmt=jpeg", + description: "M2芯片,32GB内存,1TB存储", + link: "/equipment/macbook-pro", + }, + { + name: "iPhone 14 Pro Max", + image: "https://store.storeimages.cdn-apple.com/8756/as-images.apple.com/is/iphone14promax-silver-select-202601?wid=904&hei=840&fmt=jpeg", + description: "A16芯片,256GB存储", + link: "/equipment/iphone-14-pro-max", + }, + { + name: "无线机械键盘", + image: "https://example.com/images/keyboard.jpg", + description: "RGB背光,红轴,蓝牙连接", + link: "/equipment/wireless-keyboard", + }, + { + name: "Logitech MX Master 4", + image: "https://example.com/images/mouse.jpg", + description: "高级无线鼠标,USB-C充电", + link: "/equipment/logitech-mx-master-4", + }, + { + name: "三星49英寸超宽显示器", + image: "https://example.com/images/monitor.jpg", + description: "5120x1440分辨率,HDR支持", + link: "/equipment/samsung-monitor", + } + ] + }, + { + category: "创意设计", + describe: "这些装备帮助我们实现创意设计", + items: [ + { + name: "Wacom Cintiq Pro 24", + image: "https://example.com/images/wacom.jpg", + description: "4K触控显示屏,支持手写笔", + link: "/equipment/wacom-cintiq", + }, + { + name: "Adobe Creative Cloud", + image: "https://example.com/images/adobe.jpg", + description: "全套创意软件,云端存储", + link: "/equipment/adobe-creative-cloud", + }, + { + name: "Canon EOS R5", + image: "https://example.com/images/camera.jpg", + description: "4500万像素,全画幅无反相机", + link: "/equipment/canon-eos-r5", + } + ] + } +]; + +export default () => { + return ( + <> + 装备 + + +
+
+ {list.map((group, index) => ( +
+

{group.category}

+

{group.describe}

+ +
+ {group.items.map((item, idx) => ( +
+
+ {item.name} +
+ +
+

{item.name}

+

{item.description}

+ 详情 +
+
+ ))} +
+
+ ))} +
+
+ + ) +} \ No newline at end of file diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 6c554df..c12322d 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -34,7 +34,7 @@ const Header = () => { const patchName = usePathname(); // 这些路径段不需要改变导航样式 - const isPathSty = ['/my', '/wall', '/record'].some(path => patchName.includes(path)) + const isPathSty = ['/my', '/wall', '/record', '/equipment'].some(path => patchName.includes(path)) // 是否改变导航样式 const [isScrolled, setIsScrolled] = useState(false);