-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
504 lines (449 loc) · 16.9 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
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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MuseHome - Modern Home Design</title>
<meta name="keywords" content="MuseHome,modern,homedesign,housedesign,home,house,design">
<meta name="description" content="The Art of Modern Home Design - Creating Your Perfect Space">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<script>
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () {
(c[a].q = c[a].q || []).push(arguments)
};
t = l.createElement(r);
t.async = 1;
t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
y = l.getElementsByTagName(r)[0];
y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "fvlvixulu7");
</script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
line-height: 1.6;
color: #333;
background-color: #fafafa;
}
.fade-in {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
.header {
background-color: rgba(255, 255, 255, 0.95);
padding: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
}
.nav {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.nav h1 {
font-size: 1.8rem;
font-weight: 700;
background: linear-gradient(45deg, #333, #666);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.nav-links {
display: none;
width: 100%;
flex-direction: column;
gap: 20px;
margin-top: 20px;
}
.nav-links.active {
display: flex;
}
.nav-links a {
text-decoration: none;
color: #333;
font-weight: 500;
padding: 8px 0;
position: relative;
transition: all 0.3s ease;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: #333;
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
.language-selector {
margin-left: 20px;
padding: 5px;
border-radius: 5px;
border: 1px solid #ddd;
cursor: pointer;
}
.menu-toggle {
display: block;
font-size: 1.5rem;
background: none;
border: none;
cursor: pointer;
transition: transform 0.3s ease;
}
.menu-toggle:hover {
transform: rotate(90deg);
}
.hero {
height: 90vh;
position: relative;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
margin-top: 60px;
overflow: hidden;
}
.hero-slides {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.hero-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
opacity: 0;
transition: opacity 1.5s ease-in-out;
filter: brightness(0.8);
}
.hero-slide.active {
opacity: 1;
}
.hero-content {
position: relative;
z-index: 1;
padding: 0 20px;
animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 {
font-size: 2.5rem;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.showcase {
max-width: 1200px;
margin: 50px auto;
padding: 30px;
text-align: center;
}
.grid {
display: grid;
grid-template-columns: 1fr;
gap: 30px;
margin-top: 40px;
}
.card {
background: #fff;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0,0,0,0.05);
transition: all 0.4s ease;
cursor: pointer;
position: relative;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card img {
width: 100%;
height: 250px;
object-fit: cover;
transition: transform 0.4s ease;
}
.card:hover img {
transform: scale(1.05);
}
.card-content {
padding: 25px;
background: linear-gradient(to bottom, rgba(255,255,255,0.9), #fff);
}
.btn {
display: inline-block;
padding: 12px 30px;
background: linear-gradient(45deg, #333, #666);
color: #fff;
text-decoration: none;
border-radius: 25px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.contact-section {
background: linear-gradient(45deg, #f8f8f8, #fff);
padding: 80px 15px;
text-align: center;
margin-top: 50px;
position: relative;
overflow: hidden;
}
.contact-content {
max-width: 1200px;
margin: 0 auto;
position: relative;
z-index: 1;
}
.contact-content h2 {
margin-bottom: 40px;
font-size: 2.2rem;
color: #333;
}
@media (min-width: 768px) {
.menu-toggle {
display: none;
}
.nav-links {
display: flex;
flex-direction: row;
width: auto;
margin-top: 0;
gap: 30px;
}
.hero-content h1 {
font-size: 4rem;
}
.grid {
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 40px;
}
.card img {
height: 300px;
}
}
</style>
</head>
<body>
<header class="header">
<nav class="nav">
<h1>MuseHome</h1>
<button class="menu-toggle">☰</button>
<div class="nav-links">
<a href="#home" data-i18n="nav.home">Home</a>
<a href="./windows.pdf" data-i18n="nav.windows">Windows</a>
<a href="./marble.pdf" data-i18n="nav.marble">Natural Marble</a>
<a href="#cases" data-i18n="nav.cases">Case Studies</a>
<a href="#contact" data-i18n="nav.contact">Contact Us</a>
<select class="language-selector" onchange="changeLanguage(this.value)">
<option value="en">English</option>
<option value="zh">中文</option>
</select>
</div>
</nav>
</header>
<section class="hero fade-in">
<div class="hero-slides">
<div class="hero-slide active" style="background-image: url('./bg1.jpg')"></div>
<div class="hero-slide" style="background-image: url('./bg2.jpg')"></div>
<div class="hero-slide" style="background-image: url('./bg3.jpg')"></div>
<div class="hero-slide" style="background-image: url('./bg4.jpg')"></div>
</div>
<div class="hero-content">
<h1 data-i18n="hero.title">The Art of Modern Home Design</h1>
<p data-i18n="hero.subtitle">Creating Your Perfect Space</p>
<br>
<a href="#contact" class="btn" data-i18n="hero.cta">Book Design</a>
</div>
</section>
<section class="showcase fade-in">
<h2 data-i18n="showcase.title">Aesthetic | Comfort | Safety</h2>
<div class="grid">
<div class="card fade-in" onclick="window.location.href='./windows.pdf'">
<img src="./windows.jpg" alt="Windows Series">
<div class="card-content">
<h3 data-i18n="showcase.windows.title">Windows Series</h3>
<p data-i18n="showcase.windows.desc">Premium materials, perfect blend of functionality and aesthetics</p>
</div>
</div>
<div class="card fade-in" onclick="window.location.href='./marble.pdf'">
<img src="./marble.jpg" alt="Natural Marble Series">
<div class="card-content">
<h3 data-i18n="showcase.marble.title">Natural Marble Series</h3>
<p data-i18n="showcase.marble.desc">Customized solutions for your unique needs</p>
</div>
</div>
</div>
</section>
<section class="showcase fade-in" id="cases">
<h2 data-i18n="cases.title">Case Studies</h2>
<div class="grid">
<div class="card fade-in" onclick="window.location.href='./case1.pdf'">
<img src="./case1.jpg" alt="Case Study 1">
<div class="card-content">
<h3 data-i18n="cases.case1.title">Case Study 1</h3>
<p data-i18n="cases.case1.desc">Perfect fusion of technology and design</p>
</div>
</div>
<div class="card fade-in" onclick="window.location.href='./case2.pdf'">
<img src="./case2.jpg" alt="Case Study 2">
<div class="card-content">
<h3 data-i18n="cases.case2.title">Case Study 2</h3>
<p data-i18n="cases.case2.desc">Perfect fusion of technology and design</p>
</div>
</div>
</div>
<div class="grid">
<div class="card fade-in" onclick="window.location.href='./case3.pdf'">
<img src="./case3.jpg" alt="Case Study 3">
<div class="card-content">
<h3 data-i18n="cases.case3.title">Case Study 3</h3>
<p data-i18n="cases.case3.desc">Perfect fusion of technology and design</p>
</div>
</div>
<div class="card fade-in" onclick="window.location.href='./case4.pdf'">
<img src="./case4.jpg" alt="Case Study 4">
<div class="card-content">
<h3 data-i18n="cases.case4.title">Case Study 4</h3>
<p data-i18n="cases.case4.desc">Perfect fusion of technology and design</p>
</div>
</div>
</div>
</section>
<section class="contact-section fade-in" id="contact">
<div class="contact-content">
<h2 data-i18n="contact.title">Contact Us / Book Design</h2>
<a href="mailto:info@MuseHome.com" class="btn" data-i18n="contact.email">Email: info@MuseHome.com</a>
</div>
</section>
<footer style="background: linear-gradient(45deg, #333, #444); color: #fff; padding: 40px 15px; text-align: center;" class="fade-in">
<p class="copyright">© <script>document.write('' + (new Date()).getFullYear())</script> MuseHome</p>
</footer>
<script>
// Language translations
const translations = {
en: {
'nav.home': 'Home',
'nav.windows': 'Windows',
'nav.marble': 'Natural Marble',
'nav.cases': 'Case Studies',
'nav.contact': 'Contact Us',
'hero.title': 'The Art of Modern Home Design',
'hero.subtitle': 'Creating Your Perfect Space',
'hero.cta': 'Book Design',
'showcase.title': 'Aesthetic | Comfort | Safety',
'showcase.windows.title': 'Windows Series',
'showcase.windows.desc': 'Premium materials, perfect blend of functionality and aesthetics',
'showcase.marble.title': 'Natural Marble Series',
'showcase.marble.desc': 'Customized solutions for your unique needs',
'cases.title': 'Case Studies',
'cases.case1.title': 'Case Study 1',
'cases.case1.desc': 'Perfect fusion of technology and design',
'cases.case2.title': 'Case Study 2',
'cases.case2.desc': 'Perfect fusion of technology and design',
'cases.case3.title': 'Case Study 3',
'cases.case3.desc': 'Perfect fusion of technology and design',
'cases.case4.title': 'Case Study 4',
'cases.case4.desc': 'Perfect fusion of technology and design',
'contact.title': 'Contact Us / Book Design',
'contact.email': 'Email: info@MuseHome.com'
},
zh: {
'nav.home': '首页',
'nav.windows': '窗系列',
'nav.marble': '天然大理石系列',
'nav.cases': '案例展示',
'nav.contact': '联系我们',
'hero.title': '现代家居设计的艺术',
'hero.subtitle': '打造您梦想中的完美空间',
'hero.cta': '预约设计',
'showcase.title': '美观 | 舒适 | 安全',
'showcase.windows.title': '窗系列',
'showcase.windows.desc': '采用高端材质,完美结合功能性与美观性',
'showcase.marble.title': '天然大理石系列',
'showcase.marble.desc': '个性化定制,满足您的独特需求',
'cases.title': '案例展示',
'cases.case1.title': '案例展示1',
'cases.case1.desc': '科技与设计的完美融合',
'cases.case2.title': '案例展示2',
'cases.case2.desc': '科技与设计的完美融合',
'cases.case3.title': '案例展示3',
'cases.case3.desc': '科技与设计的完美融合',
'cases.case4.title': '案例展示4',
'cases.case4.desc': '科技与设计的完美融合',
'contact.title': '联系我们 / 预约设计',
'contact.email': '邮箱: info@MuseHome.com'
}
};
function changeLanguage(lang) {
document.documentElement.lang = lang;
document.querySelectorAll('[data-i18n]').forEach(element => {
const key = element.getAttribute('data-i18n');
element.textContent = translations[lang][key];
});
}
// Existing scripts
const slides = document.querySelectorAll('.hero-slide');
let currentSlide = 0;
function nextSlide() {
slides[currentSlide].classList.remove('active');
currentSlide = (currentSlide + 1) % slides.length;
slides[currentSlide].classList.add('active');
}
setInterval(nextSlide, 5000);
const menuToggle = document.querySelector('.menu-toggle');
const navLinks = document.querySelector('.nav-links');
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
});
const fadeElements = document.querySelectorAll('.fade-in');
function checkFade() {
fadeElements.forEach(element => {
const elementTop = element.getBoundingClientRect().top;
const elementBottom = element.getBoundingClientRect().bottom;
const isVisible = (elementTop < window.innerHeight - 100) && (elementBottom > 0);
if (isVisible) {
element.classList.add('visible');
}
});
}
checkFade();
window.addEventListener('scroll', checkFade);
// Initialize with English
changeLanguage('en');
</script>
</body>
</html>