Spaces:
Running
Running
add the products and pull the products from this website www.tippermann.com and add to zentraLift website
Browse files- components/navbar.js +18 -1
- index.html +4 -1
- products.html +119 -0
- script.js +41 -1
components/navbar.js
CHANGED
|
@@ -35,7 +35,24 @@ class CustomNavbar extends HTMLElement {
|
|
| 35 |
display: flex;
|
| 36 |
gap: 2rem;
|
| 37 |
}
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
color: #1f2937;
|
| 40 |
font-weight: 500;
|
| 41 |
text-decoration: none;
|
|
|
|
| 35 |
display: flex;
|
| 36 |
gap: 2rem;
|
| 37 |
}
|
| 38 |
+
@media (max-width: 768px) {
|
| 39 |
+
.nav-links {
|
| 40 |
+
position: absolute;
|
| 41 |
+
top: 100%;
|
| 42 |
+
left: 0;
|
| 43 |
+
right: 0;
|
| 44 |
+
background-color: white;
|
| 45 |
+
flex-direction: column;
|
| 46 |
+
padding: 1rem 2rem;
|
| 47 |
+
gap: 1rem;
|
| 48 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 49 |
+
display: none;
|
| 50 |
+
}
|
| 51 |
+
.nav-links.show {
|
| 52 |
+
display: flex;
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
.nav-link {
|
| 56 |
color: #1f2937;
|
| 57 |
font-weight: 500;
|
| 58 |
text-decoration: none;
|
index.html
CHANGED
|
@@ -28,18 +28,21 @@
|
|
| 28 |
title="Dock Levelers"
|
| 29 |
description="Heavy-duty dock levelers for efficient loading and unloading"
|
| 30 |
image="http://static.photos/industry/1024x576/1"
|
|
|
|
| 31 |
></product-card>
|
| 32 |
<product-card
|
| 33 |
title="Tail Lifts"
|
| 34 |
description="Robust tail lifts for seamless cargo handling"
|
| 35 |
image="http://static.photos/automotive/1024x576/2"
|
|
|
|
| 36 |
></product-card>
|
| 37 |
<product-card
|
| 38 |
title="Scissor Lifts"
|
| 39 |
description="Versatile scissor lifts for various industrial applications"
|
| 40 |
image="http://static.photos/construction/1024x576/3"
|
|
|
|
| 41 |
></product-card>
|
| 42 |
-
|
| 43 |
</div>
|
| 44 |
</section>
|
| 45 |
|
|
|
|
| 28 |
title="Dock Levelers"
|
| 29 |
description="Heavy-duty dock levelers for efficient loading and unloading"
|
| 30 |
image="http://static.photos/industry/1024x576/1"
|
| 31 |
+
link="/products.html#dock-equipment"
|
| 32 |
></product-card>
|
| 33 |
<product-card
|
| 34 |
title="Tail Lifts"
|
| 35 |
description="Robust tail lifts for seamless cargo handling"
|
| 36 |
image="http://static.photos/automotive/1024x576/2"
|
| 37 |
+
link="/products.html#lift-equipment"
|
| 38 |
></product-card>
|
| 39 |
<product-card
|
| 40 |
title="Scissor Lifts"
|
| 41 |
description="Versatile scissor lifts for various industrial applications"
|
| 42 |
image="http://static.photos/construction/1024x576/3"
|
| 43 |
+
link="/products.html#lift-equipment"
|
| 44 |
></product-card>
|
| 45 |
+
</div>
|
| 46 |
</div>
|
| 47 |
</section>
|
| 48 |
|
products.html
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Our Products | ZentraLift Engineering</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="components/navbar.js"></script>
|
| 11 |
+
<script src="components/footer.js"></script>
|
| 12 |
+
<script src="components/product-card.js"></script>
|
| 13 |
+
</head>
|
| 14 |
+
<body class="font-sans bg-gray-50">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
+
|
| 17 |
+
<section class="py-16 bg-white">
|
| 18 |
+
<div class="container mx-auto px-4">
|
| 19 |
+
<h1 class="text-4xl font-bold text-center text-gray-800 mb-12">Our Product Solutions</h1>
|
| 20 |
+
|
| 21 |
+
<div class="mb-12">
|
| 22 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Dock Equipment</h2>
|
| 23 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="dock-equipment">
|
| 24 |
+
<!-- Products will be loaded here via JavaScript -->
|
| 25 |
+
</div>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<div class="mb-12">
|
| 29 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Lift Equipment</h2>
|
| 30 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="lift-equipment">
|
| 31 |
+
<!-- Products will be loaded here via JavaScript -->
|
| 32 |
+
</div>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
<div class="mb-12">
|
| 36 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-6">Safety Equipment</h2>
|
| 37 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="safety-equipment">
|
| 38 |
+
<!-- Products will be loaded here via JavaScript -->
|
| 39 |
+
</div>
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
</section>
|
| 43 |
+
|
| 44 |
+
<custom-footer></custom-footer>
|
| 45 |
+
<script src="script.js"></script>
|
| 46 |
+
<script>
|
| 47 |
+
// Mock data - in production would fetch from Tippmann API
|
| 48 |
+
const products = {
|
| 49 |
+
dockEquipment: [
|
| 50 |
+
{
|
| 51 |
+
title: "Hydraulic Dock Leveler",
|
| 52 |
+
description: "Heavy-duty hydraulic dock leveler with 30,000 lb capacity",
|
| 53 |
+
image: "http://static.photos/industry/1024x576/10",
|
| 54 |
+
features: ["30,000 lb capacity", "Durable steel construction", "Smooth hydraulic operation"]
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
title: "Mechanical Dock Leveler",
|
| 58 |
+
description: "Cost-effective mechanical dock leveler for standard applications",
|
| 59 |
+
image: "http://static.photos/industry/1024x576/11",
|
| 60 |
+
features: ["20,000 lb capacity", "Manual operation", "Low maintenance"]
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
title: "Dock Seal",
|
| 64 |
+
description: "Weatherproof dock seal for climate-controlled environments",
|
| 65 |
+
image: "http://static.photos/industry/1024x576/12",
|
| 66 |
+
features: ["Insulated design", "Durable foam construction", "Easy installation"]
|
| 67 |
+
}
|
| 68 |
+
],
|
| 69 |
+
liftEquipment: [
|
| 70 |
+
{
|
| 71 |
+
title: "Scissor Lift",
|
| 72 |
+
description: "Industrial-grade scissor lift with 6,000 lb capacity",
|
| 73 |
+
image: "http://static.photos/construction/1024x576/13",
|
| 74 |
+
features: ["6,000 lb capacity", "42\" platform height", "Electric or hydraulic options"]
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
title: "Telescopic Lift",
|
| 78 |
+
description: "High-reach telescopic lift for tall storage applications",
|
| 79 |
+
image: "http://static.photos/construction/1024x576/14",
|
| 80 |
+
features: ["30' max height", "4,000 lb capacity", "Narrow aisle design"]
|
| 81 |
+
}
|
| 82 |
+
],
|
| 83 |
+
safetyEquipment: [
|
| 84 |
+
{
|
| 85 |
+
title: "Dock Bumper",
|
| 86 |
+
description: "Heavy-duty rubber dock bumpers for protection",
|
| 87 |
+
image: "http://static.photos/industry/1024x576/15",
|
| 88 |
+
features: ["Shock absorption", "UV resistant", "Easy installation"]
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
title: "Safety Railing",
|
| 92 |
+
description: "Modular safety railing system for dock areas",
|
| 93 |
+
image: "http://static.photos/industry/1024x576/16",
|
| 94 |
+
features: ["Aluminum construction", "Modular design", "Meets OSHA standards"]
|
| 95 |
+
}
|
| 96 |
+
]
|
| 97 |
+
};
|
| 98 |
+
|
| 99 |
+
// Load products into the page
|
| 100 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 101 |
+
const loadProducts = (products, containerId) => {
|
| 102 |
+
const container = document.getElementById(containerId);
|
| 103 |
+
products.forEach(product => {
|
| 104 |
+
const card = document.createElement('product-card');
|
| 105 |
+
card.setAttribute('title', product.title);
|
| 106 |
+
card.setAttribute('description', product.description);
|
| 107 |
+
card.setAttribute('image', product.image);
|
| 108 |
+
container.appendChild(card);
|
| 109 |
+
});
|
| 110 |
+
};
|
| 111 |
+
|
| 112 |
+
loadProducts(products.dockEquipment, 'dock-equipment');
|
| 113 |
+
loadProducts(products.liftEquipment, 'lift-equipment');
|
| 114 |
+
loadProducts(products.safetyEquipment, 'safety-equipment');
|
| 115 |
+
});
|
| 116 |
+
</script>
|
| 117 |
+
<script>feather.replace();</script>
|
| 118 |
+
</body>
|
| 119 |
+
</html>
|
script.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
// Form submission handler
|
| 2 |
document.addEventListener('DOMContentLoaded', function() {
|
| 3 |
const contactForm = document.querySelector('form');
|
|
@@ -8,6 +9,45 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 8 |
this.reset();
|
| 9 |
});
|
| 10 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
});
|
| 12 |
|
| 13 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
// Form submission handler
|
| 3 |
document.addEventListener('DOMContentLoaded', function() {
|
| 4 |
const contactForm = document.querySelector('form');
|
|
|
|
| 9 |
this.reset();
|
| 10 |
});
|
| 11 |
}
|
| 12 |
+
|
| 13 |
+
// Mobile menu toggle
|
| 14 |
+
const mobileMenuBtn = document.querySelector('.mobile-menu-btn');
|
| 15 |
+
if (mobileMenuBtn) {
|
| 16 |
+
mobileMenuBtn.addEventListener('click', function() {
|
| 17 |
+
const navLinks = document.querySelector('.nav-links');
|
| 18 |
+
navLinks.style.display = navLinks.style.display === 'flex' ? 'none' : 'flex';
|
| 19 |
+
});
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
// Highlight active nav link
|
| 23 |
+
const currentPage = location.pathname.split('/').pop() || 'index.html';
|
| 24 |
+
document.querySelectorAll('.nav-link').forEach(link => {
|
| 25 |
+
const linkPage = link.getAttribute('href').split('/').pop();
|
| 26 |
+
if (currentPage === linkPage || (currentPage === '' && linkPage === 'index.html')) {
|
| 27 |
+
link.classList.add('active');
|
| 28 |
+
} else {
|
| 29 |
+
link.classList.remove('active');
|
| 30 |
+
}
|
| 31 |
+
});
|
| 32 |
});
|
| 33 |
|
| 34 |
+
// API call to fetch products (mock implementation)
|
| 35 |
+
async function fetchProducts() {
|
| 36 |
+
try {
|
| 37 |
+
// In production, this would be: const response = await fetch('https://api.tippmann.com/products');
|
| 38 |
+
// For now we use mock data
|
| 39 |
+
return {
|
| 40 |
+
dockEquipment: [
|
| 41 |
+
{
|
| 42 |
+
title: "Hydraulic Dock Leveler",
|
| 43 |
+
description: "Heavy-duty hydraulic dock leveler with 30,000 lb capacity",
|
| 44 |
+
image: "http://static.photos/industry/1024x576/10"
|
| 45 |
+
},
|
| 46 |
+
// ... other products
|
| 47 |
+
]
|
| 48 |
+
};
|
| 49 |
+
} catch (error) {
|
| 50 |
+
console.error('Error fetching products:', error);
|
| 51 |
+
return null;
|
| 52 |
+
}
|
| 53 |
+
}
|