Skip to content

Commit 4166593

Browse files
committed
Uzupełnienie sekcji footer, zamiana na przyciski i dodanie treści
1 parent 825f996 commit 4166593

5 files changed

Lines changed: 106 additions & 13 deletions

File tree

src/components/contact/Contact.tsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
export default function Contact() {
2+
return (
3+
<div className="p-6">
4+
<h1 className="text-3xl font-bold text-gray-800 mb-6">Kontakt</h1>
5+
6+
<div className="bg-white rounded-lg shadow p-6">
7+
<h2 className="text-xl font-semibold text-gray-800 mb-4">Skontaktuj się z nami</h2>
8+
<div className="prose prose-gray max-w-none">
9+
<p>
10+
Jeśli masz pytania, sugestie lub potrzebujesz pomocy technicznej, skontaktuj się z nami.
11+
</p>
12+
13+
<div className="mt-6 space-y-4">
14+
<div>
15+
<h3 className="text-lg font-medium text-gray-800">Email</h3>
16+
<p className="text-gray-700">biuro@maxsoft.pl</p>
17+
</div>
18+
19+
<div>
20+
<h3 className="text-lg font-medium text-gray-800">Telefon</h3>
21+
<p className="text-gray-700">+48791821908</p>
22+
</div>
23+
24+
<div>
25+
<h3 className="text-lg font-medium text-gray-800">Godziny pracy</h3>
26+
<p className="text-gray-700">
27+
Poniedziałek - Piątek: 9:00 - 17:00<br />
28+
Sobota - Niedziela: Zamknięte
29+
</p>
30+
</div>
31+
</div>
32+
33+
<div className="mt-8 p-4 bg-blue-50 rounded-lg">
34+
<p className="text-blue-800">
35+
<strong>Uwaga:</strong> W przypadku problemów technicznych, prosimy o podanie szczegółowego opisu problemu oraz informacji o używanym systemie operacyjnym i przeglądarce.
36+
</p>
37+
</div>
38+
</div>
39+
</div>
40+
</div>
41+
);
42+
}

src/components/help/Help.tsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
export default function Help() {
2+
return (
3+
<div className="p-6">
4+
<h1 className="text-3xl font-bold text-gray-800 mb-6">Pomoc</h1>
5+
6+
<div className="bg-white rounded-lg shadow p-6">
7+
<h2 className="text-xl font-semibold text-gray-800 mb-4">Jak korzystać z aplikacji</h2>
8+
<div className="prose prose-gray max-w-none">
9+
<p>
10+
Witaj w aplikacji Task Manager! Poniżej znajdziesz podstawowe informacje na temat korzystania z systemu.
11+
</p>
12+
13+
<h3 className="text-lg font-medium text-gray-800 mt-6 mb-2">Zarządzanie zadaniami</h3>
14+
<ul className="list-disc list-inside space-y-2 text-gray-700">
15+
<li>Przejdź do sekcji "Zadania" w menu nawigacyjnym</li>
16+
<li>Użyj przycisku "Dodaj zadanie" aby utworzyć nowe zadanie</li>
17+
<li>W tabeli zadań możesz edytować istniejące zadania</li>
18+
<li>Zadania są automatycznie przypisywane do aktualnie zalogowanego użytkownika</li>
19+
</ul>
20+
21+
<h3 className="text-lg font-medium text-gray-800 mt-6 mb-2">Zarządzanie użytkownikami (tylko administratorzy)</h3>
22+
<ul className="list-disc list-inside space-y-2 text-gray-700">
23+
<li>Przejdź do sekcji "Użytkownicy" w menu nawigacyjnym</li>
24+
<li>Możesz dodawać nowych użytkowników</li>
25+
<li>Możesz edytować role i status aktywności użytkowników</li>
26+
</ul>
27+
28+
<h3 className="text-lg font-medium text-gray-800 mt-6 mb-2">Dashboard</h3>
29+
<p className="text-gray-700">
30+
Na stronie głównej znajdziesz statystyki swoich zadań oraz listę ostatnio dodanych zadań.
31+
</p>
32+
</div>
33+
</div>
34+
</div>
35+
);
36+
}

src/components/layout/Content.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { useNavigation } from '../../context/NavigationContext';
33
import { useTaskStore } from '../../store/taskStore';
44
import UsersSettings from '../users/Settings';
55
import TasksSettings from '../tasks/Settings';
6+
import HelpSettings from '../help/Help';
7+
import ContactSettings from '../contact/Contact';
68

79
export default function Content() {
810
const { currentView } = useNavigation();
@@ -46,6 +48,22 @@ export default function Content() {
4648
);
4749
}
4850

51+
if (currentView === 'help') {
52+
return (
53+
<main className="flex-1 overflow-y-auto bg-gray-50">
54+
<HelpSettings />
55+
</main>
56+
);
57+
}
58+
59+
if (currentView === 'contact') {
60+
return (
61+
<main className="flex-1 overflow-y-auto bg-gray-50">
62+
<ContactSettings />
63+
</main>
64+
);
65+
}
66+
4967
return (
5068
<main className="flex-1 overflow-y-auto bg-gray-50">
5169
<div className="p-6">

src/components/layout/Footer.tsx

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import { useNavigation } from '../../context/NavigationContext';
2+
13
export default function Footer() {
4+
const { setCurrentView } = useNavigation();
25
return (
36
<footer className="bg-white border-t border-gray-200 py-4">
47
<div className="px-6">
@@ -7,24 +10,18 @@ export default function Footer() {
710
© {new Date().getFullYear()} Menadżer Zadań. Wszelkie prawa zastrzeżone.
811
</p>
912
<div className="flex items-center space-x-4">
10-
<a
11-
href="#"
13+
<button
14+
onClick={() => setCurrentView('help')}
1215
className="text-sm text-gray-600 hover:text-gray-800 transition-colors"
1316
>
1417
Pomoc
15-
</a>
16-
<a
17-
href="#"
18+
</button>
19+
<button
20+
onClick={() => setCurrentView('contact')}
1821
className="text-sm text-gray-600 hover:text-gray-800 transition-colors"
1922
>
2023
Kontakt
21-
</a>
22-
<a
23-
href="#"
24-
className="text-sm text-gray-600 hover:text-gray-800 transition-colors"
25-
>
26-
Dokumentacja
27-
</a>
24+
</button>
2825
</div>
2926
</div>
3027
</div>

src/context/NavigationContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createContext, useContext, useState, type ReactNode } from 'react';
22

3-
type View = 'dashboard' | 'users' | 'tasks';
3+
type View = 'dashboard' | 'users' | 'tasks' | 'help' | 'contact';
44

55
interface NavigationContextType {
66
currentView: View;

0 commit comments

Comments
 (0)