könntest du bitte im Menü "1. ich kann" unter dem Berecih "ich kann helfen mit..." in den einzelnen Angeboten unten Bewertungen von Kunden einfügen? Also Bewertungen für alle angebotene Dienste - Follow Up Deployment
Browse files- index.html +114 -1
index.html
CHANGED
|
@@ -106,7 +106,7 @@
|
|
| 106 |
<section class="content-section active bg-white rounded-xl shadow-md p-6" id="ich-kann">
|
| 107 |
<div class="flex justify-between items-center mb-6">
|
| 108 |
<h2 class="text-2xl font-bold text-gray-800">Ich kann helfen mit...</h2>
|
| 109 |
-
<button class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 transition">
|
| 110 |
<i class="fas fa-plus mr-2"></i> Neue Hilfe anbieten
|
| 111 |
</button>
|
| 112 |
</div>
|
|
@@ -121,6 +121,17 @@
|
|
| 121 |
<h3 class="font-semibold">Fahrdienste</h3>
|
| 122 |
</div>
|
| 123 |
<p class="text-gray-600 mb-4">Ich biete Fahrten zum Einkaufen oder zu Arztterminen an.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
<div class="flex justify-between text-sm">
|
| 125 |
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Aktiv</span>
|
| 126 |
<span class="text-gray-500">3 Anfragen</span>
|
|
@@ -136,6 +147,17 @@
|
|
| 136 |
<h3 class="font-semibold">Tierbetreuung</h3>
|
| 137 |
</div>
|
| 138 |
<p class="text-gray-600 mb-4">Ich passe auf Haustiere auf, wenn Sie im Urlaub sind.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
<div class="flex justify-between text-sm">
|
| 140 |
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Aktiv</span>
|
| 141 |
<span class="text-gray-500">5 Anfragen</span>
|
|
@@ -151,6 +173,17 @@
|
|
| 151 |
<h3 class="font-semibold">Reparaturen</h3>
|
| 152 |
</div>
|
| 153 |
<p class="text-gray-600 mb-4">Einfache Reparaturen im Haushalt oder am Fahrrad.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
<div class="flex justify-between text-sm">
|
| 155 |
<span class="bg-gray-100 text-gray-800 px-2 py-1 rounded">Pausiert</span>
|
| 156 |
<span class="text-gray-500">2 Anfragen</span>
|
|
@@ -583,8 +616,88 @@
|
|
| 583 |
</div>
|
| 584 |
</div>
|
| 585 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 586 |
<script>
|
| 587 |
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 588 |
// Navigation handling
|
| 589 |
const navItems = document.querySelectorAll('.nav-item');
|
| 590 |
const contentSections = document.querySelectorAll('.content-section');
|
|
|
|
| 106 |
<section class="content-section active bg-white rounded-xl shadow-md p-6" id="ich-kann">
|
| 107 |
<div class="flex justify-between items-center mb-6">
|
| 108 |
<h2 class="text-2xl font-bold text-gray-800">Ich kann helfen mit...</h2>
|
| 109 |
+
<button id="newHelpBtn" class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-600 transition">
|
| 110 |
<i class="fas fa-plus mr-2"></i> Neue Hilfe anbieten
|
| 111 |
</button>
|
| 112 |
</div>
|
|
|
|
| 121 |
<h3 class="font-semibold">Fahrdienste</h3>
|
| 122 |
</div>
|
| 123 |
<p class="text-gray-600 mb-4">Ich biete Fahrten zum Einkaufen oder zu Arztterminen an.</p>
|
| 124 |
+
<div class="flex items-center mb-2">
|
| 125 |
+
<div class="flex text-yellow-400">
|
| 126 |
+
<i class="fas fa-star"></i>
|
| 127 |
+
<i class="fas fa-star"></i>
|
| 128 |
+
<i class="fas fa-star"></i>
|
| 129 |
+
<i class="fas fa-star"></i>
|
| 130 |
+
<i class="fas fa-star-half-alt"></i>
|
| 131 |
+
</div>
|
| 132 |
+
<span class="text-sm text-gray-500 ml-2">4.5 (12 Bewertungen)</span>
|
| 133 |
+
</div>
|
| 134 |
+
<p class="text-sm text-gray-600 italic mb-3">"Pünktlich und zuverlässig! Max hat mich sicher zum Arzt gebracht."</p>
|
| 135 |
<div class="flex justify-between text-sm">
|
| 136 |
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Aktiv</span>
|
| 137 |
<span class="text-gray-500">3 Anfragen</span>
|
|
|
|
| 147 |
<h3 class="font-semibold">Tierbetreuung</h3>
|
| 148 |
</div>
|
| 149 |
<p class="text-gray-600 mb-4">Ich passe auf Haustiere auf, wenn Sie im Urlaub sind.</p>
|
| 150 |
+
<div class="flex items-center mb-2">
|
| 151 |
+
<div class="flex text-yellow-400">
|
| 152 |
+
<i class="fas fa-star"></i>
|
| 153 |
+
<i class="fas fa-star"></i>
|
| 154 |
+
<i class="fas fa-star"></i>
|
| 155 |
+
<i class="fas fa-star"></i>
|
| 156 |
+
<i class="fas fa-star"></i>
|
| 157 |
+
</div>
|
| 158 |
+
<span class="text-sm text-gray-500 ml-2">5.0 (8 Bewertungen)</span>
|
| 159 |
+
</div>
|
| 160 |
+
<p class="text-sm text-gray-600 italic mb-3">"Unser Hund liebt Max! Immer wieder gerne."</p>
|
| 161 |
<div class="flex justify-between text-sm">
|
| 162 |
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Aktiv</span>
|
| 163 |
<span class="text-gray-500">5 Anfragen</span>
|
|
|
|
| 173 |
<h3 class="font-semibold">Reparaturen</h3>
|
| 174 |
</div>
|
| 175 |
<p class="text-gray-600 mb-4">Einfache Reparaturen im Haushalt oder am Fahrrad.</p>
|
| 176 |
+
<div class="flex items-center mb-2">
|
| 177 |
+
<div class="flex text-yellow-400">
|
| 178 |
+
<i class="fas fa-star"></i>
|
| 179 |
+
<i class="fas fa-star"></i>
|
| 180 |
+
<i class="fas fa-star"></i>
|
| 181 |
+
<i class="fas fa-star"></i>
|
| 182 |
+
<i class="far fa-star"></i>
|
| 183 |
+
</div>
|
| 184 |
+
<span class="text-sm text-gray-500 ml-2">4.0 (5 Bewertungen)</span>
|
| 185 |
+
</div>
|
| 186 |
+
<p class="text-sm text-gray-600 italic mb-3">"Hat mein Fahrrad schnell und günstig repariert."</p>
|
| 187 |
<div class="flex justify-between text-sm">
|
| 188 |
<span class="bg-gray-100 text-gray-800 px-2 py-1 rounded">Pausiert</span>
|
| 189 |
<span class="text-gray-500">2 Anfragen</span>
|
|
|
|
| 616 |
</div>
|
| 617 |
</div>
|
| 618 |
|
| 619 |
+
<!-- New Help Modal -->
|
| 620 |
+
<div id="newHelpModal" class="fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center hidden">
|
| 621 |
+
<div class="bg-white rounded-xl shadow-xl p-6 w-full max-w-md">
|
| 622 |
+
<div class="flex justify-between items-center mb-4">
|
| 623 |
+
<h3 class="text-xl font-bold text-gray-800">Neue Hilfe anbieten</h3>
|
| 624 |
+
<button id="closeModal" class="text-gray-500 hover:text-gray-700">
|
| 625 |
+
<i class="fas fa-times"></i>
|
| 626 |
+
</button>
|
| 627 |
+
</div>
|
| 628 |
+
|
| 629 |
+
<div class="mb-4">
|
| 630 |
+
<label class="block text-gray-700 mb-2">Kategorie auswählen:</label>
|
| 631 |
+
<div class="grid grid-cols-2 gap-3">
|
| 632 |
+
<button class="category-btn bg-blue-100 hover:bg-blue-200 text-blue-800 py-3 px-4 rounded-lg transition">Auto, Rad, Boot</button>
|
| 633 |
+
<button class="category-btn bg-green-100 hover:bg-green-200 text-green-800 py-3 px-4 rounded-lg transition">Elektronik</button>
|
| 634 |
+
<button class="category-btn bg-yellow-100 hover:bg-yellow-200 text-yellow-800 py-3 px-4 rounded-lg transition">Haus & Garten</button>
|
| 635 |
+
<button class="category-btn bg-red-100 hover:bg-red-200 text-red-800 py-3 px-4 rounded-lg transition">Sport</button>
|
| 636 |
+
<button class="category-btn bg-purple-100 hover:bg-purple-200 text-purple-800 py-3 px-4 rounded-lg transition">Haustiere</button>
|
| 637 |
+
<button class="category-btn bg-pink-100 hover:bg-pink-200 text-pink-800 py-3 px-4 rounded-lg transition">Immobilien</button>
|
| 638 |
+
<button class="category-btn bg-indigo-100 hover:bg-indigo-200 text-indigo-800 py-3 px-4 rounded-lg transition">Mode</button>
|
| 639 |
+
<button class="category-btn bg-gray-100 hover:bg-gray-200 text-gray-800 py-3 px-4 rounded-lg transition">Nachhilfe & Training</button>
|
| 640 |
+
</div>
|
| 641 |
+
</div>
|
| 642 |
+
|
| 643 |
+
<div class="flex justify-end space-x-3">
|
| 644 |
+
<button id="cancelModal" class="px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-lg">Abbrechen</button>
|
| 645 |
+
<button id="confirmModal" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 disabled:opacity-50" disabled>Bestätigen</button>
|
| 646 |
+
</div>
|
| 647 |
+
</div>
|
| 648 |
+
</div>
|
| 649 |
+
|
| 650 |
<script>
|
| 651 |
document.addEventListener('DOMContentLoaded', function() {
|
| 652 |
+
// Modal handling
|
| 653 |
+
const newHelpBtn = document.querySelector('#ich-kann button');
|
| 654 |
+
const modal = document.getElementById('newHelpModal');
|
| 655 |
+
const closeModal = document.getElementById('closeModal');
|
| 656 |
+
const cancelModal = document.getElementById('cancelModal');
|
| 657 |
+
const confirmModal = document.getElementById('confirmModal');
|
| 658 |
+
const categoryBtns = document.querySelectorAll('.category-btn');
|
| 659 |
+
let selectedCategory = null;
|
| 660 |
+
|
| 661 |
+
newHelpBtn.addEventListener('click', () => {
|
| 662 |
+
modal.classList.remove('hidden');
|
| 663 |
+
});
|
| 664 |
+
|
| 665 |
+
closeModal.addEventListener('click', () => {
|
| 666 |
+
modal.classList.add('hidden');
|
| 667 |
+
resetSelection();
|
| 668 |
+
});
|
| 669 |
+
|
| 670 |
+
cancelModal.addEventListener('click', () => {
|
| 671 |
+
modal.classList.add('hidden');
|
| 672 |
+
resetSelection();
|
| 673 |
+
});
|
| 674 |
+
|
| 675 |
+
categoryBtns.forEach(btn => {
|
| 676 |
+
btn.addEventListener('click', () => {
|
| 677 |
+
// Remove selection from all buttons
|
| 678 |
+
categoryBtns.forEach(b => b.classList.remove('ring-2', 'ring-blue-500'));
|
| 679 |
+
|
| 680 |
+
// Add selection to clicked button
|
| 681 |
+
btn.classList.add('ring-2', 'ring-blue-500');
|
| 682 |
+
selectedCategory = btn.textContent;
|
| 683 |
+
confirmModal.disabled = false;
|
| 684 |
+
});
|
| 685 |
+
});
|
| 686 |
+
|
| 687 |
+
confirmModal.addEventListener('click', () => {
|
| 688 |
+
if (selectedCategory) {
|
| 689 |
+
alert(`Kategorie ${selectedCategory} wurde ausgewählt!`);
|
| 690 |
+
modal.classList.add('hidden');
|
| 691 |
+
resetSelection();
|
| 692 |
+
}
|
| 693 |
+
});
|
| 694 |
+
|
| 695 |
+
function resetSelection() {
|
| 696 |
+
categoryBtns.forEach(b => b.classList.remove('ring-2', 'ring-blue-500'));
|
| 697 |
+
selectedCategory = null;
|
| 698 |
+
confirmModal.disabled = true;
|
| 699 |
+
}
|
| 700 |
+
|
| 701 |
// Navigation handling
|
| 702 |
const navItems = document.querySelectorAll('.nav-item');
|
| 703 |
const contentSections = document.querySelectorAll('.content-section');
|