muhammadsaadkhatri commited on
Commit
0a5aed0
·
verified ·
1 Parent(s): 03b1f68

Level 1 – Python (OOP) Task Student Management System with Streamlit Objective Build a complete Student Management System using Python OOP principles and Streamlit for the user interface. Core Requirements • Implement a clean OOP structure (Student class, Manager class). • CRUD functionality: Add, Update, Delete, List Students. • Use JSON or CSV for storage. • Provide search and filtering (grade, age, performance). • Streamlit interface using forms, tables, alerts. • Full input validation for all fields. • Clean modular code separation: - models/ - services/ - ui/

Files changed (8) hide show
  1. README.md +8 -5
  2. components/footer.js +85 -0
  3. components/navbar.js +112 -0
  4. documentation.html +118 -0
  5. features.html +103 -0
  6. index.html +87 -19
  7. script.js +48 -0
  8. style.css +32 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Pythonic Student Wizard
3
- emoji: 📉
4
- colorFrom: blue
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Pythonic Student Wizard 🧙‍♂️
3
+ colorFrom: red
4
+ colorTo: green
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer {
7
+ background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
8
+ }
9
+ .footer-link {
10
+ transition: all 0.3s ease;
11
+ }
12
+ .footer-link:hover {
13
+ transform: translateY(-2px);
14
+ opacity: 0.8;
15
+ }
16
+ </style>
17
+ <footer class="footer text-white mt-auto">
18
+ <div class="container mx-auto px-4 py-8">
19
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
20
+ <div>
21
+ <h3 class="text-xl font-bold mb-4">Student Wizard</h3>
22
+ <p class="opacity-80 mb-4">A modern student management system built with Python OOP principles and Streamlit.</p>
23
+ <div class="flex space-x-4">
24
+ <a href="#" class="footer-link">
25
+ <i data-feather="github" class="w-5 h-5"></i>
26
+ </a>
27
+ <a href="#" class="footer-link">
28
+ <i data-feather="twitter" class="w-5 h-5"></i>
29
+ </a>
30
+ <a href="#" class="footer-link">
31
+ <i data-feather="linkedin" class="w-5 h-5"></i>
32
+ </a>
33
+ </div>
34
+ </div>
35
+
36
+ <div>
37
+ <h4 class="font-semibold mb-4">Resources</h4>
38
+ <ul class="space-y-2">
39
+ <li>
40
+ <a href="documentation.html" class="footer-link flex items-center space-x-2 opacity-80 hover:opacity-100">
41
+ <i data-feather="file-text" class="w-4 h-4"></i>
42
+ <span>Documentation</span>
43
+ </a>
44
+ </li>
45
+ <li>
46
+ <a href="https://streamlit.io" target="_blank" class="footer-link flex items-center space-x-2 opacity-80 hover:opacity-100">
47
+ <i data-feather="external-link" class="w-4 h-4"></i>
48
+ <span>Streamlit</span>
49
+ </a>
50
+ </li>
51
+ <li>
52
+ <a href="https://python.org" target="_blank" class="footer-link flex items-center space-x-2 opacity-80 hover:opacity-100">
53
+ <i data-feather="external-link" class="w-4 h-4"></i>
54
+ <span>Python</span>
55
+ </a>
56
+ </li>
57
+ </ul>
58
+ </div>
59
+
60
+ <div>
61
+ <h4 class="font-semibold mb-4">Contact</h4>
62
+ <ul class="space-y-2">
63
+ <li class="flex items-center space-x-2 opacity-80">
64
+ <i data-feather="mail" class="w-4 h-4"></i>
65
+ <span>contact@studentwizard.com</span>
66
+ </li>
67
+ <li class="flex items-center space-x-2 opacity-80">
68
+ <i data-feather="globe" class="w-4 h-4"></i>
69
+ <span>www.studentwizard.com</span>
70
+ </li>
71
+ </ul>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="border-t border-white/20 mt-8 pt-6 text-center opacity-70 text-sm">
76
+ <p>&copy; ${new Date().getFullYear()} Student Wizard. All rights reserved.</p>
77
+ </div>
78
+ </div>
79
+ </footer>
80
+ <script>feather.replace();</script>
81
+ `;
82
+ }
83
+ }
84
+
85
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
8
+ }
9
+ .nav-link {
10
+ transition: all 0.3s ease;
11
+ }
12
+ .nav-link:hover {
13
+ transform: translateY(-2px);
14
+ }
15
+ .hamburger {
16
+ transition: all 0.3s ease;
17
+ }
18
+ @media (max-width: 768px) {
19
+ .mobile-menu {
20
+ max-height: 0;
21
+ overflow: hidden;
22
+ transition: max-height 0.3s ease-out;
23
+ }
24
+ .mobile-menu.open {
25
+ max-height: 500px;
26
+ }
27
+ }
28
+ </style>
29
+ <nav class="navbar text-white shadow-lg">
30
+ <div class="container mx-auto px-4 py-4">
31
+ <div class="flex justify-between items-center">
32
+ <div class="flex items-center space-x-2">
33
+ <i data-feather="book-open" class="w-6 h-6"></i>
34
+ <a href="index.html" class="text-xl font-bold">Student Wizard</a>
35
+ </div>
36
+
37
+ <div class="hidden md:flex items-center space-x-6">
38
+ <a href="index.html" class="nav-link flex items-center space-x-1">
39
+ <i data-feather="home" class="w-4 h-4"></i>
40
+ <span>Home</span>
41
+ </a>
42
+ <a href="features.html" class="nav-link flex items-center space-x-1">
43
+ <i data-feather="star" class="w-4 h-4"></i>
44
+ <span>Features</span>
45
+ </a>
46
+ <a href="documentation.html" class="nav-link flex items-center space-x-1">
47
+ <i data-feather="file-text" class="w-4 h-4"></i>
48
+ <span>Docs</span>
49
+ </a>
50
+ <button onclick="toggleTheme()" class="p-2 rounded-full hover:bg-white/10 transition">
51
+ <i data-feather="moon" class="w-4 h-4"></i>
52
+ </button>
53
+ </div>
54
+
55
+ <button id="mobile-menu-button" class="md:hidden hamburger focus:outline-none">
56
+ <i data-feather="menu" class="w-6 h-6"></i>
57
+ </button>
58
+ </div>
59
+
60
+ <div id="mobile-menu" class="mobile-menu md:hidden">
61
+ <div class="pt-4 pb-2 space-y-3">
62
+ <a href="index.html" class="block nav-link px-3 py-2 rounded hover:bg-white/10">
63
+ <div class="flex items-center space-x-2">
64
+ <i data-feather="home" class="w-4 h-4"></i>
65
+ <span>Home</span>
66
+ </div>
67
+ </a>
68
+ <a href="features.html" class="block nav-link px-3 py-2 rounded hover:bg-white/10">
69
+ <div class="flex items-center space-x-2">
70
+ <i data-feather="star" class="w-4 h-4"></i>
71
+ <span>Features</span>
72
+ </div>
73
+ </a>
74
+ <a href="documentation.html" class="block nav-link px-3 py-2 rounded hover:bg-white/10">
75
+ <div class="flex items-center space-x-2">
76
+ <i data-feather="file-text" class="w-4 h-4"></i>
77
+ <span>Documentation</span>
78
+ </div>
79
+ </a>
80
+ <button onclick="toggleTheme()" class="w-full text-left px-3 py-2 rounded hover:bg-white/10">
81
+ <div class="flex items-center space-x-2">
82
+ <i data-feather="moon" class="w-4 h-4"></i>
83
+ <span>Toggle Theme</span>
84
+ </div>
85
+ </button>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </nav>
90
+ <script>feather.replace();</script>
91
+ `;
92
+
93
+ // Mobile menu toggle
94
+ const mobileMenuButton = this.shadowRoot.getElementById('mobile-menu-button');
95
+ const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
96
+ let menuOpen = false;
97
+
98
+ mobileMenuButton.addEventListener('click', () => {
99
+ menuOpen = !menuOpen;
100
+ if (menuOpen) {
101
+ mobileMenu.classList.add('open');
102
+ this.shadowRoot.querySelector('#mobile-menu-button i').setAttribute('data-feather', 'x');
103
+ } else {
104
+ mobileMenu.classList.remove('open');
105
+ this.shadowRoot.querySelector('#mobile-menu-button i').setAttribute('data-feather', 'menu');
106
+ }
107
+ feather.replace();
108
+ });
109
+ }
110
+ }
111
+
112
+ customElements.define('custom-navbar', CustomNavbar);
documentation.html ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Documentation - Pythonic Student Wizard</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <link rel="stylesheet" href="style.css">
12
+ </head>
13
+ <body class="bg-gray-100">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="container mx-auto px-4 py-12">
17
+ <div class="max-w-4xl mx-auto">
18
+ <div class="text-center mb-12">
19
+ <h1 class="text-4xl font-bold text-indigo-700 mb-4">Documentation</h1>
20
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto">Complete guide to implementing and using the Student Management System</p>
21
+ </div>
22
+
23
+ <div class="bg-white rounded-xl shadow-lg p-8 mb-8">
24
+ <h2 class="text-2xl font-bold text-indigo-700 mb-6">Installation</h2>
25
+ <div class="bg-gray-800 rounded-lg p-4 text-white font-mono text-sm overflow-x-auto mb-6">
26
+ <div class="text-green-400 mb-2"># Install required packages</div>
27
+ <div>pip install streamlit pandas</div>
28
+ </div>
29
+
30
+ <h3 class="text-xl font-semibold text-gray-800 mb-4 mt-6">Running the Application</h3>
31
+ <div class="bg-gray-800 rounded-lg p-4 text-white font-mono text-sm overflow-x-auto">
32
+ <div class="text-green-400 mb-2"># Start the Streamlit server</div>
33
+ <div>streamlit run main.py</div>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="bg-white rounded-xl shadow-lg p-8 mb-8">
38
+ <h2 class="text-2xl font-bold text-indigo-700 mb-6">Usage Guide</h2>
39
+
40
+ <div class="mb-8">
41
+ <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
42
+ <i data-feather="user-plus" class="w-5 h-5 mr-2 text-indigo-600"></i>
43
+ Adding a Student
44
+ </h3>
45
+ <ol class="list-decimal list-inside space-y-2 text-gray-700">
46
+ <li>Navigate to the "Add Student" tab</li>
47
+ <li>Fill in all required fields (name, age, grade)</li>
48
+ <li>Click "Submit" to save the student record</li>
49
+ <li>Validation will ensure all data is correct</li>
50
+ </ol>
51
+ </div>
52
+
53
+ <div class="mb-8">
54
+ <h3 class="text-xl font-semibold text-gray-800 mb-4 flex items-center">
55
+ <i data-feather="search" class="w-5 h-5 mr-2 text-indigo-600"></i>
56
+ Searching Students
57
+ </h3>
58
+ <p class="text-gray-700 mb-4">You can filter students by various criteria:</p>
59
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
60
+ <div class="bg-indigo-50 p-3 rounded-lg">
61
+ <div class="font-medium text-indigo-800">By Grade</div>
62
+ <div class="text-sm text-gray-600">Filter students by their grade level</div>
63
+ </div>
64
+ <div class="bg-indigo-50 p-3 rounded-lg">
65
+ <div class="font-medium text-indigo-800">By Age Range</div>
66
+ <div class="text-sm text-gray-600">Find students within specific age brackets</div>
67
+ </div>
68
+ <div class="bg-indigo-50 p-3 rounded-lg">
69
+ <div class="font-medium text-indigo-800">By Performance</div>
70
+ <div class="text-sm text-gray-600">Filter by GPA or test scores</div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+
76
+ <div class="bg-white rounded-xl shadow-lg p-8">
77
+ <h2 class="text-2xl font-bold text-indigo-700 mb-6">API Reference</h2>
78
+
79
+ <div class="overflow-x-auto">
80
+ <table class="min-w-full bg-white border border-gray-200">
81
+ <thead class="bg-gray-50">
82
+ <tr>
83
+ <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Method</th>
84
+ <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Description</th>
85
+ <th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Parameters</th>
86
+ </tr>
87
+ </thead>
88
+ <tbody class="divide-y divide-gray-200">
89
+ <tr>
90
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-mono text-indigo-600">add_student()</td>
91
+ <td class="px-4 py-2 text-sm text-gray-600">Adds a new student to the system</td>
92
+ <td class="px-4 py-2 text-sm font-mono text-gray-600">student: Student</td>
93
+ </tr>
94
+ <tr>
95
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-mono text-indigo-600">get_student()</td>
96
+ <td class="px-4 py-2 text-sm text-gray-600">Retrieves a student by ID</td>
97
+ <td class="px-4 py-2 text-sm font-mono text-gray-600">student_id: str</td>
98
+ </tr>
99
+ <tr>
100
+ <td class="px-4 py-2 whitespace-nowrap text-sm font-mono text-indigo-600">search_students()</td>
101
+ <td class="px-4 py-2 text-sm text-gray-600">Filters students by criteria</td>
102
+ <td class="px-4 py-2 text-sm font-mono text-gray-600">**filters: dict</td>
103
+ </tr>
104
+ </tbody>
105
+ </table>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </main>
110
+
111
+ <custom-footer></custom-footer>
112
+
113
+ <script src="components/navbar.js"></script>
114
+ <script src="components/footer.js"></script>
115
+ <script src="script.js"></script>
116
+ <script>feather.replace();</script>
117
+ </body>
118
+ </html>
features.html ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Features - Pythonic Student Wizard</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <link rel="stylesheet" href="style.css">
12
+ </head>
13
+ <body class="bg-gray-100">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="container mx-auto px-4 py-12">
17
+ <div class="max-w-4xl mx-auto">
18
+ <div class="text-center mb-12">
19
+ <h1 class="text-4xl font-bold text-indigo-700 mb-4">System Features</h1>
20
+ <p class="text-xl text-gray-600 max-w-2xl mx-auto">Explore the powerful capabilities of our Student Management System</p>
21
+ </div>
22
+
23
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-12">
24
+ <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
25
+ <div class="bg-indigo-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
26
+ <i data-feather="user-plus" class="text-indigo-600 w-6 h-6"></i>
27
+ </div>
28
+ <h3 class="text-xl font-semibold text-gray-800 mb-2">Student CRUD</h3>
29
+ <p class="text-gray-600">Create, Read, Update, and Delete student records with intuitive forms and validation.</p>
30
+ </div>
31
+
32
+ <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
33
+ <div class="bg-indigo-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
34
+ <i data-feather="search" class="text-indigo-600 w-6 h-6"></i>
35
+ </div>
36
+ <h3 class="text-xl font-semibold text-gray-800 mb-2">Advanced Search</h3>
37
+ <p class="text-gray-600">Filter students by grade, age, performance metrics, and other criteria.</p>
38
+ </div>
39
+
40
+ <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
41
+ <div class="bg-indigo-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
42
+ <i data-feather="database" class="text-indigo-600 w-6 h-6"></i>
43
+ </div>
44
+ <h3 class="text-xl font-semibold text-gray-800 mb-2">Data Persistence</h3>
45
+ <p class="text-gray-600">Save student records in JSON or CSV format for easy data management.</p>
46
+ </div>
47
+
48
+ <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
49
+ <div class="bg-indigo-100 w-12 h-12 rounded-full flex items-center justify-center mb-4">
50
+ <i data-feather="shield" class="text-indigo-600 w-6 h-6"></i>
51
+ </div>
52
+ <h3 class="text-xl font-semibold text-gray-800 mb-2">Input Validation</h3>
53
+ <p class="text-gray-600">Comprehensive validation ensures data integrity and prevents errors.</p>
54
+ </div>
55
+ </div>
56
+
57
+ <div class="bg-white rounded-xl shadow-lg p-8 mb-8">
58
+ <h2 class="text-2xl font-bold text-indigo-700 mb-6">OOP Architecture</h2>
59
+ <div class="bg-gray-800 rounded-lg p-4 text-white font-mono text-sm overflow-x-auto mb-6">
60
+ <div class="text-green-400 mb-2"># Project Structure</div>
61
+ <div>models/</div>
62
+ <div class="ml-4">student.py <span class="text-gray-400"># Student class definition</span></div>
63
+ <div class="ml-4">manager.py <span class="text-gray-400"># Manager class for operations</span></div>
64
+ <div>services/</div>
65
+ <div class="ml-4">storage.py <span class="text-gray-400"># Data persistence logic</span></div>
66
+ <div class="ml-4">validation.py <span class="text-gray-400"># Input validation</span></div>
67
+ <div>ui/</div>
68
+ <div class="ml-4">forms.py <span class="text-gray-400"># Streamlit UI components</span></div>
69
+ </div>
70
+
71
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
72
+ <div>
73
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Student Class</h3>
74
+ <div class="bg-gray-100 rounded-lg p-4 font-mono text-sm overflow-x-auto">
75
+ <div>class Student:</div>
76
+ <div class="ml-4">def __init__(self, name, age, grade):</div>
77
+ <div class="ml-8">self.name = name</div>
78
+ <div class="ml-8">self.age = age</div>
79
+ <div class="ml-8">self.grade = grade</div>
80
+ </div>
81
+ </div>
82
+
83
+ <div>
84
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Manager Class</h3>
85
+ <div class="bg-gray-100 rounded-lg p-4 font-mono text-sm overflow-x-auto">
86
+ <div>class StudentManager:</div>
87
+ <div class="ml-4">def add_student(self, student):</div>
88
+ <div class="ml-8">pass <span class="text-gray-500"># CRUD operations</span></div>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </main>
95
+
96
+ <custom-footer></custom-footer>
97
+
98
+ <script src="components/navbar.js"></script>
99
+ <script src="components/footer.js"></script>
100
+ <script src="script.js"></script>
101
+ <script>feather.replace();</script>
102
+ </body>
103
+ </html>
index.html CHANGED
@@ -1,19 +1,87 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Pythonic Student Wizard</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <link rel="stylesheet" href="style.css">
12
+ </head>
13
+ <body class="bg-gray-100">
14
+ <custom-navbar></custom-navbar>
15
+
16
+ <main class="container mx-auto px-4 py-8">
17
+ <div class="max-w-4xl mx-auto">
18
+ <div class="bg-white rounded-xl shadow-lg p-6 mb-8">
19
+ <h1 class="text-3xl font-bold text-indigo-700 mb-4">Python Student Management System</h1>
20
+ <p class="text-gray-600 mb-6">A complete OOP-based student management application built with Python and Streamlit.</p>
21
+
22
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
23
+ <div class="bg-indigo-50 rounded-lg p-6 border border-indigo-100">
24
+ <i data-feather="book" class="text-indigo-500 w-8 h-8 mb-4"></i>
25
+ <h2 class="text-xl font-semibold text-indigo-800 mb-2">Core Features</h2>
26
+ <ul class="space-y-2 text-gray-700">
27
+ <li class="flex items-start">
28
+ <i data-feather="check" class="text-green-500 mr-2 mt-1 w-4 h-4"></i>
29
+ <span>Student CRUD operations</span>
30
+ </li>
31
+ <li class="flex items-start">
32
+ <i data-feather="check" class="text-green-500 mr-2 mt-1 w-4 h-4"></i>
33
+ <span>Search & filtering capabilities</span>
34
+ </li>
35
+ <li class="flex items-start">
36
+ <i data-feather="check" class="text-green-500 mr-2 mt-1 w-4 h-4"></i>
37
+ <span>JSON/CSV data persistence</span>
38
+ </li>
39
+ </ul>
40
+ </div>
41
+
42
+ <div class="bg-indigo-50 rounded-lg p-6 border border-indigo-100">
43
+ <i data-feather="code" class="text-indigo-500 w-8 h-8 mb-4"></i>
44
+ <h2 class="text-xl font-semibold text-indigo-800 mb-2">Implementation</h2>
45
+ <ul class="space-y-2 text-gray-700">
46
+ <li class="flex items-start">
47
+ <i data-feather="layers" class="text-indigo-500 mr-2 mt-1 w-4 h-4"></i>
48
+ <span>Clean OOP architecture</span>
49
+ </li>
50
+ <li class="flex items-start">
51
+ <i data-feather="folder" class="text-indigo-500 mr-2 mt-1 w-4 h-4"></i>
52
+ <span>Modular code structure</span>
53
+ </li>
54
+ <li class="flex items-start">
55
+ <i data-feather="shield" class="text-indigo-500 mr-2 mt-1 w-4 h-4"></i>
56
+ <span>Input validation</span>
57
+ </li>
58
+ </ul>
59
+ </div>
60
+ </div>
61
+
62
+ <div class="mt-8 bg-indigo-50 rounded-lg p-6 border border-indigo-100">
63
+ <h2 class="text-xl font-semibold text-indigo-800 mb-4">Getting Started</h2>
64
+ <div class="bg-gray-800 rounded-lg p-4 text-white font-mono text-sm overflow-x-auto">
65
+ <div class="flex items-center mb-2">
66
+ <span class="text-green-400 mr-2">$</span>
67
+ <span>pip install streamlit pandas</span>
68
+ </div>
69
+ <div class="flex items-center">
70
+ <span class="text-green-400 mr-2">$</span>
71
+ <span>streamlit run main.py</span>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </main>
78
+
79
+ <custom-footer></custom-footer>
80
+
81
+ <script src="components/navbar.js"></script>
82
+ <script src="components/footer.js"></script>
83
+ <script src="script.js"></script>
84
+ <script>feather.replace();</script>
85
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
86
+ </body>
87
+ </html>
script.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // DOM Content Loaded event
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ // Smooth scrolling for anchor links
4
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
5
+ anchor.addEventListener('click', function (e) {
6
+ e.preventDefault();
7
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
8
+ behavior: 'smooth'
9
+ });
10
+ });
11
+ });
12
+
13
+ // Tooltip initialization
14
+ const tooltipTriggers = document.querySelectorAll('[data-tooltip]');
15
+ tooltipTriggers.forEach(trigger => {
16
+ trigger.addEventListener('mouseenter', function() {
17
+ const tooltip = document.createElement('div');
18
+ tooltip.classList.add('bg-gray-800', 'text-white', 'px-2', 'py-1', 'rounded', 'text-xs', 'absolute', 'z-50', 'whitespace-nowrap');
19
+ tooltip.textContent = this.getAttribute('data-tooltip');
20
+ document.body.appendChild(tooltip);
21
+
22
+ const rect = this.getBoundingClientRect();
23
+ tooltip.style.top = `${rect.top - 30}px`;
24
+ tooltip.style.left = `${rect.left + rect.width/2 - tooltip.offsetWidth/2}px`;
25
+
26
+ this.addEventListener('mouseleave', function() {
27
+ tooltip.remove();
28
+ });
29
+ });
30
+ });
31
+ });
32
+
33
+ // Theme toggle functionality
34
+ function toggleTheme() {
35
+ const html = document.documentElement;
36
+ if (html.classList.contains('dark')) {
37
+ html.classList.remove('dark');
38
+ localStorage.setItem('theme', 'light');
39
+ } else {
40
+ html.classList.add('dark');
41
+ localStorage.setItem('theme', 'dark');
42
+ }
43
+ }
44
+
45
+ // Check for saved theme preference
46
+ if (localStorage.getItem('theme') === 'dark') {
47
+ document.documentElement.classList.add('dark');
48
+ }
style.css CHANGED
@@ -1,28 +1,42 @@
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
28
  }
 
 
 
 
 
 
 
 
 
 
 
1
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Inter', sans-serif;
5
+ min-height: 100vh;
6
+ display: flex;
7
+ flex-direction: column;
8
+ }
9
+
10
+ /* Smooth scroll behavior */
11
+ html {
12
+ scroll-behavior: smooth;
13
  }
14
 
15
+ /* Custom scrollbar */
16
+ ::-webkit-scrollbar {
17
+ width: 8px;
18
+ height: 8px;
19
  }
20
 
21
+ ::-webkit-scrollbar-track {
22
+ background: #f1f1f1;
 
 
 
23
  }
24
 
25
+ ::-webkit-scrollbar-thumb {
26
+ background: #888;
27
+ border-radius: 4px;
 
 
 
28
  }
29
 
30
+ ::-webkit-scrollbar-thumb:hover {
31
+ background: #555;
32
  }
33
+
34
+ /* Animation for cards */
35
+ .card-hover {
36
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
37
+ }
38
+
39
+ .card-hover:hover {
40
+ transform: translateY(-5px);
41
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
42
+ }