Rajeshdakulla's picture
Support Cards Grid** (3-column responsive layout) | **Card Type** | **Function** | **Icon** | |---------------------|----------------------------------------------|----------------| | Site Resources | Links to `https://www.google.com` sub-pages | `link` | | Download Attachments| PDFs/guides (max 25MB) | `attach_file` | | Contact Support | Form with email/issue dropdown Failed to perform inference: an HTTP error occurred when requesting the provider fixed error | `support_agent`| - Follow Up Deployment
be147ad verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Communication Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.markdown-preview {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.5;
color: #202124;
max-width: 600px;
margin: 0 auto;
background: white;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
}
.markdown-preview h1 {
font-size: 20px;
font-weight: 400;
margin: 0 0 16px;
}
.markdown-preview p {
margin: 0 0 16px;
font-size: 14px;
}
.markdown-preview a {
color: #1a73e8;
text-decoration: none;
}
.resize-handle {
width: 5px;
background: #e5e7eb;
cursor: col-resize;
transition: background 0.2s;
}
.resize-handle:hover {
background: #9ca3af;
}
.icon-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.tab-active {
border-bottom: 2px solid #4f46e5;
color: #4f46e5;
}
#previewContainer {
overflow-y: auto;
height: calc(100vh - 200px);
}
</style>
</head>
<body class="bg-gray-50">
<div class="container mx-auto px-4 py-6">
<!-- Header -->
<header class="flex justify-between items-center mb-8">
<h1 class="text-2xl font-bold text-gray-800">Communication Dashboard</h1>
<div class="flex items-center space-x-4">
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition">
<i class="fas fa-save mr-2"></i>Save
</button>
<div class="relative">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full cursor-pointer">
</div>
</div>
</header>
<!-- Main Content -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left Sidebar - Icons Grid -->
<div class="lg:col-span-1 bg-white rounded-xl shadow-sm p-6">
<h2 class="text-lg font-semibold mb-4 text-gray-700">Quick Actions</h2>
<!-- Tabs -->
<div class="flex border-b mb-6">
<button class="px-4 py-2 font-medium tab-active">Communication</button>
<button class="px-4 py-2 font-medium text-gray-500">Media</button>
<button class="px-4 py-2 font-medium text-gray-500">Social</button>
</div>
<!-- Icons Grid -->
<div class="grid grid-cols-4 gap-4">
<!-- Row 1 -->
<div class="icon-card p-3 rounded-lg bg-green-50 border border-green-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-envelope text-green-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Email Support</span>
</div>
<div class="icon-card p-3 rounded-lg bg-green-50 border border-green-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-microphone text-green-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Voice Notes</span>
</div>
<div class="icon-card p-3 rounded-lg bg-green-50 border border-green-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-comment-dots text-green-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Live Chat</span>
</div>
<div class="icon-card p-3 rounded-lg bg-green-50 border border-green-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-mobile-alt text-green-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Mobile App</span>
</div>
<!-- Row 2 -->
<div class="icon-card p-3 rounded-lg bg-blue-50 border border-blue-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-phone text-blue-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Call Support</span>
</div>
<div class="icon-card p-3 rounded-lg bg-blue-50 border border-blue-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-at text-blue-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Email Config</span>
</div>
<div class="icon-card p-3 rounded-lg bg-blue-50 border border-blue-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fab fa-twitter text-blue-400 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Twitter</span>
</div>
<div class="icon-card p-3 rounded-lg bg-blue-50 border border-blue-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-newspaper text-blue-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">News Feed</span>
</div>
<!-- Row 3 -->
<div class="icon-card p-3 rounded-lg bg-orange-50 border border-orange-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-rss text-orange-500 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">RSS Feed</span>
</div>
<div class="icon-card p-3 rounded-lg bg-orange-50 border border-orange-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-edit text-orange-500 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Edit Content</span>
</div>
<div class="icon-card p-3 rounded-lg bg-orange-50 border border-orange-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-globe text-orange-500 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Website</span>
</div>
<div class="icon-card p-3 rounded-lg bg-orange-50 border border-orange-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-video text-orange-500 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Video Call</span>
</div>
<!-- Row 4 -->
<div class="icon-card p-3 rounded-lg bg-purple-50 border border-purple-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-paper-plane text-purple-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Send Email</span>
</div>
<div class="icon-card p-3 rounded-lg bg-purple-50 border border-purple-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fab fa-whatsapp text-purple-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">WhatsApp</span>
</div>
<div class="icon-card p-3 rounded-lg bg-purple-50 border border-purple-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-user text-purple-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Profile</span>
</div>
<div class="icon-card p-3 rounded-lg bg-purple-50 border border-purple-100 flex flex-col items-center justify-center cursor-pointer transition">
<i class="fas fa-hashtag text-purple-600 text-2xl mb-2"></i>
<span class="text-xs text-gray-600 text-center">Hashtags</span>
</div>
</div>
<!-- Support Cards Grid -->
<div class="mt-8">
<h3 class="text-md font-medium mb-4 text-gray-700">Support Resources</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<!-- Card 1 -->
<div class="bg-white rounded-lg shadow-sm p-4 border border-gray-200 hover:shadow-md transition cursor-pointer">
<div class="flex items-center mb-3">
<i class="fas fa-link text-indigo-600 mr-2"></i>
<h4 class="font-medium text-gray-800">Site Resources</h4>
</div>
<p class="text-sm text-gray-600 mb-3">Links to Google sub-pages</p>
<a href="https://www.google.com" target="_blank" class="text-indigo-600 text-sm hover:underline">View Resources</a>
</div>
<!-- Card 2 -->
<div class="bg-white rounded-lg shadow-sm p-4 border border-gray-200 hover:shadow-md transition cursor-pointer">
<div class="flex items-center mb-3">
<i class="fas fa-paperclip text-indigo-600 mr-2"></i>
<h4 class="font-medium text-gray-800">Download Attachments</h4>
</div>
<p class="text-sm text-gray-600 mb-3">PDFs/guides (max 25MB)</p>
<button class="text-indigo-600 text-sm hover:underline">Download Files</button>
</div>
<!-- Card 3 -->
<div class="bg-white rounded-lg shadow-sm p-4 border border-gray-200 hover:shadow-md transition cursor-pointer">
<div class="flex items-center mb-3">
<i class="fas fa-headset text-indigo-600 mr-2"></i>
<h4 class="font-medium text-gray-800">Contact Support</h4>
</div>
<p class="text-sm text-gray-600 mb-3">Form with email/issue dropdown</p>
<button class="text-indigo-600 text-sm hover:underline">Contact Now</button>
</div>
</div>
</div>
<!-- Attachment Section -->
<div class="mt-8">
<h3 class="text-md font-medium mb-3 text-gray-700">Media Attachments</h3>
<form action="/upload" method="post" enctype="multipart/form-data" class="mb-4">
<div class="flex items-center space-x-2">
<label for="mp3" class="text-sm text-gray-600">Upload MP3:</label>
<input type="file" id="mp3" name="mp3" accept=".mp3" class="text-sm" />
<button type="submit" class="px-2 py-1 bg-indigo-600 text-white rounded text-sm hover:bg-indigo-700 transition">
<i class="fas fa-upload mr-1"></i>Upload
</button>
</div>
</form>
<div class="flex space-x-3">
<div class="p-3 rounded-lg bg-gray-100 border border-gray-200 flex flex-col items-center justify-center cursor-pointer">
<i class="fas fa-edit text-gray-600 text-xl mb-2"></i>
<span class="text-xs text-gray-600">Edit</span>
</div>
<div class="p-3 rounded-lg bg-gray-100 border border-gray-200 flex flex-col items-center justify-center cursor-pointer">
<i class="fas fa-newspaper text-gray-600 text-xl mb-2"></i>
<span class="text-xs text-gray-600">News</span>
</div>
<div class="p-3 rounded-lg bg-gray-100 border border-gray-200 flex flex-col items-center justify-center cursor-pointer">
<i class="fas fa-paper-plane text-gray-600 text-xl mb-2"></i>
<span class="text-xs text-gray-600">Links</span>
</div>
<div class="p-3 rounded-lg bg-gray-100 border border-gray-200 flex flex-col items-center justify-center cursor-pointer">
<i class="fas fa-plus text-gray-600 text-xl mb-2"></i>
<span class="text-xs text-gray-600">Add</span>
</div>
</div>
</div>
</div>
<!-- Right Side - Dual Pane Editor -->
<div class="lg:col-span-2 bg-white rounded-xl shadow-sm overflow-hidden">
<div class="flex items-center justify-between p-4 border-b">
<h2 class="text-lg font-semibold text-gray-700">Email Composer</h2>
<div class="flex space-x-2">
<button id="copyBtn" class="px-3 py-1 bg-indigo-100 text-indigo-700 rounded-md text-sm hover:bg-indigo-200 transition">
<i class="fas fa-copy mr-1"></i> Copy to Gmail
</button>
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-md text-sm hover:bg-gray-200 transition">
<i class="fas fa-paperclip mr-1"></i> Attach
</button>
</div>
</div>
<div class="flex flex-col md:flex-row h-full" style="min-height: 500px;">
<!-- Markdown Editor -->
<div class="flex-1 border-r p-4">
<div class="mb-4">
<input type="text" placeholder="Subject" class="w-full px-3 py-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<textarea id="markdownEditor" class="w-full h-full p-3 border rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500 font-mono text-sm" placeholder="Write your email in Markdown..."># Welcome to Our Service!
Hi **{name}**,
We're excited to have you on board. Here's what you can do next:
1. [Complete your profile](#)
2. Explore our [features page](#)
3. Contact our [support team](#)
**Important Dates:**
- Account activation: {date}
- Next billing cycle: {date}
For any questions, feel free to:
- Email us at support@example.com
- Call us at (123) 456-7890
- Chat with us directly on our website
Best regards,
The Customer Success Team
[![Follow us on Twitter](https://img.shields.io/twitter/follow/example?style=social)](https://twitter.com/example)</textarea>
</div>
<!-- Preview Pane -->
<div id="previewContainer" class="flex-1 p-4 bg-gray-50">
<div id="markdownPreview" class="markdown-preview"></div>
</div>
</div>
</div>
</div>
</div>
<div style="position: fixed; bottom: 20px; left: 20px; z-index: 9999; background: white; padding: 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);">
<a href="https://www.google.com" target="_blank" style="color: #4f46e5; text-decoration: none; margin-right: 15px;">Google Home</a>
<a href="https://policies.google.com" target="_blank" style="color: #4f46e5; text-decoration: none; margin-right: 15px;">Privacy Policy</a>
<a href="https://terms.google.com" target="_blank" style="color: #4f46e5; text-decoration: none;">Terms of Service</a>
</div>
<a href="https://wa.me/919014472364" target="_blank" style="position: fixed; bottom: 20px; right: 20px; z-index: 9999;">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg" alt="WhatsApp Support" style="width: 60px; height: 60px;">
</a>
<script>
// Simple markdown to HTML converter
function markdownToHtml(markdown) {
// Headers
markdown = markdown.replace(/^# (.*$)/gm, '<h1>$1</h1>');
// Bold
markdown = markdown.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
// Links
markdown = markdown.replace(/\[(.*?)\]\((.*?)\)/g, '<a href="$2">$1</a>');
// Lists
markdown = markdown.replace(/^\d+\. (.*$)/gm, '<li>$1</li>');
markdown = markdown.replace(/^-\s(.*$)/gm, '<li>$1</li>');
markdown = markdown.replace(/<li>.*<\/li>/g, function(match) {
return '<ul>' + match + '</ul>';
});
// Images
markdown = markdown.replace(/!\[(.*?)\]\((.*?)\)/g, '<img src="$2" alt="$1">');
// Line breaks
markdown = markdown.replace(/\n/g, '<br>');
// Multiple line breaks to paragraphs
markdown = markdown.replace(/<br><br>/g, '</p><p>');
markdown = '<p>' + markdown + '</p>';
return markdown;
}
// Update preview in real-time
const editor = document.getElementById('markdownEditor');
const preview = document.getElementById('markdownPreview');
function updatePreview() {
preview.innerHTML = markdownToHtml(editor.value);
}
editor.addEventListener('input', updatePreview);
updatePreview(); // Initial update
// Copy to Gmail function
document.getElementById('copyBtn').addEventListener('click', function() {
const htmlContent = preview.innerHTML;
const textContent = editor.value;
// Create a temporary textarea for the HTML content
const tempTextarea = document.createElement('textarea');
tempTextarea.value = htmlContent;
document.body.appendChild(tempTextarea);
tempTextarea.select();
try {
document.execCommand('copy');
alert('Email content copied to clipboard! You can now paste it into Gmail.');
} catch (err) {
console.error('Failed to copy: ', err);
alert('Failed to copy content. Please try again.');
}
document.body.removeChild(tempTextarea);
});
// Icon click handlers
document.querySelectorAll('.icon-card').forEach(icon => {
icon.addEventListener('click', function() {
const iconType = this.querySelector('span').textContent;
alert(`Opening ${iconType} functionality...`);
});
});
// Support Cards click handlers
document.querySelectorAll('.grid.grid-cols-1.md\\:grid-cols-3 > div').forEach((card, index) => {
card.addEventListener('click', function() {
if (index === 0) {
window.open('https://www.google.com', '_blank');
} else if (index === 1) {
alert('Download attachments functionality would open here');
} else {
alert('Contact support form would open here');
}
});
});
</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=Rajeshdakulla/https-youtu-be-l7bpyij0k7e" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>