|
93 | 93 | height: 50px;
|
94 | 94 | cursor: pointer;
|
95 | 95 | }
|
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 | + |
112 | 110 | </style>
|
113 | 111 | </head>
|
114 | 112 | <body>
|
| 113 | + <!-- Language Selector --> |
115 | 114 | <div style="position: absolute; top: 10px; left: 10px;">
|
116 | 115 | <img src="media/Tlogo.png" alt="Language" style="height: 40px; margin-left: 2px;">
|
117 | 116 | <select id="languageSelect" style="margin-left: 10px; position: relative; top: -12px;">
|
118 | 117 | <option value="en">English</option>
|
119 | 118 | <option value="ar">العربية</option>
|
120 | 119 | </select>
|
121 | 120 | </div>
|
122 |
| - <!-- Background Video --> |
| 121 | + |
| 122 | + <!-- Background Video --> |
123 | 123 | <video class="background-video" autoplay muted playsinline id="backgroundVideo">
|
124 | 124 | <source src="media/intro.mp4" type="video/mp4">
|
125 | 125 | Your browser does not support the video tag.
|
126 | 126 | </video>
|
| 127 | + |
| 128 | + <!-- Label Buttons --> |
127 | 129 | <div class="label-container">
|
128 | 130 | <div class="label" onclick="location.href='apps.html'">Applications</div>
|
129 | 131 | <div class="label" onclick="location.href='services.html'">Our Services</div>
|
130 | 132 | <div class="label" onclick="location.href='blog.html'">BLOG</div>
|
131 | 133 | <div class="label" onclick="location.href='about.html'">About us</div>
|
132 | 134 | <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> |
135 | 137 | </div>
|
136 | 138 | <script>
|
137 | 139 | document.getElementById("languageSelect").addEventListener("change", function () {
|
|
0 commit comments