document.addEventListener('DOMContentLoaded', function() {
// Sample car data (would normally come from API)
const cars = [
{
id: 1,
name: "Ferrari SF90 Stradale",
description: "Hybrid supercar with 986 horsepower",
image: "http://static.photos/automotive/640x360/10",
specs: {
engine: "4.0L V8 + 3 electric motors",
horsepower: 986,
torque: "800 Nm",
topSpeed: "340 km/h"
}
},
{
id: 2,
name: "Porsche Taycan Turbo S",
description: "High-performance electric sedan",
image: "http://static.photos/automotive/640x360/11",
specs: {
engine: "Dual electric motors",
horsepower: 750,
torque: "1050 Nm",
topSpeed: "260 km/h"
}
},
{
id: 3,
name: "Lamborghini Huracán EVO",
description: "Naturally aspirated V10 supercar",
image: "http://static.photos/automotive/640x360/12",
specs: {
engine: "5.2L V10",
horsepower: 630,
torque: "600 Nm",
topSpeed: "325 km/h"
}
}
];
// Sample monitored websites data
const monitoredWebsites = [
{ url: "https://tesla.com", status: "up", lastChecked: "2023-06-15T10:30:00Z" },
{ url: "https://porsche.com", status: "up", lastChecked: "2023-06-15T10:35:00Z" },
{ url: "https://ferrari.com", status: "down", lastChecked: "2023-06-15T10:40:00Z" }
];
// Populate car showcase
const carShowcase = document.querySelector('#showcase .grid');
cars.forEach(car => {
const carCard = document.createElement('div');
carCard.className = 'bg-white rounded-xl shadow-md overflow-hidden card-hover';
carCard.innerHTML = `