-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdreamHouse.html
More file actions
437 lines (381 loc) · 12.6 KB
/
dreamHouse.html
File metadata and controls
437 lines (381 loc) · 12.6 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap" rel="stylesheet">
<title>Build your dream house</title>
<style>
* {
margin: 0;
padding: 0;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
html {
scroll-behavior: smooth;
}
.container {
margin: 0;
padding: 0;
width: 100%;
height: auto;
}
.page1 {
width: 100%;
height: 645px;
background: linear-gradient(to right, rgba(241, 191, 97, 0.959), rgba(0, 0, 0, 0.973));
background-size: cover;
background-position: center;
position: relative;
overflow: hidden;
}
/* Text block inside page1 (title, subtitle, paragraph, button) */
.passage {
padding: 0;
width: 60%;
height: 400px;
margin: 12px;
padding: 120px 0 0 90px;
opacity: none;
}
/* Background image for page1, behind text */
#bc-img {
width: 100%;
height: 645px;
background: transparent;
opacity: 0.5;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
.text,
.passage,
.title,
.sub-title {
position: relative;
z-index: 2;
}
.title {
color: white;
font-weight: bolder;
font-size: 48px;
width: 55%;
height: 120px;
margin: 0;
padding: 2px;
}
.sub-title {
width: 100%;
height: 60px;
color: #f8ce81;
font-size: 18px;
text-wrap: 2px solid black;
font-family: 'Dancing Script', cursive;
text-shadow: 2px 2px 8px rgba(184, 153, 153, 0.884);
padding: 2px;
margin: 0;
padding: 4px;
}
.text {
padding: 2px;
width: 60%;
height: 120px;
font-size: 23px;
color: #251a06;
}
.button {
width: 20%;
height: 42px;
border-radius: 25px;
font-size: 20px;
color: rgb(228, 219, 219);
background-color: #ac560f;
border-color: #99680c;
}
/* ---------- IMAGE DECORATION SECTION ---------- */
/* Container for stacked decorative images */
.imgs {
width: 55%;
height: 539px;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 4px;
margin: 2px;
}
#page-decoration {
border: 23px solid #f5f2f2;
margin: 6px;
border-radius: 12px;
box-shadow: 20px, 12px;
}
.img1 {
width: 220px;
height: auto;
position: absolute;
top: 12px;
left: 70%;
box-shadow: 4px 12px 8px rgba(0, 0, 0, 0.5);
}
.img2 {
width: 190px;
height: auto;
position: absolute;
top: 190px;
left: 59%;
box-shadow: 4px 12px 8px rgba(0, 0, 0, 0.5);
}
.img3 {
width: 300px;
height: auto;
position: absolute;
top: 350px;
left: 78%;
box-shadow: 4px 12px 8px rgba(0, 0, 0, 0.5);
}
.img4 {
width: 150px;
height: 170px;
position: absolute;
top: 145px;
left: 81%;
box-shadow: 1px 8px 6px rgba(0, 0, 0, 0.5);
}
.img5 {
width: 310px;
height: 170px;
position: absolute;
top: 380px;
left: 49%;
box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.5);
}
/* ---------- PAGE 2 ---------- */
/* Second section with background and content */
.page2 {
padding: 6px;
margin: 0;
width: 100%;
height: 789px;
background: #949494;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
flex: 0 0 auto;
background-size: cover;
background-position: center;
position: relative;
overflow: hidden;
padding: 2px;
margin: 0;
}
/* Background image for page1, behind text */
#bc-img1 {
width: 100%;
height: 799px;
background: transparent;
opacity: 0.5;
position: absolute;
top: 0;
left: 0;
z-index: 0;
padding: 0;
}
.box,
p {
background: transparent !important;
position: relative;
z-index: 2;
}
.image1 {
width: 510px;
height: 480px;
margin: 50px;
border: 12px solid #8a8484;
border-radius: 250px;
padding: 0;
}
/* Circular image box layout */
.layer2 {
width: 660px;
height: 640px;
background-color: #3b3b3b;
border-radius: 350px;
padding-left: 12px;
margin: 12px;
align-content: center;
}
.layer1 {
width: 690px;
height: 670px;
background-color: #adacac;
border: 20px solid #adacac;
border-radius: 350px;
padding: 12px;
margin: 12px;
align-content: center;
box-shadow: 2px 5px 8px rgb(0, 0, 0);
}
.text1 {
padding: 0 25px 0 0;
margin: 33px;
font-size: 24px;
color: rgb(243, 243, 239);
width: 450px;
height: 260px;
}
/* ---------- PAGE TRANSITIONS ---------- */
/* Animation when scrolling hides one page and shows another */
.page1,
.page2 {
transition: opacity 1s ease, transform 0.5s ease;
}
.page1.hidden {
opacity: 0;
transform: translateY(-50px);
pointer-events: none;
}
.page2.hidden {
opacity: 0;
transform: translateY(50px);
pointer-events: none;
}
.page1,
.page2 {
opacity: 1;
transform: translateY(0);
}
.footer {
width: 100%;
height: 300px;
background-color: #636262;
padding: 12px;
margin: 0;
position: relative;
text-align: center;
}
#info {
padding: 10px;
padding-left: 40px;
width: 50%;
height: auto;
margin: 2px;
}
#link {
color: #e7e7e7;
font-size: 16px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-weight: normal;
font-style: normal;
text-decoration: none;
transition: 0ms;
padding-top: 80px;
}
.author,
a {
width: 100%;
height: auto;
text-align: center;
padding: 2px;
margin: 0;
color: #a3957b;
font-size: 20px;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<!-- Full background image for the landing section -->
<div class="page1">
<img id="bc-img"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/169/664/original/building_%282%29.jpg?1751703866"
alt="">
<div class="passage">
<!-- Main title of the page -->
<h1 class="title">BUILD YOUR DREAM HOUSE</h1>
<h5 class="sub-title">Design. Build. Live.</h5>
<p class="text">
Discover a new way to design your perfect home.
Unique ideas, modern touch,
and classic beauty — all in one place.</p>
<!-- Button linking to the next section -->
<button class="button"><a href="#page2" class="button">learn more</a></button>
</div>
<div class="imgs">
<!-- Decorative images for visual appeal or background design -->
<img id="page-decoration" class="img1"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/169/665/original/building_%281%29.jpg?1751704475"
alt="">
<img id="page-decoration" class="img2"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/170/515/original/john-fornander-Id7u0EkTjBE-unsplash.jpg?1752516918"
alt="">
<img id="page-decoration" class="img3"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/169/668/original/building_%284%29.jpg?1751704914"
alt="">
<img id="page-decoration" class="img4"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/170/517/original/vladimir-yelizarov-UHMiG23GBLM-unsplash.jpg?1752517590"
alt="">
<img id="page-decoration" class="img5"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/170/518/original/collov-home-design-js8AQlw71HA-unsplash.jpg?1752518479"
alt="">
</div>
</div>
<div class="page2" id="page2">
<!-- Background image of the second section -->
<img id="bc-img1"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/170/378/original/yellow-sports-car.jpg?1752418755"
alt="">
<div class="box">
<!-- Image layered inside styled divs for design effect -->
<div class="layer1">
<div class="layer2">
<img class="image1"
src="https://s3.amazonaws.com/shecodesio-production/uploads/files/000/170/374/original/building_%285%29.jpg?1752418563">
</div>
</div>
</div>
<p class="text1"> At Dream House Studio, we don’t just build houses — we craft dreams into living spaces.
Every line we draw, every wall we raise, and every detail we design is inspired by your unique vision.
Whether you seek the clean elegance of modern architecture or the charm of timeless classics,
we bring your dream home to life — one brick, one breath, one feeling at a time.
</p>
</div>
</div>
<!-- Footer Section -->
<footer class="footer">
<h5><a href="https://shecodes.com/marwa_noori" target="_blank">
🔗 About Site
</a></h5>
<h5><a href="#learn">
📘 Learn More
</a></h5>
<h5><a href="#contact">
📞 Contact Us
</a></h5>
<p class="author">
🧑💻 This site is created by <a href="https://shecodes.com/marwa_noori" target="_blank">Marwa Noori</a>
</p>
<p class="author">
🆓 This code is open-source — view it on <a href="https://github.com/Enternicode/SheCode" target="_blank"
style="color: #0077cc;">GitHub</a>
</p>
</footer>
<script>
// Listen for scroll event
window.addEventListener('scroll', function () {
const page1 = document.querySelector('.page1'); // First section
const page2 = document.querySelector('.page2'); // Second section
// Toggle visibility based on scroll position
if (window.scrollY > 50) {
page1.classList.add('hidden'); // Hide page1
page2.classList.remove('hidden'); // Show page2
} else {
page1.classList.remove('hidden'); // Show page1
page2.classList.add('hidden'); // Hide page2
}
});
</script>
</body>
</html>