Spaces:
Running
Running
اريد برنامج دردشة بي شكل عصري واستخدام مميز وبدون تسجيل
Browse files- README.md +8 -5
- chat.html +101 -0
- components/footer.js +74 -0
- components/navbar.js +66 -0
- index.html +95 -19
- script.js +56 -0
- style.css +40 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: GhostChat 👻
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: pink
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
chat.html
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ar" dir="rtl">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GhostChat — دردشة مجهولة</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="components/navbar.js"></script>
|
| 11 |
+
<script src="components/footer.js"></script>
|
| 12 |
+
</head>
|
| 13 |
+
<body class="bg-gray-100 font-sans">
|
| 14 |
+
<custom-navbar></custom-navbar>
|
| 15 |
+
|
| 16 |
+
<main class="container mx-auto px-4 py-8">
|
| 17 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
|
| 18 |
+
<!-- Chat Header -->
|
| 19 |
+
<div class="bg-purple-600 text-white p-4 flex items-center">
|
| 20 |
+
<div class="w-10 h-10 rounded-full bg-white text-purple-600 flex items-center justify-center mr-3">
|
| 21 |
+
<i data-feather="ghost"></i>
|
| 22 |
+
</div>
|
| 23 |
+
<div>
|
| 24 |
+
<h2 class="font-bold">غرفة دردشة مجهولة</h2>
|
| 25 |
+
<p class="text-sm opacity-80">متصل الآن: <span id="online-count">0</span> أشخاص</p>
|
| 26 |
+
</div>
|
| 27 |
+
</div>
|
| 28 |
+
|
| 29 |
+
<!-- Chat Messages -->
|
| 30 |
+
<div id="chat-messages" class="h-96 p-4 overflow-y-auto space-y-3">
|
| 31 |
+
<!-- Messages will appear here -->
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<!-- Message Input -->
|
| 35 |
+
<div class="border-t p-4 flex">
|
| 36 |
+
<input type="text" id="message-input" placeholder="اكتب رسالتك هنا..." class="flex-1 border rounded-l-full py-2 px-4 focus:outline-none focus:ring-2 focus:ring-purple-500">
|
| 37 |
+
<button id="send-button" class="bg-purple-600 text-white px-6 rounded-r-full hover:bg-purple-700 transition">
|
| 38 |
+
<i data-feather="send"></i>
|
| 39 |
+
</button>
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
</main>
|
| 43 |
+
|
| 44 |
+
<custom-footer></custom-footer>
|
| 45 |
+
|
| 46 |
+
<script>
|
| 47 |
+
feather.replace();
|
| 48 |
+
|
| 49 |
+
// Simple chat functionality (would use WebSockets in production)
|
| 50 |
+
const messageInput = document.getElementById('message-input');
|
| 51 |
+
const sendButton = document.getElementById('send-button');
|
| 52 |
+
const chatMessages = document.getElementById('chat-messages');
|
| 53 |
+
|
| 54 |
+
function addMessage(message, isMe = false) {
|
| 55 |
+
const messageDiv = document.createElement('div');
|
| 56 |
+
messageDiv.className = `flex ${isMe ? 'justify-end' : 'justify-start'}`;
|
| 57 |
+
|
| 58 |
+
const bubble = document.createElement('div');
|
| 59 |
+
bubble.className = `max-w-xs lg:max-w-md px-4 py-2 rounded-xl ${isMe ? 'bg-purple-600 text-white' : 'bg-gray-200'}`;
|
| 60 |
+
bubble.textContent = message;
|
| 61 |
+
|
| 62 |
+
messageDiv.appendChild(bubble);
|
| 63 |
+
chatMessages.appendChild(messageDiv);
|
| 64 |
+
chatMessages.scrollTop = chatMessages.scrollHeight;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
sendButton.addEventListener('click', () => {
|
| 68 |
+
const message = messageInput.value.trim();
|
| 69 |
+
if (message) {
|
| 70 |
+
addMessage(message, true);
|
| 71 |
+
messageInput.value = '';
|
| 72 |
+
|
| 73 |
+
// Simulate random response
|
| 74 |
+
setTimeout(() => {
|
| 75 |
+
const responses = [
|
| 76 |
+
"مرحبًا! كيف حالك؟",
|
| 77 |
+
"هذه الدردشة مجهولة تمامًا",
|
| 78 |
+
"يمكنك التحدث بحرية هنا",
|
| 79 |
+
"هل تفضل الدردشة النصية أم الصوتية؟",
|
| 80 |
+
"👻"
|
| 81 |
+
];
|
| 82 |
+
addMessage(responses[Math.floor(Math.random() * responses.length)]);
|
| 83 |
+
}, 1000);
|
| 84 |
+
}
|
| 85 |
+
});
|
| 86 |
+
|
| 87 |
+
messageInput.addEventListener('keypress', (e) => {
|
| 88 |
+
if (e.key === 'Enter') {
|
| 89 |
+
sendButton.click();
|
| 90 |
+
}
|
| 91 |
+
});
|
| 92 |
+
|
| 93 |
+
// Simulate online users count
|
| 94 |
+
setInterval(() => {
|
| 95 |
+
const count = Math.floor(Math.random() * 50) + 1;
|
| 96 |
+
document.getElementById('online-count').textContent = count;
|
| 97 |
+
}, 3000);
|
| 98 |
+
</script>
|
| 99 |
+
<script src="script.js"></script>
|
| 100 |
+
</body>
|
| 101 |
+
</html>
|
components/footer.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.footer {
|
| 7 |
+
background-color: #2d3748;
|
| 8 |
+
}
|
| 9 |
+
.footer-link {
|
| 10 |
+
transition: all 0.3s ease;
|
| 11 |
+
}
|
| 12 |
+
.footer-link:hover {
|
| 13 |
+
color: #a78bfa;
|
| 14 |
+
}
|
| 15 |
+
</style>
|
| 16 |
+
<footer class="footer text-white py-12">
|
| 17 |
+
<div class="container mx-auto px-6">
|
| 18 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 19 |
+
<!-- About -->
|
| 20 |
+
<div>
|
| 21 |
+
<h3 class="text-xl font-bold mb-4">النُّوطو</h3>
|
| 22 |
+
<p class="text-gray-400">تطبيق دردشة يركز على الخصوصية والتحكم في الظهور.</p>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<!-- Links -->
|
| 26 |
+
<div>
|
| 27 |
+
<h4 class="font-semibold mb-4">روابط سريعة</h4>
|
| 28 |
+
<ul class="space-y-2">
|
| 29 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-purple-300">الرئيسية</a></li>
|
| 30 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-purple-300">الميزات</a></li>
|
| 31 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-purple-300">الأسئلة الشائعة</a></li>
|
| 32 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-purple-300">اتصل بنا</a></li>
|
| 33 |
+
</ul>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
<!-- Legal -->
|
| 37 |
+
<div>
|
| 38 |
+
<h4 class="font-semibold mb-4">معلومات قانونية</h4>
|
| 39 |
+
<ul class="space-y-2">
|
| 40 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-purple-300">شروط الاستخدام</a></li>
|
| 41 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-purple-300">سياسة الخصوصية</a></li>
|
| 42 |
+
</ul>
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
<!-- Social -->
|
| 46 |
+
<div>
|
| 47 |
+
<h4 class="font-semibold mb-4">تواصل معنا</h4>
|
| 48 |
+
<div class="flex space-x-4">
|
| 49 |
+
<a href="#" class="text-gray-400 hover:text-purple-300">
|
| 50 |
+
<i data-feather="twitter"></i>
|
| 51 |
+
</a>
|
| 52 |
+
<a href="#" class="text-gray-400 hover:text-purple-300">
|
| 53 |
+
<i data-feather="facebook"></i>
|
| 54 |
+
</a>
|
| 55 |
+
<a href="#" class="text-gray-400 hover:text-purple-300">
|
| 56 |
+
<i data-feather="instagram"></i>
|
| 57 |
+
</a>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
|
| 63 |
+
<p>© 2023 النُّوطو. جميع الحقوق محفوظة.</p>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
</footer>
|
| 67 |
+
`;
|
| 68 |
+
|
| 69 |
+
// Initialize feather icons
|
| 70 |
+
feather.replace();
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.navbar {
|
| 7 |
+
background-color: white;
|
| 8 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
| 9 |
+
}
|
| 10 |
+
.nav-link {
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
}
|
| 13 |
+
.nav-link:hover {
|
| 14 |
+
color: #8b5cf6;
|
| 15 |
+
}
|
| 16 |
+
.mobile-menu {
|
| 17 |
+
transition: all 0.3s ease;
|
| 18 |
+
}
|
| 19 |
+
</style>
|
| 20 |
+
<nav class="navbar py-4 px-6">
|
| 21 |
+
<div class="container mx-auto flex justify-between items-center">
|
| 22 |
+
<a href="/" class="flex items-center">
|
| 23 |
+
<i data-feather="message-square" class="text-purple-600 mr-2"></i>
|
| 24 |
+
<span class="text-xl font-bold text-gray-800">النُّوطو</span>
|
| 25 |
+
</a>
|
| 26 |
+
<div class="hidden md:flex space-x-8">
|
| 27 |
+
<a href="index.html" class="nav-link text-gray-700 hover:text-purple-600">الرئيسية</a>
|
| 28 |
+
<a href="chat.html" class="nav-link text-gray-700 hover:text-purple-600">الدردشة</a>
|
| 29 |
+
<a href="features.html" class="nav-link text-gray-700 hover:text-purple-600">الميزات</a>
|
| 30 |
+
<a href="faq.html" class="nav-link text-gray-700 hover:text-purple-600">الأسئلة الشائعة</a>
|
| 31 |
+
</div>
|
| 32 |
+
<div class="hidden md:block">
|
| 33 |
+
<a href="#" class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-full text-sm font-medium">تسجيل الدخول</a>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
+
<button id="mobile-menu-button" class="md:hidden text-gray-700">
|
| 37 |
+
<i data-feather="menu"></i>
|
| 38 |
+
</button>
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
<!-- Mobile menu -->
|
| 42 |
+
<div id="mobile-menu" class="mobile-menu hidden md:hidden py-4 px-6 bg-white">
|
| 43 |
+
<a href="#" class="block py-2 text-gray-700 hover:text-purple-600">الرئيسية</a>
|
| 44 |
+
<a href="#" class="block py-2 text-gray-700 hover:text-purple-600">الميزات</a>
|
| 45 |
+
<a href="#" class="block py-2 text-gray-700 hover:text-purple-600">الأسئلة الشائعة</a>
|
| 46 |
+
<a href="#" class="block py-2 text-gray-700 hover:text-purple-600">اتصل بنا</a>
|
| 47 |
+
<a href="#" class="block mt-4 bg-purple-600 text-white px-4 py-2 rounded-full text-sm font-medium text-center">تسجيل الدخول</a>
|
| 48 |
+
</div>
|
| 49 |
+
</nav>
|
| 50 |
+
`;
|
| 51 |
+
|
| 52 |
+
// Mobile menu toggle
|
| 53 |
+
const menuButton = this.shadowRoot.getElementById('mobile-menu-button');
|
| 54 |
+
const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
|
| 55 |
+
|
| 56 |
+
menuButton.addEventListener('click', () => {
|
| 57 |
+
mobileMenu.classList.toggle('hidden');
|
| 58 |
+
feather.replace();
|
| 59 |
+
});
|
| 60 |
+
|
| 61 |
+
// Initialize feather icons
|
| 62 |
+
feather.replace();
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,95 @@
|
|
| 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="ar" dir="rtl">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>النُّوطو — شبح الواتساب للدردشة</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script src="components/navbar.js"></script>
|
| 12 |
+
<script src="components/footer.js"></script>
|
| 13 |
+
</head>
|
| 14 |
+
<body class="bg-gray-100 font-sans">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
+
|
| 17 |
+
<main class="container mx-auto px-4 py-12">
|
| 18 |
+
<!-- Hero Section -->
|
| 19 |
+
<section class="text-center mb-20">
|
| 20 |
+
<h1 class="text-5xl font-bold text-gray-800 mb-4">GhostChat 👻</h1>
|
| 21 |
+
<p class="text-xl text-gray-600 mb-8">الدردشة بدون تسجيل أو هوية — مجهول تمامًا</p>
|
| 22 |
+
<div class="flex justify-center gap-4">
|
| 23 |
+
<a href="register.html" class="bg-purple-600 hover:bg-purple-700 text-white px-6 py-3 rounded-full font-medium transition duration-300">جرّب النُّوطو الآن</a>
|
| 24 |
+
<a href="about.html" class="border border-purple-600 text-purple-600 hover:bg-purple-50 px-6 py-3 rounded-full font-medium transition duration-300">المزيد عنا</a>
|
| 25 |
+
</div>
|
| 26 |
+
</section>
|
| 27 |
+
|
| 28 |
+
<!-- Features Section -->
|
| 29 |
+
<section class="mb-20">
|
| 30 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">ميزات النُّوطو</h2>
|
| 31 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 32 |
+
<!-- Feature 1 -->
|
| 33 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
|
| 34 |
+
<div class="text-purple-600 mb-4">
|
| 35 |
+
<i data-feather="eye-off" class="w-10 h-10"></i>
|
| 36 |
+
</div>
|
| 37 |
+
<h3 class="text-xl font-semibold mb-2">إخفاء الظهور</h3>
|
| 38 |
+
<p class="text-gray-600">تحكم كامل في من يراك متصلًا أو يرى أنك تكتب</p>
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
<!-- Feature 2 -->
|
| 42 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
|
| 43 |
+
<div class="text-purple-600 mb-4">
|
| 44 |
+
<i data-feather="clock" class="w-10 h-10"></i>
|
| 45 |
+
</div>
|
| 46 |
+
<h3 class="text-xl font-semibold mb-2">رسائل مؤقتة</h3>
|
| 47 |
+
<p class="text-gray-600">رسائل تختفي بعد فترة زمنية تحددها أنت</p>
|
| 48 |
+
</div>
|
| 49 |
+
|
| 50 |
+
<!-- Feature 3 -->
|
| 51 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition duration-300">
|
| 52 |
+
<div class="text-purple-600 mb-4">
|
| 53 |
+
<i data-feather="lock" class="w-10 h-10"></i>
|
| 54 |
+
</div>
|
| 55 |
+
<h3 class="text-xl font-semibold mb-2">غرف سرية</h3>
|
| 56 |
+
<p class="text-gray-600">محادثات محمية بكلمة مرور أو بصمة</p>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</section>
|
| 60 |
+
|
| 61 |
+
<!-- App Screenshots -->
|
| 62 |
+
<section class="mb-20">
|
| 63 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">تجربة النُّوطو</h2>
|
| 64 |
+
<div class="flex justify-center">
|
| 65 |
+
<img src="http://static.photos/technology/640x360/1" alt="Nooto App Screenshot" class="rounded-xl shadow-xl max-w-full h-auto">
|
| 66 |
+
</div>
|
| 67 |
+
</section>
|
| 68 |
+
|
| 69 |
+
<!-- Testimonials -->
|
| 70 |
+
<section class="mb-20">
|
| 71 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">آراء المستخدمين</h2>
|
| 72 |
+
<div class="bg-white p-8 rounded-xl shadow-md max-w-3xl mx-auto">
|
| 73 |
+
<div class="text-center">
|
| 74 |
+
<p class="text-gray-700 text-lg mb-6">"النُّوطو غيّر طريقة تواصلي مع الأصدقاء. أخيرًا لدي خصوصية حقيقية في الدردشات!"</p>
|
| 75 |
+
<div class="flex items-center justify-center">
|
| 76 |
+
<img src="http://static.photos/people/200x200/1" alt="User" class="w-12 h-12 rounded-full mr-4">
|
| 77 |
+
<div>
|
| 78 |
+
<h4 class="font-semibold">أحمد محمد</h4>
|
| 79 |
+
<p class="text-gray-500 text-sm">مستخدم منذ 2023</p>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
</section>
|
| 85 |
+
</main>
|
| 86 |
+
|
| 87 |
+
<custom-footer></custom-footer>
|
| 88 |
+
|
| 89 |
+
<script>
|
| 90 |
+
feather.replace();
|
| 91 |
+
</script>
|
| 92 |
+
<script src="script.js"></script>
|
| 93 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 94 |
+
</body>
|
| 95 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
// Invite code validation
|
| 3 |
+
function validateInviteCode(code) {
|
| 4 |
+
// This is a placeholder - in a real app, you'd validate against a database
|
| 5 |
+
return code.length === 6 && /^[A-Z0-9]+$/.test(code);
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
// Phone number validation for Saudi numbers
|
| 9 |
+
function validateSaudiPhoneNumber(phone) {
|
| 10 |
+
return /^05\d{8}$/.test(phone);
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
// Password strength validation
|
| 14 |
+
function validatePasswordStrength(password) {
|
| 15 |
+
return password.length >= 8 && /[A-Z]/.test(password) && /[0-9]/.test(password);
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
// Smooth scrolling for anchor links
|
| 19 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 20 |
+
anchor.addEventListener('click', function (e) {
|
| 21 |
+
e.preventDefault();
|
| 22 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 23 |
+
behavior: 'smooth'
|
| 24 |
+
});
|
| 25 |
+
});
|
| 26 |
+
});
|
| 27 |
+
// Generate random username
|
| 28 |
+
function generateUsername() {
|
| 29 |
+
const adjectives = ['شبح', 'سري', 'مجهول', 'خفيف', 'ظل', 'ليل', 'غامض'];
|
| 30 |
+
const nouns = ['محارب', 'قناص', 'شخص', 'زائر', 'مستكشف', 'راوي'];
|
| 31 |
+
return `${adjectives[Math.floor(Math.random() * adjectives.length)]}-${nouns[Math.floor(Math.random() * nouns.length)]}`;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// Animation on scroll
|
| 35 |
+
const animateOnScroll = () => {
|
| 36 |
+
const elements = document.querySelectorAll('.feature-card, .testimonial');
|
| 37 |
+
elements.forEach(element => {
|
| 38 |
+
const elementPosition = element.getBoundingClientRect().top;
|
| 39 |
+
const screenPosition = window.innerHeight / 1.3;
|
| 40 |
+
|
| 41 |
+
if (elementPosition < screenPosition) {
|
| 42 |
+
element.style.opacity = '1';
|
| 43 |
+
element.style.transform = 'translateY(0)';
|
| 44 |
+
}
|
| 45 |
+
});
|
| 46 |
+
};
|
| 47 |
+
|
| 48 |
+
// Set initial state for animation
|
| 49 |
+
document.querySelectorAll('.feature-card, .testimonial').forEach(element => {
|
| 50 |
+
element.style.opacity = '0';
|
| 51 |
+
element.style.transform = 'translateY(20px)';
|
| 52 |
+
element.style.transition = 'all 0.5s ease';
|
| 53 |
+
});
|
| 54 |
+
|
| 55 |
+
window.addEventListener('scroll', animateOnScroll);
|
| 56 |
+
window.addEventListener('load', animateOnScroll);
|
style.css
CHANGED
|
@@ -1,28 +1,50 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
}
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
|
| 2 |
+
|
| 3 |
body {
|
| 4 |
+
font-family: 'Tajawal', sans-serif;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
/* Custom scrollbar */
|
| 8 |
+
::-webkit-scrollbar {
|
| 9 |
+
width: 8px;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
::-webkit-scrollbar-track {
|
| 13 |
+
background: #f1f1f1;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
::-webkit-scrollbar-thumb {
|
| 17 |
+
background: #8b5cf6;
|
| 18 |
+
border-radius: 4px;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
::-webkit-scrollbar-thumb:hover {
|
| 22 |
+
background: #7c3aed;
|
| 23 |
+
}
|
| 24 |
+
/* Animation for features */
|
| 25 |
+
.feature-card {
|
| 26 |
+
transition: all 0.3s ease;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.feature-card:hover {
|
| 30 |
+
transform: translateY(-5px);
|
| 31 |
}
|
| 32 |
|
| 33 |
+
/* Chat styles */
|
| 34 |
+
#chat-messages {
|
| 35 |
+
scrollbar-width: thin;
|
| 36 |
+
scrollbar-color: #8b5cf6 #f1f1f1;
|
| 37 |
}
|
| 38 |
|
| 39 |
+
#chat-messages::-webkit-scrollbar {
|
| 40 |
+
width: 6px;
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
|
| 43 |
+
#chat-messages::-webkit-scrollbar-thumb {
|
| 44 |
+
background-color: #8b5cf6;
|
| 45 |
+
border-radius: 3px;
|
|
|
|
|
|
|
|
|
|
| 46 |
}
|
| 47 |
|
| 48 |
+
#message-input:focus {
|
| 49 |
+
box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
|
| 50 |
}
|