Files
actiewebsitedinges/index.php
T
2026-10-10 21:32:00 +02:00

109 lines
3.2 KiB
PHP

<?php require_once 'config.php'; ?>
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= htmlspecialchars(ACTIE_NAAM) ?></title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
height: 100%;
font-family: 'Segoe UI', sans-serif;
background: #fff;
color: #2c2c2c;
display: flex;
flex-direction: column;
overflow: hidden;
}
.iframe-wrapper {
flex: 1;
overflow: hidden;
position: relative;
}
/* ── Desktop ── */
.iframe-wrapper iframe {
position: absolute;
top: -60px;
left: 50%;
transform: translateX(-50%);
width: 750px;
height: calc(100% + 60px);
border: none;
}
/* ── Mobiel: schaal de iframe zodat 750px past in het scherm ── */
@media (max-width: 750px) {
.iframe-wrapper iframe {
left: 0;
top: -40px;
transform-origin: top left;
transform: scale(var(--iframe-scale, 0.52));
width: 750px;
height: calc((100% + 40px) / var(--iframe-scale, 0.52));
}
}
.bottom-bar {
background: #fff;
border-top: 1px solid #e0e0dc;
padding: 1rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-shrink: 0;
z-index: 10;
}
.bottom-bar .info {
font-size: 0.95rem;
color: #555;
}
.bottom-bar .info strong {
color: #1a1a1a;
font-size: 1.1rem;
}
.btn {
display: inline-block;
background: #3a6b3e;
color: #fff;
text-decoration: none;
padding: 0.8rem 1.5rem;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
white-space: nowrap;
transition: background 0.2s;
}
.btn:hover { background: #2e5431; }
</style>
</head>
<body>
<div class="iframe-wrapper">
<iframe src="https://docs.google.com/document/d/e/2PACX-1vRrsztpT267pPyXb223oW3vaSl1swseXAymcs2ZfTtuYcqGBP4UvTyd8Lud5j3m0A/pub?embedded=true"></iframe>
</div>
<div class="bottom-bar">
<div class="info">
<?= htmlspecialchars(ACTIE_NAAM) ?> &nbsp;·&nbsp;
<strong>€<?= number_format(PRIJS_PER_STUK, 2, ',', '.') ?></strong> per stuk
</div>
<a href="form.php" class="btn">Bestelling plaatsen →</a>
</div>
<script>
function pasSchaalAan() {
if (window.innerWidth <= 750) {
const schaal = window.innerWidth / 750;
document.documentElement.style.setProperty('--iframe-scale', schaal);
}
}
pasSchaalAan();
window.addEventListener('resize', pasSchaalAan);
</script>
</body>
</html>