feat: 优化项目网站 UI/UX 并新增项目详情组件

- 重构首页和项目列表页布局,优化视觉层次
- 新增 ProjectDetail、ProjectSidebar、RelatedProjects 组件
- 改进项目卡片样式,增加悬停效果
- 优化标签云和搜索栏交互体验
- 更新全局样式和 Tailwind 配置

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-26 16:36:33 +08:00
co-authored by Claude
parent 85fe0b920b
commit 4abe6715bb
19 changed files with 2108 additions and 227 deletions
+41 -30
View File
@@ -10,44 +10,55 @@ const config: Config = {
theme: {
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
// Neo-brutalism color scheme from design
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
DEFAULT: "#FFD700", // Gold/Yellow from MotherDuck
dark: "#e5cb00",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
secondary: "#ff6f00", // Orange accent
background: {
light: "#F5F2EB", // Warm off-white/beige
dark: "#121212", // Dark charcoal for dark mode
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
surface: {
light: "#FFFFFF",
dark: "#1E1E1E",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
border: {
light: "#000000",
dark: "#4a4a4a",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
text: {
light: "#000000",
dark: "#F5F2EB",
},
},
fontFamily: {
display: ["'Space Mono'", "'Courier New'", "monospace"], // Space Mono for headings
sans: ["var(--font-inter)", "system-ui", "-apple-system", "sans-serif"], // Inter for body
},
boxShadow: {
// Neo-brutalism shadows
neo: "4px 4px 0px 0px rgba(0,0,0,1)",
"neo-sm": "2px 2px 0px 0px rgba(0,0,0,1)",
"neo-hover": "2px 2px 0px 0px rgba(0,0,0,1)",
"neo-dark": "4px 4px 0px 0px rgba(255,215,0,0.5)",
brutal: "4px 4px 0px 0px rgba(0,0,0,1)",
"brutal-hover": "2px 2px 0px 0px rgba(0,0,0,1)",
"brutal-dark": "4px 4px 0px 0px rgba(255,255,255,0.2)",
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
DEFAULT: "0px", // Sharp corners for neo-brutalism
md: "2px",
},
animation: {
float: "float 6s ease-in-out infinite",
},
keyframes: {
float: {
"0%, 100%": { transform: "translateY(0px) rotate(0deg)" },
"50%": { transform: "translateY(-10px) rotate(2deg)" },
},
},
},
},