nhabep40 / index.html
bep40's picture
Add 2 files
22cd9ef verified
<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BẾP 4.0 - Thiết kế & Thi công nội thất nhà bếp cao cấp</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gallery-item {
transition: all 0.3s ease;
}
.gallery-item:hover {
transform: scale(1.03);
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.price-calculator {
background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.material-option {
transition: all 0.2s ease;
}
.material-option:hover {
transform: translateY(-5px);
}
.material-option.selected {
border: 2px solid #3b82f6;
box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}
.nav-link {
position: relative;
}
.nav-link:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: #3b82f6;
transition: width 0.3s ease;
}
.nav-link:hover:after {
width: 100%;
}
.hero-section {
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
background-size: cover;
background-position: center;
}
</style>
</head>
<body class="font-sans bg-gray-50">
<!-- Header -->
<header class="bg-white shadow-md sticky top-0 z-50">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center">
<div class="bg-blue-500 text-white p-2 rounded-lg mr-3">
<i class="fas fa-utensils text-2xl"></i>
</div>
<h1 class="text-2xl font-bold text-gray-800">BẾP <span class="text-blue-500">4.0</span></h1>
</div>
<nav class="hidden md:flex space-x-8">
<a href="#home" class="nav-link text-gray-700 hover:text-blue-500 py-2">Trang chủ</a>
<a href="#collections" class="nav-link text-gray-700 hover:text-blue-500 py-2">Bộ sưu tập</a>
<a href="#materials" class="nav-link text-gray-700 hover:text-blue-500 py-2">Chất liệu</a>
<a href="#calculator" class="nav-link text-gray-700 hover:text-blue-500 py-2">Báo giá</a>
<a href="#contact" class="nav-link text-gray-700 hover:text-blue-500 py-2">Liên hệ</a>
</nav>
<button class="md:hidden text-gray-700">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
</header>
<!-- Hero Section -->
<section id="home" class="hero-section text-white py-20 md:py-32">
<div class="container mx-auto px-4 text-center">
<h2 class="text-4xl md:text-6xl font-bold mb-6">Thiết kế nhà bếp <span class="text-blue-300">đẳng cấp</span></h2>
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">Không gian bếp sang trọng, tiện nghi với công nghệ 4.0</p>
<div class="flex flex-col sm:flex-row justify-center gap-4">
<a href="#collections" class="bg-blue-500 hover:bg-blue-600 text-white px-8 py-3 rounded-lg font-medium transition duration-300">Xem bộ sưu tập</a>
<a href="#calculator" class="bg-white hover:bg-gray-100 text-blue-500 px-8 py-3 rounded-lg font-medium transition duration-300">Tính giá ngay</a>
</div>
</div>
</section>
<!-- Features -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center p-6 rounded-xl bg-gray-50 hover:bg-blue-50 transition duration-300">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-ruler-combined text-blue-500 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Thiết kế tối ưu</h3>
<p class="text-gray-600">Không gian bếp được thiết kế khoa học, tối ưu hóa công năng sử dụng</p>
</div>
<div class="text-center p-6 rounded-xl bg-gray-50 hover:bg-blue-50 transition duration-300">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-shield-alt text-blue-500 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Chất liệu cao cấp</h3>
<p class="text-gray-600">Sử dụng vật liệu chính hãng từ An Cường, Inox cao cấp, chống ẩm tốt</p>
</div>
<div class="text-center p-6 rounded-xl bg-gray-50 hover:bg-blue-50 transition duration-300">
<div class="bg-blue-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-tools text-blue-500 text-2xl"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Thi công chuyên nghiệp</h3>
<p class="text-gray-600">Đội ngũ thợ lành nghề với quy trình thi công chuẩn, đảm bảo tiến độ</p>
</div>
</div>
</div>
</section>
<!-- Collections -->
<section id="collections" class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-4">Bộ sưu tập thiết kế</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Khám phá những mẫu thiết kế nhà bếp hiện đại, sang trọng từ BẾP 4.0</p>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Collection Item 1 -->
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
<img src="https://images.unsplash.com/photo-1600210492493-0946911123ea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1374&q=80"
alt="Modern Kitchen Design" class="w-full h-64 object-cover">
<div class="p-6">
<h3 class="text-xl font-semibold mb-2">Phong cách hiện đại</h3>
<p class="text-gray-600 mb-4">Thiết kế tối giản với đường nét gọn gàng, màu sắc trung tính</p>
<div class="flex justify-between items-center">
<span class="text-blue-500 font-medium">Từ 50 triệu</span>
<button class="text-blue-500 hover:text-blue-700 flex items-center">
Xem thêm <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</div>
<!-- Collection Item 2 -->
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
<img src="https://images.unsplash.com/photo-1600566752227-8f3b1a105971?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Classic Kitchen Design" class="w-full h-64 object-cover">
<div class="p-6">
<h3 class="text-xl font-semibold mb-2">Phong cách cổ điển</h3>
<p class="text-gray-600 mb-4">Vẻ đẹp sang trọng với chi tiết chạm khắc tinh xảo</p>
<div class="flex justify-between items-center">
<span class="text-blue-500 font-medium">Từ 70 triệu</span>
<button class="text-blue-500 hover:text-blue-700 flex items-center">
Xem thêm <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</div>
<!-- Collection Item 3 -->
<div class="gallery-item bg-white rounded-xl overflow-hidden shadow-md">
<img src="https://images.unsplash.com/photo-1600121848594-d8644e57abab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80"
alt="Scandinavian Kitchen Design" class="w-full h-64 object-cover">
<div class="p-6">
<h3 class="text-xl font-semibold mb-2">Phong cách Bắc Âu</h3>
<p class="text-gray-600 mb-4">Tông màu sáng, gỗ tự nhiên tạo cảm giác ấm cúng</p>
<div class="flex justify-between items-center">
<span class="text-blue-500 font-medium">Từ 60 triệu</span>
<button class="text-blue-500 hover:text-blue-700 flex items-center">
Xem thêm <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</div>
</div>
<div class="text-center mt-10">
<button class="bg-blue-500 hover:bg-blue-600 text-white px-8 py-3 rounded-lg font-medium transition duration-300">
Xem tất cả bộ sưu tập
</button>
</div>
</div>
</section>
<!-- Materials Section -->
<section id="materials" class="py-16 bg-white">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-4">Chất liệu cao cấp</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Chúng tôi sử dụng những vật liệu tốt nhất thị trường để đảm bảo độ bền và thẩm mỹ cho căn bếp của bạn</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<!-- Material 1 -->
<div class="material-option bg-gray-50 p-6 rounded-xl text-center cursor-pointer" onclick="selectMaterial(this, 'mdf')">
<div class="bg-white p-4 rounded-lg mb-4">
<img src="https://ancuong.com/wp-content/uploads/2021/05/melamine-1.jpg" alt="MDF chống ẩm melamine" class="h-32 mx-auto object-contain">
</div>
<h3 class="text-lg font-semibold mb-2">MDF chống ẩm melamine</h3>
<p class="text-gray-600 text-sm mb-3">Chống ẩm tốt, bề mặt melamine đa dạng màu sắc</p>
<div class="text-blue-500 font-medium">3.500.000đ/m</div>
</div>
<!-- Material 2 -->
<div class="material-option bg-gray-50 p-6 rounded-xl text-center cursor-pointer" onclick="selectMaterial(this, 'acrylic')">
<div class="bg-white p-4 rounded-lg mb-4">
<img src="https://ancuong.com/wp-content/uploads/2021/05/acrylic-1.jpg" alt="Acrylic An Cường" class="h-32 mx-auto object-contain">
</div>
<h3 class="text-lg font-semibold mb-2">Acrylic An Cường</h3>
<p class="text-gray-600 text-sm mb-3">Bề mặt bóng sang trọng, độ bền cao, dễ vệ sinh</p>
<div class="text-blue-500 font-medium">5.200.000đ/m</div>
</div>
<!-- Material 3 -->
<div class="material-option bg-gray-50 p-6 rounded-xl text-center cursor-pointer" onclick="selectMaterial(this, 'inox')">
<div class="bg-white p-4 rounded-lg mb-4">
<img src="https://noithatduckhang.com/wp-content/uploads/2020/06/tu-bep-inox-304.jpg" alt="Inox kính cường lực" class="h-32 mx-auto object-contain">
</div>
<h3 class="text-lg font-semibold mb-2">Inox kính cường lực</h3>
<p class="text-gray-600 text-sm mb-3">Chống cháy, chống nước tuyệt đối, độ bền vượt trội</p>
<div class="text-blue-500 font-medium">6.800.000đ/m</div>
</div>
<!-- Material 4 -->
<div class="material-option bg-gray-50 p-6 rounded-xl text-center cursor-pointer" onclick="selectMaterial(this, 'pvc')">
<div class="bg-white p-4 rounded-lg mb-4">
<img src="https://ancuong.com/wp-content/uploads/2021/05/pvc-1.jpg" alt="PVC chống nước" class="h-32 mx-auto object-contain">
</div>
<h3 class="text-lg font-semibold mb-2">PVC chống nước</h3>
<p class="text-gray-600 text-sm mb-3">Khả năng chống nước 100%, màu sắc đa dạng</p>
<div class="text-blue-500 font-medium">4.500.000đ/m</div>
</div>
</div>
</div>
</section>
<!-- Price Calculator -->
<section id="calculator" class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<div class="price-calculator max-w-4xl mx-auto p-8 rounded-xl">
<h2 class="text-3xl font-bold text-center mb-8">Tính giá thiết kế bếp</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div>
<h3 class="text-xl font-semibold mb-4">Thông số bếp</h3>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Chiều dài bếp (m)</label>
<input type="range" min="1" max="10" value="3" class="w-full" id="lengthSlider" oninput="updateCalculator()">
<div class="flex justify-between mt-1">
<span>1m</span>
<span id="lengthValue">3m</span>
<span>10m</span>
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Chiều cao bếp (m)</label>
<input type="range" min="0.5" max="2.5" step="0.1" value="0.9" class="w-full" id="heightSlider" oninput="updateCalculator()">
<div class="flex justify-between mt-1">
<span>0.5m</span>
<span id="heightValue">0.9m</span>
<span>2.5m</span>
</div>
</div>
<div class="mb-4">
<label class="block text-gray-700 mb-2">Loại chất liệu</label>
<select class="w-full p-3 border rounded-lg" id="materialSelect" onchange="updateCalculator()">
<option value="3500000">MDF chống ẩm melamine</option>
<option value="5200000">Acrylic An Cường</option>
<option value="6800000">Inox kính cường lực</option>
<option value="4500000">PVC chống nước</option>
</select>
</div>
</div>
<div>
<h3 class="text-xl font-semibold mb-4">Ước tính chi phí</h3>
<div class="bg-blue-50 p-6 rounded-lg mb-6">
<div class="flex justify-between mb-3">
<span class="text-gray-700">Chiều dài:</span>
<span class="font-medium" id="displayLength">3m</span>
</div>
<div class="flex justify-between mb-3">
<span class="text-gray-700">Chiều cao:</span>
<span class="font-medium" id="displayHeight">0.9m</span>
</div>
<div class="flex justify-between mb-3">
<span class="text-gray-700">Chất liệu:</span>
<span class="font-medium" id="displayMaterial">MDF chống ẩm melamine</span>
</div>
<div class="border-t border-gray-200 my-3"></div>
<div class="flex justify-between text-lg font-bold">
<span>Tổng cộng:</span>
<span class="text-blue-600" id="totalPrice">9.450.000đ</span>
</div>
</div>
<p class="text-gray-600 text-sm mb-4">* Giá trên chưa bao gồm phụ kiện và thiết bị bếp</p>
<button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-3 rounded-lg font-medium transition duration-300">
Đặt lịch tư vấn miễn phí
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="py-16 bg-white">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl font-bold text-gray-800 mb-4">Khách hàng nói gì về chúng tôi</h2>
<p class="text-gray-600 max-w-2xl mx-auto">Những phản hồi chân thực từ khách hàng đã sử dụng dịch vụ của BẾP 4.0</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Testimonial 1 -->
<div class="bg-gray-50 p-6 rounded-xl">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
<i class="fas fa-user text-blue-500 text-xl"></i>
</div>
<div>
<h4 class="font-semibold">Chị Nguyễn Thị Hà</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600">"Tôi rất hài lòng với căn bếp BẾP 4.0 thiết kế. Sau 2 năm sử dụng vẫn như mới, đặc biệt là khả năng chống ẩm rất tốt."</p>
</div>
<!-- Testimonial 2 -->
<div class="bg-gray-50 p-6 rounded-xl">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
<i class="fas fa-user text-blue-500 text-xl"></i>
</div>
<div>
<h4 class="font-semibold">Anh Trần Văn Nam</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
</div>
</div>
<p class="text-gray-600">"Đội ngũ thi công chuyên nghiệp, đúng tiến độ. Chất liệu Acrylic rất dễ vệ sinh, phù hợp với gia đình có trẻ nhỏ như chúng tôi."</p>
</div>
<!-- Testimonial 3 -->
<div class="bg-gray-50 p-6 rounded-xl">
<div class="flex items-center mb-4">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
<i class="fas fa-user text-blue-500 text-xl"></i>
</div>
<div>
<h4 class="font-semibold">Chị Lê Thị Mai</h4>
<div class="flex text-yellow-400 text-sm">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
</div>
</div>
<p class="text-gray-600">"Thiết kế rất thông minh, tận dụng tối đa không gian nhỏ hẹp của căn hộ chung cư. Tôi sẽ giới thiệu BẾP 4.0 cho bạn bè."</p>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-16 bg-blue-600 text-white">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-2 gap-12">
<div>
<h2 class="text-3xl font-bold mb-6">Liên hệ với chúng tôi</h2>
<p class="mb-6">Để được tư vấn miễn phí và báo giá chi tiết, vui lòng liên hệ:</p>
<div class="space-y-4">
<div class="flex items-start">
<div class="bg-blue-500 p-3 rounded-full mr-4">
<i class="fas fa-map-marker-alt"></i>
</div>
<div>
<h4 class="font-semibold">Địa chỉ</h4>
<p>123 Đường Nguyễn Văn Linh, Quận 7, TP.HCM</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-500 p-3 rounded-full mr-4">
<i class="fas fa-phone-alt"></i>
</div>
<div>
<h4 class="font-semibold">Điện thoại</h4>
<p>0909 123 456 - 028 1234 5678</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-500 p-3 rounded-full mr-4">
<i class="fas fa-envelope"></i>
</div>
<div>
<h4 class="font-semibold">Email</h4>
<p>info@bep40.vn</p>
</div>
</div>
<div class="flex items-start">
<div class="bg-blue-500 p-3 rounded-full mr-4">
<i class="fas fa-clock"></i>
</div>
<div>
<h4 class="font-semibold">Giờ làm việc</h4>
<p>Thứ 2 - Thứ 7: 8h00 - 18h00</p>
</div>
</div>
</div>
</div>
<div>
<h3 class="text-2xl font-semibold mb-6">Gửi yêu cầu tư vấn</h3>
<form class="space-y-4">
<div>
<input type="text" placeholder="Họ và tên" class="w-full p-3 rounded-lg bg-blue-500 bg-opacity-20 border border-blue-400 placeholder-blue-200">
</div>
<div>
<input type="tel" placeholder="Số điện thoại" class="w-full p-3 rounded-lg bg-blue-500 bg-opacity-20 border border-blue-400 placeholder-blue-200">
</div>
<div>
<input type="email" placeholder="Email" class="w-full p-3 rounded-lg bg-blue-500 bg-opacity-20 border border-blue-400 placeholder-blue-200">
</div>
<div>
<textarea placeholder="Nội dung yêu cầu" rows="4" class="w-full p-3 rounded-lg bg-blue-500 bg-opacity-20 border border-blue-400 placeholder-blue-200"></textarea>
</div>
<button type="submit" class="w-full bg-white hover:bg-gray-100 text-blue-600 py-3 rounded-lg font-medium transition duration-300">
Gửi yêu cầu
</button>
</form>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-gray-400 py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<div class="flex items-center mb-4">
<div class="bg-blue-500 text-white p-2 rounded-lg mr-3">
<i class="fas fa-utensils"></i>
</div>
<h3 class="text-xl font-bold text-white">BẾP <span class="text-blue-400">4.0</span></h3>
</div>
<p class="mb-4">Tiên phong trong thiết kế và thi công nội thất nhà bếp thông minh, hiện đại.</p>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-youtube"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-tiktok"></i>
</a>
</div>
</div>
<div>
<h4 class="text-white font-semibold mb-4 text-lg">Dịch vụ</h4>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white">Thiết kế bếp</a></li>
<li><a href="#" class="hover:text-white">Thi công bếp</a></li>
<li><a href="#" class="hover:text-white">Trọn gói bếp</a></li>
<li><a href="#" class="hover:text-white">Bảo hành, bảo trì</a></li>
</ul>
</div>
<div>
<h4 class="text-white font-semibold mb-4 text-lg">Chính sách</h4>
<ul class="space-y-2">
<li><a href="#" class="hover:text-white">Bảo hành</a></li>
<li><a href="#" class="hover:text-white">Thanh toán</a></li>
<li><a href="#" class="hover:text-white">Vận chuyển</a></li>
<li><a href="#" class="hover:text-white">Bảo mật</a></li>
</ul>
</div>
<div>
<h4 class="text-white font-semibold mb-4 text-lg">Đăng ký nhận tin</h4>
<p class="mb-4">Nhận thông tin khuyến mãi và xu hướng thiết kế mới nhất</p>
<div class="flex">
<input type="email" placeholder="Email của bạn" class="p-3 rounded-l-lg bg-gray-800 text-white w-full">
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 rounded-r-lg">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 text-center">
<p>&copy; 2023 BẾP 4.0. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Material selection
function selectMaterial(element, materialType) {
// Remove selected class from all materials
document.querySelectorAll('.material-option').forEach(el => {
el.classList.remove('selected');
});
// Add selected class to clicked material
element.classList.add('selected');
// Update material select dropdown
const select = document.getElementById('materialSelect');
switch(materialType) {
case 'mdf':
select.value = '3500000';
select.selectedIndex = 0;
break;
case 'acrylic':
select.value = '5200000';
select.selectedIndex = 1;
break;
case 'inox':
select.value = '6800000';
select.selectedIndex = 2;
break;
case 'pvc':
select.value = '4500000';
select.selectedIndex = 3;
break;
}
updateCalculator();
}
// Price calculator
function updateCalculator() {
// Get values from sliders
const length = document.getElementById('lengthSlider').value;
const height = document.getElementById('heightSlider').value;
const materialPrice = document.getElementById('materialSelect').value;
// Update displayed values
document.getElementById('lengthValue').textContent = length + 'm';
document.getElementById('heightValue').textContent = height + 'm';
document.getElementById('displayLength').textContent = length + 'm';
document.getElementById('displayHeight').textContent = height + 'm';
// Update material name
const materialSelect = document.getElementById('materialSelect');
const selectedOption = materialSelect.options[materialSelect.selectedIndex];
document.getElementById('displayMaterial').textContent = selectedOption.text;
// Calculate total price (length * height * material price per m)
const total = (length * height * materialPrice).toLocaleString('vi-VN');
document.getElementById('totalPrice').textContent = total + 'đ';
}
// Initialize calculator
document.addEventListener('DOMContentLoaded', function() {
updateCalculator();
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=bep40/nhabep40" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>