deepak191z commited on
Commit
81e63ef
·
verified ·
1 Parent(s): b211d42

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +61 -33
index.html CHANGED
@@ -9,92 +9,118 @@
9
  .code-block {
10
  font-family: 'Courier New', Courier, monospace;
11
  white-space: pre-wrap;
12
- background-color: #1e293b;
 
13
  color: #e2e8f0;
14
  padding: 1.5rem;
15
  border-radius: 0.5rem;
16
  height: calc(100vh - 12rem);
17
  overflow-y: auto;
18
- box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
 
19
  }
20
  .section { display: none; }
21
  .section.active { display: block; }
22
  .input-field {
23
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
24
- background-color: #f1f5f9;
25
  color: #1e293b;
 
26
  }
27
  .input-field:focus {
28
  border-color: #3b82f6;
29
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
30
  }
31
- .btn { transition: background-color 0.2s ease, transform 0.1s ease; }
 
 
 
 
 
32
  .btn:hover { transform: translateY(-1px); }
33
  .btn:active { transform: translateY(0); }
 
 
 
 
 
34
  .step-indicator.active {
35
- background-color: #3b82f6;
36
  color: white;
37
  }
38
- .delete-btn:hover { background-color: #dc2626; }
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  </style>
40
  </head>
41
- <body class="bg-gray-100 font-sans p-8">
42
  <!-- Progress Steps -->
43
- <div class="flex justify-center space-x-8 mb-8">
44
- <div class="step-indicator flex items-center justify-center w-10 h-10 rounded-full bg-gray-200 text-gray-700 font-semibold">1</div>
45
- <div class="step-indicator flex items-center justify-center w-10 h-10 rounded-full bg-gray-200 text-gray-700 font-semibold">2</div>
46
- <div class="step-indicator flex items-center justify-center w-10 h-10 rounded-full bg-gray-200 text-gray-700 font-semibold">3</div>
47
  </div>
48
 
49
  <!-- Main Content Sections -->
50
- <div class="max-w-4xl mx-auto">
51
  <!-- Set Columns Section -->
52
  <div id="columns" class="section active">
53
- <h1 class="text-3xl font-extrabold text-gray-900 mb-8 text-center">Set Columns</h1>
54
- <div id="columnInputs" class="space-y-5">
55
- <div class="flex space-x-3">
56
- <input type="text" class="column-input input-field flex-1 px-4 py-2 border border-gray-300 rounded-lg" placeholder="Column name (e.g., Status)" value="word">
57
- <button onclick="removeColumn(this)" class="delete-btn btn bg-red-600 text-white p-2 rounded-lg hover:bg-red-700">
58
  <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
59
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
60
  </svg>
61
  </button>
62
  </div>
63
- <div class="flex space-x-3">
64
- <input type="text" class="column-input input-field flex-1 px-4 py-2 border border-gray-300 rounded-lg" placeholder="Column name (e.g., Category)" value="meaning">
65
- <button onclick="removeColumn(this)" class="delete-btn btn bg-red-600 text-white p-2 rounded-lg hover:bg-red-700">
66
  <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
67
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
68
  </svg>
69
  </button>
70
  </div>
71
  </div>
72
- <div class="flex justify-between mt-6">
73
- <button onclick="addColumn()" class="btn bg-blue-600 text-white px-4 py-3 rounded-lg hover:bg-blue-700 text-lg font-medium">Add Column</button>
74
- <button onclick="nextSection('code')" class="btn bg-green-600 text-white px-6 py-3 rounded-lg hover:bg-green-700 text-lg font-medium">Next</button>
75
  </div>
76
  </div>
77
 
78
  <!-- Generated Code Section -->
79
  <div id="code" class="section">
80
- <h1 class="text-3xl font-extrabold text-gray-900 mb-8 text-center">Generated Code</h1>
81
- <div class="flex justify-between items-center mb-4">
82
- <h2 class="text-2xl font-semibold text-gray-800">Code Preview</h2>
83
  <button onclick="copyCode()" class="btn bg-gray-700 p-2 rounded-lg hover:bg-gray-600" title="Copy to clipboard">
84
  <svg class="w-6 h-6 text-gray-300" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V7a2 2 0 00-2-2h-2M8 5a2 2 0 002 2h4a2 2 0 002-2M8 5a2 2 0 012-2h4a2 2 0 012 2"></path></svg>
85
  </button>
86
  </div>
87
  <div id="codePreview" class="code-block"></div>
88
- <div class="flex justify-between mt-6">
89
- <button onclick="nextSection('columns')" class="btn bg-gray-600 text-white px-6 py-3 rounded-lg hover:bg-gray-700 text-lg font-medium">Back</button>
90
- <button onclick="nextSection('howto')" class="btn bg-green-600 text-white px-6 py-3 rounded-lg hover:bg-green-700 text-lg font-medium">Next</button>
91
  </div>
92
  </div>
93
 
94
  <!-- How to Use Section -->
95
  <div id="howto" class="section">
96
- <h1 class="text-3xl font-extrabold text-gray-900 mb-8 text-center">How to Use</h1>
97
- <div class="flex space-x-3 mb-6 overflow-x-auto pb-2">
98
  <button class="curl-button btn px-4 py-2 bg-gray-200 rounded-lg hover:bg-blue-600 hover:text-white text-sm font-medium" onclick="showCurlExample('appendSingle')">Append Single</button>
99
  <button class="curl-button btn px-4 py-2 bg-gray-200 rounded-lg hover:bg-blue-600 hover:text-white text-sm font-medium" onclick="showCurlExample('appendMultiple')">Append Multiple</button>
100
  <button class="curl-button btn px-4 py-2 bg-gray-200 rounded-lg hover:bg-blue-600 hover:text-white text-sm font-medium" onclick="showCurlExample('fetchAll')">Fetch All</button>
@@ -105,7 +131,7 @@
105
  </div>
106
  <div id="curlExamples" class="code-block"></div>
107
  <div class="flex justify-start mt-6">
108
- <button onclick="nextSection('code')" class="btn bg-gray-600 text-white px-6 py-3 rounded-lg hover:bg-gray-700 text-lg font-medium">Back</button>
109
  </div>
110
  </div>
111
  </div>
@@ -125,6 +151,8 @@
125
 
126
  // Initial step indicator
127
  document.querySelector('.step-indicator').classList.add('active');
128
- </script> <script src="script.js"></script>
 
 
129
  </body>
130
  </html>
 
9
  .code-block {
10
  font-family: 'Courier New', Courier, monospace;
11
  white-space: pre-wrap;
12
+ background: rgba(255, 255, 255, 0.1);
13
+ backdrop-filter: blur(10px);
14
  color: #e2e8f0;
15
  padding: 1.5rem;
16
  border-radius: 0.5rem;
17
  height: calc(100vh - 12rem);
18
  overflow-y: auto;
19
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
20
+ border: 1px solid rgba(255, 255, 255, 0.2);
21
  }
22
  .section { display: none; }
23
  .section.active { display: block; }
24
  .input-field {
25
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
26
+ background: rgba(255, 255, 255, 0.2);
27
  color: #1e293b;
28
+ border: 1px solid rgba(255, 255, 255, 0.3);
29
  }
30
  .input-field:focus {
31
  border-color: #3b82f6;
32
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
33
  }
34
+ .btn {
35
+ transition: background-color 0.2s ease, transform 0.1s ease;
36
+ background: rgba(255, 255, 255, 0.15);
37
+ backdrop-filter: blur(8px);
38
+ border: 1px solid rgba(255, 255, 255, 0.2);
39
+ }
40
  .btn:hover { transform: translateY(-1px); }
41
  .btn:active { transform: translateY(0); }
42
+ .step-indicator {
43
+ background: rgba(255, 255, 255, 0.1);
44
+ backdrop-filter: blur(5px);
45
+ border: 1px solid rgba(255, 255, 255, 0.2);
46
+ }
47
  .step-indicator.active {
48
+ background: rgba(59, 130, 246, 0.8);
49
  color: white;
50
  }
51
+ .delete-btn:hover { background: rgba(220, 38, 38, 0.9); }
52
+ .glass-container {
53
+ background: rgba(255, 255, 255, 0.1);
54
+ backdrop-filter: blur(12px);
55
+ border: 1px solid rgba(255, 255, 255, 0.2);
56
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
57
+ }
58
+ @media (max-width: 640px) {
59
+ .code-block { height: calc(100vh - 16rem); }
60
+ .flex.space-x-3 { flex-direction: column; space-x-0; space-y-3; }
61
+ .btn { width: 100%; margin-bottom: 0.5rem; }
62
+ .step-indicator { width: 8rem; height: 2.5rem; }
63
+ .glass-container { padding: 1rem; }
64
+ }
65
  </style>
66
  </head>
67
+ <body class="bg-gradient-to-br from-gray-200 via-gray-300 to-gray-400 min-h-screen font-sans p-4 sm:p-8">
68
  <!-- Progress Steps -->
69
+ <div class="flex justify-center space-x-4 sm:space-x-8 mb-6 sm:mb-8">
70
+ <div class="step-indicator flex items-center justify-center w-10 h-10 sm:w-10 sm:h-10 rounded-full text-gray-700 font-semibold">1</div>
71
+ <div class="step-indicator flex items-center justify-center w-10 h-10 sm:w-10 sm:h-10 rounded-full text-gray-700 font-semibold">2</div>
72
+ <div class="step-indicator flex items-center justify-center w-10 h-10 sm:w-10 sm:h-10 rounded-full text-gray-700 font-semibold">3</div>
73
  </div>
74
 
75
  <!-- Main Content Sections -->
76
+ <div class="max-w-4xl mx-auto glass-container rounded-xl p-4 sm:p-6">
77
  <!-- Set Columns Section -->
78
  <div id="columns" class="section active">
79
+ <h1 class="text-2xl sm:text-3xl font-extrabold text-gray-900 mb-6 sm:mb-8 text-center">Set Columns</h1>
80
+ <div id="columnInputs" class="space-y-4 sm:space-y-5">
81
+ <div class="flex space-x-3 sm:space-x-3">
82
+ <input type="text" class="column-input input-field flex-1 px-3 sm:px-4 py-2 rounded-lg" placeholder="Column name (e.g., Status)" value="word">
83
+ <button onclick="removeColumn(this)" class="delete-btn btn bg-red-600 text-white p-2 rounded-lg">
84
  <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
85
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
86
  </svg>
87
  </button>
88
  </div>
89
+ <div class="flex space-x-3 sm:space-x-3">
90
+ <input type="text" class="column-input input-field flex-1 px-3 sm:px-4 py-2 rounded-lg" placeholder="Column name (e.g., Category)" value="meaning">
91
+ <button onclick="removeColumn(this)" class="delete-btn btn bg-red-600 text-white p-2 rounded-lg">
92
  <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
93
  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
94
  </svg>
95
  </button>
96
  </div>
97
  </div>
98
+ <div class="flex flex-col sm:flex-row justify-between mt-6 space-y-3 sm:space-y-0 sm:space-x-4">
99
+ <button onclick="addColumn()" class="btn bg-blue-600 text-white px-4 py-3 rounded-lg hover:bg-blue-700 text-base sm:text-lg font-medium">Add Column</button>
100
+ <button onclick="nextSection('code')" class="btn bg-green-600 text-white px-6 py-3 rounded-lg hover:bg-green-700 text-base sm:text-lg font-medium">Next</button>
101
  </div>
102
  </div>
103
 
104
  <!-- Generated Code Section -->
105
  <div id="code" class="section">
106
+ <h1 class="text-2xl sm:text-3xl font-extrabold text-gray-900 mb-6 sm:mb-8 text-center">Generated Code</h1>
107
+ <div class="flex flex-col sm:flex-row justify-between items-center mb-4 space-y-3 sm:space-y-0">
108
+ <h2 class="text-xl sm:text-2xl font-semibold text-gray-800">Code Preview</h2>
109
  <button onclick="copyCode()" class="btn bg-gray-700 p-2 rounded-lg hover:bg-gray-600" title="Copy to clipboard">
110
  <svg class="w-6 h-6 text-gray-300" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V7a2 2 0 00-2-2h-2M8 5a2 2 0 002 2h4a2 2 0 002-2M8 5a2 2 0 012-2h4a2 2 0 012 2"></path></svg>
111
  </button>
112
  </div>
113
  <div id="codePreview" class="code-block"></div>
114
+ <div class="flex flex-col sm:flex-row justify-between mt-6 space-y-3 sm:space-y-0 sm:space-x-4">
115
+ <button onclick="nextSection('columns')" class="btn bg-gray-600 text-white px-6 py-3 rounded-lg hover:bg-gray-700 text-base sm:text-lg font-medium">Back</button>
116
+ <button onclick="nextSection('howto')" class="btn bg-green-600 text-white px-6 py-3 rounded-lg hover:bg-green-700 text-base sm:text-lg font-medium">Next</button>
117
  </div>
118
  </div>
119
 
120
  <!-- How to Use Section -->
121
  <div id="howto" class="section">
122
+ <h1 class="text-2xl sm:text-3xl font-extrabold text-gray-900 mb-6 sm:mb-8 text-center">How to Use</h1>
123
+ <div class="flex flex-wrap gap-2 sm:gap-3 mb-6 overflow-x-auto pb-2">
124
  <button class="curl-button btn px-4 py-2 bg-gray-200 rounded-lg hover:bg-blue-600 hover:text-white text-sm font-medium" onclick="showCurlExample('appendSingle')">Append Single</button>
125
  <button class="curl-button btn px-4 py-2 bg-gray-200 rounded-lg hover:bg-blue-600 hover:text-white text-sm font-medium" onclick="showCurlExample('appendMultiple')">Append Multiple</button>
126
  <button class="curl-button btn px-4 py-2 bg-gray-200 rounded-lg hover:bg-blue-600 hover:text-white text-sm font-medium" onclick="showCurlExample('fetchAll')">Fetch All</button>
 
131
  </div>
132
  <div id="curlExamples" class="code-block"></div>
133
  <div class="flex justify-start mt-6">
134
+ <button onclick="nextSection('code')" class="btn bg-gray-600 text-white px-6 py-3 rounded-lg hover:bg-gray-700 text-base sm:text-lg font-medium">Back</button>
135
  </div>
136
  </div>
137
  </div>
 
151
 
152
  // Initial step indicator
153
  document.querySelector('.step-indicator').classList.add('active');
154
+ </script>
155
+ <script src="script.js"></script>
156
+
157
  </body>
158
  </html>