Skip to content

Commit 619fe1a

Browse files
author
minhnq
committed
feat: add JSON Server tool and refactor JSON editor styling to use CSS variables.
1 parent 2532fc6 commit 619fe1a

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

src/app/json/page.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@
148148
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
149149
font-size: 14px;
150150
line-height: 1.5;
151-
background: #1a1a1a;
152-
color: #00ff00;
151+
background: var(--neo-white);
152+
color: var(--neo-black);
153153
border: 4px solid var(--neo-black);
154154
resize: vertical;
155155
}
156156

157157
.editor::placeholder {
158-
color: #666;
158+
color: var(--text-muted);
159159
}
160160

161161
.editorError {

src/app/page.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@
162162
background: var(--neo-yellow);
163163
}
164164

165+
.orange .toolIcon {
166+
background: var(--neo-orange);
167+
}
168+
165169
.toolInfo {
166170
flex: 1;
167171
}

src/app/page.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import Link from 'next/link';
4-
import { SearchIcon, KeyIcon, ImageIcon, BoltIcon, ShieldIcon, SmartphoneIcon, GithubIcon, LinkIcon } from '@/components/Icons';
4+
import { SearchIcon, KeyIcon, ImageIcon, BoltIcon, ShieldIcon, SmartphoneIcon, GithubIcon, LinkIcon, CodeIcon } from '@/components/Icons';
55
import styles from './page.module.css';
66

77
// Note: metadata must be exported from a server component
@@ -12,7 +12,7 @@ interface Tool {
1212
title: string;
1313
description: string;
1414
icon: React.ReactNode;
15-
color: 'green' | 'cyan' | 'pink' | 'yellow';
15+
color: 'green' | 'cyan' | 'pink' | 'yellow' | 'orange';
1616
}
1717

1818
const tools: Tool[] = [
@@ -44,6 +44,13 @@ const tools: Tool[] = [
4444
icon: <LinkIcon size={32} />,
4545
color: 'yellow',
4646
},
47+
{
48+
href: '/json',
49+
title: 'JSON Server',
50+
description: 'Host, validate, and share JSON data. Create mock APIs with persistent storage.',
51+
icon: <CodeIcon size={32} />,
52+
color: 'orange',
53+
},
4754
];
4855

4956
export default function HomePage() {

0 commit comments

Comments
 (0)