Update index.html
Browse files- index.html +44 -269
index.html
CHANGED
|
@@ -3,293 +3,68 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
-
|
| 8 |
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/dist/css/all.min.css">
|
| 9 |
-
|
| 10 |
<style>
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
--secondary-color: #a78bfa;
|
| 15 |
-
--bg-dark: #020617; /* أسود فضائي عميق */
|
| 16 |
-
--card-bg: rgba(15, 23, 42, 0.7); /* خلفية زجاجية للنتائج */
|
| 17 |
-
--glass-border: rgba(255, 255, 255, 0.1);
|
| 18 |
-
--text-main: #f8fafc;
|
| 19 |
-
--text-dim: #94a3b8;
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
/* تنسيق عام للجسم */
|
| 23 |
-
body, html {
|
| 24 |
-
margin: 0;
|
| 25 |
-
padding: 0;
|
| 26 |
-
min-height: 100vh;
|
| 27 |
-
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 28 |
-
background-color: var(--bg-dark);
|
| 29 |
-
color: var(--text-main);
|
| 30 |
-
scroll-behavior: smooth;
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
/* خلفية فنية متحركة */
|
| 34 |
-
.background-glow {
|
| 35 |
-
position: fixed;
|
| 36 |
-
top: 0; left: 0; width: 100%; height: 100%;
|
| 37 |
-
background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #020617 100%);
|
| 38 |
-
z-index: -1;
|
| 39 |
-
}
|
| 40 |
-
|
| 41 |
-
/* --- الواجهة الرئيسية (Hero Section) --- */
|
| 42 |
-
#main-header {
|
| 43 |
display: flex;
|
| 44 |
-
flex-direction: column;
|
| 45 |
justify-content: center;
|
| 46 |
align-items: center;
|
| 47 |
height: 100vh;
|
| 48 |
-
transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
|
| 49 |
-
}
|
| 50 |
-
|
| 51 |
-
.anesnt-title {
|
| 52 |
-
font-size: 0.8rem;
|
| 53 |
-
letter-spacing: 6px;
|
| 54 |
-
color: var(--secondary-color);
|
| 55 |
-
margin-bottom: 10px;
|
| 56 |
-
font-weight: bold;
|
| 57 |
-
text-transform: uppercase;
|
| 58 |
-
}
|
| 59 |
-
|
| 60 |
-
.logo-text {
|
| 61 |
-
font-size: 5.5rem;
|
| 62 |
margin: 0;
|
| 63 |
-
font-weight: 900;
|
| 64 |
-
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
|
| 65 |
-
-webkit-background-clip: text;
|
| 66 |
-
-webkit-text-fill-color: transparent;
|
| 67 |
-
filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
|
| 68 |
-
cursor: pointer;
|
| 69 |
}
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
.search-wrapper {
|
| 73 |
width: 90%;
|
| 74 |
-
max-width:
|
| 75 |
-
margin-top: 40px;
|
| 76 |
-
position: relative;
|
| 77 |
}
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
padding-left: 75px; /* مساحة للأيقونة */
|
| 83 |
-
border-radius: 50px;
|
| 84 |
-
border: 1px solid var(--glass-border);
|
| 85 |
-
background: rgba(255, 255, 255, 0.05);
|
| 86 |
-
backdrop-filter: blur(20px);
|
| 87 |
-
color: white;
|
| 88 |
-
font-size: 1.3rem;
|
| 89 |
-
outline: none;
|
| 90 |
-
box-shadow: 0 15px 35px rgba(0,0,0,0.4);
|
| 91 |
-
transition: all 0.4s ease;
|
| 92 |
-
}
|
| 93 |
-
|
| 94 |
-
.custom-search-input:focus {
|
| 95 |
-
border-color: var(--primary-color);
|
| 96 |
-
background: rgba(255, 255, 255, 0.08);
|
| 97 |
-
box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
.search-icon-inside {
|
| 101 |
-
position: absolute;
|
| 102 |
-
left: 30px;
|
| 103 |
-
top: 50%;
|
| 104 |
-
transform: translateY(-50%);
|
| 105 |
-
font-size: 1.6rem;
|
| 106 |
-
color: var(--primary-color);
|
| 107 |
}
|
| 108 |
-
|
| 109 |
-
/* الروابط السريعة المريحة */
|
| 110 |
-
.quick-nav {
|
| 111 |
display: flex;
|
| 112 |
-
gap:
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
}
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
background: var(--glass);
|
| 123 |
-
border: 1px solid var(--glass-border);
|
| 124 |
-
border-radius: 20px;
|
| 125 |
-
color: var(--text-dim);
|
| 126 |
-
font-size: 1.5rem;
|
| 127 |
-
text-decoration: none;
|
| 128 |
-
transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
| 129 |
-
backdrop-filter: blur(10px);
|
| 130 |
}
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
transform: translateY(-10px) rotate(5deg);
|
| 134 |
-
background: var(--primary-color);
|
| 135 |
color: white;
|
| 136 |
-
border
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
margin: 0 auto;
|
| 143 |
-
padding: 40px 20px;
|
| 144 |
-
display: none; /* مخفي في البداية */
|
| 145 |
-
animation: slideUp 0.6s ease-out;
|
| 146 |
-
}
|
| 147 |
-
|
| 148 |
-
@keyframes slideUp {
|
| 149 |
-
from { transform: translateY(50px); opacity: 0; }
|
| 150 |
-
to { transform: translateY(0); opacity: 1; }
|
| 151 |
-
}
|
| 152 |
-
|
| 153 |
-
/* تخصيص مظهر نتائج Google CSE لتصبح منظمة جداً */
|
| 154 |
-
.gsc-control-cse {
|
| 155 |
-
background-color: transparent !important;
|
| 156 |
-
border: none !important;
|
| 157 |
-
padding: 0 !important;
|
| 158 |
-
}
|
| 159 |
-
|
| 160 |
-
/* الإطار المنظم لكل نتيجة */
|
| 161 |
-
.gsc-webResult.gsc-result {
|
| 162 |
-
background: var(--card-bg) !important;
|
| 163 |
-
border: 1px solid var(--glass-border) !important;
|
| 164 |
-
border-radius: 24px !important; /* حواف ناعمة جداً */
|
| 165 |
-
padding: 25px !important;
|
| 166 |
-
margin-bottom: 25px !important;
|
| 167 |
-
transition: 0.3s ease !important;
|
| 168 |
-
backdrop-filter: blur(10px);
|
| 169 |
-
}
|
| 170 |
-
|
| 171 |
-
.gsc-webResult.gsc-result:hover {
|
| 172 |
-
border-color: var(--primary-color) !important;
|
| 173 |
-
background: rgba(30, 41, 59, 0.9) !important;
|
| 174 |
-
transform: scale(1.01);
|
| 175 |
-
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
|
| 176 |
-
}
|
| 177 |
-
|
| 178 |
-
/* تنسيق عناوين النتائج */
|
| 179 |
-
.gs-title, .gs-title * {
|
| 180 |
-
color: var(--primary-color) !important;
|
| 181 |
-
text-decoration: none !important;
|
| 182 |
-
font-size: 1.4rem !important;
|
| 183 |
-
font-weight: bold !important;
|
| 184 |
-
}
|
| 185 |
-
|
| 186 |
-
/* تنسيق مقتطف النص */
|
| 187 |
-
.gs-snippet {
|
| 188 |
-
color: var(--text-dim) !important;
|
| 189 |
-
line-height: 1.7 !important;
|
| 190 |
-
margin-top: 12px !important;
|
| 191 |
-
font-size: 1.05rem !important;
|
| 192 |
-
}
|
| 193 |
-
|
| 194 |
-
/* إخفاء شعار جوجل والعناصر المشتتة */
|
| 195 |
-
.gsc-adBlock, .gsc-url-top, .gcsc-branding {
|
| 196 |
-
display: none !important;
|
| 197 |
-
}
|
| 198 |
-
|
| 199 |
-
/* تنسيق التنقل بين الصفحات */
|
| 200 |
-
.gsc-cursor-box {
|
| 201 |
-
margin-top: 30px !important;
|
| 202 |
-
text-align: center !important;
|
| 203 |
-
}
|
| 204 |
-
|
| 205 |
-
.gsc-cursor-page {
|
| 206 |
-
background: var(--card-bg) !important;
|
| 207 |
-
color: white !important;
|
| 208 |
-
padding: 12px 18px !important;
|
| 209 |
-
border-radius: 12px !important;
|
| 210 |
-
margin: 5px !important;
|
| 211 |
-
border: 1px solid var(--glass-border) !important;
|
| 212 |
-
}
|
| 213 |
-
|
| 214 |
-
/* تغيير شكل الواجهة عند البحث */
|
| 215 |
-
body.is-searching #main-header {
|
| 216 |
-
height: 40vh;
|
| 217 |
-
justify-content: flex-start;
|
| 218 |
-
padding-top: 50px;
|
| 219 |
}
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
display: block;
|
| 223 |
}
|
| 224 |
</style>
|
| 225 |
</head>
|
| 226 |
-
<body
|
| 227 |
-
|
| 228 |
-
<div class="background-glow"></div>
|
| 229 |
-
|
| 230 |
-
<section id="main-header">
|
| 231 |
-
<div class="anesnt-title">AnesNT Initiative</div>
|
| 232 |
-
<div class="logo-area">
|
| 233 |
-
<h1 class="logo-text" onclick="window.location.reload()">SurfGO</h1>
|
| 234 |
-
</div>
|
| 235 |
-
|
| 236 |
-
<div class="search-wrapper">
|
| 237 |
-
<i class="fa fa-search search-icon-inside"></i>
|
| 238 |
-
<input type="text" id="customInput" class="custom-search-input" placeholder="اكتشف العالم من هنا..." onkeypress="handleAction(event)">
|
| 239 |
-
</div>
|
| 240 |
-
|
| 241 |
-
<div class="quick-nav">
|
| 242 |
-
<a href="https://github.com" class="nav-btn" title="GitHub"><i class="fab fa-github"></i></a>
|
| 243 |
-
<a href="https://youtube.com" class="nav-btn" title="YouTube"><i class="fab fa-youtube"></i></a>
|
| 244 |
-
<a href="https://chatgpt.com" class="nav-btn" title="AI Chat"><i class="fas fa-robot"></i></a>
|
| 245 |
-
<a href="#" class="nav-btn" title="AnesNT Studio"><i class="fas fa-laptop-code"></i></a>
|
| 246 |
-
</div>
|
| 247 |
-
</section>
|
| 248 |
-
|
| 249 |
-
<section id="results-section">
|
| 250 |
-
<script async src="https://cse.google.com/cse.js?cx=75aa960081baa4f0c"></script>
|
| 251 |
-
|
| 252 |
-
<div class="gcse-searchresults-only" data-mobileLayout="forced"></div>
|
| 253 |
-
</section>
|
| 254 |
-
|
| 255 |
-
<script>
|
| 256 |
-
/**
|
| 257 |
-
* دالة معالجة البحث عند الضغط على Enter
|
| 258 |
-
*/
|
| 259 |
-
function handleAction(e) {
|
| 260 |
-
if (e.key === 'Enter') {
|
| 261 |
-
const query = document.getElementById('customInput').value;
|
| 262 |
-
if (query.trim() !== "") {
|
| 263 |
-
// 1. تغيير شكل الواجهة لتناسب عرض النتائج
|
| 264 |
-
document.getElementById('surfgo-app').classList.add('is-searching');
|
| 265 |
-
|
| 266 |
-
// 2. تفعيل محرك بحث جوجل برمجياً
|
| 267 |
-
const element = google.search.cse.element.getElement('results-only-0');
|
| 268 |
-
if (element) {
|
| 269 |
-
element.execute(query);
|
| 270 |
-
} else {
|
| 271 |
-
// حل احتياطي في حال تأخر تحميل سكريبت جوجل
|
| 272 |
-
console.log("جاري تحميل المحرك...");
|
| 273 |
-
setTimeout(() => {
|
| 274 |
-
google.search.cse.element.getElement('results-only-0').execute(query);
|
| 275 |
-
}, 1000);
|
| 276 |
-
}
|
| 277 |
-
}
|
| 278 |
-
}
|
| 279 |
-
}
|
| 280 |
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
document.getElementById('surfgo-app').classList.add('is-searching');
|
| 289 |
-
document.getElementById('customInput').value = queryParam;
|
| 290 |
-
}
|
| 291 |
-
};
|
| 292 |
-
</script>
|
| 293 |
|
| 294 |
</body>
|
| 295 |
-
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>محرك بحثي الذكي</title>
|
|
|
|
|
|
|
|
|
|
| 7 |
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 10 |
+
background-color: #f8f9fa;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
display: flex;
|
|
|
|
| 12 |
justify-content: center;
|
| 13 |
align-items: center;
|
| 14 |
height: 100vh;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
margin: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
+
.search-container {
|
| 18 |
+
text-align: center;
|
|
|
|
| 19 |
width: 90%;
|
| 20 |
+
max-width: 600px;
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
+
h1 {
|
| 23 |
+
color: #4285F4;
|
| 24 |
+
font-size: 3rem;
|
| 25 |
+
margin-bottom: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
| 27 |
+
.search-box {
|
|
|
|
|
|
|
| 28 |
display: flex;
|
| 29 |
+
gap: 10px;
|
| 30 |
+
background: white;
|
| 31 |
+
padding: 10px;
|
| 32 |
+
border-radius: 50px;
|
| 33 |
+
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
|
| 34 |
+
border: 1px solid #dfe1e5;
|
| 35 |
}
|
| 36 |
+
.search-box input {
|
| 37 |
+
flex: 1;
|
| 38 |
+
border: none;
|
| 39 |
+
outline: none;
|
| 40 |
+
padding: 10px 20px;
|
| 41 |
+
font-size: 18px;
|
| 42 |
+
border-radius: 50px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
+
.search-box button {
|
| 45 |
+
background-color: #4285F4;
|
|
|
|
|
|
|
| 46 |
color: white;
|
| 47 |
+
border: none;
|
| 48 |
+
padding: 10px 25px;
|
| 49 |
+
border-radius: 50px;
|
| 50 |
+
cursor: pointer;
|
| 51 |
+
font-size: 16px;
|
| 52 |
+
transition: 0.3s;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
}
|
| 54 |
+
.search-box button:hover {
|
| 55 |
+
background-color: #357ae8;
|
|
|
|
| 56 |
}
|
| 57 |
</style>
|
| 58 |
</head>
|
| 59 |
+
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
+
<div class="search-container">
|
| 62 |
+
<h1>🔍 بحثي</h1>
|
| 63 |
+
<form action="results.html" method="get" class="search-box">
|
| 64 |
+
<input type="text" name="q" placeholder="ابحث عن أي شيء..." required>
|
| 65 |
+
<button type="submit">بحث</button>
|
| 66 |
+
</form>
|
| 67 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
</body>
|
| 70 |
+
</html>
|