ssvc-rimsting-vote/public/iframe-example.html

97 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SSVC Rimsting Abstimmung - Iframe Beispiel</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #0057a6;
margin-top: 0;
}
.iframe-container {
width: 100%;
margin-top: 20px;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
}
iframe {
width: 100%;
height: 600px;
border: none;
}
.code-example {
background-color: #f0f7ff;
padding: 15px;
border-radius: 4px;
font-family: monospace;
margin-top: 20px;
overflow-x: auto;
}
.note {
margin-top: 20px;
padding: 10px;
background-color: #fffde7;
border-left: 4px solid #ffd600;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="container">
<h1>SSVC Rimsting Abstimmung - Iframe Beispiel</h1>
<p>Diese Seite zeigt, wie die Abstimmungskomponente als Iframe in eine externe Webseite eingebunden werden kann.
</p>
<h2>Live Beispiel</h2>
<div class="iframe-container">
<iframe src="/iframe" title="SSVC Rimsting Abstimmung" frameborder="0"></iframe>
</div>
<h2>HTML Code zum Einbinden</h2>
<div class="code-example">
&lt;iframe
src="https://ihre-domain.de/iframe"
width="100%"
height="600"
frameborder="0"
style="border:none;"
title="SSVC Rimsting Abstimmung"&gt;
&lt;/iframe&gt;
</div>
<div class="note">
<strong>Hinweis:</strong> Ersetzen Sie "https://ihre-domain.de/iframe" mit der tatsächlichen URL Ihrer
Abstimmungsseite.
<br><br>
Sie können auch einen Token direkt in der URL übergeben, um den Login-Schritt zu überspringen:
<br>
<code>https://ihre-domain.de/iframe?token=IHR_TOKEN</code>
</div>
</div>
</body>
</html>