sfdsf / index.html
cogobim591's picture
Add 3 files
afe6efe verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WeChat Clone</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>
.chat-container {
height: calc(100vh - 130px);
}
.message-input {
resize: none;
}
.unread-badge {
position: absolute;
top: -5px;
right: -5px;
}
.ai-assistant-pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(7, 193, 96, 0); }
100% { box-shadow: 0 0 0 0 rgba(7, 193, 96, 0); }
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Main Container -->
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="w-16 md:w-20 bg-gray-800 text-white flex flex-col items-center py-4">
<!-- Logo -->
<div class="mb-8">
<i class="fas fa-comment-dots text-3xl text-green-500"></i>
</div>
<!-- Navigation -->
<nav class="flex-1 w-full">
<ul class="space-y-6">
<li class="relative">
<a href="#" class="flex flex-col items-center py-2 text-green-500">
<i class="fas fa-comment text-xl"></i>
<span class="text-xs mt-1">Chats</span>
<span class="unread-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
</a>
</li>
<li>
<a href="#" class="flex flex-col items-center py-2 text-gray-400 hover:text-white">
<i class="fas fa-address-book text-xl"></i>
<span class="text-xs mt-1">Contacts</span>
</a>
</li>
<li>
<a href="#" class="flex flex-col items-center py-2 text-gray-400 hover:text-white">
<i class="fas fa-compass text-xl"></i>
<span class="text-xs mt-1">Discover</span>
</a>
</li>
<li>
<a href="#" class="flex flex-col items-center py-2 text-gray-400 hover:text-white">
<i class="fas fa-circle-nodes text-xl"></i>
<span class="text-xs mt-1">Moments</span>
</a>
</li>
</ul>
</nav>
<!-- User Profile -->
<div class="mt-auto">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full object-cover">
</div>
</div>
<!-- Chat List -->
<div class="w-1/3 border-r bg-white flex flex-col">
<!-- Header -->
<header class="bg-white shadow-sm py-3 px-4 flex items-center justify-between">
<div class="flex items-center">
<h1 class="text-xl font-semibold text-gray-800">Chats</h1>
</div>
<div class="flex items-center space-x-4">
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-search"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-plus"></i>
</button>
</div>
</header>
<!-- Chat List -->
<div class="flex-1 overflow-y-auto">
<div class="divide-y divide-gray-200">
<!-- AI Assistant -->
<div class="p-3 flex items-center bg-green-50">
<div class="relative">
<div class="w-12 h-12 rounded-full bg-green-500 flex items-center justify-center text-white ai-assistant-pulse">
<i class="fas fa-robot text-2xl"></i>
</div>
<span class="absolute bottom-0 right-0 bg-green-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">
<i class="fas fa-bolt"></i>
</span>
</div>
<div class="ml-3 flex-1">
<div class="flex justify-between items-center">
<h3 class="font-medium">AI Assistant</h3>
<span class="text-xs text-gray-500">Just now</span>
</div>
<p class="text-sm text-gray-600 truncate">I can help with translations, reminders, and more!</p>
</div>
</div>
<!-- Chat Items -->
<div class="p-3 flex items-center hover:bg-gray-50 cursor-pointer">
<div class="relative">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-12 h-12 rounded-full object-cover">
<span class="unread-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">2</span>
</div>
<div class="ml-3 flex-1">
<div class="flex justify-between items-center">
<h3 class="font-medium">John Smith</h3>
<span class="text-xs text-gray-500">10:30 AM</span>
</div>
<p class="text-sm text-gray-600 truncate">Hey, are we still meeting tomorrow?</p>
</div>
</div>
<div class="p-3 flex items-center hover:bg-gray-50 cursor-pointer">
<div class="relative">
<img src="https://randomuser.me/api/portraits/women/65.jpg" alt="Profile" class="w-12 h-12 rounded-full object-cover">
</div>
<div class="ml-3 flex-1">
<div class="flex justify-between items-center">
<h3 class="font-medium">Family Group</h3>
<span class="text-xs text-gray-500">Yesterday</span>
</div>
<p class="text-sm text-gray-600 truncate">Mom: Don't forget about grandma's birthday this weekend!</p>
</div>
</div>
<div class="p-3 flex items-center hover:bg-gray-50 cursor-pointer">
<div class="relative">
<img src="https://randomuser.me/api/portraits/women/28.jpg" alt="Profile" class="w-12 h-12 rounded-full object-cover">
<span class="unread-badge bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">1</span>
</div>
<div class="ml-3 flex-1">
<div class="flex justify-between items-center">
<h3 class="font-medium">Sarah Johnson</h3>
<span class="text-xs text-gray-500">Yesterday</span>
</div>
<p class="text-sm text-gray-600 truncate">Check out this cool restaurant I found!</p>
</div>
</div>
<div class="p-3 flex items-center hover:bg-gray-50 cursor-pointer">
<div class="relative">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Profile" class="w-12 h-12 rounded-full object-cover">
</div>
<div class="ml-3 flex-1">
<div class="flex justify-between items-center">
<h3 class="font-medium">Work Team</h3>
<span class="text-xs text-gray-500">Monday</span>
</div>
<p class="text-sm text-gray-600 truncate">Alex: I've pushed the latest updates to the repo</p>
</div>
</div>
</div>
</div>
</div>
<!-- Chat Window -->
<div class="flex-1 flex flex-col bg-white">
<!-- Chat Header -->
<div class="border-b p-3 flex items-center">
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-10 h-10 rounded-full object-cover">
<div class="ml-3">
<h3 class="font-medium">John Smith</h3>
<p class="text-xs text-gray-500">Online</p>
</div>
</div>
<div class="ml-auto flex space-x-4">
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-phone-alt"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-video"></i>
</button>
<button class="text-gray-600 hover:text-gray-900">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
<!-- Chat Messages -->
<div class="flex-1 overflow-y-auto p-4 chat-container bg-gray-50">
<!-- Date Divider -->
<div class="text-center my-4">
<span class="bg-gray-200 text-gray-600 text-xs px-2 py-1 rounded-full">Today</span>
</div>
<!-- Received Message -->
<div class="flex mb-4">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-8 h-8 rounded-full object-cover self-end">
<div class="ml-2 max-w-xs md:max-w-md">
<div class="bg-white p-3 rounded-lg rounded-tl-none shadow-sm">
<p>Hey, are we still meeting tomorrow?</p>
</div>
<span class="text-xs text-gray-500 mt-1 block">10:30 AM</span>
</div>
</div>
<!-- Sent Message -->
<div class="flex mb-4 justify-end">
<div class="max-w-xs md:max-w-md">
<div class="bg-green-100 p-3 rounded-lg rounded-tr-none shadow-sm">
<p>Yes, at 2 PM at the coffee shop downtown</p>
</div>
<span class="text-xs text-gray-500 mt-1 block text-right">10:32 AM</span>
</div>
</div>
<!-- Received Message with Image -->
<div class="flex mb-4">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-8 h-8 rounded-full object-cover self-end">
<div class="ml-2 max-w-xs md:max-w-md">
<div class="bg-white p-2 rounded-lg rounded-tl-none shadow-sm">
<img src="https://images.unsplash.com/photo-1514933651103-005eec06c04b?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="Coffee shop" class="w-full rounded">
<p class="mt-2">This is the place I was talking about</p>
</div>
<span class="text-xs text-gray-500 mt-1 block">10:33 AM</span>
</div>
</div>
<!-- Sent Message with Quick Actions -->
<div class="flex mb-4 justify-end">
<div class="max-w-xs md:max-w-md">
<div class="bg-green-100 p-3 rounded-lg rounded-tr-none shadow-sm">
<p>Looks great! I'll be there</p>
</div>
<div class="flex justify-end space-x-2 mt-1">
<button class="text-xs text-gray-500 hover:text-green-500">
<i class="far fa-thumbs-up"></i>
</button>
<button class="text-xs text-gray-500 hover:text-green-500">
<i class="far fa-comment-dots"></i>
</button>
<button class="text-xs text-gray-500 hover:text-green-500">
<i class="fas fa-reply"></i>
</button>
</div>
<span class="text-xs text-gray-500 mt-1 block text-right">10:35 AM</span>
</div>
</div>
<!-- AI Translation Notice -->
<div class="text-center my-3">
<span class="bg-blue-50 text-blue-600 text-xs px-2 py-1 rounded-full inline-flex items-center">
<i class="fas fa-language mr-1"></i> AI Translation Available
</span>
</div>
<!-- Voice Message -->
<div class="flex mb-4">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-8 h-8 rounded-full object-cover self-end">
<div class="ml-2 max-w-xs md:max-w-md">
<div class="bg-white p-3 rounded-lg rounded-tl-none shadow-sm flex items-center">
<button class="w-8 h-8 rounded-full bg-green-100 text-green-600 flex items-center justify-center mr-2">
<i class="fas fa-play"></i>
</button>
<div class="flex-1">
<div class="h-2 bg-gray-200 rounded-full mb-1">
<div class="h-2 bg-green-500 rounded-full" style="width: 30%"></div>
</div>
<div class="h-2 bg-gray-200 rounded-full mb-1">
<div class="h-2 bg-green-500 rounded-full" style="width: 70%"></div>
</div>
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-green-500 rounded-full" style="width: 50%"></div>
</div>
</div>
<span class="text-xs text-gray-500 ml-2">0:12</span>
</div>
<span class="text-xs text-gray-500 mt-1 block">10:36 AM</span>
</div>
</div>
</div>
<!-- Message Input -->
<div class="border-t p-3 bg-white">
<div class="flex items-center">
<button class="text-gray-500 hover:text-gray-700 mx-2">
<i class="far fa-smile"></i>
</button>
<button class="text-gray-500 hover:text-gray-700 mx-2">
<i class="fas fa-paperclip"></i>
</button>
<div class="flex-1 mx-2">
<textarea class="w-full message-input border rounded-full py-2 px-4 focus:outline-none focus:ring-1 focus:ring-green-500" rows="1" placeholder="Type a message..."></textarea>
</div>
<button class="text-gray-500 hover:text-green-500 mx-2">
<i class="fas fa-microphone"></i>
</button>
<button class="ml-2 bg-green-500 text-white rounded-full w-10 h-10 flex items-center justify-center hover:bg-green-600">
<i class="fas fa-paper-plane"></i>
</button>
</div>
<!-- AI Quick Actions -->
<div class="flex justify-between mt-2 px-2">
<button class="text-xs bg-gray-100 hover:bg-gray-200 px-2 py-1 rounded-full flex items-center">
<i class="fas fa-language mr-1"></i> Translate
</button>
<button class="text-xs bg-gray-100 hover:bg-gray-200 px-2 py-1 rounded-full flex items-center">
<i class="fas fa-robot mr-1"></i> AI Reply
</button>
<button class="text-xs bg-gray-100 hover:bg-gray-200 px-2 py-1 rounded-full flex items-center">
<i class="fas fa-calendar-alt mr-1"></i> Remind
</button>
</div>
</div>
</div>
</div>
<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=cogobim591/sfdsf" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>