Files
gnilebeinandClaude Sonnet 5.5 31df730374
CI / Deploy / test (push) Successful in 1m0s
CI / Deploy / deploy (push) Skipped
Expand README and add repository link and name explanation to the site
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 00:06:11 +01:00

76 lines
3.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Start page: create a poll (e-mail, no login) or join one by code.
*
* @var \App\View\AppView $this
* @var \App\Model\Entity\Poll $poll
* @var array<string, mixed> $captcha
* @var array<string, string> $typeLabels
* @var array<string, string> $typeDescriptions
*/
$this->assign('title', __('Live-Umfragen ohne Login'));
?>
<section class="hero">
<h1><?= __('Live-Umfragen für Vorträge, Workshops und Meetings') ?></h1>
<p class="lead"><?= __('Fragen anlegen, Code zeigen, Ergebnisse live sehen. Ohne Konto – der Verwaltungslink kommt per E-Mail.') ?></p>
</section>
<div class="grid grid--2">
<section class="card">
<h2><?= __('Neue Umfrage erstellen') ?></h2>
<?= $this->Form->create($poll, ['url' => ['_name' => 'create'], 'novalidate' => false]) ?>
<?= $this->Form->control('title', [
'label' => __('Titel'),
'placeholder' => __('z. B. Team-Retro Oktober'),
'maxlength' => 200,
'required' => true,
]) ?>
<?= $this->Form->control('email', [
'label' => __('Deine E-Mail-Adresse'),
'type' => 'email',
'placeholder' => 'name@example.org',
'required' => true,
'autocomplete' => 'email',
]) ?>
<?= $this->element('honeypot') ?>
<?= $this->element('captcha', ['captcha' => $captcha]) ?>
<p class="hint"><?= __('Wir schicken dir einen geheimen Admin-Link. Die Adresse wird nur dafür verwendet.') ?></p>
<?= $this->Form->button(__('Umfrage erstellen'), ['class' => 'button button--primary']) ?>
<?= $this->Form->end() ?>
</section>
<section class="card card--accent">
<h2><?= __('An einer Umfrage teilnehmen') ?></h2>
<?= $this->Form->create(null, ['url' => ['_name' => 'join'], 'type' => 'get']) ?>
<?= $this->Form->control('code', [
'label' => __('Teilnahme-Code'),
'placeholder' => 'K7P 2QX',
'class' => 'input-code',
'autocomplete' => 'off',
'autocapitalize' => 'characters',
'required' => true,
]) ?>
<?= $this->Form->button(__('Teilnehmen'), ['class' => 'button']) ?>
<?= $this->Form->end() ?>
</section>
</div>
<section class="features-section" aria-labelledby="features-title">
<h2 id="features-title"><?= __('Folientypen') ?></h2>
<ul class="features">
<?php foreach ($typeLabels as $type => $label) : ?>
<li class="features__item type-card--<?= h($type) ?>">
<strong><?= h($label) ?></strong>
<span><?= h($typeDescriptions[$type] ?? '') ?></span>
</li>
<?php endforeach; ?>
</ul>
</section>
<section class="about" aria-labelledby="about-title">
<h2 id="about-title"><?= __('Was bedeutet PlenarIO?') ?></h2>
<p><?= __('PlenarIO ist ein Wortspiel aus Plenum – der versammelten Runde – und IO für Input/Output: Das Plenum gibt etwas ein, und das Ergebnis kommt live auf der Bühne wieder heraus.') ?></p>
<p><?= __('PlenarIO ist quelloffen.') ?>
<a href="https://gitea.gnilebein.de/gnilebein/Plenario" target="_blank" rel="noopener"><?= __('Quellcode auf Gitea') ?></a></p>
</section>