Files
ai-course/node_modules/.cache/babel-loader/923f85acba732bd0943a89a513abad0422a64295b7228f10e92ae50f008f8948.json

1 line
15 KiB
JSON
Raw Normal View History

{"ast":null,"code":"import React,{useState}from'react';import{Link,useLocation}from'react-router-dom';import{Cpu,PlayCircle,X}from'./Icons';import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";const Navigation=()=>{const location=useLocation();const[isTrialModalOpen,setIsTrialModalOpen]=useState(false);const navLinks=[{path:'/',label:'课程首页'},{path:'/course',label:'课程'}];return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"nav\",{className:\"fixed top-0 left-0 right-0 z-50 bg-cyber-dark-900/95 backdrop-blur-xl border-b border-cyber-pink-500/30\",children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setIsTrialModalOpen(true),className:\"absolute left-4 top-1/2 -translate-y-1/2 flex items-center gap-2 px-4 py-2 bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 text-white rounded-xl font-medium text-sm transition-all duration-300 hover:scale-105 shadow-lg hover:shadow-purple-500/30 z-10\",children:[/*#__PURE__*/_jsx(PlayCircle,{className:\"w-4 h-4\"}),/*#__PURE__*/_jsx(\"span\",{children:\"\\u76F4\\u64AD\\u56DE\\u653E\"})]}),/*#__PURE__*/_jsx(\"div\",{className:\"max-w-7xl mx-auto px-6\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"flex items-center justify-between h-16\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"flex items-center space-x-4 ml-32\",children:/*#__PURE__*/_jsxs(Link,{to:\"/\",className:\"flex items-center space-x-3\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"w-10 h-10 bg-gradient-to-r from-cyber-pink-500 to-neon-purple-500 rounded-lg flex items-center justify-center shadow-neon-pink neon-glow-pink\",children:/*#__PURE__*/_jsx(Cpu,{className:\"w-6 h-6 text-white\"})}),/*#__PURE__*/_jsx(\"span\",{className:\"gradient-text font-bold text-lg uppercase tracking-wider\",children:\"\\u591AAgent\\u534F\\u4F5C\\u7CFB\\u7EDF\"})]})}),/*#__PURE__*/_jsx(\"div\",{className:\"hidden md:flex items-center space-x-8\",children:navLinks.map(link=>/*#__PURE__*/_jsxs(Link,{to:link.path,className:\"relative px-4 py-2 font-semibold transition-all duration-300 \".concat(location.pathname===link.path?'text-neon-cyan-400 neon-text-cyan':'text-cyber-dark-200 hover:text-neon-cyan-400'),children:[link.label,location.pathname===link.path&&/*#__PURE__*/_jsx(\"span\",{className:\"absolute bottom-0 left-0 right-0 h-0.5 bg-gradient-to-r from-neon-cyan-500 to-cyber-pink-500 shadow-neon-cyan\"})]},link.path))}),/*#__PURE__*/_jsx(\"div\",{className:\"md:hidden flex items-center space-x-4\",children:navLinks.map(link=>/*#__PURE__*/_jsx(Link,{to:link.path,className:\"px-3 py-2 text-sm font-semibold transition-all duration-300 \".concat(location.pathname===link.path?'text-neon-cyan-400 neon-text-cyan':'text-cyber-dark-200 hover:text-neon-cyan-400'),children:link.label},link.path))})]})})]}),isTrialModalOpen&&/*#__PURE__*/_jsxs(\"div\",{className:\"fixed inset-0 z-[2000] flex items-center justify-center p-4\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"absolute inset-0 bg-black/80 backdrop-blur-sm\",onClick:()=>setIsTrialModalOpen(false)}),/*#__PURE__*/_jsxs(\"div\",{className:\"relative w-full max-w-5xl bg-gradient-to-br from-gray-900 to-black rounded-2xl shadow-2xl border border-purple-500/30 overflow-hidden\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"flex items-center justify-between p-6 border-b border-purple-500/20\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"flex items-center gap-3\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"w-10 h-10 bg-gradient-to-r from-purple-500 to-pink-500 rounded-lg flex items-center justify-center\",children:/*#__PURE__*/_jsx(PlayCircle,{className:\"w-6 h-6 text-white\"})}),/*#__PURE__*/_jsx(\"h2\",{className:\"text-2xl font-bold text-white\",children:\"\\u76F4\\u64AD\\u56DE\\u653E\"})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setIsTrialModalOpen(false),className:\"w-10 h-10 rounded-lg bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors\",children:/*#__PURE__*/_jsx(X,{className:\"w-5 h-5 text-white\"})})]}),/*#__PURE__*/_jsx(\"div\",{className:\"relative b