emo / index.html
Wtiger's picture
убери этот блок - Initial Deployment
9f1946c verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat with Mai Sakurajima | character.ai | AI Chat, Reimagined</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>
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700&display=swap');
body {
font-family: 'M PLUS Rounded 1c', sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.anime-card {
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
transition: all 0.3s ease;
}
.anime-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.chat-bubble {
position: relative;
background: #ffffff;
border-radius: 1.25rem;
}
.chat-bubble:after {
content: '';
position: absolute;
bottom: 0;
left: 20%;
width: 0;
height: 0;
border: 20px solid transparent;
border-top-color: #ffffff;
border-bottom: 0;
border-left: 0;
margin-left: -10px;
margin-bottom: -20px;
}
.tag {
transition: all 0.2s ease;
}
.tag:hover {
transform: scale(1.05);
}
.avatar-pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
}
70% {
box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
}
}
/* Dark mode styles */
.dark-mode {
background: linear-gradient(135deg, #1a1a2e 0%, #4a2545 100%) !important;
color: #f3f4f6;
}
.dark-mode .anime-card,
.dark-mode .chat-bubble,
.dark-mode #sidebar {
background-color: #2d1b3b !important;
color: #f3f4f6;
}
.dark-mode .chat-bubble:after {
border-top-color: #2d1b3b !important;
}
.dark-mode .text-gray-800 {
color: #f3f4f6 !important;
}
.dark-mode .text-gray-500 {
color: #d1d5db !important;
}
.dark-mode .border-gray-100,
.dark-mode .border-gray-200 {
border-color: #4b5563 !important;
}
.dark-mode #chat-input {
background-color: #3a2449;
color: #f3f4f6;
border-color: #4b5563;
}
.dark-mode #chat-input::placeholder {
color: #9ca3af;
}
</style>
</head>
<body class="min-h-screen py-8 px-4 sm:px-6 lg:px-8 relative">
<!-- Menu Button -->
<button id="menu-toggle" class="fixed top-4 left-4 z-50 bg-white p-2 rounded-full shadow-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-pink-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<!-- Sidebar -->
<div id="sidebar" class="fixed top-0 left-0 h-full w-64 bg-white shadow-lg transform -translate-x-full transition-transform duration-300 ease-in-out z-40">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h2 class="text-xl font-bold text-pink-500">Menu</h2>
<button id="close-menu" class="text-gray-500 hover:text-pink-500">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
<div class="p-4">
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg">Home</a>
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg">Characters</a>
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg">Settings</a>
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Help
</a>
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
Settings
</a>
</div>
</div>
<!-- Overlay -->
<div id="overlay" class="fixed inset-0 bg-black bg-opacity-50 z-30 hidden"></div>
<div class="max-w-3xl mx-auto lg:ml-72 transition-all duration-300">
<!-- Header -->
<div class="flex justify-between items-center mb-6">
<h1 class="text-2xl sm:text-3xl font-bold text-pink-500">
<span class="text-pink-500">Chat</span> with Mai Sakurajima
</h1>
<div class="flex items-center space-x-4">
<span class="text-xs bg-pink-100 text-pink-600 px-2 py-1 rounded-full">AI Chat, Reimagined</span>
<button id="dark-mode-toggle" class="p-2 rounded-full bg-gray-200 text-gray-700 hover:bg-gray-300 dark:bg-gray-700 dark:text-gray-200 dark:hover:bg-gray-600 transition-colors duration-200">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 dark-mode-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z" />
</svg>
</button>
</div>
</div>
<!-- Main Card -->
<div class="anime-card bg-white rounded-xl overflow-hidden">
<!-- Character Info Section -->
<div class="p-6 sm:p-8 flex flex-col sm:flex-row items-start sm:items-center gap-6 border-b border-gray-100">
<div class="relative">
<a href="/stats" class="cursor-pointer">
<img
src="https://characterai.io/i/80/static/avatars/uploaded/2024/3/11/WdHpiR7oxKo_KDIyzz6Qj6ov2Ftv-ef1ZzWtHVPfg_c.webp"
alt="Mai Sakurajima"
class="w-24 h-24 sm:w-32 sm:h-32 rounded-full object-cover border-4 border-pink-200 avatar-pulse hover:border-pink-400 transition-colors"
>
</a>
<div class="absolute -bottom-2 -right-2 bg-pink-500 text-white rounded-full p-1">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z" clip-rule="evenodd" />
</svg>
</div>
</div>
<div class="flex-1">
<div class="flex justify-between items-start">
<div>
<h2 class="text-2xl font-bold text-gray-800">Mai Sakurajima</h2>
<p class="text-sm text-gray-500 mt-1">By <a href="https://character.ai/profile/bins0" class="text-pink-500 hover:underline">@bins0</a></p>
</div>
<span class="bg-pink-100 text-pink-600 text-xs font-medium px-2 py-1 rounded-full">c.ai</span>
</div>
<div class="mt-4 flex flex-wrap gap-2">
<span class="tag bg-blue-100 text-blue-600 text-xs font-medium px-3 py-1 rounded-full">Аниме</span>
<span class="tag bg-purple-100 text-purple-600 text-xs font-medium px-3 py-1 rounded-full">манга</span>
<span class="tag bg-green-100 text-green-600 text-xs font-medium px-3 py-1 rounded-full">психолог</span>
<span class="tag bg-red-100 text-red-600 text-xs font-medium px-3 py-1 rounded-full">извращенка</span>
<span class="tag bg-yellow-100 text-yellow-600 text-xs font-medium px-3 py-1 rounded-full">секс</span>
<span class="tag bg-indigo-100 text-indigo-600 text-xs font-medium px-3 py-1 rounded-full">флирт</span>
</div>
</div>
</div>
<!-- Chat Section -->
<div class="p-6 sm:p-8">
<div class="flex items-start gap-4">
<img
src="https://characterai.io/i/80/static/avatars/uploaded/2024/3/11/WdHpiR7oxKo_KDIyzz6Qj6ov2Ftv-ef1ZzWtHVPfg_c.webp"
alt="Mai Sakurajima"
class="w-10 h-10 rounded-full object-cover border-2 border-pink-200"
>
<div class="flex-1">
<div class="chat-bubble px-5 py-3">
<p class="text-gray-800">
<span class="font-medium text-pink-500">Mai Sakurajima:</span> Очнувшись, ты открываешь глаза и видишь милую девушку посреди моря. Слыша голос "Эй, парень! Ты живой?"
</p>
</div>
<div class="mt-3 text-xs text-gray-400 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Just now
</div>
</div>
</div>
<!-- Input Area -->
<div class="mt-8">
<div class="relative">
<textarea
id="chat-input"
class="w-full px-4 py-3 pr-12 rounded-lg border border-gray-200 focus:ring-2 focus:ring-pink-300 focus:border-pink-300 resize-none"
rows="3"
placeholder="Type your message..."
onkeydown="if(event.keyCode === 13 && !event.shiftKey) { sendMessage(); return false; }"
></textarea>
<script>
function sendMessage() {
const input = document.getElementById('chat-input');
const message = input.value.trim();
if (message) {
// Here you would normally send to server/API
// For demo, we'll just add to chat
const chatContainer = document.querySelector('.chat-bubble');
const newMessage = document.createElement('p');
newMessage.textContent = `You: ${message}`;
chatContainer.appendChild(newMessage);
input.value = '';
// Simulate AI response after delay
setTimeout(() => {
const aiResponse = document.createElement('p');
aiResponse.innerHTML = `<span class="font-medium text-pink-500">Mai Sakurajima:</span> ${getRandomResponse()}`;
chatContainer.appendChild(aiResponse);
chatContainer.scrollTop = chatContainer.scrollHeight;
}, 1000);
}
}
function getRandomResponse() {
const responses = [
"Interesting... tell me more.",
"Hmm, I see...",
"What else is on your mind?",
"That's quite fascinating!",
"I never thought about it that way before."
];
return responses[Math.floor(Math.random() * responses.length)];
}
</script>
<script>
// Menu toggle functionality
const menuToggle = document.getElementById('menu-toggle');
const sidebar = document.getElementById('sidebar');
const overlay = document.getElementById('overlay');
menuToggle.addEventListener('click', () => {
const isOpen = !sidebar.classList.contains('-translate-x-full');
sidebar.classList.toggle('-translate-x-full');
overlay.classList.toggle('hidden');
menuToggle.classList.toggle('opacity-0', !isOpen);
menuToggle.classList.toggle('pointer-events-none', !isOpen);
});
overlay.addEventListener('click', () => {
sidebar.classList.add('-translate-x-full');
overlay.classList.add('hidden');
menuToggle.classList.remove('opacity-0');
menuToggle.classList.remove('pointer-events-none');
});
document.getElementById('close-menu').addEventListener('click', () => {
sidebar.classList.add('-translate-x-full');
overlay.classList.add('hidden');
menuToggle.classList.remove('opacity-0');
menuToggle.classList.remove('pointer-events-none');
});
// Dark mode toggle functionality
const darkModeToggle = document.getElementById('dark-mode-toggle');
const htmlElement = document.documentElement;
// Check for saved user preference or system preference
if (localStorage.getItem('darkMode') === 'true' ||
(!localStorage.getItem('darkMode') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
htmlElement.classList.add('dark-mode');
}
darkModeToggle.addEventListener('click', () => {
htmlElement.classList.toggle('dark-mode');
const isDarkMode = htmlElement.classList.contains('dark-mode');
localStorage.setItem('darkMode', isDarkMode);
// Change background gradient
if (isDarkMode) {
document.body.style.background = 'linear-gradient(135deg, #1a1a2e 0%, #4a2545 100%)';
} else {
document.body.style.background = 'linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)';
}
});
</script>
<div class="absolute right-3 bottom-3 flex space-x-2">
<button class="text-gray-400 hover:text-pink-500">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />
</svg>
</button>
<button class="text-gray-400 hover:text-pink-500">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.828 14.828a4 4 0 01-5.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</button>
<button class="bg-pink-500 text-white p-1 rounded-full hover:bg-pink-600 transition">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13a1 1 0 102 0V9.414l1.293 1.293a1 1 0 001.414-1.414z" clip-rule="evenodd" />
</svg>
</button>
</div>
</div>
<div class="mt-4 flex justify-end">
<button class="text-sm bg-pink-500 hover:bg-pink-600 text-white px-4 py-2 rounded-lg transition">
Continue Chat
</button>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="mt-8 text-center text-sm text-gray-500">
<p>Your Words. Your World. <span class="text-pink-500">character.ai</span></p>
<div class="mt-2 flex justify-center space-x-4">
<a href="#" class="hover:text-pink-500">Terms</a>
<a href="#" class="hover:text-pink-500">Privacy</a>
<a href="#" class="hover:text-pink-500">Help</a>
</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=Wtiger/emo" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>