|
1 | | -import { Layout } from './components/layout'; |
2 | | -import { useDynamicFavicon } from './hooks/useDynamicFavicon'; |
| 1 | +import { Layout } from "./components/layout"; |
| 2 | +import { DiffEditor } from "./components/DiffEditor"; |
| 3 | +import { useDynamicFavicon } from "./hooks/useDynamicFavicon"; |
3 | 4 |
|
4 | 5 | function App() { |
5 | 6 | useDynamicFavicon(); |
6 | 7 |
|
7 | 8 | return ( |
8 | 9 | <> |
9 | 10 | <Layout> |
10 | | - <div className="text-center"> |
11 | | - <h1 className="text-4xl font-bold text-gray-900 dark:text-white mb-8"> |
12 | | - Welcome to Diff Viewer |
13 | | - </h1> |
14 | | - |
15 | | - <div className="max-w-2xl mx-auto"> |
16 | | - <p className="text-lg text-gray-600 dark:text-gray-400 mb-8"> |
17 | | - A powerful tool for comparing files and visualizing differences. |
18 | | - Upload your files and see the changes side by side. |
19 | | - </p> |
20 | | - |
21 | | - <div className="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-8 mb-8"> |
22 | | - <h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4"> |
23 | | - Get Started |
24 | | - </h2> |
25 | | - <p className="text-gray-600 dark:text-gray-400 mb-6"> |
26 | | - Choose how you'd like to compare files: |
27 | | - </p> |
28 | | - |
29 | | - <div className="grid grid-cols-1 md:grid-cols-2 gap-4"> |
30 | | - <button className="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition-colors"> |
31 | | - Upload Files |
32 | | - </button> |
33 | | - <button className="bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600 text-gray-900 dark:text-white px-6 py-3 rounded-lg font-medium transition-colors"> |
34 | | - Paste Text |
35 | | - </button> |
36 | | - </div> |
37 | | - </div> |
38 | | - |
39 | | - <div className="grid grid-cols-1 md:grid-cols-3 gap-6"> |
40 | | - <div className="bg-white dark:bg-gray-800 rounded-lg p-6 shadow"> |
41 | | - <div className="w-12 h-12 bg-blue-100 dark:bg-blue-900 rounded-lg flex items-center justify-center mb-4 mx-auto"> |
42 | | - <svg className="w-6 h-6 text-blue-600 dark:text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
43 | | - <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /> |
44 | | - </svg> |
45 | | - </div> |
46 | | - <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">File Comparison</h3> |
47 | | - <p className="text-gray-600 dark:text-gray-400 text-sm"> |
48 | | - Compare any text files, code files, or documents side by side |
49 | | - </p> |
50 | | - </div> |
51 | | - |
52 | | - <div className="bg-white dark:bg-gray-800 rounded-lg p-6 shadow"> |
53 | | - <div className="w-12 h-12 bg-green-100 dark:bg-green-900 rounded-lg flex items-center justify-center mb-4 mx-auto"> |
54 | | - <svg className="w-6 h-6 text-green-600 dark:text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
55 | | - <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" /> |
56 | | - </svg> |
57 | | - </div> |
58 | | - <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">Fast & Accurate</h3> |
59 | | - <p className="text-gray-600 dark:text-gray-400 text-sm"> |
60 | | - Lightning-fast comparison with precise difference highlighting |
61 | | - </p> |
62 | | - </div> |
63 | | - |
64 | | - <div className="bg-white dark:bg-gray-800 rounded-lg p-6 shadow"> |
65 | | - <div className="w-12 h-12 bg-purple-100 dark:bg-purple-900 rounded-lg flex items-center justify-center mb-4 mx-auto"> |
66 | | - <svg className="w-6 h-6 text-purple-600 dark:text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
67 | | - <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" /> |
68 | | - </svg> |
69 | | - </div> |
70 | | - <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">Dark Mode</h3> |
71 | | - <p className="text-gray-600 dark:text-gray-400 text-sm"> |
72 | | - Beautiful interface with full dark mode support |
73 | | - </p> |
74 | | - </div> |
75 | | - </div> |
76 | | - </div> |
77 | | - </div> |
78 | | - </Layout> |
| 11 | + <p className="text-gray-600 dark:text-gray-200 text-center mb-8"> |
| 12 | + Compare files and visualize differences in real-time |
| 13 | + </p> |
| 14 | + |
| 15 | + <DiffEditor /> |
| 16 | + </Layout> |
79 | 17 | </> |
80 | 18 | ); |
81 | 19 | } |
82 | 20 |
|
83 | | -export default App |
| 21 | +export default App; |
0 commit comments