-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
258 lines (198 loc) · 10.3 KB
/
index.html
File metadata and controls
258 lines (198 loc) · 10.3 KB
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Construction Company</title>
<script src="https://cdn.tailwindcss.com"></script>
<!-- Smooth Page Load with Translate Effect -->
<style>
body {
opacity: 0;
transform: translateY(20px);
transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
document.body.style.opacity = 1;
document.body.style.transform = "translateY(0)";
});
</script>
</head>
<body class="bg-gray-100 m-0 p-0">
<div id="header"></div>
<!--hero section- -->
<section class="relative bg-cover bg-center h-[80vh] flex items-center justify-center text-center text-white" style="background-image: url(img/back1.jpg);">
<div class="bg-black bg-opacity-70 w-full h-full absolute top-0 left-0"></div>
<div class="relative z-10 p-6 max-w-3xl animate-fade-in">
<h1 class="text-5xl font-extrabold animate-slide-up">From Vision to Reality – We Build Excellence</h1>
<p class="mt-4 text-lg animate-slide-up">We craft enduring structures with cutting-edge innovation and sustainability in mind.</p>
<a href="startaproject.html" class="mt-6 inline-block bg-yellow-500 text-gray-900 font-bold px-6 py-3 rounded-md shadow-md hover:bg-yellow-400 animate-fade-in glow-button">Start Your Project</a>
</div>
<style>
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.animate-fade-in {
animation: fadeIn 1s ease-in-out;
}
.animate-slide-up {
animation: slideUp 1s ease-in-out;
}
</style>
</section>
<!-- about section -->
<section id="about-work" class="relative bg-gray-100 py-16 flex flex-col items-center text-center text-gray-900 p-6 opacity-0 transform translate-y-10 transition-all duration-1000 ease-out">
<div class="bg-white p-8 rounded-lg shadow-lg max-w-4xl transform scale-90 transition-transform duration-1000 ease-out">
<h2 class="text-4xl font-bold">About Our Work</h2>
<p class="mt-4 text-lg">We specialize in delivering high-quality construction projects that stand the test of time. From commercial skyscrapers to residential housing, our team ensures precision, durability, and innovation in every project.</p>
</div>
<div class="mt-10 grid grid-cols-1 md:grid-cols-3 gap-6 max-w-6xl">
<div class="bg-white p-6 rounded-lg shadow-md transition-transform duration-500 hover:scale-105">
<img src="img/10.jpg" alt="Construction Site" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-2xl font-semibold">Commercial Construction</h3>
<p class="mt-2 text-gray-600">We construct cutting-edge office buildings, malls, and industrial complexes with superior quality.</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md transition-transform duration-500 hover:scale-105">
<img src="img/3.jpg" alt="Building in Progress" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-2xl font-semibold">Residential Projects</h3>
<p class="mt-2 text-gray-600">Our team builds modern, comfortable, and sustainable homes that last generations.</p>
</div>
<div class="bg-white p-6 rounded-lg shadow-md transition-transform duration-500 hover:scale-105">
<img src="img/building-cons.jpg" alt="Modern Infrastructure" class="w-full h-48 object-cover rounded-lg mb-4">
<h3 class="text-2xl font-semibold">Infrastructure Development</h3>
<p class="mt-2 text-gray-600">From bridges to highways, we develop strong and reliable infrastructure for communities.</p>
</div>
</div>
</section>
<!-- Video Background Section with Unique Effects -->
<section class="relative w-full min-h-screen flex items-center justify-center overflow-hidden m-0 z-10">
<!-- Background Video -->
<video autoplay muted loop class="absolute top-0 left-0 w-full h-full object-cover">
<source src="vid/v1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<!-- Dark Overlay + Blur for Better Readability -->
<div class="absolute top-0 left-0 w-full h-full bg-black bg-opacity-50 backdrop-blur-sm"></div>
<!-- Content Over Video -->
<div class="relative z-10 flex flex-col items-center justify-center text-center px-6 opacity-0 translate-y-10 transition-all duration-1000 ease-in-out" id="content">
<h1 class="text-4xl md:text-6xl font-extrabold text-white drop-shadow-lg">Shaping the Future of Construction</h1>
<p class="mt-4 text-lg md:text-xl text-gray-300 max-w-3xl">
We innovate, design, and build with precision and excellence.
</p>
<a href="discovermore.html" class="mt-6 px-6 py-3 bg-yellow-500 text-black font-semibold rounded-lg shadow-lg hover:bg-yellow-600 transition glow-button">
Discover More
</a>
</div>
</section>
<div class="p-3 bg-gray-900">
<div class="construction-text">
<p>Building the future, one foundation at a time. Our expertise turns blueprints into landmarks, crafting spaces where innovation meets durability. From towering skyscrapers to sustainable homes, we engineer excellence with precision and passion. Every brick we lay is a testament to strength, every design a blend of aesthetics and functionality. Elevate your vision—let’s construct greatness together.</p>
</div>
<style>
.construction-text {
padding: 20px;
margin: 30px auto;
max-width: 800px;
font-size: 18px;
text-align: center;
color: #fff;
background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(45, 45, 45, 0.9));
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(255, 165, 0, 0.8);
border: 3px solid transparent;
animation: glowBorder 2s infinite alternate ease-in-out;
}
@keyframes glowBorder {
from {
border-color: rgba(255, 215, 0, 1);
box-shadow: 0px 0px 20px rgba(255, 215, 0, 1);
}
to {
border-color: rgb(255, 107, 107);
box-shadow: 0px 0px 30px rgba(255, 165, 0, 1);
}
}
</style>
</div>
<!-- Next Section -->
<section id="next-section" class="relative w-full min-h-screen flex flex-col items-center justify-center bg-cover bg-center bg-fixed text-white m-0"
style="background-image: url('img/back3.jpg');">
<!-- Dark Overlay for Readability -->
<div class="absolute top-0 left-0 w-full h-full bg-black bg-opacity-50 backdrop-blur-sm"></div>
<!-- Animated Content with Extra Margin -->
<div class="relative z-10 opacity-0 translate-y-10 transition-all duration-1000 ease-in-out text-center" id="next-content">
<h2 class="text-4xl md:text-5xl font-bold">Our Commitment to Excellence</h2>
<p class="mt-6 text-lg max-w-3xl px-6">
From groundbreaking ideas to flawless execution, we prioritize quality, innovation, and client satisfaction.
</p>
<br>
<a href="discovermore.html" class="mt-8 px-6 py-3 bg-yellow-500 text-black font-semibold rounded-lg shadow-lg hover:bg-yellow-600 transition glow-button">
Learn More
</a>
<style>
.glow-button {
position: relative;
overflow: hidden;
box-shadow: 0px 0px 5px rgba(255, 215, 0, 0.7);
transition: box-shadow 0.3s ease-in-out;
}
.glow-button:hover {
box-shadow: 0px 0px 10px rgba(255, 215, 0, 1);
}
</style>
</div>
</section>
<!-- Footer -->
<div id="footer"></div>
<script>
async function loadComponent(id, file) {
const response = await fetch(file);
const text = await response.text();
document.getElementById(id).innerHTML = text;
if (id === 'header') {
document.getElementById('menu-toggle').addEventListener('click', function () {
document.getElementById('menu').classList.toggle('hidden');
});
}
}
loadComponent('header', 'header.html');
loadComponent('footer', 'footer.html');
// overlay section on index page
document.addEventListener("DOMContentLoaded", function() {
let aboutWork = document.getElementById("about-work");
setTimeout(() => {
aboutWork.classList.remove("opacity-0", "translate-y-10");
aboutWork.classList.add("opacity-100", "translate-y-0");
}, 1500); // Delay animation for better visibility after hero section
});
<!-- JavaScript for Scroll Animation -->
document.addEventListener("scroll", function() {
let content = document.getElementById("content");
let position = content.getBoundingClientRect().top;
let screenPosition = window.innerHeight / 1.3;
if (position < screenPosition) {
content.classList.remove("opacity-0", "translate-y-10");
}
});
document.addEventListener("DOMContentLoaded", function () {
let content = document.getElementById("next-content");
function handleScroll() {
let position = content.getBoundingClientRect().top;
let screenPosition = window.innerHeight / 1.3;
if (position < screenPosition) {
content.classList.add("opacity-100", "translate-y-0");
content.classList.remove("opacity-0", "translate-y-10");
}
}
// Run on scroll
window.addEventListener("scroll", handleScroll);
});
</script>
</html>