simorocco02 commited on
Commit
b487229
·
verified ·
1 Parent(s): e89f18b

creami un sito web in grado di aiutare a trovare il prompt adatto includi tutto però rimanendo sul gratuito fai domande tipo (come posso aiutarti) e in base alla risposta tu fornisci il prompt adatto e fornisci anche consigli impostazioni e tools open source

Browse files
Files changed (2) hide show
  1. README.md +7 -4
  2. index.html +262 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Promptgenius Wizard
3
- emoji: 🐨
4
- colorFrom: indigo
5
  colorTo: yellow
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: PromptGenius Wizard 🧙✨
3
+ colorFrom: green
 
4
  colorTo: yellow
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,263 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>PromptGenius Wizard - Your AI Prompt Assistant</title>
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
+ .gradient-bg {
12
+ background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
13
+ }
14
+ .prompt-card {
15
+ transition: all 0.3s ease;
16
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
17
+ }
18
+ .prompt-card:hover {
19
+ transform: translateY(-5px);
20
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
21
+ }
22
+ .typewriter {
23
+ border-right: 3px solid;
24
+ white-space: nowrap;
25
+ overflow: hidden;
26
+ animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
27
+ }
28
+ @keyframes typing {
29
+ from { width: 0 }
30
+ to { width: 100% }
31
+ }
32
+ @keyframes blink-caret {
33
+ from, to { border-color: transparent }
34
+ 50% { border-color: #6e8efb }
35
+ }
36
+ </style>
37
+ </head>
38
+ <body class="min-h-screen bg-gray-50">
39
+ <!-- Hero Section -->
40
+ <div class="gradient-bg text-white py-20 px-4">
41
+ <div class="container mx-auto max-w-6xl text-center">
42
+ <h1 class="text-4xl md:text-6xl font-bold mb-6">PromptGenius Wizard</h1>
43
+ <p class="text-xl md:text-2xl mb-8 typewriter">The magical tool to craft perfect AI prompts ✨</p>
44
+ <div class="flex justify-center">
45
+ <button id="startBtn" class="bg-white text-purple-600 font-bold py-3 px-8 rounded-full text-lg hover:bg-purple-100 transition duration-300 flex items-center">
46
+ <i data-feather="wand" class="mr-2"></i> Start the Magic
47
+ </button>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ <!-- Prompt Assistant Section -->
53
+ <div id="assistantSection" class="hidden container mx-auto max-w-4xl px-4 py-16">
54
+ <div class="bg-white rounded-xl shadow-lg p-6 md:p-8">
55
+ <h2 class="text-2xl md:text-3xl font-bold text-gray-800 mb-6 flex items-center">
56
+ <i data-feather="help-circle" class="mr-3 text-purple-600"></i> How can I help you today?
57
+ </h2>
58
+
59
+ <div class="mb-8">
60
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
61
+ <button class="prompt-btn bg-purple-100 hover:bg-purple-200 text-purple-800 font-medium py-4 px-6 rounded-lg transition duration-300 flex items-center" data-type="content">
62
+ <i data-feather="edit-3" class="mr-3"></i> Content Creation
63
+ </button>
64
+ <button class="prompt-btn bg-blue-100 hover:bg-blue-200 text-blue-800 font-medium py-4 px-6 rounded-lg transition duration-300 flex items-center" data-type="coding">
65
+ <i data-feather="code" class="mr-3"></i> Coding Assistance
66
+ </button>
67
+ <button class="prompt-btn bg-green-100 hover:bg-green-200 text-green-800 font-medium py-4 px-6 rounded-lg transition duration-300 flex items-center" data-type="learning">
68
+ <i data-feather="book" class="mr-3"></i> Learning & Research
69
+ </button>
70
+ <button class="prompt-btn bg-yellow-100 hover:bg-yellow-200 text-yellow-800 font-medium py-4 px-6 rounded-lg transition duration-300 flex items-center" data-type="creative">
71
+ <i data-feather="sparkles" class="mr-3"></i> Creative Writing
72
+ </button>
73
+ </div>
74
+ </div>
75
+
76
+ <div class="mb-6">
77
+ <label for="customQuestion" class="block text-gray-700 font-medium mb-2">Or ask your specific need:</label>
78
+ <div class="flex">
79
+ <input type="text" id="customQuestion" placeholder="Example: How to write a professional email..." class="flex-grow border border-gray-300 rounded-l-lg py-3 px-4 focus:outline-none focus:ring-2 focus:ring-purple-500">
80
+ <button id="generatePromptBtn" class="bg-purple-600 text-white py-3 px-6 rounded-r-lg hover:bg-purple-700 transition duration-300 flex items-center">
81
+ <i data-feather="search" class="mr-2"></i> Generate
82
+ </button>
83
+ </div>
84
+ </div>
85
+
86
+ <div id="resultSection" class="hidden mt-8">
87
+ <h3 class="text-xl font-bold text-gray-800 mb-4">✨ Your Perfect Prompt:</h3>
88
+ <div class="bg-gray-50 p-6 rounded-lg mb-6">
89
+ <div id="generatedPrompt" class="text-gray-700 font-medium"></div>
90
+ <button id="copyPromptBtn" class="mt-4 bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-lg transition duration-300 flex items-center">
91
+ <i data-feather="copy" class="mr-2"></i> Copy Prompt
92
+ </button>
93
+ </div>
94
+
95
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
96
+ <div class="bg-blue-50 p-5 rounded-lg">
97
+ <h4 class="font-bold text-blue-800 mb-3 flex items-center">
98
+ <i data-feather="settings" class="mr-2"></i> Recommended Settings
99
+ </h4>
100
+ <div id="recommendedSettings" class="text-gray-700"></div>
101
+ </div>
102
+ <div class="bg-green-50 p-5 rounded-lg">
103
+ <h4 class="font-bold text-green-800 mb-3 flex items-center">
104
+ <i data-feather="tool" class="mr-2"></i> Suggested Tools
105
+ </h4>
106
+ <div id="suggestedTools" class="text-gray-700"></div>
107
+ </div>
108
+ </div>
109
+ </div>
110
+ </div>
111
+ </div>
112
+
113
+ <!-- Examples Section -->
114
+ <div class="container mx-auto max-w-4xl px-4 py-16">
115
+ <h2 class="text-2xl md:text-3xl font-bold text-center text-gray-800 mb-12">Prompt Examples</h2>
116
+
117
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
118
+ <div class="prompt-card bg-white p-6 rounded-xl">
119
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Content Creation</h3>
120
+ <p class="text-gray-600 mb-4">"Act as a professional copywriter. Create a 300-word blog post about [topic] targeting [audience]. Use an engaging tone, include 3 subheadings, and end with a call-to-action."</p>
121
+ <div class="text-sm text-purple-600 font-medium">Best for: Bloggers, Marketers</div>
122
+ </div>
123
+
124
+ <div class="prompt-card bg-white p-6 rounded-xl">
125
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Coding Assistance</h3>
126
+ <p class="text-gray-600 mb-4">"You are an expert [language] developer. Explain how [concept] works in simple terms, provide a practical code example with comments, and list common use cases."</p>
127
+ <div class="text-sm text-blue-600 font-medium">Best for: Developers, Students</div>
128
+ </div>
129
+
130
+ <div class="prompt-card bg-white p-6 rounded-xl">
131
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Learning & Research</h3>
132
+ <p class="text-gray-600 mb-4">"Summarize the key points about [topic] in bullet points. Include historical context, current applications, and future prospects. Use simple language suitable for beginners."</p>
133
+ <div class="text-sm text-green-600 font-medium">Best for: Students, Researchers</div>
134
+ </div>
135
+
136
+ <div class="prompt-card bg-white p-6 rounded-xl">
137
+ <h3 class="font-bold text-lg text-gray-800 mb-3">Creative Writing</h3>
138
+ <p class="text-gray-600 mb-4">"You are a fantasy novelist. Create a detailed character profile including appearance, backstory, personality traits, motivations, and a secret they keep."</p>
139
+ <div class="text-sm text-yellow-600 font-medium">Best for: Writers, Storytellers</div>
140
+ </div>
141
+ </div>
142
+ </div>
143
+
144
+ <!-- Footer -->
145
+ <footer class="bg-gray-800 text-white py-12 px-4">
146
+ <div class="container mx-auto max-w-6xl">
147
+ <div class="flex flex-col md:flex-row justify-between items-center">
148
+ <div class="mb-6 md:mb-0">
149
+ <h3 class="text-2xl font-bold mb-2">PromptGenius Wizard</h3>
150
+ <p class="text-gray-300">Crafting perfect AI prompts since 2023</p>
151
+ </div>
152
+ <div class="flex space-x-6">
153
+ <a href="#" class="text-gray-300 hover:text-white transition duration-300">
154
+ <i data-feather="github"></i>
155
+ </a>
156
+ <a href="#" class="text-gray-300 hover:text-white transition duration-300">
157
+ <i data-feather="twitter"></i>
158
+ </a>
159
+ <a href="#" class="text-gray-300 hover:text-white transition duration-300">
160
+ <i data-feather="mail"></i>
161
+ </a>
162
+ </div>
163
+ </div>
164
+ <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
165
+ <p>© 2023 PromptGenius Wizard. All prompts are free to use.</p>
166
+ </div>
167
+ </div>
168
+ </footer>
169
+
170
+ <script>
171
+ // Initialize Feather Icons
172
+ feather.replace();
173
+
174
+ // Show assistant section when start button is clicked
175
+ document.getElementById('startBtn').addEventListener('click', function() {
176
+ this.classList.add('hidden');
177
+ document.getElementById('assistantSection').classList.remove('hidden');
178
+ window.scrollTo({
179
+ top: document.getElementById('assistantSection').offsetTop - 50,
180
+ behavior: 'smooth'
181
+ });
182
+ });
183
+
184
+ // Prompt generation based on category
185
+ const promptButtons = document.querySelectorAll('.prompt-btn');
186
+ promptButtons.forEach(button => {
187
+ button.addEventListener('click', function() {
188
+ const type = this.getAttribute('data-type');
189
+ generatePrompt(type);
190
+ });
191
+ });
192
+
193
+ // Generate prompt for custom question
194
+ document.getElementById('generatePromptBtn').addEventListener('click', function() {
195
+ const question = document.getElementById('customQuestion').value.trim();
196
+ if (question) {
197
+ generatePrompt('custom', question);
198
+ } else {
199
+ alert('Please enter your question first!');
200
+ }
201
+ });
202
+
203
+ // Copy prompt to clipboard
204
+ document.getElementById('copyPromptBtn').addEventListener('click', function() {
205
+ const promptText = document.getElementById('generatedPrompt').textContent;
206
+ navigator.clipboard.writeText(promptText).then(() => {
207
+ const originalText = this.innerHTML;
208
+ this.innerHTML = '<i data-feather="check" class="mr-2"></i> Copied!';
209
+ feather.replace();
210
+ setTimeout(() => {
211
+ this.innerHTML = originalText;
212
+ feather.replace();
213
+ }, 2000);
214
+ });
215
+ });
216
+
217
+ // Generate prompt function
218
+ function generatePrompt(type, customQuestion = '') {
219
+ let prompt = '';
220
+ let settings = '';
221
+ let tools = '';
222
+
223
+ switch(type) {
224
+ case 'content':
225
+ prompt = `Act as a professional content creator. Generate a comprehensive [content type: blog post/social media post/email] about [topic]. Target audience is [describe audience]. Use [tone: professional/casual/enthusiastic] tone. Include [specific elements: bullet points/call-to-action/statistics]. Keep it [length] words.`;
226
+ settings = 'Temperature: 0.7\nMax Tokens: 300\nFrequency Penalty: 0.5';
227
+ tools = 'ChatGPT\nClaude\nBard\nGrammarly (for editing)';
228
+ break;
229
+ case 'coding':
230
+ prompt = `You are an expert [programming language] developer with 10+ years experience. Explain [concept/problem] clearly with code examples. Include:\n1. Brief explanation\n2. Practical code snippet with comments\n3. Common pitfalls\n4. Best practices\n5. Performance considerations`;
231
+ settings = 'Temperature: 0.3\nMax Tokens: 500\nTop P: 0.9';
232
+ tools = 'GitHub Copilot\nVS Code\nReplit\nStack Overflow';
233
+ break;
234
+ case 'learning':
235
+ prompt = `Summarize [topic/subject] comprehensively but concisely. Include:\n- Key concepts\n- Historical context\n- Current applications\n- Future developments\n- Recommended resources\nFormat in clear sections with bullet points. Target audience: [beginner/intermediate/advanced].`;
236
+ settings = 'Temperature: 0.5\nMax Tokens: 400\nPresence Penalty: 0.2';
237
+ tools = 'Anki (for flashcards)\nObsidian (for notes)\nWolfram Alpha (for facts)';
238
+ break;
239
+ case 'creative':
240
+ prompt = `You are a [genre: fantasy/sci-fi/romance] author. Create a [story/character/world] with these elements:\n1. [Main character details]\n2. [Setting description]\n3. [Central conflict]\n4. [Theme/tone]\nMake it vivid with sensory details and emotional depth. Include dialog where appropriate.`;
241
+ settings = 'Temperature: 0.8\nMax Tokens: 600\nFrequency Penalty: 0.1';
242
+ tools = 'NovelAI\nScrivener\nHemingway Editor\nWorld Anvil';
243
+ break;
244
+ case 'custom':
245
+ prompt = `You are an expert assistant specialized in [identify domain from question]. Provide a detailed, structured response to: "${customQuestion}". Include:\n1. Clear explanation\n2. Step-by-step guidance\n3. Examples\n4. Common mistakes to avoid\n5. Additional resources\nUse professional yet approachable language suitable for [target audience].`;
246
+ settings = 'Temperature: 0.6\nMax Tokens: 450\nTop P: 0.95';
247
+ tools = 'ChatGPT\nPerplexity AI\nElicit (for research)\nNotion (for organization)';
248
+ break;
249
+ }
250
+
251
+ document.getElementById('generatedPrompt').textContent = prompt;
252
+ document.getElementById('recommendedSettings').innerHTML = settings.replace(/\n/g, '<br>');
253
+ document.getElementById('suggestedTools').innerHTML = tools.replace(/\n/g, '<br>');
254
+
255
+ document.getElementById('resultSection').classList.remove('hidden');
256
+ window.scrollTo({
257
+ top: document.getElementById('resultSection').offsetTop - 50,
258
+ behavior: 'smooth'
259
+ });
260
+ }
261
+ </script>
262
+ </body>
263
  </html>