AnesKAM commited on
Commit
5ce137b
·
verified ·
1 Parent(s): a531429

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +69 -117
index.html CHANGED
@@ -3,148 +3,100 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>SurfGO Elite | AnesNT</title>
7
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/dist/css/all.min.css">
8
  <style>
9
  :root {
10
  --primary: #6366f1;
11
- --secondary: #a78bfa;
12
- --bg-dark: #020617;
13
- --glass: rgba(255, 255, 255, 0.03);
14
- --glass-border: rgba(255, 255, 255, 0.1);
15
  }
16
 
17
- body, html {
18
- margin: 0; padding: 0; min-height: 100vh;
19
- font-family: 'Segoe UI', Tahoma, sans-serif;
20
- background-color: var(--bg-dark);
21
- color: white; scroll-behavior: smooth;
22
  }
23
 
24
- /* خلفية فضائية متدرجة */
25
- .bg-glow {
26
- position: fixed; top: 0; left: 0; width: 100%; height: 100%;
27
- background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #020617 100%);
28
- z-index: -1;
29
  }
30
 
31
- /* --- الواجهة الرئيسية (القسم الأول) --- */
32
- #home-view {
33
- display: flex; flex-direction: column; justify-content: center;
34
- align-items: center; height: 100vh;
35
- transition: all 0.7s cubic-bezier(0.85, 0, 0.15, 1);
36
  }
37
 
38
- .logo-area h1 {
39
- font-size: clamp(3.5rem, 12vw, 6rem); margin: 0; font-weight: 900;
40
- background: linear-gradient(to right, var(--primary), var(--secondary));
41
- -webkit-background-clip: text; -webkit-text-fill-color: transparent;
42
- filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
43
- cursor: pointer;
44
  }
45
 
46
- .anesnt-tag {
47
- font-size: 0.8rem; color: var(--secondary);
48
- letter-spacing: 5px; margin-bottom: 25px; opacity: 0.8;
49
- }
50
-
51
- /* تنسيق صندوق البحث (Google CSE) */
52
- .search-container {
53
- width: 90%; max-width: 700px;
54
- background: var(--glass);
55
- border: 1px solid var(--glass-border);
56
- padding: 10px; border-radius: 50px;
57
- backdrop-filter: blur(15px);
58
- box-shadow: 0 20px 50px rgba(0,0,0,0.5);
59
- }
60
-
61
- /* تعديلات CSS لإجبار جوجل على التناسق مع تصميمك */
62
- .gsc-control-cse { background: transparent !important; border: none !important; padding: 0 !important; }
63
- .gsc-input-box { border: none !important; background: transparent !important; }
64
- input.gsc-input { color: white !important; font-size: 1.2rem !important; background: none !important; }
65
- button.gsc-search-button {
66
- background-color: var(--primary) !important;
67
- border-radius: 40px !important;
68
- padding: 12px 25px !important;
69
- border: none !important;
70
- }
71
- .gsc-search-button svg { fill: white !important; }
72
-
73
- /* الروابط السريعة */
74
- .quick-links { display: flex; gap: 20px; margin-top: 50px; }
75
- .q-item {
76
- color: #94a3b8; font-size: 1.6rem; transition: 0.3s;
77
- background: var(--glass); width: 60px; height: 60px;
78
- display: flex; align-items: center; justify-content: center;
79
- border-radius: 20px; border: 1px solid var(--glass-border);
80
- }
81
- .q-item:hover { transform: translateY(-10px); color: white; background: var(--primary); }
82
 
83
- /* --- قسم النتائج (القسم الثاني) --- */
84
- #results-view {
85
- max-width: 1000px; margin: 0 auto; padding: 50px 20px;
86
- display: none; /* مخفي في البداية */
87
- animation: fadeIn 1s ease;
88
  }
89
 
90
- @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
 
 
91
 
92
- /* حالة البحث النشط */
93
- body.searching #home-view { height: 40vh; transform: scale(0.95); }
94
- body.searching #results-view { display: block; }
 
95
  </style>
96
  </head>
97
- <body id="main-body">
98
 
99
- <div class="bg-glow"></div>
 
 
 
 
 
 
100
 
101
- <section id="home-view">
102
- <div class="anesnt-tag">PROUDLY BY ANESNT</div>
103
- <div class="logo-area">
104
- <h1 onclick="window.location.reload()">SurfGO</h1>
105
- </div>
106
-
107
- <div class="search-container">
108
  <script async src="https://cse.google.com/cse.js?cx=75aa960081baa4f0c"></script>
109
- <div class="gcse-searchbox" data-enableHistory="true" data-autoComplete="true"></div>
110
- </div>
111
-
112
- <div class="quick-links">
113
- <a href="https://github.com" class="q-item"><i class="fab fa-github"></i></a>
114
- <a href="https://youtube.com" class="q-item"><i class="fab fa-youtube"></i></a>
115
- <a href="https://chatgpt.com" class="q-item"><i class="fas fa-robot"></i></a>
116
- <a href="#" class="q-item"><i class="fas fa-code"></i></a>
117
- </div>
118
- </section>
119
-
120
- <section id="results-view">
121
- <div class="gcse-searchresults"></div>
122
- </section>
123
-
124
- <script>
125
- // وظيفة لمراقبة عملية البحث
126
- function initSurfGO() {
127
- // التحقق إذا كان الرابط يحتوي على كلمة بحث (بعد ضغط المستخدم Enter)
128
- const urlParams = new URLSearchParams(window.location.search);
129
- if (urlParams.has('q')) {
130
- document.getElementById('main-body').classList.add('searching');
131
- }
132
- }
133
-
134
- // تشغيل التحقق عند تحميل الصفحة
135
- window.onload = initSurfGO;
136
-
137
- // تحسين إضافي: جعل الصفحة ترتفع للنتائج فور الضغط على زر البحث
138
- document.addEventListener('click', function(e) {
139
- if(e.target.closest('.gsc-search-button')) {
140
- setTimeout(() => {
141
- if(window.location.search.includes('q=')) {
142
- document.getElementById('main-body').classList.add('searching');
143
  }
144
- }, 500);
145
  }
146
- });
147
- </script>
148
 
 
 
 
 
 
 
 
 
 
149
  </body>
150
  </html>
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>SurfGO Elite</title>
7
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/dist/css/all.min.css">
8
  <style>
9
  :root {
10
  --primary: #6366f1;
11
+ --bg: #020617;
12
+ --glass: rgba(255, 255, 255, 0.05);
 
 
13
  }
14
 
15
+ body {
16
+ margin: 0; background: var(--bg); color: white;
17
+ font-family: 'Segoe UI', sans-serif; overflow-x: hidden;
 
 
18
  }
19
 
20
+ /* واجهة الاستقبال */
21
+ #hero {
22
+ height: 100vh; display: flex; flex-direction: column;
23
+ justify-content: center; align-items: center;
24
+ transition: 0.7s cubic-bezier(0.85, 0, 0.15, 1);
25
  }
26
 
27
+ .search-area {
28
+ width: 90%; max-width: 600px; position: relative;
 
 
 
29
  }
30
 
31
+ /* صندوق بحث مخصص بالكامل */
32
+ .custom-input {
33
+ width: 100%; padding: 20px 30px; border-radius: 50px;
34
+ border: 1px solid rgba(255,255,255,0.1); background: var(--glass);
35
+ color: white; font-size: 1.2rem; outline: none;
36
+ backdrop-filter: blur(10px); transition: 0.3s;
37
  }
38
 
39
+ .custom-input:focus { border-color: var(--primary); box-shadow: 0 0 25px rgba(99, 102, 241, 0.3); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
+ /* منطقة النتائج */
42
+ #results-container {
43
+ max-width: 1000px; margin: 0 auto; padding: 20px;
44
+ display: none; opacity: 0; transition: 0.5s;
 
45
  }
46
 
47
+ /* التنسيق عند البحث */
48
+ body.active-search #hero { height: 35vh; }
49
+ body.active-search #results-container { display: block; opacity: 1; }
50
 
51
+ /* تعديل مظهر نتائج جوجل لتناسب الوضع الداكن */
52
+ .gsc-control-cse { background: transparent !important; border: none !important; }
53
+ .gs-title, .gs-snippet { color: #cbd5e1 !important; }
54
+ .gs-title b { color: var(--primary) !important; }
55
  </style>
56
  </head>
57
+ <body id="surfgo-body">
58
 
59
+ <section id="hero">
60
+ <h1 style="font-size: 4.5rem; margin-bottom: 20px; background: linear-gradient(to right, #6366f1, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">SurfGO</h1>
61
+ <div class="search-area">
62
+ <input type="text" id="userQuery" class="custom-input" placeholder="ابحث في SurfGO..." onkeypress="doSearch(event)">
63
+ <i class="fa fa-search" style="position: absolute; left: 25px; top: 25px; color: var(--primary);"></i>
64
+ </div>
65
+ </section>
66
 
67
+ <section id="results-container">
 
 
 
 
 
 
68
  <script async src="https://cse.google.com/cse.js?cx=75aa960081baa4f0c"></script>
69
+ <div class="gcse-searchresults-only"></div>
70
+ </section>
71
+
72
+ <script>
73
+ function doSearch(event) {
74
+ if (event.key === 'Enter') {
75
+ const q = document.getElementById('userQuery').value;
76
+ if (q.trim() !== "") {
77
+ // 1. تفعيل وضع البحث في الواجهة
78
+ document.getElementById('surfgo-body').classList.add('active-search');
79
+
80
+ // 2. إرسال الكلمة لمحرك البحث المدمج
81
+ const element = google.search.cse.element.getElement('results-only-0');
82
+ if (element) {
83
+ element.execute(q);
84
+ } else {
85
+ // حل احتياطي إذا لم يتم تحميل العنصر بعد
86
+ window.location.href = window.location.pathname + '?q=' + encodeURIComponent(q);
87
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  }
89
+ }
90
  }
 
 
91
 
92
+ // التأكد من ظهور النتائج عند العودة أو تحديث الصفحة
93
+ window.onload = function() {
94
+ const params = new URLSearchParams(window.location.search);
95
+ if (params.has('q')) {
96
+ document.getElementById('surfgo-body').classList.add('active-search');
97
+ document.getElementById('userQuery').value = params.get('q');
98
+ }
99
+ };
100
+ </script>
101
  </body>
102
  </html>