initial commit

This commit is contained in:
stefan.tollkuehn committed 2026-10-07 21:57:34 +02:00
commit 7aac2718b5
7 files changed
+727

No files matched your search

+147
View File
@@ -0,0 +1,147 @@
<?php
declare(strict_types=1);
$h = static function (string $value): string {
return htmlspecialchars(
$value,
ENT_QUOTES | ENT_SUBSTITUTE,
'UTF-8'
);
};
?>
<div id="app-content">
<div class="jitsi-calendar-container">
<div class="jitsi-calendar-card">
<h1>
Add Jitsi Meeting to Calendar
</h1>
<p class="jitsi-calendar-intro">
The following meeting will be added to your
Nextcloud Calendar.
</p>
<div class="jitsi-calendar-details">
<div class="jitsi-calendar-row">
<strong>Title</strong>
<span><?= $h($_['summary']) ?></span>
</div>
<?php if ($_['description'] !== ''): ?>
<div class="jitsi-calendar-row">
<strong>Description</strong>
<span class="description">
<?= nl2br($h($_['description'])) ?>
</span>
</div>
<?php endif; ?>
<div class="jitsi-calendar-row">
<strong>Start</strong>
<span><?= $h($_['start']) ?></span>
</div>
<div class="jitsi-calendar-row">
<strong>End</strong>
<span><?= $h($_['end']) ?></span>
</div>
<?php if ($_['organizer'] !== ''): ?>
<div class="jitsi-calendar-row">
<strong>Organizer</strong>
<span><?= $h($_['organizer']) ?></span>
</div>
<?php endif; ?>
<?php if ($_['location'] !== ''): ?>
<div class="jitsi-calendar-row">
<strong>Location</strong>
<span>
<a
href="<?= $h($_['location']) ?>"
target="_blank"
rel="noopener noreferrer"
>
<?= $h($_['location']) ?>
</a>
</span>
</div>
<?php endif; ?>
</div>
<form
method="post"
action="<?= $h($_['createUrl']) ?>"
>
<input
type="hidden"
name="summary"
value="<?= $h($_['summary']) ?>"
>
<input
type="hidden"
name="description"
value="<?= $h($_['description']) ?>"
>
<input
type="hidden"
name="start"
value="<?= $h($_['start']) ?>"
>
<input
type="hidden"
name="end"
value="<?= $h($_['end']) ?>"
>
<input
type="hidden"
name="organizer"
value="<?= $h($_['organizer']) ?>"
>
<input
type="hidden"
name="location"
value="<?= $h($_['location']) ?>"
>
<input
type="hidden"
name="url"
value="<?= $h($_['url']) ?>"
>
<div class="jitsi-calendar-actions">
<button
type="submit"
class="primary"
>
Add to Nextcloud Calendar
</button>
<a
href="https://cloud.bnvb-ingenieure.de/"
class="secondary"
>
Cancel
</a>
</div>
</form>
</div>
</div>
</div>
+75
View File
@@ -0,0 +1,75 @@
.jitsi-calendar-container {
max-width: 760px;
margin: 60px auto;
padding: 20px;
}
.jitsi-calendar-card {
background: var(--color-main-background);
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 32px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.jitsi-calendar-card h1 {
margin-top: 0;
margin-bottom: 12px;
}
.jitsi-calendar-intro {
color: var(--color-text-maxcontrast);
margin-bottom: 28px;
}
.jitsi-calendar-details {
border-top: 1px solid var(--color-border);
border-bottom: 1px solid var(--color-border);
margin-bottom: 28px;
}
.jitsi-calendar-row {
display: grid;
grid-template-columns: 150px 1fr;
gap: 16px;
padding: 14px 0;
border-bottom: 1px solid var(--color-border);
}
.jitsi-calendar-row:last-child {
border-bottom: 0;
}
.jitsi-calendar-row span {
overflow-wrap: anywhere;
}
.jitsi-calendar-row .description {
white-space: normal;
}
.jitsi-calendar-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.jitsi-calendar-actions button,
.jitsi-calendar-actions a {
display: inline-block;
padding: 10px 18px;
border-radius: 6px;
text-decoration: none;
cursor: pointer;
}
.jitsi-calendar-actions button.primary {
background: var(--color-primary-element);
color: var(--color-primary-element-text);
border: 0;
}
.jitsi-calendar-actions a.secondary {
border: 1px solid var(--color-border);
color: var(--color-main-text);
}