Skip to content

Commit ab30f0f

Browse files
Update index.html
1 parent 5f0cd93 commit ab30f0f

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

index.html

+21-19
Original file line numberDiff line numberDiff line change
@@ -93,45 +93,47 @@
9393
height: 50px;
9494
cursor: pointer;
9595
}
96-
.background-video {
97-
position: fixed;
98-
top: 0;
99-
left: 0;
100-
width: 100%;
101-
height: 100%;
102-
object-fit: cover;
103-
z-index: -1;
104-
}
105-
.content {
106-
position: relative;
107-
z-index: 1;
108-
font-family: Arial, sans-serif;
109-
text-align: center;
110-
margin-top: 20%;
111-
}
96+
.background-video {
97+
position: absolute; /* Ensures it overlays content */
98+
top: 50px; /* Adjust as needed to position it below the language selector */
99+
left: 0;
100+
width: 100%; /* Keep full width or adjust */
101+
max-height: 300px; /* Limit height to avoid fullscreen effect */
102+
object-fit: cover; /* Maintain aspect ratio */
103+
z-index: 0; /* Ensure it appears above the background but below content */
104+
}
105+
.label-container {
106+
position: relative; /* Keeps labels on top of the video */
107+
z-index: 1;
108+
}
109+
112110
</style>
113111
</head>
114112
<body>
113+
<!-- Language Selector -->
115114
<div style="position: absolute; top: 10px; left: 10px;">
116115
<img src="media/Tlogo.png" alt="Language" style="height: 40px; margin-left: 2px;">
117116
<select id="languageSelect" style="margin-left: 10px; position: relative; top: -12px;">
118117
<option value="en">English</option>
119118
<option value="ar">العربية</option>
120119
</select>
121120
</div>
122-
<!-- Background Video -->
121+
122+
<!-- Background Video -->
123123
<video class="background-video" autoplay muted playsinline id="backgroundVideo">
124124
<source src="media/intro.mp4" type="video/mp4">
125125
Your browser does not support the video tag.
126126
</video>
127+
128+
<!-- Label Buttons -->
127129
<div class="label-container">
128130
<div class="label" onclick="location.href='apps.html'">Applications</div>
129131
<div class="label" onclick="location.href='services.html'">Our Services</div>
130132
<div class="label" onclick="location.href='blog.html'">BLOG</div>
131133
<div class="label" onclick="location.href='about.html'">About us</div>
132134
<div id="contact-us-container">
133-
<div id="contact-us-button" class="label">Contact us</div>
134-
</div>
135+
<div id="contact-us-button" class="label">Contact us</div>
136+
</div>
135137
</div>
136138
<script>
137139
document.getElementById("languageSelect").addEventListener("change", function () {

0 commit comments

Comments
 (0)