OpenNIT

Quelltext des aktuellen Standes

Fassung 1.1.1

thanks.php

3 KB
<?php
// Dank-Seite nach abgegebener CSAT-Bewertung — wird auch angezeigt,
// wenn ein bereits bewerteter Link erneut aufgerufen wird.
?><!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="noindex">
    <title><?= $this->te('Danke für Ihre Bewertung') ?></title>
    <link rel="stylesheet" href="/assets/css/fonts.css">
    <link rel="stylesheet" href="/assets/css/tokens.css">
    <?php if (($design_style ?? 'standard') === 'material'): ?><link rel="stylesheet" href="/assets/css/theme-material.css"><?php endif; ?>
    <link rel="stylesheet" href="/assets/css/app.css">
    <style>
        /* Zentrierte Einzelkarte – Typografie kommt aus app.css */
        body {
            padding: 2rem 1rem;
            min-height: 100vh; display: flex; align-items: center; justify-content: center;
        }
        .csat-card {
            background: var(--color-bg); border-radius: 0.85rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
            max-width: 520px; width: 100%;
            padding: 2.5rem 2.25rem; text-align: center;
        }
        .csat-logo { margin-bottom: 1rem; }
        .csat-logo img { max-height: 64px; max-width: 240px; }
        .check {
            display: inline-flex; align-items: center; justify-content: center;
            width: 72px; height: 72px; border-radius: 50%;
            background: var(--emerald-100); color: var(--emerald-800); font-size: 2.5rem; line-height: 1;
            margin-bottom: 1.25rem;
        }
        .csat-card h1 { font-size: 1.3rem; margin-bottom: 0.75rem; }
        .csat-card p { color: var(--color-text-muted); line-height: 1.5; margin: 0; font-size: 0.95rem; }
        .rating-given { margin: 1rem 0 0.5rem; color: var(--amber-500); font-size: 1.5rem; }
    </style>
</head>
<body<?= ($design_style ?? 'standard') === 'material' ? ' class="design-material"' : '' ?>>
    <div class="csat-card">
        <?php if (!empty($app_logo)): ?>
        <div class="csat-logo"><img src="<?= $this->e($app_logo) ?>" alt="<?= $this->e($app_name ?? '') ?>"></div>
        <?php endif; ?>
        <div class="check" aria-hidden="true">&#10003;</div>
        <h1><?= $this->e($ui['thanks']) ?></h1>
        <?php if (!empty($rating)): ?>
        <div class="rating-given" aria-label="Abgegebene Bewertung: <?= (int)$rating ?> von 5 Sternen">
            <?= str_repeat('★', (int)$rating) ?><span style="color:var(--gray-300);"><?= str_repeat('★', 5 - (int)$rating) ?></span>
        </div>
        <?php endif; ?>
        <p><?= $this->te('Sie können dieses Fenster jetzt schließen.') ?></p>
    </div>
</body>
</html>