Update index.html
Browse files- index.html +97 -27
index.html
CHANGED
@@ -20,20 +20,41 @@
|
|
20 |
|
21 |
nav {
|
22 |
background-color: #333;
|
23 |
-
padding:
|
24 |
position: sticky;
|
25 |
top: 0;
|
26 |
z-index: 1000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
.nav-list {
|
30 |
display: flex;
|
31 |
-
justify-content: center;
|
32 |
gap: 2rem;
|
33 |
list-style: none;
|
34 |
-
|
35 |
-
margin: 0 auto;
|
36 |
-
position: relative;
|
37 |
}
|
38 |
|
39 |
.nav-list a {
|
@@ -43,6 +64,22 @@
|
|
43 |
transition: all 0.3s;
|
44 |
padding: 0.5rem 1rem;
|
45 |
border-radius: 4px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
}
|
47 |
|
48 |
.nav-list a:hover {
|
@@ -86,6 +123,11 @@
|
|
86 |
background-color: #ff7961;
|
87 |
border-radius: 10px;
|
88 |
padding: 2rem;
|
|
|
|
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
.logo {
|
@@ -132,6 +174,7 @@
|
|
132 |
|
133 |
.button-primary:hover {
|
134 |
background-color: #444;
|
|
|
135 |
}
|
136 |
|
137 |
.button-secondary {
|
@@ -142,6 +185,7 @@
|
|
142 |
.button-secondary:hover {
|
143 |
background-color: #333;
|
144 |
color: white;
|
|
|
145 |
}
|
146 |
|
147 |
.capabilities {
|
@@ -160,10 +204,13 @@
|
|
160 |
padding: 1.5rem;
|
161 |
border-radius: 8px;
|
162 |
transition: transform 0.3s;
|
|
|
|
|
163 |
}
|
164 |
|
165 |
.capability:hover {
|
166 |
transform: translateY(-5px);
|
|
|
167 |
}
|
168 |
|
169 |
.icon {
|
@@ -201,6 +248,12 @@
|
|
201 |
border-radius: 10px;
|
202 |
overflow: hidden;
|
203 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
}
|
205 |
|
206 |
.featured-image img {
|
@@ -215,30 +268,32 @@
|
|
215 |
}
|
216 |
|
217 |
@media (max-width: 768px) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
.menu-toggle {
|
219 |
display: block;
|
220 |
-
position: absolute;
|
221 |
-
left: 1rem;
|
222 |
-
top: 1rem;
|
223 |
-
z-index: 1001;
|
224 |
}
|
225 |
|
226 |
.nav-list {
|
227 |
display: none;
|
228 |
-
position: absolute;
|
229 |
-
top: 100%;
|
230 |
-
right: 0;
|
231 |
width: 100%;
|
|
|
|
|
|
|
232 |
background-color: #333;
|
233 |
-
padding: 1rem;
|
234 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
235 |
}
|
236 |
|
237 |
.nav-list.active {
|
238 |
display: flex;
|
239 |
-
flex-direction: column;
|
240 |
-
align-items: center;
|
241 |
-
gap: 1rem;
|
242 |
}
|
243 |
|
244 |
.nav-list a {
|
@@ -247,6 +302,10 @@
|
|
247 |
padding: 0.75rem;
|
248 |
}
|
249 |
|
|
|
|
|
|
|
|
|
250 |
.hero-content,
|
251 |
.featured-content {
|
252 |
flex-direction: column;
|
@@ -277,19 +336,32 @@
|
|
277 |
.featured-section {
|
278 |
padding: 2rem 1rem;
|
279 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
}
|
281 |
</style>
|
282 |
</head>
|
283 |
<body>
|
284 |
<nav>
|
285 |
-
<
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
<
|
291 |
-
|
292 |
-
|
|
|
|
|
|
|
|
|
|
|
293 |
</nav>
|
294 |
|
295 |
<main class="hero">
|
@@ -352,11 +424,9 @@
|
|
352 |
navList.classList.toggle('active');
|
353 |
}
|
354 |
|
355 |
-
// Close menu when clicking outside
|
356 |
document.addEventListener('click', function(event) {
|
357 |
const nav = document.querySelector('nav');
|
358 |
const navList = document.querySelector('.nav-list');
|
359 |
-
const menuToggle = document.querySelector('.menu-toggle');
|
360 |
|
361 |
if (!nav.contains(event.target) && navList.classList.contains('active')) {
|
362 |
navList.classList.remove('active');
|
|
|
20 |
|
21 |
nav {
|
22 |
background-color: #333;
|
23 |
+
padding: 0.5rem 2rem;
|
24 |
position: sticky;
|
25 |
top: 0;
|
26 |
z-index: 1000;
|
27 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
28 |
+
}
|
29 |
+
|
30 |
+
.nav-container {
|
31 |
+
display: flex;
|
32 |
+
align-items: center;
|
33 |
+
justify-content: space-between;
|
34 |
+
max-width: 1200px;
|
35 |
+
margin: 0 auto;
|
36 |
+
}
|
37 |
+
|
38 |
+
.nav-logo {
|
39 |
+
display: flex;
|
40 |
+
align-items: center;
|
41 |
+
}
|
42 |
+
|
43 |
+
.nav-logo img {
|
44 |
+
height: 50px;
|
45 |
+
margin-left: 1rem;
|
46 |
+
transition: transform 0.3s;
|
47 |
+
}
|
48 |
+
|
49 |
+
.nav-logo img:hover {
|
50 |
+
transform: scale(1.05);
|
51 |
}
|
52 |
|
53 |
.nav-list {
|
54 |
display: flex;
|
|
|
55 |
gap: 2rem;
|
56 |
list-style: none;
|
57 |
+
align-items: center;
|
|
|
|
|
58 |
}
|
59 |
|
60 |
.nav-list a {
|
|
|
64 |
transition: all 0.3s;
|
65 |
padding: 0.5rem 1rem;
|
66 |
border-radius: 4px;
|
67 |
+
position: relative;
|
68 |
+
}
|
69 |
+
|
70 |
+
.nav-list a::after {
|
71 |
+
content: '';
|
72 |
+
position: absolute;
|
73 |
+
bottom: 0;
|
74 |
+
left: 0;
|
75 |
+
width: 0;
|
76 |
+
height: 2px;
|
77 |
+
background-color: #ff7961;
|
78 |
+
transition: width 0.3s;
|
79 |
+
}
|
80 |
+
|
81 |
+
.nav-list a:hover::after {
|
82 |
+
width: 100%;
|
83 |
}
|
84 |
|
85 |
.nav-list a:hover {
|
|
|
123 |
background-color: #ff7961;
|
124 |
border-radius: 10px;
|
125 |
padding: 2rem;
|
126 |
+
transition: transform 0.3s;
|
127 |
+
}
|
128 |
+
|
129 |
+
.hero-image:hover {
|
130 |
+
transform: translateY(-5px);
|
131 |
}
|
132 |
|
133 |
.logo {
|
|
|
174 |
|
175 |
.button-primary:hover {
|
176 |
background-color: #444;
|
177 |
+
transform: translateY(-2px);
|
178 |
}
|
179 |
|
180 |
.button-secondary {
|
|
|
185 |
.button-secondary:hover {
|
186 |
background-color: #333;
|
187 |
color: white;
|
188 |
+
transform: translateY(-2px);
|
189 |
}
|
190 |
|
191 |
.capabilities {
|
|
|
204 |
padding: 1.5rem;
|
205 |
border-radius: 8px;
|
206 |
transition: transform 0.3s;
|
207 |
+
background-color: white;
|
208 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
209 |
}
|
210 |
|
211 |
.capability:hover {
|
212 |
transform: translateY(-5px);
|
213 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
214 |
}
|
215 |
|
216 |
.icon {
|
|
|
248 |
border-radius: 10px;
|
249 |
overflow: hidden;
|
250 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
251 |
+
transition: transform 0.3s;
|
252 |
+
}
|
253 |
+
|
254 |
+
.featured-image:hover {
|
255 |
+
transform: translateY(-5px);
|
256 |
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
|
257 |
}
|
258 |
|
259 |
.featured-image img {
|
|
|
268 |
}
|
269 |
|
270 |
@media (max-width: 768px) {
|
271 |
+
.nav-container {
|
272 |
+
flex-direction: column;
|
273 |
+
align-items: flex-start;
|
274 |
+
}
|
275 |
+
|
276 |
+
.nav-logo {
|
277 |
+
width: 100%;
|
278 |
+
justify-content: space-between;
|
279 |
+
padding: 0.5rem 0;
|
280 |
+
}
|
281 |
+
|
282 |
.menu-toggle {
|
283 |
display: block;
|
|
|
|
|
|
|
|
|
284 |
}
|
285 |
|
286 |
.nav-list {
|
287 |
display: none;
|
|
|
|
|
|
|
288 |
width: 100%;
|
289 |
+
flex-direction: column;
|
290 |
+
padding: 1rem 0;
|
291 |
+
gap: 0.5rem;
|
292 |
background-color: #333;
|
|
|
|
|
293 |
}
|
294 |
|
295 |
.nav-list.active {
|
296 |
display: flex;
|
|
|
|
|
|
|
297 |
}
|
298 |
|
299 |
.nav-list a {
|
|
|
302 |
padding: 0.75rem;
|
303 |
}
|
304 |
|
305 |
+
.nav-list a::after {
|
306 |
+
display: none;
|
307 |
+
}
|
308 |
+
|
309 |
.hero-content,
|
310 |
.featured-content {
|
311 |
flex-direction: column;
|
|
|
336 |
.featured-section {
|
337 |
padding: 2rem 1rem;
|
338 |
}
|
339 |
+
|
340 |
+
.hero-image {
|
341 |
+
padding: 1rem;
|
342 |
+
}
|
343 |
+
|
344 |
+
.logo {
|
345 |
+
width: 200px;
|
346 |
+
}
|
347 |
}
|
348 |
</style>
|
349 |
</head>
|
350 |
<body>
|
351 |
<nav>
|
352 |
+
<div class="nav-container">
|
353 |
+
<div class="nav-logo">
|
354 |
+
<img src="https://ufastpro.com/wp-content/uploads/2024/12/3.png" alt="شعار الذكاء الاصطناعي">
|
355 |
+
<button class="menu-toggle" onclick="toggleMenu()">☰</button>
|
356 |
+
</div>
|
357 |
+
<ul class="nav-list">
|
358 |
+
<li><a href="#home">الموقع</a></li>
|
359 |
+
<li><a href="#try">جرب سبيدي</a></li>
|
360 |
+
<li><a href="#about">من نحن</a></li>
|
361 |
+
<li><a href="#capabilities">قدرات سبيدي</a></li>
|
362 |
+
<li><a href="#vision">رؤيتنا</a></li>
|
363 |
+
</ul>
|
364 |
+
</div>
|
365 |
</nav>
|
366 |
|
367 |
<main class="hero">
|
|
|
424 |
navList.classList.toggle('active');
|
425 |
}
|
426 |
|
|
|
427 |
document.addEventListener('click', function(event) {
|
428 |
const nav = document.querySelector('nav');
|
429 |
const navList = document.querySelector('.nav-list');
|
|
|
430 |
|
431 |
if (!nav.contains(event.target) && navList.classList.contains('active')) {
|
432 |
navList.classList.remove('active');
|