Spaces:
Running
Running
File size: 19,441 Bytes
4fc69a8 6870a54 4fc69a8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | <!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>زخرفة النصوص العربية | Just7saud</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=Tajawal:wght@400;500;700;900&display=swap');
body {
font-family: 'Tajawal', sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
}
.text-shadow {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.decorated-text {
font-size: 1.5rem;
line-height: 2.5rem;
text-align: center;
}
.gradient-bg {
background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
}
.floating {
animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.fade-in {
animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.copy-btn {
transition: all 0.3s ease;
}
.copy-btn:hover {
transform: scale(1.05);
}
.copy-btn.copied {
background-color: #10b981 !important;
}
</style>
</head>
<body class="text-gray-800">
<!-- Header -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<i class="fas fa-pen-fancy text-3xl mr-3 text-yellow-300"></i>
<h1 class="text-2xl font-bold text-shadow">زخرفة النصوص العربية</h1>
</div>
<div class="text-sm">
<span>جميع الحقوق محفوظة © 2023</span>
<span class="font-bold text-yellow-300">Just7saud</span>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<div class="max-w-4xl mx-auto">
<!-- Hero Section -->
<section class="bg-white rounded-xl shadow-lg p-6 mb-8 text-center fade-in">
<h2 class="text-3xl font-bold mb-4 text-blue-800">زخرف اسمك أو نصك العربي باحترافية</h2>
<p class="text-gray-600 mb-6">أدخل النص العربي في الحقل أدناه واحصل على عشرات الزخارف الجميلة لنصك</p>
<div class="relative mb-6">
<textarea id="inputText" class="w-full p-4 border-2 border-gray-300 rounded-lg focus:border-blue-500 focus:outline-none text-xl" rows="4" placeholder="اكتب النص الذي تريد زخرفته هنا..."></textarea>
<div class="absolute bottom-3 left-3 flex space-x-2">
<button id="clearBtn" class="bg-gray-200 hover:bg-gray-300 text-gray-700 px-3 py-1 rounded-lg text-sm transition">
<i class="fas fa-trash-alt mr-1"></i> مسح
</button>
</div>
</div>
<button id="generateBtn" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-full text-lg transition transform hover:scale-105 shadow-lg">
<i class="fas fa-magic mr-2"></i> زخرفة النص
</button>
</section>
<!-- Decorated Text Results -->
<section id="resultsSection" class="hidden bg-white rounded-xl shadow-lg p-6 mb-8 fade-in">
<div class="flex justify-between items-center mb-6">
<h3 class="text-2xl font-bold text-blue-800">نتائج الزخرفة</h3>
<div class="text-sm text-gray-500">
<span>إضغط على أي زخرفة لنسخها</span>
</div>
</div>
<div id="decoratedResults" class="grid grid-cols-1 md:grid-cols-2 gap-4">
<!-- Decorated texts will appear here -->
</div>
</section>
<!-- How To Use Section -->
<section class="bg-white rounded-xl shadow-lg p-6 mb-8 fade-in">
<h3 class="text-2xl font-bold text-blue-800 mb-4">كيفية استخدام الموقع</h3>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-blue-50 p-4 rounded-lg text-center">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-keyboard text-blue-600 text-2xl"></i>
</div>
<h4 class="font-bold mb-2">اكتب النص</h4>
<p class="text-gray-600 text-sm">قم بكتابة النص العربي الذي تريد زخرفته في الحقل المخصص</p>
</div>
<div class="bg-purple-50 p-4 rounded-lg text-center">
<div class="bg-purple-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-magic text-purple-600 text-2xl"></i>
</div>
<h4 class="font-bold mb-2">انقر على زخرفة</h4>
<p class="text-gray-600 text-sm">اضغط على زر الزخرفة لتحويل النص إلى أشكال زخرفية متنوعة</p>
</div>
<div class="bg-green-50 p-4 rounded-lg text-center">
<div class="bg-green-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-copy text-green-600 text-2xl"></i>
</div>
<h4 class="font-bold mb-2">انسخ النتيجة</h4>
<p class="text-gray-600 text-sm">اضغط على أي زخرفة لنسخها واستخدامها حيثما تريد</p>
</div>
</div>
</section>
<!-- Features Section -->
<section class="bg-white rounded-xl shadow-lg p-6 fade-in">
<h3 class="text-2xl font-bold text-blue-800 mb-6">مميزات موقعنا</h3>
<div class="space-y-4">
<div class="flex items-start">
<div class="bg-yellow-100 p-2 rounded-full mr-4">
<i class="fas fa-star text-yellow-500"></i>
</div>
<div>
<h4 class="font-bold mb-1">زخارف متنوعة</h4>
<p class="text-gray-600 text-sm">نقدم عشرات الأشكال الزخرفية المختلفة للنصوص العربية</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-100 p-2 rounded-full mr-4">
<i class="fas fa-bolt text-blue-500"></i>
</div>
<div>
<h4 class="font-bold mb-1">سرعة الأداء</h4>
<p class="text-gray-600 text-sm">نتائج فورية دون أي تأخير أو انتظار</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-green-100 p-2 rounded-full mr-4">
<i class="fas fa-mobile-alt text-green-500"></i>
</div>
<div>
<h4 class="font-bold mb-1">متوافق مع جميع الأجهزة</h4>
<p class="text-gray-600 text-sm">يمكنك استخدام الموقع على الهاتف أو الكمبيوتر</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-red-100 p-2 rounded-full mr-4">
<i class="fas fa-lock text-red-500"></i>
</div>
<div>
<h4 class="font-bold mb-1">آمن وسري</h4>
<p class="text-gray-600 text-sm">لا نحفظ أي نصوص تدخلها في موقعنا</p>
</div>
</div>
</div>
</section>
</div>
</main>
<!-- Footer -->
<footer class="gradient-bg text-white py-8 mt-12">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center">
<i class="fas fa-pen-fancy text-2xl mr-3 text-yellow-300"></i>
<span class="text-xl font-bold">زخرفة النصوص العربية</span>
</div>
<p class="text-sm mt-2 text-gray-300">أجمل زخارف للنصوص العربية بأشكال مميزة</p>
</div>
<div class="flex space-x-6">
<a href="#" class="hover:text-yellow-300 transition">
<i class="fab fa-twitter text-xl"></i>
</a>
<a href="#" class="hover:text-yellow-300 transition">
<i class="fab fa-instagram text-xl"></i>
</a>
<a href="#" class="hover:text-yellow-300 transition">
<i class="fab fa-telegram text-xl"></i>
</a>
</div>
</div>
<div class="border-t border-gray-700 mt-6 pt-6 text-center text-sm text-gray-300">
<p>جميع الحقوق محفوظة © 2023 <span class="font-bold text-yellow-300">Just7saud</span>. لا يسمح بنسخ أو إعادة نشر أي جزء من هذا الموقع دون إذن.</p>
<p class="mt-2">زوروا موقعنا: <a href="https://just7saud.com" class="text-yellow-300 hover:underline" target="_blank">just7saud.com</a></p>
</div>
</div>
</footer>
<!-- Floating Action Button -->
<div class="fixed bottom-6 right-6">
<button id="scrollTopBtn" class="bg-blue-600 hover:bg-blue-700 text-white w-12 h-12 rounded-full shadow-lg flex items-center justify-center transition transform hover:scale-110 hidden">
<i class="fas fa-arrow-up"></i>
</button>
</div>
<script>
// Arabic text decorators
const decorators = [
// Fancy fonts
{ name: "زخرفة إنجليزية", func: (text) => text.replace(/[ء-ي]/g, c => String.fromCharCode(c.charCodeAt(0)+1584)) },
{ name: "زخرفة مميزة ١", func: (text) => text.replace(/[ء-ي]/g, c => String.fromCharCode(c.charCodeAt(0)+1585)) },
{ name: "زخرفة مميزة ٢", func: (text) => text.replace(/[ء-ي]/g, c => String.fromCharCode(c.charCodeAt(0)+1586)) },
{ name: "زخرفة مميزة ٣", func: (text) => text.replace(/[ء-ي]/g, c => String.fromCharCode(c.charCodeAt(0)+1587)) },
{ name: "زخرفة مميزة ٤", func: (text) => text.replace(/[ء-ي]/g, c => String.fromCharCode(c.charCodeAt(0)+1588)) },
// Symbol decorations
{ name: "زخرفة بالنجوم", func: (text) => "✦ " + text.split("").join(" ✦ ") + " ✦" },
{ name: "زخرفة بالقلوب", func: (text) => "❤ " + text.split("").join(" ❤ ") + " ❤" },
{ name: "زخرفة بالزهور", func: (text) => "✿ " + text.split("").join(" ✿ ") + " ✿" },
// Reversed text
{ name: "نص معكوس", func: (text) => text.split("").reverse().join("") },
// Bold and fancy
{ name: "نص سميك", func: (text) => text.split("").map(c => `𝐁${c}𝐁`).join("").replace(/𝐁𝐁/g, "𝐁") },
{ name: "نص مائل", func: (text) => text.split("").map(c => `𝐼${c}𝐼`).join("").replace(/𝐼𝐼/g, "𝐼") },
// Small caps
{ name: "حروف صغيرة", func: (text) => text.toLowerCase() },
// Alternating case
{ name: "حروف متناوبة", func: (text) => {
let result = "";
for (let i = 0; i < text.length; i++) {
result += i % 2 === 0 ? text[i].toUpperCase() : text[i].toLowerCase();
}
return result;
}},
// Double text
{ name: "نص مكرر", func: (text) => text + " " + text },
// Encircled
{ name: "نص داخل دوائر", func: (text) => text.split("").map(c => `ⓐ${c}ⓩ`).join("").replace(/ⓐⓩ/g, " ") },
// Squared
{ name: "نص داخل مربعات", func: (text) => text.split("").map(c => `🄰${c}🅉`).join("").replace(/🄰🅉/g, " ") },
// Underlined
{ name: "نص مسطر", func: (text) => text.split("").join("̲") + "̲" },
// Strikethrough
{ name: "نص مشطوب", func: (text) => text.split("").join("̶") + "̶" },
// Dotted
{ name: "نص منقط", func: (text) => text.split("").join("̇") + "̇" },
// Wavy
{ name: "نص مموج", func: (text) => text.split("").join("̰") + "̰" }
];
// DOM elements
const inputText = document.getElementById('inputText');
const generateBtn = document.getElementById('generateBtn');
const clearBtn = document.getElementById('clearBtn');
const resultsSection = document.getElementById('resultsSection');
const decoratedResults = document.getElementById('decoratedResults');
const scrollTopBtn = document.getElementById('scrollTopBtn');
// Generate decorated texts
generateBtn.addEventListener('click', () => {
const text = inputText.value.trim();
if (!text) {
alert("الرجاء إدخال نص لزخرفته");
return;
}
decoratedResults.innerHTML = '';
decorators.forEach((decorator, index) => {
try {
const decoratedText = decorator.func(text);
const card = document.createElement('div');
card.className = 'bg-gray-50 hover:bg-gray-100 rounded-lg p-4 border border-gray-200 transition cursor-pointer';
card.innerHTML = `
<div class="flex justify-between items-start mb-2">
<span class="text-sm font-medium text-blue-600">${decorator.name}</span>
<button class="copy-btn bg-gray-200 hover:bg-gray-300 text-gray-700 px-2 py-1 rounded text-xs">
<i class="far fa-copy mr-1"></i> نسخ
</button>
</div>
<div class="decorated-text" style="font-family: 'Arial', sans-serif">${decoratedText}</div>
`;
const copyBtn = card.querySelector('.copy-btn');
copyBtn.addEventListener('click', (e) => {
e.stopPropagation();
navigator.clipboard.writeText(decoratedText).then(() => {
copyBtn.innerHTML = '<i class="fas fa-check mr-1"></i> تم النسخ!';
copyBtn.classList.add('copied');
setTimeout(() => {
copyBtn.innerHTML = '<i class="far fa-copy mr-1"></i> نسخ';
copyBtn.classList.remove('copied');
}, 2000);
});
});
card.addEventListener('click', () => {
navigator.clipboard.writeText(decoratedText).then(() => {
const originalBg = card.style.backgroundColor;
card.style.backgroundColor = '#e6ffec';
setTimeout(() => {
card.style.backgroundColor = originalBg;
}, 300);
});
});
decoratedResults.appendChild(card);
} catch (e) {
console.error(`Error with decorator ${decorator.name}:`, e);
}
});
resultsSection.classList.remove('hidden');
resultsSection.scrollIntoView({ behavior: 'smooth' });
});
// Clear input
clearBtn.addEventListener('click', () => {
inputText.value = '';
inputText.focus();
});
// Scroll to top button
window.addEventListener('scroll', () => {
if (window.pageYOffset > 300) {
scrollTopBtn.classList.remove('hidden');
} else {
scrollTopBtn.classList.add('hidden');
}
});
scrollTopBtn.addEventListener('click', () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
});
// Focus input on page load
window.addEventListener('load', () => {
inputText.focus();
});
</script>
<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=Suabdudbew/3mk" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |