File size: 6,663 Bytes
0a5aed0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Documentation - Pythonic Student Wizard</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-100">
    <custom-navbar></custom-navbar>
    
    <main class="container mx-auto px-4 py-12">
        <div class="max-w-4xl mx-auto">
            <div class="text-center mb-12">
                <h1 class="text-4xl font-bold text-indigo-700 mb-4">Documentation</h1>
                <p class="text-xl text-gray-600 max-w-2xl mx-auto">Complete guide to implementing and using the Student Management System</p>
            </div>
            
            <div class="bg-white rounded-xl shadow-lg p-8 mb-8">
                <h2 class="text-2xl font-bold text-indigo-700 mb-6">Installation</h2>
                <div class="bg-gray-800 rounded-lg p-4 text-white font-mono text-sm overflow-x-auto mb-6">
                    <div class="text-green-400 mb-2"># Install required packages</div>
                    <div>pip install streamlit pandas</div>
                </div>
                
                <h3 class="text-xl font-semibold text-gray-800 mb-4 mt-6">Running the Application</h3>
                <div class="bg-gray-800 rounded-lg p-4 text-white font-mono text-sm overflow-x-auto">
                    <div class="text-green-400 mb-2"># Start the Streamlit server</div>
                    <div>streamlit run main.py</div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-lg p-8 mb-8">
                <h2 class="text-2xl font-bold text-indigo-700 mb-6">Usage Guide</h2>
                
                <div class="mb-8">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <i data-feather="user-plus" class="w-5 h-5 mr-2 text-indigo-600"></i>
                        Adding a Student
                    </h3>
                    <ol class="list-decimal list-inside space-y-2 text-gray-700">
                        <li>Navigate to the "Add Student" tab</li>
                        <li>Fill in all required fields (name, age, grade)</li>
                        <li>Click "Submit" to save the student record</li>
                        <li>Validation will ensure all data is correct</li>
                    </ol>
                </div>
                
                <div class="mb-8">
                    <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
                        <i data-feather="search" class="w-5 h-5 mr-2 text-indigo-600"></i>
                        Searching Students
                    </h3>
                    <p class="text-gray-700 mb-4">You can filter students by various criteria:</p>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                        <div class="bg-indigo-50 p-3 rounded-lg">
                            <div class="font-medium text-indigo-800">By Grade</div>
                            <div class="text-sm text-gray-600">Filter students by their grade level</div>
                        </div>
                        <div class="bg-indigo-50 p-3 rounded-lg">
                            <div class="font-medium text-indigo-800">By Age Range</div>
                            <div class="text-sm text-gray-600">Find students within specific age brackets</div>
                        </div>
                        <div class="bg-indigo-50 p-3 rounded-lg">
                            <div class="font-medium text-indigo-800">By Performance</div>
                            <div class="text-sm text-gray-600">Filter by GPA or test scores</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-lg p-8">
                <h2 class="text-2xl font-bold text-indigo-700 mb-6">API Reference</h2>
                
                <div class="overflow-x-auto">
                    <table class="min-w-full bg-white border border-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Method</th>
                                <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Description</th>
                                <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Parameters</th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-gray-200">
                            <tr>
                                <td class="px-4 py-2 whitespace-nowrap text-sm font-mono text-indigo-600">add_student()</td>
                                <td class="px-4 py-2 text-sm text-gray-600">Adds a new student to the system</td>
                                <td class="px-4 py-2 text-sm font-mono text-gray-600">student: Student</td>
                            </tr>
                            <tr>
                                <td class="px-4 py-2 whitespace-nowrap text-sm font-mono text-indigo-600">get_student()</td>
                                <td class="px-4 py-2 text-sm text-gray-600">Retrieves a student by ID</td>
                                <td class="px-4 py-2 text-sm font-mono text-gray-600">student_id: str</td>
                            </tr>
                            <tr>
                                <td class="px-4 py-2 whitespace-nowrap text-sm font-mono text-indigo-600">search_students()</td>
                                <td class="px-4 py-2 text-sm text-gray-600">Filters students by criteria</td>
                                <td class="px-4 py-2 text-sm font-mono text-gray-600">**filters: dict</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </main>

    <custom-footer></custom-footer>
    
    <script src="components/navbar.js"></script>
    <script src="components/footer.js"></script>
    <script src="script.js"></script>
    <script>feather.replace();</script>
</body>
</html>