Web App Type: 📅 Planner or productivity tool Target Audience: 🏪 Small business owners Core Problem to Solve: Be better informed about business opportunities User Input Mechanism: 📝 Text or description Desired Output/Result: ✅ Action steps or recommendations Visual Style/Colour Scheme: Green and w
pasted
9:08 AM
html
Business Opportunity Analyzer
Business Opportunity Analyzer
Discover actionable insights for your small business growth
📊
Market Potential
-
Enter your business opportunity above to see insights
💰
Investment Level
-
Waiting for input...
⚡
Speed to Market
-
Waiting for input...
🎯
Risk Assessment
-
Waiting for input...
Recommended Action Steps
Your personalized action steps will appear here once you describe your opportunity.
css
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 100%);
color: #2d3748;
line-height: 1.6;
padding: 40px 20px;
min-height: 100vh;
}
.container {
max-width: 1100px;
margin: 0 auto;
}
header {
text-align: center;
margin-bottom: 50px;
}
h1 {
font-size: 2.5rem;
color: #22543d;
margin-bottom: 12px;
font-weight: 700;
}
.subtitle {
font-size: 1.125rem;
color: #4a5568;
font-weight: 400;
}
.input-section {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
margin-bottom: 40px;
}
label {
display: block;
font-size: 1rem;
font-weight: 600;
color: #2d3748;
margin-bottom: 12px;
}
textarea {
width: 100%;
padding: 16px;
font-size: 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
resize: vertical;
font-family: inherit;
transition: border-color 0.3s ease;
}
textarea:focus {
outline: none;
border-color: #48bb78;
}
.results-section {
margin-top: 40px;
}
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 24px;
margin-bottom: 40px;
}
.card {
background: white;
padding: 28px;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.12);
}
.card-icon {
font-size: 2.5rem;
margin-bottom: 12px;
}
.card h3 {
font-size: 1.125rem;
color: #2d3748;
margin-bottom: 12px;
font-weight: 600;
}
.score {
font-size: 2rem;
font-weight: 700;
color: #22543d;
margin-bottom: 12px;
}
.description {
font-size: 0.875rem;
color: #718096;
line-height: 1.5;
}
.action-steps {
background: white;
padding: 35px;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}
.action-steps h2 {
font-size: 1.5rem;
color: #22543d;
margin-bottom: 20px;
font-weight: 600;
}
.actions-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.action-item {
background: #f0f9f4;
padding: 18px 20px;
border-radius: 8px;
border-left: 4px solid #48bb78;
font-size: 0.9375rem;
color: #2d3748;
line-height: 1.6;
}
.placeholder {
color: #a0aec0;
font-style: italic;
text-align: center;
padding: 20px;
}
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.results-grid {
grid-template-columns: 1fr;
}
.input-section,
.action-steps {
padding: 24px;
}
}
javascript
const businessInput = document.getElementById('businessInput');
const marketScore = document.getElementById('marketScore');
const marketDesc = document.getElementById('marketDesc');
const investmentScore = document.getElementById('investmentScore');
const investmentDesc = document.getElementById('investmentDesc');
const speedScore = document.getElementById('speedScore');
const speedDesc = document.getElementById('speedDesc');
const riskScore = document.getElementById('riskScore');
const riskDesc = document.getElementById('riskDesc');
const actionsList = document.getElementById('actionsList');
businessInput.addEventListener('input', analyzeOpportunity);
function analyzeOpportunity() {
const text = businessInput.value.trim().toLowerCase();
if (text.length < 20) {
resetResults();
return;
}
const wordCount = text.split(/\s+/).length;
const hasNumbers = /\d/.test(text);
const hasCustomerMention = /customer|client|people|user|patron/i.test(text);
const hasMoneyMention = /money|revenue|profit|income|cost|price|dollar/i.test(text);
const hasCompetition = /compet|rival|alternative|other business/i.test(text);
const hasLocation = /local|area|neighborhood|town|city|community/i.test(text);
const hasTrend = /growing|trend|popular|demand|want|need|asking/i.test(text);
const hasProduct = /product|service|offer|menu|item/i.test(text);
const marketPotential = calculateMarketPotential(hasCustomerMention, hasTrend, hasLocation, wordCount);
const investment = calculateInvestment(hasMoneyMention, hasProduct, text);
const speed = calculateSpeed(text, hasProduct);
const risk = calculateRisk(hasCompetition, hasNumbers, wordCount);
marketScore.textContent = marketPotential.score;
marketDesc.textContent = marketPotential.description;
investmentScore.textContent = investment.score;
investmentDesc.textContent = investment.description;
speedScore.textContent = speed.score;
speedDesc.textContent = speed.description;
riskScore.textContent = risk.score;
riskDesc.textContent = risk.description;
generateActionSteps(text, marketPotential, investment, speed);
}
function calculateMarketPotential(hasCustomerMention, hasTrend, hasLocation, wordCount) {
let score = 'Medium';
let description = 'Moderate market opportunity detected';
if (hasTrend && hasCustomerMention) {
score = 'High';
description = 'Strong demand signals with clear customer interest';
} else if (hasLocation && wordCount > 50) {
score = 'High';
description = 'Well-defined local market with detailed context';
} else if (!hasCustomerMention && !hasTrend) {
score = 'Low';
description = 'Limited market validation mentioned';
}
return { score, description };
}
function calculateInvestment(hasMoneyMention, hasProduct, text) {
let score = 'Medium';
let description = 'Moderate investment likely required';
if (text.includes('low cost') || text.includes('inexpensive') || text.includes('cheap')) {
score = 'Low';
description = 'Minimal upfront investment indicated';
} else if (text.includes('expensive') || text.includes('equipment') || text.includes('renovate')) {
score = 'High';
description = 'Significant capital investment may be needed';
} else if (hasProduct && !hasMoneyMention) {
score = 'Low';
description = 'Appears to be a simple product addition';
}
return { score, description };
}
function calculateSpeed(text, hasProduct) {
let score = 'Medium';
let description = 'Could launch within a few weeks';
if (text.includes('quick') || text.includes('easy') || text.includes('simple') || hasProduct) {
score = 'Fast';
description = 'Can potentially implement in days';
} else if (text.includes('complex') || text.includes('build') || text.includes('develop')) {
score = 'Slow';
description = 'May require extended development time';
}
return { score, description };
}
function calculateRisk(hasCompetition, hasNumbers, wordCount) {
let score = 'Medium';
let description = 'Standard business risk level';
if (hasNumbers && wordCount > 60) {
score = 'Low';
description = 'Well-researched opportunity with data backing';
} else if (hasCompetition) {
score = 'Medium';
description = 'Competitive market requires differentiation';
} else if (wordCount < 30) {
score = 'High';
description = 'Limited information increases uncertainty';
}
return { score, description };
}
function generateActionSteps(text, market, investment, speed) {
const steps = [];
if (text.includes('customer') || text.includes('asking')) {
steps.push('Survey 10-15 existing customers to validate demand and gather specific preferences');
} else {
steps.push('Conduct informal market research by observing customer behavior and asking targeted questions');
}
if (investment.score === 'Low' || speed.score === 'Fast') {
steps.push('Create a small-scale pilot or test version to validate the concept quickly and affordably');
} else {
steps.push('Develop a detailed business plan with cost projections before making major commitments');
}
if (market.score === 'High') {
steps.push('Prioritize this opportunity and set a target launch date within the next 30-60 days');
} else {
steps.push('Continue monitoring market signals while exploring ways to strengthen the value proposition');
}
if (text.includes('compet') || text.includes('other')) {
steps.push('Research competitor offerings and identify 2-3 unique differentiators for your approach');
} else {
steps.push('Look at similar businesses in other markets to learn from their successes and challenges');
}
steps.push('Set clear success metrics and plan to review results after the first 30 days of implementation');
actionsList.innerHTML = steps.map(step => `
${step}
`).join('');
}
function resetResults() {
marketScore.textContent = '-';
marketDesc.textContent = 'Enter your business opportunity above to see insights';
investmentScore.textContent = '-';
investmentDesc.textContent = 'Waiting for input...';
speedScore.textContent = '-';
speedDesc.textContent = 'Waiting for input...';
riskScore.textContent = '-';
riskDesc.textContent = 'Waiting for input...';
actionsList.innerHTML = '
Your personalized action steps will appear here once you describe your opportunity.
';
}
Claude is AI and can make mistakes. Please double-check responses.