убери этот блок - Initial Deployment
Browse files- README.md +7 -5
- index.html +368 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: emo
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,368 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Chat with Mai Sakurajima | character.ai | AI Chat, Reimagined</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'M PLUS Rounded 1c', sans-serif;
|
| 14 |
+
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.anime-card {
|
| 18 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 19 |
+
transition: all 0.3s ease;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.anime-card:hover {
|
| 23 |
+
transform: translateY(-5px);
|
| 24 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.chat-bubble {
|
| 28 |
+
position: relative;
|
| 29 |
+
background: #ffffff;
|
| 30 |
+
border-radius: 1.25rem;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.chat-bubble:after {
|
| 34 |
+
content: '';
|
| 35 |
+
position: absolute;
|
| 36 |
+
bottom: 0;
|
| 37 |
+
left: 20%;
|
| 38 |
+
width: 0;
|
| 39 |
+
height: 0;
|
| 40 |
+
border: 20px solid transparent;
|
| 41 |
+
border-top-color: #ffffff;
|
| 42 |
+
border-bottom: 0;
|
| 43 |
+
border-left: 0;
|
| 44 |
+
margin-left: -10px;
|
| 45 |
+
margin-bottom: -20px;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.tag {
|
| 49 |
+
transition: all 0.2s ease;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.tag:hover {
|
| 53 |
+
transform: scale(1.05);
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.avatar-pulse {
|
| 57 |
+
animation: pulse 2s infinite;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
@keyframes pulse {
|
| 61 |
+
0% {
|
| 62 |
+
box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.4);
|
| 63 |
+
}
|
| 64 |
+
70% {
|
| 65 |
+
box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
|
| 66 |
+
}
|
| 67 |
+
100% {
|
| 68 |
+
box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
/* Dark mode styles */
|
| 73 |
+
.dark-mode {
|
| 74 |
+
background: linear-gradient(135deg, #1a1a2e 0%, #4a2545 100%) !important;
|
| 75 |
+
color: #f3f4f6;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.dark-mode .anime-card,
|
| 79 |
+
.dark-mode .chat-bubble,
|
| 80 |
+
.dark-mode #sidebar {
|
| 81 |
+
background-color: #2d1b3b !important;
|
| 82 |
+
color: #f3f4f6;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.dark-mode .chat-bubble:after {
|
| 86 |
+
border-top-color: #2d1b3b !important;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.dark-mode .text-gray-800 {
|
| 90 |
+
color: #f3f4f6 !important;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.dark-mode .text-gray-500 {
|
| 94 |
+
color: #d1d5db !important;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
.dark-mode .border-gray-100,
|
| 98 |
+
.dark-mode .border-gray-200 {
|
| 99 |
+
border-color: #4b5563 !important;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.dark-mode #chat-input {
|
| 103 |
+
background-color: #3a2449;
|
| 104 |
+
color: #f3f4f6;
|
| 105 |
+
border-color: #4b5563;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.dark-mode #chat-input::placeholder {
|
| 109 |
+
color: #9ca3af;
|
| 110 |
+
}
|
| 111 |
+
</style>
|
| 112 |
+
</head>
|
| 113 |
+
<body class="min-h-screen py-8 px-4 sm:px-6 lg:px-8 relative">
|
| 114 |
+
<!-- Menu Button -->
|
| 115 |
+
<button id="menu-toggle" class="fixed top-4 left-4 z-50 bg-white p-2 rounded-full shadow-lg">
|
| 116 |
+
<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">
|
| 117 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
| 118 |
+
</svg>
|
| 119 |
+
</button>
|
| 120 |
+
|
| 121 |
+
<!-- Sidebar -->
|
| 122 |
+
<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">
|
| 123 |
+
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
|
| 124 |
+
<h2 class="text-xl font-bold text-pink-500">Menu</h2>
|
| 125 |
+
<button id="close-menu" class="text-gray-500 hover:text-pink-500">
|
| 126 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 127 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
| 128 |
+
</svg>
|
| 129 |
+
</button>
|
| 130 |
+
</div>
|
| 131 |
+
<div class="p-4">
|
| 132 |
+
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg">Home</a>
|
| 133 |
+
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg">Characters</a>
|
| 134 |
+
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg">Settings</a>
|
| 135 |
+
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg flex items-center">
|
| 136 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 137 |
+
<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" />
|
| 138 |
+
</svg>
|
| 139 |
+
Help
|
| 140 |
+
</a>
|
| 141 |
+
<a href="#" class="block py-2 px-3 text-gray-700 hover:bg-pink-50 hover:text-pink-600 rounded-lg flex items-center">
|
| 142 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 143 |
+
<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" />
|
| 144 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
|
| 145 |
+
</svg>
|
| 146 |
+
Settings
|
| 147 |
+
</a>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
|
| 151 |
+
<!-- Overlay -->
|
| 152 |
+
<div id="overlay" class="fixed inset-0 bg-black bg-opacity-50 z-30 hidden"></div>
|
| 153 |
+
|
| 154 |
+
<div class="max-w-3xl mx-auto lg:ml-72 transition-all duration-300">
|
| 155 |
+
<!-- Header -->
|
| 156 |
+
<div class="flex justify-between items-center mb-6">
|
| 157 |
+
<h1 class="text-2xl sm:text-3xl font-bold text-pink-500">
|
| 158 |
+
<span class="text-pink-500">Chat</span> with Mai Sakurajima
|
| 159 |
+
</h1>
|
| 160 |
+
<div class="flex items-center space-x-4">
|
| 161 |
+
<span class="text-xs bg-pink-100 text-pink-600 px-2 py-1 rounded-full">AI Chat, Reimagined</span>
|
| 162 |
+
<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">
|
| 163 |
+
<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">
|
| 164 |
+
<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" />
|
| 165 |
+
</svg>
|
| 166 |
+
</button>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<!-- Main Card -->
|
| 171 |
+
<div class="anime-card bg-white rounded-xl overflow-hidden">
|
| 172 |
+
<!-- Character Info Section -->
|
| 173 |
+
<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">
|
| 174 |
+
<div class="relative">
|
| 175 |
+
<a href="/stats" class="cursor-pointer">
|
| 176 |
+
<img
|
| 177 |
+
src="https://characterai.io/i/80/static/avatars/uploaded/2024/3/11/WdHpiR7oxKo_KDIyzz6Qj6ov2Ftv-ef1ZzWtHVPfg_c.webp"
|
| 178 |
+
alt="Mai Sakurajima"
|
| 179 |
+
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"
|
| 180 |
+
>
|
| 181 |
+
</a>
|
| 182 |
+
<div class="absolute -bottom-2 -right-2 bg-pink-500 text-white rounded-full p-1">
|
| 183 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
| 184 |
+
<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" />
|
| 185 |
+
</svg>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
|
| 189 |
+
<div class="flex-1">
|
| 190 |
+
<div class="flex justify-between items-start">
|
| 191 |
+
<div>
|
| 192 |
+
<h2 class="text-2xl font-bold text-gray-800">Mai Sakurajima</h2>
|
| 193 |
+
<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>
|
| 194 |
+
</div>
|
| 195 |
+
<span class="bg-pink-100 text-pink-600 text-xs font-medium px-2 py-1 rounded-full">c.ai</span>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
+
<div class="mt-4 flex flex-wrap gap-2">
|
| 199 |
+
<span class="tag bg-blue-100 text-blue-600 text-xs font-medium px-3 py-1 rounded-full">Аниме</span>
|
| 200 |
+
<span class="tag bg-purple-100 text-purple-600 text-xs font-medium px-3 py-1 rounded-full">манга</span>
|
| 201 |
+
<span class="tag bg-green-100 text-green-600 text-xs font-medium px-3 py-1 rounded-full">психолог</span>
|
| 202 |
+
<span class="tag bg-red-100 text-red-600 text-xs font-medium px-3 py-1 rounded-full">извращенка</span>
|
| 203 |
+
<span class="tag bg-yellow-100 text-yellow-600 text-xs font-medium px-3 py-1 rounded-full">секс</span>
|
| 204 |
+
<span class="tag bg-indigo-100 text-indigo-600 text-xs font-medium px-3 py-1 rounded-full">флирт</span>
|
| 205 |
+
</div>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
|
| 209 |
+
<!-- Chat Section -->
|
| 210 |
+
<div class="p-6 sm:p-8">
|
| 211 |
+
<div class="flex items-start gap-4">
|
| 212 |
+
<img
|
| 213 |
+
src="https://characterai.io/i/80/static/avatars/uploaded/2024/3/11/WdHpiR7oxKo_KDIyzz6Qj6ov2Ftv-ef1ZzWtHVPfg_c.webp"
|
| 214 |
+
alt="Mai Sakurajima"
|
| 215 |
+
class="w-10 h-10 rounded-full object-cover border-2 border-pink-200"
|
| 216 |
+
>
|
| 217 |
+
<div class="flex-1">
|
| 218 |
+
<div class="chat-bubble px-5 py-3">
|
| 219 |
+
<p class="text-gray-800">
|
| 220 |
+
<span class="font-medium text-pink-500">Mai Sakurajima:</span> Очнувшись, ты открываешь глаза и видишь милую девушку посреди моря. Слыша голос "Эй, парень! Ты живой?"
|
| 221 |
+
</p>
|
| 222 |
+
</div>
|
| 223 |
+
<div class="mt-3 text-xs text-gray-400 flex items-center">
|
| 224 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 225 |
+
<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" />
|
| 226 |
+
</svg>
|
| 227 |
+
Just now
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
|
| 232 |
+
<!-- Input Area -->
|
| 233 |
+
<div class="mt-8">
|
| 234 |
+
<div class="relative">
|
| 235 |
+
<textarea
|
| 236 |
+
id="chat-input"
|
| 237 |
+
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"
|
| 238 |
+
rows="3"
|
| 239 |
+
placeholder="Type your message..."
|
| 240 |
+
onkeydown="if(event.keyCode === 13 && !event.shiftKey) { sendMessage(); return false; }"
|
| 241 |
+
></textarea>
|
| 242 |
+
<script>
|
| 243 |
+
function sendMessage() {
|
| 244 |
+
const input = document.getElementById('chat-input');
|
| 245 |
+
const message = input.value.trim();
|
| 246 |
+
if (message) {
|
| 247 |
+
// Here you would normally send to server/API
|
| 248 |
+
// For demo, we'll just add to chat
|
| 249 |
+
const chatContainer = document.querySelector('.chat-bubble');
|
| 250 |
+
const newMessage = document.createElement('p');
|
| 251 |
+
newMessage.textContent = `You: ${message}`;
|
| 252 |
+
chatContainer.appendChild(newMessage);
|
| 253 |
+
input.value = '';
|
| 254 |
+
|
| 255 |
+
// Simulate AI response after delay
|
| 256 |
+
setTimeout(() => {
|
| 257 |
+
const aiResponse = document.createElement('p');
|
| 258 |
+
aiResponse.innerHTML = `<span class="font-medium text-pink-500">Mai Sakurajima:</span> ${getRandomResponse()}`;
|
| 259 |
+
chatContainer.appendChild(aiResponse);
|
| 260 |
+
chatContainer.scrollTop = chatContainer.scrollHeight;
|
| 261 |
+
}, 1000);
|
| 262 |
+
}
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
function getRandomResponse() {
|
| 266 |
+
const responses = [
|
| 267 |
+
"Interesting... tell me more.",
|
| 268 |
+
"Hmm, I see...",
|
| 269 |
+
"What else is on your mind?",
|
| 270 |
+
"That's quite fascinating!",
|
| 271 |
+
"I never thought about it that way before."
|
| 272 |
+
];
|
| 273 |
+
return responses[Math.floor(Math.random() * responses.length)];
|
| 274 |
+
}
|
| 275 |
+
</script>
|
| 276 |
+
|
| 277 |
+
<script>
|
| 278 |
+
// Menu toggle functionality
|
| 279 |
+
const menuToggle = document.getElementById('menu-toggle');
|
| 280 |
+
const sidebar = document.getElementById('sidebar');
|
| 281 |
+
const overlay = document.getElementById('overlay');
|
| 282 |
+
|
| 283 |
+
menuToggle.addEventListener('click', () => {
|
| 284 |
+
const isOpen = !sidebar.classList.contains('-translate-x-full');
|
| 285 |
+
sidebar.classList.toggle('-translate-x-full');
|
| 286 |
+
overlay.classList.toggle('hidden');
|
| 287 |
+
menuToggle.classList.toggle('opacity-0', !isOpen);
|
| 288 |
+
menuToggle.classList.toggle('pointer-events-none', !isOpen);
|
| 289 |
+
});
|
| 290 |
+
|
| 291 |
+
overlay.addEventListener('click', () => {
|
| 292 |
+
sidebar.classList.add('-translate-x-full');
|
| 293 |
+
overlay.classList.add('hidden');
|
| 294 |
+
menuToggle.classList.remove('opacity-0');
|
| 295 |
+
menuToggle.classList.remove('pointer-events-none');
|
| 296 |
+
});
|
| 297 |
+
|
| 298 |
+
document.getElementById('close-menu').addEventListener('click', () => {
|
| 299 |
+
sidebar.classList.add('-translate-x-full');
|
| 300 |
+
overlay.classList.add('hidden');
|
| 301 |
+
menuToggle.classList.remove('opacity-0');
|
| 302 |
+
menuToggle.classList.remove('pointer-events-none');
|
| 303 |
+
});
|
| 304 |
+
|
| 305 |
+
// Dark mode toggle functionality
|
| 306 |
+
const darkModeToggle = document.getElementById('dark-mode-toggle');
|
| 307 |
+
const htmlElement = document.documentElement;
|
| 308 |
+
|
| 309 |
+
// Check for saved user preference or system preference
|
| 310 |
+
if (localStorage.getItem('darkMode') === 'true' ||
|
| 311 |
+
(!localStorage.getItem('darkMode') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 312 |
+
htmlElement.classList.add('dark-mode');
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
darkModeToggle.addEventListener('click', () => {
|
| 316 |
+
htmlElement.classList.toggle('dark-mode');
|
| 317 |
+
const isDarkMode = htmlElement.classList.contains('dark-mode');
|
| 318 |
+
localStorage.setItem('darkMode', isDarkMode);
|
| 319 |
+
|
| 320 |
+
// Change background gradient
|
| 321 |
+
if (isDarkMode) {
|
| 322 |
+
document.body.style.background = 'linear-gradient(135deg, #1a1a2e 0%, #4a2545 100%)';
|
| 323 |
+
} else {
|
| 324 |
+
document.body.style.background = 'linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)';
|
| 325 |
+
}
|
| 326 |
+
});
|
| 327 |
+
</script>
|
| 328 |
+
|
| 329 |
+
<div class="absolute right-3 bottom-3 flex space-x-2">
|
| 330 |
+
<button class="text-gray-400 hover:text-pink-500">
|
| 331 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 332 |
+
<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" />
|
| 333 |
+
</svg>
|
| 334 |
+
</button>
|
| 335 |
+
<button class="text-gray-400 hover:text-pink-500">
|
| 336 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 337 |
+
<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" />
|
| 338 |
+
</svg>
|
| 339 |
+
</button>
|
| 340 |
+
<button class="bg-pink-500 text-white p-1 rounded-full hover:bg-pink-600 transition">
|
| 341 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
| 342 |
+
<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" />
|
| 343 |
+
</svg>
|
| 344 |
+
</button>
|
| 345 |
+
</div>
|
| 346 |
+
</div>
|
| 347 |
+
|
| 348 |
+
<div class="mt-4 flex justify-end">
|
| 349 |
+
<button class="text-sm bg-pink-500 hover:bg-pink-600 text-white px-4 py-2 rounded-lg transition">
|
| 350 |
+
Continue Chat
|
| 351 |
+
</button>
|
| 352 |
+
</div>
|
| 353 |
+
</div>
|
| 354 |
+
</div>
|
| 355 |
+
</div>
|
| 356 |
+
|
| 357 |
+
<!-- Footer -->
|
| 358 |
+
<div class="mt-8 text-center text-sm text-gray-500">
|
| 359 |
+
<p>Your Words. Your World. <span class="text-pink-500">character.ai</span></p>
|
| 360 |
+
<div class="mt-2 flex justify-center space-x-4">
|
| 361 |
+
<a href="#" class="hover:text-pink-500">Terms</a>
|
| 362 |
+
<a href="#" class="hover:text-pink-500">Privacy</a>
|
| 363 |
+
<a href="#" class="hover:text-pink-500">Help</a>
|
| 364 |
+
</div>
|
| 365 |
+
</div>
|
| 366 |
+
</div>
|
| 367 |
+
<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>
|
| 368 |
+
</html>
|