Test/index.html aktualisiert
This commit is contained in:
parent
23b9dda810
commit
c42c1c8416
451
Test/index.html
451
Test/index.html
|
@ -1 +1,450 @@
|
||||||
test
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Schrittweiser Auswahlprozess</title>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font-family: sans-serif;
|
||||||
|
background: #fafafa;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step {
|
||||||
|
font-family: sans-serif;
|
||||||
|
display: none;
|
||||||
|
background: #eeeeee;
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 0px;
|
||||||
|
font-size: 1rem;
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity 0.4s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step.active {
|
||||||
|
display: block;
|
||||||
|
background: #f4f4f4;
|
||||||
|
opacity: 1;
|
||||||
|
border-bottom: 5px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step.completed {
|
||||||
|
/* Stil für abgeschlossene Steps, z.B. grüner Rand oder Haken-Icon */
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step.inactive {
|
||||||
|
/* Abgedunkelter Stil für inaktive Steps */
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step {
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
opacity: 1;
|
||||||
|
max-height: 500px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step.removing {
|
||||||
|
opacity: 0;
|
||||||
|
max-height: 0;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.selected {
|
||||||
|
/* Markierter Button */
|
||||||
|
background-color: #007bff;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
button[disabled] {
|
||||||
|
/* Deaktivierte Buttons */
|
||||||
|
cursor: not-allowed;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.secondary {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: grey;
|
||||||
|
border-color: grey;
|
||||||
|
padding: 5px 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.step .info {
|
||||||
|
padding: 7px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
display: block;
|
||||||
|
padding: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
font-size: 1rem;
|
||||||
|
padding: 15px 22px;
|
||||||
|
margin: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
border: 1px solid #e07047;
|
||||||
|
color: #e07047;
|
||||||
|
background: none;
|
||||||
|
display: inline-block;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button.selected,
|
||||||
|
.button.active {
|
||||||
|
background: #e07047;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.layout {
|
||||||
|
display: flex;
|
||||||
|
gap: 20px;
|
||||||
|
background: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-content {
|
||||||
|
flex: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
flex: 1;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
font-size: 1rem;
|
||||||
|
border: none;
|
||||||
|
padding: 5px 10px 5px 10px;
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
select.select {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
select.auto-width {
|
||||||
|
width: auto;
|
||||||
|
min-width: 50px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select.purple {
|
||||||
|
background-color: #ab70c1;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select.orange {
|
||||||
|
background-color: #e27046;
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select.blue {
|
||||||
|
background: #527fe2;
|
||||||
|
border-radius: 50px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select.green {
|
||||||
|
background: #31a46e;
|
||||||
|
color: white;
|
||||||
|
clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%);
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select-finder {
|
||||||
|
font-size: 1rem;
|
||||||
|
border: none;
|
||||||
|
padding: 5px 10px 5px 10px;
|
||||||
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
position: relative;
|
||||||
|
background-color: #ab70c1;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.select-arrow::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
top: 50%;
|
||||||
|
right: 10px;
|
||||||
|
transform: translate(0, -50%);
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background-color: #fff;
|
||||||
|
clip-path: polygon(50% 80%, 0 20%, 100% 20%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab {
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab.active {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta {
|
||||||
|
font-size: 1rem !important;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.personas-tableau {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 212px;
|
||||||
|
gap: 20px;
|
||||||
|
align-items: start;
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.personas-portrait {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 180px 1fr;
|
||||||
|
gap: 20px;
|
||||||
|
padding: 15px 15px 15px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portrait-left img {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 200px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-right {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.persona-head h2 {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
margin: 0 0 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.persona-head .subline {
|
||||||
|
font-style: italic;
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text {
|
||||||
|
margin-top: 1em;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.persona-list {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
grid-template-rows: repeat(3, auto);
|
||||||
|
gap: 5px;
|
||||||
|
background-color: white;
|
||||||
|
border-left: 5px solid white;
|
||||||
|
max-height: 3965px;
|
||||||
|
overflow-y: auto;
|
||||||
|
border-bottom: 5px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.persona {
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: opacity 0.3s;
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.persona img {
|
||||||
|
width: 80px;
|
||||||
|
filter: grayscale(100%);
|
||||||
|
transition: filter 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.persona:hover img {
|
||||||
|
filter: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.persona span {
|
||||||
|
display: block;
|
||||||
|
margin-top: 0.5em;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recommendation {
|
||||||
|
padding: 15px;
|
||||||
|
border-radius: 4px;
|
||||||
|
border-top: 5px solid white;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recommendation .distinction {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #e07047;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab-buttons {
|
||||||
|
display: flex;
|
||||||
|
background-color: white;
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
border-bottom: 2px solid #f1f1f1;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-tab {
|
||||||
|
padding: 10px 20px;
|
||||||
|
margin: 0;
|
||||||
|
border: none;
|
||||||
|
background-color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
border-right: 4px solid white;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
transition: background 0.2s ease;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-tab:last-child {
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-tab:hover {
|
||||||
|
font-weight: 700;
|
||||||
|
background-color: #e07047;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-tab.active {
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
border-bottom: 2px solid #f1f1f1;
|
||||||
|
color: #e07047;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-divider {
|
||||||
|
margin: 2rem 0;
|
||||||
|
border: 0;
|
||||||
|
height: 1px;
|
||||||
|
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
.additional-section {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
padding-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.additional-section h2 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.additional-section .text-content {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.additional-section .tags {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.additional-section .tags:not(:empty)::before {
|
||||||
|
content: "Tags: ";
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.additional-section .marginal {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #666;
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="tab-buttons">
|
||||||
|
<button class="button-tab active" onclick="showTab('tab1')">Personas</button>
|
||||||
|
<button class="button-tab" onclick="showTab('tab2')">Finder</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Personas Tab -->
|
||||||
|
<div class="tab tab1 active">
|
||||||
|
<div class="personas-tableau">
|
||||||
|
<div class="focus personas-portrait">
|
||||||
|
<div class="portrait-left">
|
||||||
|
<img id="persona-image" src="" alt="Portrait">
|
||||||
|
</div>
|
||||||
|
<div class="info-right">
|
||||||
|
<div class="persona-head">
|
||||||
|
<h2 id="persona-name"></h2>
|
||||||
|
<span id="persona-title" class="subline"></span>
|
||||||
|
</div>
|
||||||
|
<div class="text">
|
||||||
|
<p id="persona-text"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="persona-list" id="persona-list"></div>
|
||||||
|
</div>
|
||||||
|
<div class="recommendation">
|
||||||
|
<div class="main-content">
|
||||||
|
<h2 id="persona-headline"></h2>
|
||||||
|
<p id="persona-text-content"></p>
|
||||||
|
<p id="persona-tags" class="tags"></p>
|
||||||
|
</div>
|
||||||
|
<div class="sidebar">
|
||||||
|
<blockquote id="persona-marginal"></blockquote>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Finder Tab -->
|
||||||
|
<div class="tab tab2">
|
||||||
|
<form id="selectionForm">
|
||||||
|
|
||||||
|
<div id="dynamic-steps"></div>
|
||||||
|
<div id="result" style="display: none;">
|
||||||
|
<div class="main-section">
|
||||||
|
<h2 id="finder-headline">Empfehlung</h2>
|
||||||
|
<div id="finder-text-content" class="text-content">...</div>
|
||||||
|
<div id="finder-tags" class="tags"></div>
|
||||||
|
<div id="finder-marginal" class="marginal"></div>
|
||||||
|
</div>
|
||||||
|
<!-- Zusätzliche Abschnitte werden hier dynamisch eingefügt -->
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/js-yaml@4.1.0/dist/js-yaml.min.js"></script>
|
||||||
|
<script src="data/personas.js"></script>
|
||||||
|
<script src="data/finder.js"></script>
|
||||||
|
<script>
|
||||||
|
// Tabs anzeigen
|
||||||
|
function showTab(tabId) {
|
||||||
|
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
|
||||||
|
document.querySelector(`.${tabId}`).classList.add('active');
|
||||||
|
document.querySelectorAll('.button-tab').forEach(btn => btn.classList.remove('active'));
|
||||||
|
document.querySelector(`.button-tab[onclick*="${tabId}"]`).classList.add('active');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user