Compare commits
No commits in common. "ai-dev" and "master" have entirely different histories.
@ -1,83 +0,0 @@
|
||||
<?php
|
||||
header('Content-Type: application/json');
|
||||
|
||||
// In a real app, you would query a database or an external API based on $_GET['query']
|
||||
// For this mock, we'll just return a static result.
|
||||
$query = isset($_GET['query']) ? trim($_GET['query']) : '';
|
||||
|
||||
// Simple validation example
|
||||
if (empty($query)) {
|
||||
echo json_encode(['error' => 'Query cannot be empty.']);
|
||||
http_response_code(400);
|
||||
exit;
|
||||
}
|
||||
|
||||
// New, more detailed mock data for "HuisWiki"
|
||||
$mock_data = [
|
||||
// Basisgegevens
|
||||
'adres' => 'Coolsingel 40, 3011 AD Rotterdam',
|
||||
'postcode' => '3011 AD',
|
||||
'plaats' => 'Rotterdam',
|
||||
'gemeente' => 'Rotterdam',
|
||||
'provincie' => 'Zuid-Holland',
|
||||
'buurt' => 'Cool',
|
||||
'wijk' => 'Stadsdriehoek',
|
||||
|
||||
// WOZ Waarde
|
||||
'woz_waarde' => 2500000, // Current value in EUR
|
||||
'woz_ontwikkeling' => [
|
||||
['jaar' => 2019, 'waarde' => 2100000],
|
||||
['jaar' => 2020, 'waarde' => 2200000],
|
||||
['jaar' => 2021, 'waarde' => 2350000],
|
||||
['jaar' => 2022, 'waarde' => 2400000],
|
||||
['jaar' => 2023, 'waarde' => 2450000],
|
||||
['jaar' => 2024, 'waarde' => 2500000],
|
||||
],
|
||||
|
||||
// Kadastrale info
|
||||
'perceelnummer' => 'RTD01-A-1234',
|
||||
'eigendomssituatie' => 'Volledig eigendom',
|
||||
'type' => 'Winkelpand',
|
||||
'bouwjaar' => 1957,
|
||||
'oppervlakte' => 1573, // in m²
|
||||
|
||||
// Energielabel
|
||||
'energielabel' => getEnergylabelData('3011 AD', '40'),
|
||||
'geschatte_energiekosten' => 450, // per maand
|
||||
|
||||
// Verkoophistorie
|
||||
'verkoophistorie' => [
|
||||
['datum' => '2012-05-20', 'prijs' => 1800000, 'type' => 'Verkocht'],
|
||||
['datum' => '2005-11-15', 'prijs' => 1500000, 'type' => 'Verkocht'],
|
||||
['datum' => '1998-01-30', 'prijs' => 950000, 'type' => 'Verkocht'],
|
||||
],
|
||||
|
||||
// Buurtstatistieken
|
||||
'buurtstatistieken' => [
|
||||
'gemiddelde_woz' => 450000,
|
||||
'inwoners' => 8500,
|
||||
'gemiddelde_leeftijd' => 38,
|
||||
'groen_score' => 7.2, // out of 10
|
||||
'veiligheid_score' => 8.1, // out of 10
|
||||
]
|
||||
];
|
||||
|
||||
// Simulate network delay
|
||||
sleep(1);
|
||||
|
||||
echo json_encode($mock_data);
|
||||
|
||||
function getEnergylabelData($zip, $number) {
|
||||
// In a real app, you would get this from a secure place (e.g., environment variables)
|
||||
$apiKey = getenv('ENERGIE_LABEL_API_KEY');
|
||||
|
||||
// If no API key is set, we can't continue.
|
||||
if (!$apiKey || $apiKey === 'YOUR_API_KEY_HERE') {
|
||||
// We return a placeholder for now, so the frontend knows to show the "API key needed" state.
|
||||
return 'API_KEY_MISSING';
|
||||
}
|
||||
|
||||
// TODO: Replace with actual API call to EP-Online using the $apiKey.
|
||||
// For now, we'll return a mock value to prove the flow works.
|
||||
return 'A++';
|
||||
}
|
||||
@ -1,250 +0,0 @@
|
||||
/* --- Base & Variables --- */
|
||||
:root {
|
||||
--bg-primary: #fefefe;
|
||||
--bg-secondary: #f8f9fa;
|
||||
--bg-accent: #e9ecef;
|
||||
--text-primary: #212529;
|
||||
--text-secondary: #495057;
|
||||
--text-muted: #6c757d;
|
||||
--accent-blue: #0066cc;
|
||||
--accent-green: #059669;
|
||||
--accent-orange: #ea580c;
|
||||
--accent-purple: #7c3aed;
|
||||
--border-color: #dee2e6;
|
||||
--shadow: rgba(0, 0, 0, 0.07);
|
||||
--gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
}
|
||||
|
||||
.dark {
|
||||
/* Dark mode variables if needed */
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Work Sans', sans-serif;
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.mono {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* --- Layout & Header --- */
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
|
||||
.header {
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: 1.5rem 1rem;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 2px 10px var(--shadow);
|
||||
}
|
||||
|
||||
.header-content {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
background: var(--gradient-1);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.tagline {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* --- Hero & Search --- */
|
||||
.hero {
|
||||
text-align: center;
|
||||
padding: 3rem 1rem;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 16px;
|
||||
margin-bottom: 2rem;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 800;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 2rem;
|
||||
max-width: 600px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.search-wrapper {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
flex: 1;
|
||||
padding: 1rem 1.5rem;
|
||||
border: 2px solid var(--border-color);
|
||||
background: var(--bg-primary);
|
||||
border-radius: 12px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.search-btn {
|
||||
padding: 1rem 2.5rem;
|
||||
background: var(--gradient-1);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.search-btn:hover { transform: translateY(-2px); }
|
||||
|
||||
.examples { margin-top: 1rem; color: var(--text-muted); }
|
||||
.example-link { color: var(--accent-blue); text-decoration: none; margin: 0 0.5rem; }
|
||||
|
||||
/* --- Results --- */
|
||||
.results-container {
|
||||
display: none;
|
||||
animation: fadeIn 0.5s ease;
|
||||
}
|
||||
|
||||
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
|
||||
|
||||
.results-header {
|
||||
padding: 2rem;
|
||||
border-radius: 16px;
|
||||
margin-bottom: 2rem;
|
||||
border: 1px solid var(--border-color);
|
||||
background: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.address-title { font-size: 2rem; font-weight: 800; }
|
||||
.address-subtitle { font-size: 1.1rem; color: var(--text-secondary); }
|
||||
|
||||
/* --- Info Grid & Cards --- */
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.info-card {
|
||||
background: var(--bg-secondary);
|
||||
padding: 1.5rem;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-color);
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
.card-large {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
.card-large {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.card-icon { font-size: 1.5rem; }
|
||||
.card-title { font-size: 1.2rem; font-weight: 700; }
|
||||
|
||||
.info-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0.75rem 0;
|
||||
border-bottom: 1px solid var(--bg-accent);
|
||||
}
|
||||
.info-row:last-child { border-bottom: none; }
|
||||
|
||||
.info-label { color: var(--text-muted); }
|
||||
.info-value { font-weight: 600; text-align: right; }
|
||||
|
||||
/* --- Specific Cards --- */
|
||||
.woz-main {
|
||||
text-align: center;
|
||||
padding: 1rem 0 2rem;
|
||||
}
|
||||
|
||||
.woz-label { color: var(--text-muted); margin-bottom: 0.5rem; }
|
||||
.woz-value { font-size: 2.5rem; font-weight: 800; color: var(--accent-blue); }
|
||||
|
||||
.chart-container {
|
||||
position: relative;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
.history-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.history-table th, .history-table td {
|
||||
padding: 0.75rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.history-table th {
|
||||
background-color: var(--bg-accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.history-table td:last-child {
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* --- Loader --- */
|
||||
.loader {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 2px solid #FFF;
|
||||
border-bottom-color: transparent;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
animation: rotation 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
|
||||
@ -1,132 +0,0 @@
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const searchForm = document.getElementById('search-form');
|
||||
const searchInput = document.getElementById('search-input');
|
||||
const searchBtn = document.getElementById('search-btn');
|
||||
const resultsContainer = document.getElementById('results-container');
|
||||
const examples = document.querySelectorAll('.example-link');
|
||||
|
||||
// Helper to format currency
|
||||
const formatCurrency = (value) => new Intl.NumberFormat('nl-NL', { style: 'currency', currency: 'EUR', minimumFractionDigits: 0 }).format(value);
|
||||
|
||||
const handleSearch = async (query) => {
|
||||
if (!query) return;
|
||||
|
||||
const originalBtnText = searchBtn.innerHTML;
|
||||
searchBtn.innerHTML = '<span class="loader"></span>';
|
||||
searchBtn.disabled = true;
|
||||
resultsContainer.style.display = 'none';
|
||||
|
||||
try {
|
||||
const response = await fetch(`/api/search.php?query=${encodeURIComponent(query)}`);
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! status: ${response.status}`);
|
||||
}
|
||||
const data = await response.json();
|
||||
displayResults(data);
|
||||
} catch (error) {
|
||||
console.error("Fetch error: ", error);
|
||||
displayError('Er is een fout opgetreden. Probeer het later opnieuw.');
|
||||
} finally {
|
||||
searchBtn.innerHTML = originalBtnText;
|
||||
searchBtn.disabled = false;
|
||||
}
|
||||
};
|
||||
|
||||
searchForm.addEventListener('submit', (e) => {
|
||||
e.preventDefault();
|
||||
handleSearch(searchInput.value);
|
||||
});
|
||||
|
||||
examples.forEach(link => {
|
||||
link.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
const exampleQuery = e.target.textContent;
|
||||
searchInput.value = exampleQuery;
|
||||
handleSearch(exampleQuery);
|
||||
});
|
||||
});
|
||||
|
||||
const displayResults = (data) => {
|
||||
if (data.error) {
|
||||
displayError(data.error);
|
||||
return;
|
||||
}
|
||||
|
||||
// --- Main Header ---
|
||||
document.getElementById('address-title').textContent = data.adres;
|
||||
document.getElementById('address-subtitle').textContent = `Gegevens voor ${data.postcode}, ${data.plaats}`;
|
||||
|
||||
// --- Basisgegevens ---
|
||||
document.getElementById('info-postcode').textContent = data.postcode;
|
||||
document.getElementById('info-plaats').textContent = data.plaats;
|
||||
document.getElementById('info-gemeente').textContent = data.gemeente;
|
||||
document.getElementById('info-provincie').textContent = data.provincie;
|
||||
document.getElementById('info-buurt').textContent = data.buurt;
|
||||
document.getElementById('info-wijk').textContent = data.wijk;
|
||||
|
||||
// --- Kadastrale Info ---
|
||||
document.getElementById('info-perceelnummer').textContent = data.perceelnummer;
|
||||
document.getElementById('info-eigendomssituatie').textContent = data.eigendomssituatie;
|
||||
document.getElementById('info-type').textContent = data.type;
|
||||
document.getElementById('info-bouwjaar').textContent = data.bouwjaar;
|
||||
document.getElementById('info-oppervlakte').textContent = data.oppervlakte;
|
||||
|
||||
// --- WOZ Waarde ---
|
||||
document.getElementById('info-woz-waarde').textContent = formatCurrency(data.woz_waarde);
|
||||
|
||||
// --- Energielabel ---
|
||||
document.getElementById('info-energielabel').textContent = data.energielabel;
|
||||
document.getElementById('info-energiekosten').textContent = `${formatCurrency(data.geschatte_energiekosten)}`;
|
||||
|
||||
// --- Buurtstatistieken ---
|
||||
document.getElementById('info-inwoners').textContent = data.buurtstatistieken.inwoners.toLocaleString('nl-NL');
|
||||
document.getElementById('info-gem-leeftijd').textContent = `${data.buurtstatistieken.gemiddelde_leeftijd} jaar`;
|
||||
document.getElementById('info-groen-score').textContent = data.buurtstatistieken.groen_score;
|
||||
document.getElementById('info-veiligheid-score').textContent = data.buurtstatistieken.veiligheid_score;
|
||||
|
||||
// --- Verkoophistorie ---
|
||||
const historyBody = document.getElementById('verkoophistorie-body');
|
||||
historyBody.innerHTML = ''; // Clear previous results
|
||||
data.verkoophistorie.forEach(tx => {
|
||||
const row = document.createElement('tr');
|
||||
row.innerHTML = `
|
||||
<td>${new Date(tx.datum).toLocaleDateString('nl-NL')}</td>
|
||||
<td>${tx.type}</td>
|
||||
<td>${formatCurrency(tx.prijs)}</td>
|
||||
`;
|
||||
historyBody.appendChild(row);
|
||||
});
|
||||
|
||||
resultsContainer.style.display = 'block';
|
||||
resultsContainer.scrollIntoView({ behavior: 'smooth' });
|
||||
};
|
||||
|
||||
const displayError = (message) => {
|
||||
alert(message);
|
||||
};
|
||||
});
|
||||
|
||||
// Add some CSS for the loader
|
||||
const style = document.createElement('style');
|
||||
style.innerHTML = `
|
||||
.loader {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 2px solid #FFF;
|
||||
border-bottom-color: transparent;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
animation: rotation 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes rotation {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(style);
|
||||
291
index.php
291
index.php
@ -1,161 +1,150 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="nl">
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
@ini_set('display_errors', '1');
|
||||
@error_reporting(E_ALL);
|
||||
@date_default_timezone_set('UTC');
|
||||
|
||||
$phpVersion = PHP_VERSION;
|
||||
$now = date('Y-m-d H:i:s');
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!-- SEO & Meta Tags -->
|
||||
<title>HuisWiki - Complete adresinformatie Nederland</title>
|
||||
<meta name="description" content="Vind complete adresinformatie in Nederland. Zoek op postcode en huisnummer voor details over gebouwen, waarde, en omgeving. Gebouwd met Flatlogic." />
|
||||
<meta name="keywords" content="adresinformatie, postcode zoeken, huisnummer, woningwaarde, kadaster, WOZ, energielabel, vastgoed data, Nederland, Flatlogic Generator" />
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="HuisWiki - Complete adresinformatie Nederland">
|
||||
<meta property="og:description" content="Vind complete adresinformatie in Nederland. Zoek op postcode en huisnummer voor details over gebouwen, waarde, en omgeving. Gebouwd met Flatlogic.">
|
||||
<meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content="HuisWiki - Complete adresinformatie Nederland">
|
||||
<meta name="twitter:description" content="Vind complete adresinformatie in Nederland. Zoek op postcode en huisnummer voor details over gebouwen, waarde, en omgeving. Gebouwd met Flatlogic.">
|
||||
<meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
|
||||
|
||||
<!-- Fonts & Styles -->
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>New Style</title>
|
||||
<?php
|
||||
// Read project preview data from environment
|
||||
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? '';
|
||||
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? '';
|
||||
?>
|
||||
<?php if ($projectDescription): ?>
|
||||
<!-- Meta description -->
|
||||
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' />
|
||||
<!-- Open Graph meta tags -->
|
||||
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<!-- Twitter meta tags -->
|
||||
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if ($projectImageUrl): ?>
|
||||
<!-- Open Graph image -->
|
||||
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<!-- Twitter image -->
|
||||
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" />
|
||||
<?php endif; ?>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
||||
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color-start: #6a11cb;
|
||||
--bg-color-end: #2575fc;
|
||||
--text-color: #ffffff;
|
||||
--card-bg-color: rgba(255, 255, 255, 0.01);
|
||||
--card-border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
|
||||
color: var(--text-color);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
body::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
|
||||
animation: bg-pan 20s linear infinite;
|
||||
z-index: -1;
|
||||
}
|
||||
@keyframes bg-pan {
|
||||
0% { background-position: 0% 0%; }
|
||||
100% { background-position: 100% 100%; }
|
||||
}
|
||||
main {
|
||||
padding: 2rem;
|
||||
}
|
||||
.card {
|
||||
background: var(--card-bg-color);
|
||||
border: 1px solid var(--card-border-color);
|
||||
border-radius: 16px;
|
||||
padding: 2rem;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.loader {
|
||||
margin: 1.25rem auto 1.25rem;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid rgba(255, 255, 255, 0.25);
|
||||
border-top-color: #fff;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
.hint {
|
||||
opacity: 0.9;
|
||||
}
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px; height: 1px;
|
||||
padding: 0; margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap; border: 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 1rem;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
p {
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
code {
|
||||
background: rgba(0,0,0,0.2);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 1rem;
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="header">
|
||||
<div class="header-content">
|
||||
<div>
|
||||
<h1 class="logo mono">HuisWiki</h1>
|
||||
<p class="tagline">Complete adresinformatie van Nederland</p>
|
||||
<main>
|
||||
<div class="card">
|
||||
<h1>Analyzing your requirements and generating your website…</h1>
|
||||
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
|
||||
<span class="sr-only">Loading…</span>
|
||||
</div>
|
||||
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
|
||||
<p class="hint">This page will update automatically as the plan is implemented.</p>
|
||||
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<section class="hero">
|
||||
<h2 class="hero-title">Vind alles over elk adres</h2>
|
||||
<p class="hero-subtitle">Voer een postcode en huisnummer in en krijg direct toegang tot uitgebreide informatie over elk adres in Nederland.</p>
|
||||
|
||||
<div class="search-container">
|
||||
<form id="search-form" class="search-wrapper">
|
||||
<input type="text" id="search-input" class="search-input" placeholder="Bijv. 1012JS 1A" required>
|
||||
<button type="submit" id="search-btn" class="search-btn">Zoek</button>
|
||||
</form>
|
||||
<div class="examples">
|
||||
Voorbeeld:
|
||||
<a href="#" class="example-link mono">Coolsingel 40</a>
|
||||
<a href="#" class="example-link mono">Dam 1</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="results-container" class="results-container">
|
||||
<div class="results-header">
|
||||
<h3 id="address-title" class="address-title mono"></h3>
|
||||
<p id="address-subtitle" class="address-subtitle"></p>
|
||||
</div>
|
||||
|
||||
<div class="info-grid">
|
||||
<!-- Card: Basisgegevens -->
|
||||
<div class="info-card">
|
||||
<div class="card-header">
|
||||
<span class="card-icon">📍</span>
|
||||
<h4 class="card-title">Basisgegevens</h4>
|
||||
</div>
|
||||
<div class="info-row"><span class="info-label">Postcode</span><span id="info-postcode" class="info-value mono"></span></div>
|
||||
<div class="info-row"><span class="info-label">Plaats</span><span id="info-plaats" class="info-value"></span></div>
|
||||
<div class="info-row"><span class="info-label">Gemeente</span><span id="info-gemeente" class="info-value"></span></div>
|
||||
<div class="info-row"><span class="info-label">Provincie</span><span id="info-provincie" class="info-value"></span></div>
|
||||
<div class="info-row"><span class="info-label">Buurt</span><span id="info-buurt" class="info-value"></span></div>
|
||||
<div class="info-row"><span class="info-label">Wijk</span><span id="info-wijk" class="info-value"></span></div>
|
||||
</div>
|
||||
|
||||
<!-- Card: Kadastrale info -->
|
||||
<div class="info-card">
|
||||
<div class="card-header">
|
||||
<span class="card-icon">🏠</span>
|
||||
<h4 class="card-title">Kadastrale Informatie</h4>
|
||||
</div>
|
||||
<div class="info-row"><span class="info-label">Perceel</span><span id="info-perceelnummer" class="info-value mono"></span></div>
|
||||
<div class="info-row"><span class="info-label">Eigendom</span><span id="info-eigendomssituatie" class="info-value"></span></div>
|
||||
<div class="info-row"><span class="info-label">Type</span><span id="info-type" class="info-value"></span></div>
|
||||
<div class="info-row"><span class="info-label">Bouwjaar</span><span id="info-bouwjaar" class="info-value mono"></span></div>
|
||||
<div class="info-row"><span class="info-label">Oppervlakte</span><span id="info-oppervlakte" class="info-value mono"></span></div>
|
||||
</div>
|
||||
|
||||
<!-- Card: WOZ Waarde -->
|
||||
<div class="info-card">
|
||||
<div class="card-header">
|
||||
<span class="card-icon">📈</span>
|
||||
<h4 class="card-title">Gemiddelde WOZ-Waarde (Buurt)</h4>
|
||||
</div>
|
||||
<div class="woz-main">
|
||||
<p id="info-woz-waarde" class="woz-value"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Card: Energielabel -->
|
||||
<div class="info-card">
|
||||
<div class="card-header">
|
||||
<span class="card-icon">⚡️</span>
|
||||
<h4 class="card-title">Energielabel</h4>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">Label</span>
|
||||
<span id="info-energielabel" class="info-value mono"></span>
|
||||
</div>
|
||||
<div class="info-row">
|
||||
<span class="info-label">Gechatte Kosten p/m</span>
|
||||
<span id="info-energiekosten" class="info-value mono"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Card: Buurtstatistieken -->
|
||||
<div class="info-card">
|
||||
<div class="card-header">
|
||||
<span class="card-icon">📊</span>
|
||||
<h4 class="card-title">Buurtstatistieken</h4>
|
||||
</div>
|
||||
<div class="info-row"><span class="info-label">Gem. WOZ</span><span id="info-gem-woz" class="info-value mono"></span></div>
|
||||
<div class="info-row"><span class="info-label">Inwoners</span><span id="info-inwoners" class="info-value mono"></span></div>
|
||||
<div class="info-row"><span class="info-label">Gem. Leeftijd</span><span id="info-gem-leeftijd" class="info-value mono"></span></div>
|
||||
<div class="info-row"><span class="info-label">Groenscore</span><span id="info-groen-score" class="info-value mono"></span></div>
|
||||
<div class="info-row"><span class="info-label">Veiligheidsscore</span><span id="info-veiligheid-score" class="info-value mono"></span></div>
|
||||
</div>
|
||||
|
||||
<!-- Card: Verkoophistorie -->
|
||||
<div class="info-card card-large">
|
||||
<div class="card-header">
|
||||
<span class="card-icon">📜</span>
|
||||
<h4 class="card-title">Verkoophistorie</h4>
|
||||
</div>
|
||||
<table class="history-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Type</th>
|
||||
<th>Prijs</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="verkoophistorie-body">
|
||||
<!-- Rows will be injected by JS -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
||||
|
||||
<footer>
|
||||
Page updated: <?= htmlspecialchars($now) ?> (UTC)
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user