ai / index.html
SaiBB's picture
Add 3 files
709ab7f verified
Raw History Blame Contribute Delete
30.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ReputAI - AI-Powered Hotel Reputation Management</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<style>
body {
font-family: 'Poppins', sans-serif;
background-color: #f8fafc;
color: #334155;
}
.gradient-bg {
background: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
}
.chat-bubble {
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.8; }
50% { opacity: 1; }
100% { opacity: 0.8; }
}
.heatmap-area {
transition: all 0.3s ease;
}
.heatmap-area:hover {
transform: scale(1.05);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.gauge {
--percentage: 0;
--fill: #4ade80;
background: conic-gradient(var(--fill) calc(var(--percentage) * 1%), #e2e8f0 0);
}
</style>
</head>
<body class="min-h-screen">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center text-white font-bold text-xl">R</div>
<span class="ml-2 text-xl font-semibold text-gray-900">ReputAI</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center">
<button class="px-4 py-2 rounded-full bg-indigo-600 text-white font-medium hover:bg-indigo-700 transition duration-300">
Request Demo
</button>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="gradient-bg py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">Transform Guest Experiences with AI</h1>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">ReputAI helps hotels respond to feedback with emotional intelligence, track sentiment in real-time, and improve their reputation scores.</p>
</div>
</div>
</div>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<!-- Live Chat Section -->
<div class="bg-white rounded-xl shadow-md p-6 mb-12">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Guest Response Assistant</h2>
<div class="flex flex-col md:flex-row gap-8">
<!-- Input Section -->
<div class="md:w-1/2">
<div class="mb-4">
<label for="tone-select" class="block text-sm font-medium text-gray-700 mb-1">Detected Guest Tone</label>
<select id="tone-select" class="block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border">
<option value="angry">😠 Angry</option>
<option value="disappointed">😞 Disappointed</option>
<option value="sad">😢 Sad</option>
<option value="neutral" selected>😐 Neutral</option>
<option value="happy">😊 Happy</option>
</select>
</div>
<div class="mb-4">
<label for="chat-input" class="block text-sm font-medium text-gray-700 mb-1">Ask ReputAI how to respond to a guest complaint...</label>
<textarea id="chat-input" rows="4" class="block w-full rounded-lg border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 py-2 px-3 border" placeholder="Guest said: 'The room was dirty when we arrived and the AC wasn't working...'"></textarea>
</div>
<button id="generate-btn" class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 transition duration-300 font-medium">
Generate Response
</button>
</div>
<!-- Output Section -->
<div class="md:w-1/2">
<div class="bg-gray-50 rounded-lg p-4 h-full">
<div class="flex items-center mb-3">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600 mr-2">
<i class="fas fa-robot"></i>
</div>
<span class="font-medium text-gray-700">ReputAI Response</span>
</div>
<div id="ai-response" class="text-gray-700 bg-white p-4 rounded-lg min-h-40">
<p class="text-gray-500 italic">Your AI-generated response will appear here...</p>
</div>
</div>
</div>
</div>
</div>
<!-- Emotion Heat Map Section -->
<div class="bg-white rounded-xl shadow-md p-6 mb-12">
<h2 class="text-2xl font-semibold text-gray-800 mb-6">EmotionHeat AI Map</h2>
<div class="relative bg-gray-100 rounded-xl p-6 h-96">
<!-- Abstract Hotel Layout -->
<div class="absolute inset-0 flex items-center justify-center">
<div class="grid grid-cols-2 grid-rows-2 gap-4 w-full h-full p-8">
<!-- Front Desk -->
<div id="front-desk" class="heatmap-area bg-red-400 rounded-2xl flex items-center justify-center cursor-pointer hover:bg-red-500 transition duration-300" data-tooltip="Front Desk: 68% negative sentiment">
<div class="text-white font-medium text-center">
<i class="fas fa-concierge-bell text-2xl mb-1"></i>
<p>Front Desk</p>
</div>
</div>
<!-- Rooms -->
<div id="rooms" class="heatmap-area bg-orange-400 rounded-2xl flex items-center justify-center cursor-pointer hover:bg-orange-500 transition duration-300" data-tooltip="Rooms: 42% negative sentiment">
<div class="text-white font-medium text-center">
<i class="fas fa-bed text-2xl mb-1"></i>
<p>Rooms</p>
</div>
</div>
<!-- Restaurant -->
<div id="restaurant" class="heatmap-area bg-amber-400 rounded-2xl flex items-center justify-center cursor-pointer hover:bg-amber-500 transition duration-300" data-tooltip="Restaurant: 35% negative sentiment">
<div class="text-white font-medium text-center">
<i class="fas fa-utensils text-2xl mb-1"></i>
<p>Restaurant</p>
</div>
</div>
<!-- Spa -->
<div id="spa" class="heatmap-area bg-green-400 rounded-2xl flex items-center justify-center cursor-pointer hover:bg-green-500 transition duration-300" data-tooltip="Spa: 18% negative sentiment">
<div class="text-white font-medium text-center">
<i class="fas fa-spa text-2xl mb-1"></i>
<p>Spa</p>
</div>
</div>
</div>
</div>
<!-- Legend -->
<div class="absolute bottom-4 left-4 bg-white p-3 rounded-lg shadow-sm">
<div class="flex items-center mb-1">
<div class="w-4 h-4 rounded-full bg-red-400 mr-2"></div>
<span class="text-sm">High Negativity</span>
</div>
<div class="flex items-center mb-1">
<div class="w-4 h-4 rounded-full bg-orange-400 mr-2"></div>
<span class="text-sm">Medium Negativity</span>
</div>
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-green-400 mr-2"></div>
<span class="text-sm">Low Negativity</span>
</div>
</div>
<!-- Sample Complaint Tooltip (hidden by default) -->
<div id="complaint-tooltip" class="absolute hidden bg-white p-4 rounded-lg shadow-lg max-w-xs z-10">
<div class="flex justify-between items-start mb-2">
<h3 class="font-medium" id="tooltip-title">Front Desk</h3>
<button id="close-tooltip" class="text-gray-400 hover:text-gray-600">
<i class="fas fa-times"></i>
</button>
</div>
<p class="text-sm text-gray-600 mb-2">Sample complaint:</p>
<p class="text-sm italic mb-2" id="tooltip-complaint">"I waited 30 minutes to check in and the staff seemed indifferent to my frustration."</p>
<div class="flex justify-between text-xs">
<span>Sentiment: <span id="tooltip-sentiment" class="font-medium">68% negative</span></span>
<span>Volume: <span class="font-medium">12 complaints</span></span>
</div>
</div>
</div>
</div>
<!-- Karma Score Dashboard -->
<div class="bg-white rounded-xl shadow-md p-6 mb-12">
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6">
<h2 class="text-2xl font-semibold text-gray-800">Hotel Karma Score</h2>
<p class="text-gray-600 mt-2 md:mt-0">Transparency builds trust. Showcase your customer care commitment.</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Gauge -->
<div class="bg-gray-50 rounded-xl p-6 flex flex-col items-center">
<div class="gauge w-40 h-40 rounded-full flex items-center justify-center mb-4" style="--percentage: 78; --fill: #4ade80;">
<div class="w-32 h-32 bg-white rounded-full flex items-center justify-center">
<span class="text-3xl font-bold text-gray-800">78</span>
</div>
</div>
<p class="text-gray-600 text-center">Your current reputation score</p>
<div class="flex mt-2">
<span class="text-xs text-gray-500">0</span>
<span class="text-xs text-gray-500 mx-6">50</span>
<span class="text-xs text-gray-500">100</span>
</div>
</div>
<!-- Metrics -->
<div class="bg-gray-50 rounded-xl p-6">
<h3 class="font-medium text-gray-700 mb-4">Key Metrics</h3>
<div class="space-y-4">
<div>
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-gray-700">Avg. Response Time</span>
<span class="text-sm font-medium text-indigo-600">2.4 hrs</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-indigo-600 h-2 rounded-full" style="width: 45%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">Industry average: 6.8 hrs</p>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-gray-700">Sentiment Trend</span>
<span class="text-sm font-medium text-green-600">+12%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 60%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">Last 30 days</p>
</div>
<div>
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-gray-700">Issues Resolved</span>
<span class="text-sm font-medium text-indigo-600">84%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-indigo-600 h-2 rounded-full" style="width: 84%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">32 of 38 complaints</p>
</div>
</div>
</div>
<!-- Performance Graph -->
<div class="bg-gray-50 rounded-xl p-6">
<h3 class="font-medium text-gray-700 mb-4">Performance Over Time</h3>
<div class="h-48 relative">
<!-- Simple line graph placeholder -->
<div class="absolute bottom-0 left-0 right-0 h-px bg-gray-300"></div>
<div class="absolute left-0 top-0 bottom-0 w-px bg-gray-300"></div>
<!-- Graph line -->
<svg viewBox="0 0 100 50" class="w-full h-full">
<polyline points="0,40 20,30 40,35 60,20 80,10 100,15"
fill="none" stroke="#4f46e5" stroke-width="2" />
</svg>
<!-- X-axis labels -->
<div class="absolute bottom-0 left-0 right-0 flex justify-between text-xs text-gray-500 px-2">
<span>1 Jan</span>
<span>8 Jan</span>
<span>15 Jan</span>
<span>22 Jan</span>
<span>29 Jan</span>
<span>Today</span>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- AI Coach Bubble -->
<div id="ai-coach" class="fixed bottom-6 right-6 z-50">
<div id="coach-bubble" class="w-16 h-16 bg-indigo-600 rounded-full flex items-center justify-center text-white shadow-lg cursor-pointer hover:bg-indigo-700 transition duration-300 chat-bubble">
<i class="fas fa-robot text-2xl"></i>
</div>
<div id="coach-chat" class="hidden absolute bottom-20 right-0 w-72 bg-white rounded-xl shadow-xl overflow-hidden">
<div class="bg-indigo-600 text-white p-3 flex justify-between items-center">
<h3 class="font-medium">AI Coach</h3>
<button id="close-coach" class="text-white hover:text-indigo-200">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-4 max-h-60 overflow-y-auto">
<div class="mb-4">
<div class="bg-indigo-100 text-indigo-800 rounded-lg p-3 text-sm">
<p>Tip: Use active listening. Try:</p>
<p class="font-medium mt-1">"I completely understand how frustrating that must have been."</p>
</div>
</div>
<div class="mb-4">
<div class="bg-gray-100 text-gray-800 rounded-lg p-3 text-sm">
<p>Your response to the last guest was rated:</p>
<div class="flex items-center mt-1">
<span class="text-yellow-400 mr-1">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</span>
<span class="text-xs text-gray-600">4/5 stars</span>
</div>
</div>
</div>
<div>
<div class="bg-indigo-100 text-indigo-800 rounded-lg p-3 text-sm">
<p>Quick suggestion for current situation:</p>
<p class="font-medium mt-1">"Let me personally ensure this gets resolved for you immediately."</p>
</div>
</div>
</div>
<div class="border-t border-gray-200 p-3">
<div class="relative">
<input type="text" placeholder="Ask the coach..." class="w-full border border-gray-300 rounded-full py-2 px-4 pr-10 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 text-sm">
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 text-indigo-600">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-50 border-t border-gray-200 py-8">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<div class="w-8 h-8 rounded-full bg-indigo-600 flex items-center justify-center text-white font-bold text-sm mr-2">R</div>
<span class="text-lg font-medium text-gray-800">ReputAI</span>
</div>
<div class="text-gray-500 text-sm">
<p>Powered by ReputAI | Elevating hospitality through emotional intelligence</p>
</div>
<button class="mt-4 md:mt-0 px-6 py-2 rounded-full bg-indigo-600 text-white font-medium hover:bg-indigo-700 transition duration-300">
Request Full Demo
</button>
</div>
</div>
</footer>
<script>
// Sample responses based on tone
const sampleResponses = {
angry: `Dear [Guest Name],<br><br>
I sincerely apologize for the unacceptable experience you had with your room. This is certainly not the standard we strive for at our hotel.<br><br>
I've personally alerted our housekeeping manager to address the cleanliness issues immediately, and our maintenance team is already working on the AC unit. As a gesture of our apology, I'd like to offer you a complimentary room upgrade for the remainder of your stay.<br><br>
Please don't hesitate to contact me directly at [extension] if there's anything else we can do to make your stay more comfortable.<br><br>
Warm regards,<br>
[Your Name]<br>
Front Desk Manager`,
disappointed: `Hello [Guest Name],<br><br>
Thank you for bringing these issues to our attention. We're truly disappointed to hear that your room didn't meet your expectations upon arrival.<br><br>
Our team is currently addressing both the cleanliness and AC concerns. In the meantime, we'd be happy to move you to another room if you'd prefer. We've also applied a 20% discount to your current night's stay as our way of making this right.<br><br>
Please let us know how else we can improve your experience.<br><br>
Best regards,<br>
[Your Name]`,
sad: `Dear [Guest Name],<br><br>
It truly saddens us to hear about your disappointing arrival experience. We want all our guests to feel welcomed and comfortable from the very first moment.<br><br>
I've personally inspected your room and ensured all issues are being resolved. To help make up for this rough start, we'd like to offer you complimentary breakfast for two during your stay.<br><br>
Please don't hesitate to reach out if you need anything at all - we're here to help.<br><br>
Warmest regards,<br>
[Your Name]`,
neutral: `Hello [Guest Name],<br><br>
Thank you for your feedback regarding your room. We appreciate you letting us know about these issues.<br><br>
Our housekeeping team has been notified to address the cleanliness concerns, and maintenance is looking into the AC unit. We can arrange to move you to another room if you'd prefer, or provide a portable AC unit while repairs are being made.<br><br>
Please let us know how we can assist you further.<br><br>
Best regards,<br>
[Your Name]`,
happy: `Dear [Guest Name],<br><br>
Thank you for your understanding about the room situation - we truly appreciate guests like you!<br><br>
While we're addressing the issues you mentioned, we'd love to surprise you with a small gift at turn-down service tonight as a thank you for your patience. Our team is also happy to provide late checkout on your departure day if that would be helpful.<br><br>
It's guests like you that make our jobs rewarding!<br><br>
Warm regards,<br>
[Your Name]`
};
// Sample complaints for heatmap areas
const areaComplaints = {
'front-desk': {
title: 'Front Desk',
complaint: '"I waited 30 minutes to check in and the staff seemed indifferent to my frustration."',
sentiment: '68% negative',
volume: '12 complaints'
},
'rooms': {
title: 'Rooms',
complaint: '"The bathroom wasn\'t properly cleaned and there were stains on the sheets."',
sentiment: '42% negative',
volume: '8 complaints'
},
'restaurant': {
title: 'Restaurant',
complaint: '"My food arrived cold and the server never checked back to see if everything was okay."',
sentiment: '35% negative',
volume: '5 complaints'
},
'spa': {
title: 'Spa',
complaint: '"The massage was wonderful but the waiting area was too noisy and crowded."',
sentiment: '18% negative',
volume: '3 complaints'
}
};
// DOM Elements
const generateBtn = document.getElementById('generate-btn');
const toneSelect = document.getElementById('tone-select');
const aiResponse = document.getElementById('ai-response');
const heatmapAreas = document.querySelectorAll('.heatmap-area');
const complaintTooltip = document.getElementById('complaint-tooltip');
const closeTooltip = document.getElementById('close-tooltip');
const coachBubble = document.getElementById('coach-bubble');
const coachChat = document.getElementById('coach-chat');
const closeCoach = document.getElementById('close-coach');
// Event Listeners
generateBtn.addEventListener('click', function() {
const selectedTone = toneSelect.value;
aiResponse.innerHTML = sampleResponses[selectedTone];
// Animate the response appearance
aiResponse.style.opacity = '0';
aiResponse.style.transform = 'translateY(10px)';
aiResponse.style.transition = 'all 0.3s ease';
setTimeout(() => {
aiResponse.style.opacity = '1';
aiResponse.style.transform = 'translateY(0)';
}, 50);
});
// Heatmap area hover effects
heatmapAreas.forEach(area => {
area.addEventListener('mouseenter', function() {
const areaId = this.id;
const complaintData = areaComplaints[areaId];
// Position tooltip near the hovered area
const rect = this.getBoundingClientRect();
complaintTooltip.style.left = `${rect.left + rect.width/2 - 150}px`;
complaintTooltip.style.top = `${rect.top - 180}px`;
// Update tooltip content
document.getElementById('tooltip-title').textContent = complaintData.title;
document.getElementById('tooltip-complaint').textContent = complaintData.complaint;
document.getElementById('tooltip-sentiment').textContent = complaintData.sentiment;
// Show tooltip
complaintTooltip.classList.remove('hidden');
});
area.addEventListener('mouseleave', function() {
// Only hide if not clicking (for mobile)
if (!this.classList.contains('active')) {
complaintTooltip.classList.add('hidden');
}
});
// For mobile/touch devices
area.addEventListener('click', function() {
const areaId = this.id;
const complaintData = areaComplaints[areaId];
// Position tooltip near the clicked area
const rect = this.getBoundingClientRect();
complaintTooltip.style.left = `${rect.left + rect.width/2 - 150}px`;
complaintTooltip.style.top = `${rect.top - 180}px`;
// Update tooltip content
document.getElementById('tooltip-title').textContent = complaintData.title;
document.getElementById('tooltip-complaint').textContent = complaintData.complaint;
document.getElementById('tooltip-sentiment').textContent = complaintData.sentiment;
// Toggle tooltip
if (complaintTooltip.classList.contains('hidden')) {
complaintTooltip.classList.remove('hidden');
this.classList.add('active');
} else {
complaintTooltip.classList.add('hidden');
this.classList.remove('active');
}
});
});
closeTooltip.addEventListener('click', function() {
complaintTooltip.classList.add('hidden');
heatmapAreas.forEach(area => area.classList.remove('active'));
});
// AI Coach toggle
coachBubble.addEventListener('click', function() {
coachChat.classList.toggle('hidden');
});
closeCoach.addEventListener('click', function() {
coachChat.classList.add('hidden');
});
// Simulate pulse animation for heatmap areas
setInterval(() => {
heatmapAreas.forEach(area => {
if (Math.random() > 0.7) {
area.classList.add('pulse');
setTimeout(() => {
area.classList.remove('pulse');
}, 2000);
}
});
}, 3000);
// Mobile responsiveness - hide tooltip when clicking elsewhere
document.addEventListener('click', function(e) {
if (!complaintTooltip.contains(e.target) && !Array.from(heatmapAreas).some(area => area.contains(e.target))) {
complaintTooltip.classList.add('hidden');
heatmapAreas.forEach(area => area.classList.remove('active'));
}
if (!coachChat.contains(e.target) && !coachBubble.contains(e.target)) {
coachChat.classList.add('hidden');
}
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SaiBB/ai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>