Nuzwa commited on
Commit
58b156d
·
verified ·
1 Parent(s): 662014c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +120 -199
index.html CHANGED
@@ -1,245 +1,166 @@
1
  <!DOCTYPE html>
2
- <html lang="en" dir="ltr">
3
  <head>
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>Small Biz Boost</title>
7
  <style>
8
- :root {
9
- --primary-blue: #0F1C49;
10
- --accent-orange: #FF8F00;
11
- --bold-red: #E53935;
12
- --cool-white: #F1F1F1;
13
- --card-bg: #ffffff;
14
- --card-radius: 8px;
15
- --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
16
- }
17
  body {
18
  margin: 0;
19
- font-family: Arial, sans-serif;
20
- background-color: var(--cool-white);
21
- color: var(--primary-blue);
22
- }
23
- .header {
24
- background-color: var(--primary-blue);
25
- color: var(--cool-white);
26
- padding: 20px;
27
- text-align: center;
28
- }
29
- .header h1 {
30
- margin: 0;
31
- font-size: 26px;
32
- font-weight: bold;
33
- }
34
- .header p {
35
- margin: 5px 0 0;
36
- font-size: 16px;
37
  }
38
  .container {
39
- width: 100%;
40
- max-width: 800px;
41
- margin: 20px auto;
42
- padding: 20px;
43
- box-sizing: border-box;
 
 
44
  }
45
- .card {
46
- background-color: var(--card-bg);
47
- border-radius: var(--card-radius);
48
- box-shadow: var(--card-shadow);
49
- margin-bottom: 20px;
50
- padding: 20px;
51
- }
52
- .card h2 {
53
- font-size: 20px;
54
- color: var(--accent-orange);
55
- margin-top: 0;
56
- font-weight: bold;
57
  }
58
  label {
59
  display: block;
60
- margin-bottom: 8px;
61
  font-weight: bold;
62
  }
63
  input[type="text"], select {
64
  width: 100%;
65
- padding: 10px;
66
- margin-bottom: 15px;
67
- border: 1px solid #ccc;
68
- border-radius: 4px;
69
- box-sizing: border-box;
70
  }
71
- .btn {
72
- background-color: var(--accent-orange);
73
- color: var(--cool-white);
74
- border: none;
75
  width: 100%;
76
- padding: 14px 0;
77
- font-size: 17px;
 
78
  font-weight: bold;
79
- border-radius: 4px;
 
 
 
80
  cursor: pointer;
81
- margin-top: 10px;
82
  }
83
- .btn:hover {
84
- background-color: var(--bold-red);
85
  }
86
- .results {
87
- background-color: #fafafa;
 
88
  padding: 20px;
89
- border-radius: var(--card-radius);
90
- margin-top: 20px;
91
  display: none;
 
92
  }
93
- #otherSkillField {
94
  display: none;
95
  }
96
  </style>
97
  </head>
98
  <body>
99
- <div class="header">
100
- <h1>Small Biz Boost</h1>
101
- <p>Refine Your Business Idea</p>
102
- </div>
103
  <div class="container">
104
- <form id="bizForm">
105
- <div class="card">
106
- <h2>Step 1: Business Idea</h2>
107
- <label for="idea">Enter your business idea</label>
108
- <input type="text" id="idea" name="idea" placeholder="e.g., Online store, Food service" required />
109
- </div>
110
- <div class="card">
111
- <h2>Step 2: Budget</h2>
112
- <label for="budget">Select your budget</label>
113
- <select id="budget" name="budget">
114
- <option value="low">Low (10-20k PKR)</option>
115
- <option value="medium">Medium (20-50k PKR)</option>
116
- <option value="high">High (50k+ PKR)</option>
117
- <option value="custom">Custom Amount</option>
118
- </select>
119
- <input type="text" id="budgetCustom" name="budgetCustom" placeholder="Enter custom amount" style="display:none;" />
120
- </div>
121
- <div class="card">
122
- <h2>Step 3: Skills</h2>
123
- <label for="skills">Select your main skill</label>
124
- <select id="skills" name="skills">
125
- <option value="writing">Writing</option>
126
- <option value="design">Design</option>
127
- <option value="marketing">Marketing</option>
128
- <option value="coding">Coding</option>
129
- <option value="other">Other</option>
130
- </select>
131
- <input type="text" id="otherSkillField" name="otherSkill" placeholder="Enter your skill" />
132
- </div>
133
- <div class="card">
134
- <h2>Step 4: Time Commitment</h2>
135
- <label for="time">How much time per day?</label>
136
- <select id="time" name="time">
137
- <option value="less than 1 hour">Less than 1 hour/day</option>
138
- <option value="1-2 hours">1-2 hours/day</option>
139
- <option value="2-4 hours">2-4 hours/day</option>
140
- <option value="full-time">Full-time</option>
141
- </select>
142
- </div>
143
- <div class="card">
144
- <h2>Step 5: Business Type</h2>
145
- <label for="type">Choose your business type</label>
146
- <select id="type" name="type">
147
- <option value="physical">Physical</option>
148
- <option value="online">Online</option>
149
- <option value="hybrid">Hybrid</option>
150
- </select>
151
- </div>
152
- <button type="submit" class="btn">Generate Prompt</button>
153
- </form>
154
- <div id="results" class="results">
155
- <h2>Your Generated Prompt</h2>
156
- <div id="planContent"></div>
157
- <button type="button" id="copyBtn" class="btn" style="display:none;">Copy & Paste Now</button>
158
- </div>
159
- </div>
160
 
161
- <script>
162
- document.getElementById('budget').addEventListener('change', function () {
163
- document.getElementById('budgetCustom').style.display = this.value === 'custom' ? 'block' : 'none';
164
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
- document.getElementById('skills').addEventListener('change', function () {
167
- document.getElementById('otherSkillField').style.display = this.value === 'other' ? 'block' : 'none';
168
- });
 
 
 
169
 
170
- let typingInterval;
171
- function typeWriter(text, element, callback) {
172
- let i = 0;
173
- element.innerHTML = '';
174
- if (typingInterval) clearInterval(typingInterval);
175
 
176
- typingInterval = setInterval(() => {
177
- if (i < text.length) {
178
- element.innerHTML += text.charAt(i);
179
- i++;
180
- } else {
181
- clearInterval(typingInterval);
182
- if (callback) callback();
183
- }
184
- }, 30); // Typing speed
185
  }
186
 
187
- document.getElementById('bizForm').addEventListener('submit', function (e) {
188
- e.preventDefault();
189
- const idea = document.getElementById('idea').value;
190
- const budgetValue = document.getElementById('budget').value;
191
- const budget = budgetValue === 'custom'
192
- ? document.getElementById('budgetCustom').value
193
- : document.querySelector('#budget option:checked').textContent;
194
-
195
- const skillChoice = document.getElementById('skills').value;
196
- const otherSkill = document.getElementById('otherSkillField').value;
197
- const skills = skillChoice === 'other' ? otherSkill : skillChoice;
198
-
199
- const time = document.querySelector('#time option:checked').textContent;
200
- const type = document.getElementById('type').value;
201
 
202
- const prompt = `Generate a detailed business plan.
203
- Business Idea: ${idea}
204
- Budget: ${budget}
205
- Primary Skill: ${skills}
206
- Daily Time Commitment: ${time}
207
- Business Type: ${type}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
 
209
- The plan should include:
210
- 1. **Product Intro:** A brief, compelling description.
211
- 2. **Target Customers:** Who are the ideal buyers?
212
- 3. **Pricing & Branding:** Suggested pricing and brand identity ideas.
213
- 4. **Social Media Plan:** Strategies for Facebook, Instagram, and TikTok.
214
- 5. **Sales Channels:** Where to sell the product/service.
215
- 6. **Startup Costs:** A breakdown of initial expenses.
216
- 7. **30-Day Action Plan:** Step-by-step tasks for the first month.
217
- 8. **Final Tips:** Advice for success.`;
218
 
219
- const resultsDiv = document.getElementById('results');
220
- const planContentDiv = document.getElementById('planContent');
221
- const copyBtn = document.getElementById('copyBtn');
222
-
223
- resultsDiv.style.display = 'block';
224
- copyBtn.style.display = 'none';
225
 
226
- typeWriter(prompt, planContentDiv, () => {
227
- copyBtn.style.display = 'block';
228
- });
229
- });
230
-
231
- document.getElementById('copyBtn').addEventListener('click', function() {
232
- const promptText = document.getElementById('planContent').innerText;
233
- navigator.clipboard.writeText(promptText).then(() => {
234
- this.innerText = 'Copied!';
235
- setTimeout(() => {
236
- this.innerText = 'Copy & Paste Now';
237
- }, 2000);
238
- }).catch(err => {
239
- alert('Failed to copy. Please try again.');
240
- });
241
- });
242
 
 
 
 
243
  </script>
244
  </body>
245
- </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>Small Biz Boost</title>
7
  <style>
 
 
 
 
 
 
 
 
 
8
  body {
9
  margin: 0;
10
+ font-family: sans-serif;
11
+ background-color: #ffffff;
12
+ color: #6A1B9A;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  }
14
  .container {
15
+ max-width: 450px;
16
+ margin: 40px auto;
17
+ background: #f9f9f9;
18
+ padding: 30px;
19
+ border-radius: 15px;
20
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
21
+ border-top: 5px solid #8A2BE2;
22
  }
23
+ h1 {
24
+ text-align: center;
25
+ color: #8A2BE2;
26
+ font-size: 2em;
 
 
 
 
 
 
 
 
27
  }
28
  label {
29
  display: block;
30
+ margin-top: 20px;
31
  font-weight: bold;
32
  }
33
  input[type="text"], select {
34
  width: 100%;
35
+ padding: 20px;
36
+ margin-top: 10px;
37
+ border: 1px solid #ddd;
38
+ border-radius: 8px;
39
+ font-size: 1em;
40
  }
41
+ button {
 
 
 
42
  width: 100%;
43
+ padding: 20px;
44
+ margin-top: 20px;
45
+ font-size: 1.5em;
46
  font-weight: bold;
47
+ color: #ffffff;
48
+ background-color: #B388FF;
49
+ border: 1px solid #D1C4E9;
50
+ border-radius: 8px;
51
  cursor: pointer;
52
+ transition: background-color 0.3s ease;
53
  }
54
+ button:hover {
55
+ background-color: #8A2BE2;
56
  }
57
+ #resultBox {
58
+ margin-top: 30px;
59
+ background: #F3E5F5;
60
  padding: 20px;
61
+ border-radius: 8px;
62
+ font-size: 1.2em;
63
  display: none;
64
+ white-space: pre-line;
65
  }
66
+ #budgetCustomField, #skillCustomField {
67
  display: none;
68
  }
69
  </style>
70
  </head>
71
  <body>
 
 
 
 
72
  <div class="container">
73
+ <h1>Small Biz Boost</h1>
74
+ <label for="idea">Business Idea</label>
75
+ <input type="text" id="idea" placeholder="e.g. Online store" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
+ <label for="budget">Select Budget</label>
78
+ <select id="budget" onchange="toggleBudgetCustom()">
79
+ <option value="Low">Low (10-20k PKR)</option>
80
+ <option value="Medium">Medium (20-50k PKR)</option>
81
+ <option value="High">High (50k+ PKR)</option>
82
+ <option value="custom">Custom</option>
83
+ </select>
84
+ <input type="text" id="budgetCustomField" placeholder="Enter your custom budget" />
85
+
86
+ <label for="skill">Your Skill</label>
87
+ <select id="skill" onchange="toggleSkillCustom()">
88
+ <option value="Writing">Writing</option>
89
+ <option value="Design">Design</option>
90
+ <option value="Marketing">Marketing</option>
91
+ <option value="Coding">Coding</option>
92
+ <option value="custom">Custom</option>
93
+ </select>
94
+ <input type="text" id="skillCustomField" placeholder="Enter your custom skill" />
95
+
96
+ <label for="time">Time Commitment</label>
97
+ <select id="time">
98
+ <option value="Less than 1 hour/day">Less than 1 hour/day</option>
99
+ <option value="1-2 hours/day">1-2 hours/day</option>
100
+ <option value="2-4 hours/day">2-4 hours/day</option>
101
+ <option value="Full-time">Full-time</option>
102
+ </select>
103
 
104
+ <label for="type">Business Type</label>
105
+ <select id="type">
106
+ <option value="Physical">Physical</option>
107
+ <option value="Online">Online</option>
108
+ <option value="Hybrid">Hybrid</option>
109
+ </select>
110
 
111
+ <button onclick="generatePrompt()">Generate Prompt</button>
 
 
 
 
112
 
113
+ <div id="resultBox"></div>
114
+
115
+ <button id="copyBtn" onclick="copyAndOpenGPT()" style="display:none;">Copy & Paste Now</button>
116
+ </div>
117
+
118
+ <script>
119
+ function toggleBudgetCustom() {
120
+ const budget = document.getElementById("budget").value;
121
+ document.getElementById("budgetCustomField").style.display = budget === "custom" ? "block" : "none";
122
  }
123
 
124
+ function toggleSkillCustom() {
125
+ const skill = document.getElementById("skill").value;
126
+ document.getElementById("skillCustomField").style.display = skill === "custom" ? "block" : "none";
127
+ }
 
 
 
 
 
 
 
 
 
 
128
 
129
+ function typeWriter(text, element, delay = 30) {
130
+ let i = 0;
131
+ element.innerHTML = "";
132
+ function type() {
133
+ if (i < text.length) {
134
+ element.innerHTML += text.charAt(i);
135
+ i++;
136
+ setTimeout(type, delay);
137
+ }
138
+ }
139
+ type();
140
+ }
141
+
142
+ function generatePrompt() {
143
+ const idea = document.getElementById("idea").value;
144
+ const budgetSel = document.getElementById("budget").value;
145
+ const budget = budgetSel === "custom" ? document.getElementById("budgetCustomField").value : budgetSel;
146
+ const skillSel = document.getElementById("skill").value;
147
+ const skill = skillSel === "custom" ? document.getElementById("skillCustomField").value : skillSel;
148
+ const time = document.getElementById("time").value;
149
+ const type = document.getElementById("type").value;
150
 
151
+ const prompt = `I want a business plan for this idea: ${idea}, with a budget of ${budget}. My skill is ${skill}, I can give ${time}, and I want a ${type} business.`;
 
 
 
 
 
 
 
 
152
 
153
+ const resultBox = document.getElementById("resultBox");
154
+ resultBox.style.display = "block";
155
+ typeWriter(prompt, resultBox);
 
 
 
156
 
157
+ navigator.clipboard.writeText(prompt);
158
+ document.getElementById("copyBtn").style.display = "block";
159
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
160
 
161
+ function copyAndOpenGPT() {
162
+ window.open("https://chatgpt.com/g/g-67f362bab1e481919229b855c99e8ce0-small-biz-boost-urdu", "_blank");
163
+ }
164
  </script>
165
  </body>
166
+ </html>