-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
183 lines (162 loc) · 5.52 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fekra! Remove Virtual Assistance</title>
<link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap" rel="stylesheet">
<link rel="icon" type="Tlogo.png" href="media/Tlogo.png">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Cairo', sans-serif;
flex-direction: column;
background: url('media/back.webp') center center no-repeat;
background-size: 100% 100%;
position: relative;
overflow: hidden;
}
.icon img {
width: 80%; /* Adjust image size */
height: auto;
}
#languageSelect {
font-size: 16px;
padding: 5px;
background-color: transparent;
color: white;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
border: 1px solid;
border-image: linear-gradient(45deg, #d4af37, #f8f8ff, #d4af37) 1;
border-radius: 5px;
outline: none;
appearance: none;
cursor: pointer;
position: relative; /* Ensure it stays in place */
top: -12px; /* Adjust as needed */
}
#languageSelect:focus {
box-shadow: 0 0 8px rgba(212, 175, 55, 0.8); /* Add glow effect when focused */
}
#languageSelect option {
color: black;
background-color: transparent; /* Keep background transparent */
}
.label-container {
position: relative;
z-index: 1; /* Bring buttons in front of the video */
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 60px;
}
.label {
font-size: 24px;
direction: rtl;
padding: 10px 20px;
border: 1px solid black;
border-radius: 5px;
cursor: pointer;
text-align: center;
background-color: #D6B77E; /* Darker sand color */
}
.label:hover {
background-color: #e0e0e0;
}
/* Style specifically for the "Contact Us" label */
.label:last-child {
background-color: #8c6e4f; /* Even darker sand color */
}
#contact-us-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.contact-options {
display: flex;
gap: 10px;
justify-content: center;
align-items: center;
}
.contact-options img {
width: 50px;
height: 50px;
cursor: pointer;
}
#introVideo {
position: absolute;
top: 80px; /* Position the video just below the logo and language select */
left: 0;
width: 100%; /* Full width */
max-height: 50vh; /* Limit the height to 50% of the viewport height */
object-fit: cover; /* Scale the video proportionally */
z-index: -1; /* Keep the video behind the other elements */
}
</style>
</head>
<body>
<div style="position: absolute; top: 10px; left: 10px;">
<img src="media/Tlogo.png" alt="Language" style="height: 40px; margin-left: 2px;">
<select id="languageSelect" style="margin-left: 10px; position: relative; top: -12px;">
<option value="en">English</option>
<option value="ar">العربية</option>
</select>
</div>
<video id="introVideo" autoplay muted playsinline>
<source src="media/intro.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="label-container">
<div class="label" onclick="location.href='apps.html'">Applications</div>
<div class="label" onclick="location.href='services.html'">Our Services</div>
<div class="label" onclick="location.href='blog.html'">BLOG</div>
<div class="label" onclick="location.href='about.html'">About us</div>
<div id="contact-us-container">
<div id="contact-us-button" class="label">Contact us</div>
</div>
</div>
<script>
window.onload = function() {
var video = document.getElementById('introVideo');
video.onended = function() {
video.pause();
};
};
document.getElementById("languageSelect").addEventListener("change", function () {
const selectedValue = this.value;
if (selectedValue === "ar") {
window.location.href = "arabic.html";
} else if (selectedValue === "en") {
window.location.href = "index.html"; // Adjust to your English page if needed
}
});
//contact us
document.getElementById('contact-us-button').addEventListener('click', function () {
// Hide the "Contact us" button
this.style.display = 'none';
// Create a container for the new buttons
const contactOptions = document.createElement('div');
contactOptions.classList.add('contact-options');
// WhatsApp button
const whatsappButton = document.createElement('img');
whatsappButton.src = 'media/whatsapp.png';
whatsappButton.alt = 'WhatsApp';
whatsappButton.onclick = () => window.open('https://wa.me/201060469453?text=Hi', '_blank');
contactOptions.appendChild(whatsappButton);
// Outlook button
const outlookButton = document.createElement('img');
outlookButton.src = 'media/outlook.png';
outlookButton.alt = 'Outlook';
outlookButton.onclick = () => window.location.href = 'mailto:fekrabusinesssolutions@gmail.com';
contactOptions.appendChild(outlookButton);
// Append the new buttons to the container
document.getElementById('contact-us-container').appendChild(contactOptions);
});
</script>
</body>
</html>