Prototype69 commited on
Commit
b7c00ac
·
verified ·
1 Parent(s): 8b1e303

give me the files so that i can open project in any other ide

Browse files
Files changed (6) hide show
  1. .vscode/extensions.json +11 -0
  2. .vscode/settings.json +14 -0
  3. index.html +2 -46
  4. package.json +29 -0
  5. src/app.js +16 -0
  6. src/styles.css +18 -0
.vscode/extensions.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```json
2
+ {
3
+ "recommendations": [
4
+ "ritwickdey.liveserver",
5
+ "esbenp.prettier-vscode",
6
+ "dbaeumer.vscode-eslint",
7
+ "bradlc.vscode-tailwindcss",
8
+ "eamodio.gitlens"
9
+ ]
10
+ }
11
+ ```
.vscode/settings.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```json
2
+ {
3
+ "editor.tabSize": 2,
4
+ "editor.formatOnSave": true,
5
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
6
+ "files.autoSave": "afterDelay",
7
+ "workbench.colorTheme": "Default Dark+",
8
+ "eslint.validate": ["javascript", "javascriptreact"],
9
+ "tailwindCSS.emmetCompletions": true,
10
+ "emmet.includeLanguages": {
11
+ "javascript": "javascriptreact"
12
+ }
13
+ }
14
+ ```
index.html CHANGED
@@ -7,38 +7,7 @@
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <script src="https://unpkg.com/feather-icons"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
- <style>
11
- .vscode-bg {
12
- background: linear-gradient(135deg, #007ACC 0%, #1e1e1e 100%);
13
- }
14
- .file-icon {
15
- transition: all 0.3s ease;
16
- }
17
- .file-icon:hover {
18
- transform: scale(1.1);
19
- }
20
- .folder-structure li {
21
- position: relative;
22
- padding-left: 25px;
23
- }
24
- .folder-structure li:before {
25
- content: '';
26
- position: absolute;
27
- left: 0;
28
- top: 50%;
29
- transform: translateY(-50%);
30
- width: 16px;
31
- height: 16px;
32
- background-size: contain;
33
- background-repeat: no-repeat;
34
- }
35
- .folder-icon:before {
36
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 2h10a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
37
- }
38
- .file-icon:before {
39
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232196F3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'%3E%3C/path%3E%3Cpolyline points='13 2 13 9 20 9'%3E%3C/polyline%3E%3C/svg%3E");
40
- }
41
- </style>
42
  </head>
43
  <body class="vscode-bg text-gray-100 min-h-screen font-mono">
44
  <div class="container mx-auto px-4 py-12">
@@ -165,19 +134,6 @@
165
  </div>
166
  </div>
167
  </div>
168
-
169
- <script>
170
- feather.replace();
171
-
172
- // Simple animation for file icons
173
- document.querySelectorAll('.file-icon').forEach(icon => {
174
- icon.addEventListener('mouseenter', () => {
175
- icon.style.color = '#93c5fd';
176
- });
177
- icon.addEventListener('mouseleave', () => {
178
- icon.style.color = '#bfdbfe';
179
- });
180
- });
181
- </script>
182
  </body>
183
  </html>
 
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <script src="https://unpkg.com/feather-icons"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <link rel="stylesheet" href="src/styles.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  </head>
12
  <body class="vscode-bg text-gray-100 min-h-screen font-mono">
13
  <div class="container mx-auto px-4 py-12">
 
134
  </div>
135
  </div>
136
  </div>
137
+ <script src="src/app.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  </body>
139
  </html>
package.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```json
2
+ {
3
+ "name": "codecraft-studio",
4
+ "version": "1.0.0",
5
+ "description": "VS Code setup project template",
6
+ "scripts": {
7
+ "start": "live-server src"
8
+ },
9
+ "dependencies": {
10
+ "feather-icons": "^4.29.0"
11
+ },
12
+ "devDependencies": {
13
+ "autoprefixer": "^10.4.14",
14
+ "eslint": "^8.37.0",
15
+ "postcss": "^8.4.21",
16
+ "prettier": "^2.8.7",
17
+ "tailwindcss": "^3.3.1"
18
+ }
19
+ }
20
+ ```
21
+
22
+ This creates a complete project structure with:
23
+ 1. VS Code configuration files (.vscode folder)
24
+ 2. Source files in src folder (HTML, CSS, JS)
25
+ 3. package.json for project dependencies
26
+ 4. Separated concerns (styles in CSS, scripts in JS)
27
+ 5. Proper linking between files
28
+
29
+ The project can now be opened in any IDE and will work the same way as shown in the VS Code setup preview. Just run `npm install` followed by `npm start` to launch the development server.
src/app.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```javascript
2
+ document.addEventListener('DOMContentLoaded', () => {
3
+ // Simple animation for file icons
4
+ document.querySelectorAll('.file-icon').forEach(icon => {
5
+ icon.addEventListener('mouseenter', () => {
6
+ icon.style.color = '#93c5fd';
7
+ });
8
+ icon.addEventListener('mouseleave', () => {
9
+ icon.style.color = '#bfdbfe';
10
+ });
11
+ });
12
+
13
+ // Initialize feather icons
14
+ feather.replace();
15
+ });
16
+ ```
src/styles.css ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```css
2
+ @tailwind base;
3
+ @tailwind components;
4
+ @tailwind utilities;
5
+
6
+ body {
7
+ font-family: 'Fira Code', monospace;
8
+ background: linear-gradient(135deg, #007ACC 0%, #1e1e1e 100%);
9
+ }
10
+
11
+ .file-icon {
12
+ transition: all 0.3s ease;
13
+ }
14
+
15
+ .file-icon:hover {
16
+ transform: scale(1.1);
17
+ }
18
+ ```