Create a E-learning Platform for Python that uses Java, JS and CS. this platform has a feature that can give users the module depending on the Pre assessment score
Browse files- README.md +7 -4
- assessment.html +112 -0
- components/footer.js +126 -0
- components/navbar.js +91 -0
- index.html +77 -19
- script.js +46 -0
- style.css +25 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Python Pathfinder Code Your Way Up
|
| 3 |
-
emoji: 🏆
|
| 4 |
colorFrom: yellow
|
| 5 |
-
colorTo:
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Python Pathfinder - Code Your Way Up 🚀
|
|
|
|
| 3 |
colorFrom: yellow
|
| 4 |
+
colorTo: blue
|
| 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).
|
assessment.html
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Pre-Assessment | Python Pathfinder</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 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 |
+
</head>
|
| 12 |
+
<body class="bg-gray-50 min-h-screen">
|
| 13 |
+
<custom-navbar></custom-navbar>
|
| 14 |
+
|
| 15 |
+
<main class="container mx-auto px-4 py-8 max-w-3xl">
|
| 16 |
+
<div class="bg-white p-8 rounded-xl shadow-md">
|
| 17 |
+
<h1 class="text-3xl font-bold mb-6 text-center text-gray-800">Python Knowledge Assessment</h1>
|
| 18 |
+
<p class="text-gray-600 mb-8 text-center">This assessment will help us determine your current skill level and recommend the best learning path for you.</p>
|
| 19 |
+
|
| 20 |
+
<form id="assessment-form" class="space-y-8">
|
| 21 |
+
<div class="question-group">
|
| 22 |
+
<h3 class="text-xl font-semibold mb-4">1. Python Basics</h3>
|
| 23 |
+
<div class="space-y-4">
|
| 24 |
+
<div class="question">
|
| 25 |
+
<p class="mb-2">How would you define a function in Python?</p>
|
| 26 |
+
<div class="space-y-2">
|
| 27 |
+
<label class="flex items-center">
|
| 28 |
+
<input type="radio" name="q1" value="1" class="mr-2">
|
| 29 |
+
<span>Using the "function" keyword</span>
|
| 30 |
+
</label>
|
| 31 |
+
<label class="flex items-center">
|
| 32 |
+
<input type="radio" name="q1" value="2" class="mr-2">
|
| 33 |
+
<span>Using the "def" keyword</span>
|
| 34 |
+
</label>
|
| 35 |
+
<label class="flex items-center">
|
| 36 |
+
<input type="radio" name="q1" value="0" class="mr-2">
|
| 37 |
+
<span>I don't know</span>
|
| 38 |
+
</label>
|
| 39 |
+
</div>
|
| 40 |
+
</div>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<div class="question-group">
|
| 45 |
+
<h3 class="text-xl font-semibold mb-4">2. Java-Python Integration</h3>
|
| 46 |
+
<div class="space-y-4">
|
| 47 |
+
<div class="question">
|
| 48 |
+
<p class="mb-2">What tool can be used to call Java from Python?</p>
|
| 49 |
+
<div class="space-y-2">
|
| 50 |
+
<label class="flex items-center">
|
| 51 |
+
<input type="radio" name="q2" value="0" class="mr-2">
|
| 52 |
+
<span>JVM</span>
|
| 53 |
+
</label>
|
| 54 |
+
<label class="flex items-center">
|
| 55 |
+
<input type="radio" name="q2" value="1" class="mr-2">
|
| 56 |
+
<span>JPype</span>
|
| 57 |
+
</label>
|
| 58 |
+
<label class="flex items-center">
|
| 59 |
+
<input type="radio" name="q2" value="2" class="mr-2">
|
| 60 |
+
<span>I don't know</span>
|
| 61 |
+
</label>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<div class="question-group">
|
| 68 |
+
<h3 class="text-xl font-semibold mb-4">3. Computer Science Concepts</h3>
|
| 69 |
+
<div class="space-y-4">
|
| 70 |
+
<div class="question">
|
| 71 |
+
<p class="mb-2">What is the time complexity of a binary search algorithm?</p>
|
| 72 |
+
<div class="space-y-2">
|
| 73 |
+
<label class="flex items-center">
|
| 74 |
+
<input type="radio" name="q3" value="1" class="mr-2">
|
| 75 |
+
<span>O(n)</span>
|
| 76 |
+
</label>
|
| 77 |
+
<label class="flex items-center">
|
| 78 |
+
<input type="radio" name="q3" value="2" class="mr-2">
|
| 79 |
+
<span>O(log n)</span>
|
| 80 |
+
</label>
|
| 81 |
+
<label class="flex items-center">
|
| 82 |
+
<input type="radio" name="q3" value="0" class="mr-2">
|
| 83 |
+
<span>I don't know</span>
|
| 84 |
+
</label>
|
| 85 |
+
</div>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
<button type="submit" class="w-full bg-blue-600 text-white py-3 rounded-lg font-medium hover:bg-blue-700 transition">
|
| 91 |
+
Submit Assessment
|
| 92 |
+
</button>
|
| 93 |
+
</form>
|
| 94 |
+
|
| 95 |
+
<div id="results" class="hidden mt-8 p-6 rounded-lg bg-blue-50 border border-blue-200">
|
| 96 |
+
<h3 class="text-xl font-semibold mb-4 text-blue-800">Your Learning Path</h3>
|
| 97 |
+
<p id="result-text" class="mb-4"></p>
|
| 98 |
+
<a id="start-learning" href="#" class="inline-block bg-blue-600 text-white px-6 py-2 rounded-lg font-medium hover:bg-blue-700 transition">
|
| 99 |
+
Start Learning
|
| 100 |
+
</a>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</main>
|
| 104 |
+
|
| 105 |
+
<custom-footer></custom-footer>
|
| 106 |
+
|
| 107 |
+
<script src="components/navbar.js"></script>
|
| 108 |
+
<script src="components/footer.js"></script>
|
| 109 |
+
<script src="script.js"></script>
|
| 110 |
+
<script>feather.replace();</script>
|
| 111 |
+
</body>
|
| 112 |
+
</html>
|
components/footer.js
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
background-color: #1e293b;
|
| 9 |
+
color: white;
|
| 10 |
+
padding: 2rem 0;
|
| 11 |
+
margin-top: 4rem;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
.footer-container {
|
| 15 |
+
max-width: 1200px;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
padding: 0 2rem;
|
| 18 |
+
display: grid;
|
| 19 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 20 |
+
gap: 2rem;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.footer-section h3 {
|
| 24 |
+
font-size: 1.125rem;
|
| 25 |
+
font-weight: 600;
|
| 26 |
+
margin-bottom: 1rem;
|
| 27 |
+
color: #e2e8f0;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.footer-section ul {
|
| 31 |
+
list-style: none;
|
| 32 |
+
padding: 0;
|
| 33 |
+
margin: 0;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.footer-section li {
|
| 37 |
+
margin-bottom: 0.5rem;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.footer-section a {
|
| 41 |
+
color: #94a3b8;
|
| 42 |
+
text-decoration: none;
|
| 43 |
+
transition: color 0.2s;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.footer-section a:hover {
|
| 47 |
+
color: #e2e8f0;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.social-links {
|
| 51 |
+
display: flex;
|
| 52 |
+
gap: 1rem;
|
| 53 |
+
margin-top: 1rem;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.social-links a {
|
| 57 |
+
color: #94a3b8;
|
| 58 |
+
transition: color 0.2s;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.social-links a:hover {
|
| 62 |
+
color: #e2e8f0;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.copyright {
|
| 66 |
+
text-align: center;
|
| 67 |
+
margin-top: 2rem;
|
| 68 |
+
padding-top: 2rem;
|
| 69 |
+
border-top: 1px solid #334155;
|
| 70 |
+
color: #94a3b8;
|
| 71 |
+
font-size: 0.875rem;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
@media (max-width: 640px) {
|
| 75 |
+
.footer-container {
|
| 76 |
+
grid-template-columns: 1fr;
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
</style>
|
| 80 |
+
<div class="footer-container">
|
| 81 |
+
<div class="footer-section">
|
| 82 |
+
<h3>Python Pathfinder</h3>
|
| 83 |
+
<p class="text-slate-400">Your personalized journey to mastering Python, Java, and CS fundamentals.</p>
|
| 84 |
+
<div class="social-links">
|
| 85 |
+
<a href="#"><i data-feather="twitter"></i></a>
|
| 86 |
+
<a href="#"><i data-feather="github"></i></a>
|
| 87 |
+
<a href="#"><i data-feather="linkedin"></i></a>
|
| 88 |
+
<a href="#"><i data-feather="youtube"></i></a>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
<div class="footer-section">
|
| 92 |
+
<h3>Learning Paths</h3>
|
| 93 |
+
<ul>
|
| 94 |
+
<li><a href="/beginner.html">Beginner</a></li>
|
| 95 |
+
<li><a href="/intermediate.html">Intermediate</a></li>
|
| 96 |
+
<li><a href="/advanced.html">Advanced</a></li>
|
| 97 |
+
<li><a href="#">Java Integration</a></li>
|
| 98 |
+
</ul>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="footer-section">
|
| 101 |
+
<h3>Resources</h3>
|
| 102 |
+
<ul>
|
| 103 |
+
<li><a href="#">Documentation</a></li>
|
| 104 |
+
<li><a href="#">Cheat Sheets</a></li>
|
| 105 |
+
<li><a href="#">Code Challenges</a></li>
|
| 106 |
+
<li><a href="#">Community</a></li>
|
| 107 |
+
</ul>
|
| 108 |
+
</div>
|
| 109 |
+
<div class="footer-section">
|
| 110 |
+
<h3>Company</h3>
|
| 111 |
+
<ul>
|
| 112 |
+
<li><a href="#">About Us</a></li>
|
| 113 |
+
<li><a href="#">Careers</a></li>
|
| 114 |
+
<li><a href="#">Contact</a></li>
|
| 115 |
+
<li><a href="#">Blog</a></li>
|
| 116 |
+
</ul>
|
| 117 |
+
</div>
|
| 118 |
+
</div>
|
| 119 |
+
<div class="copyright">
|
| 120 |
+
© ${new Date().getFullYear()} Python Pathfinder. All rights reserved.
|
| 121 |
+
</div>
|
| 122 |
+
`;
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
width: 100%;
|
| 9 |
+
background-color: white;
|
| 10 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
nav {
|
| 14 |
+
display: flex;
|
| 15 |
+
justify-content: space-between;
|
| 16 |
+
align-items: center;
|
| 17 |
+
padding: 1rem 2rem;
|
| 18 |
+
max-width: 1200px;
|
| 19 |
+
margin: 0 auto;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.logo {
|
| 23 |
+
font-size: 1.5rem;
|
| 24 |
+
font-weight: 700;
|
| 25 |
+
color: #2563eb;
|
| 26 |
+
display: flex;
|
| 27 |
+
align-items: center;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.logo i {
|
| 31 |
+
margin-right: 0.5rem;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.nav-links {
|
| 35 |
+
display: flex;
|
| 36 |
+
gap: 2rem;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.nav-links a {
|
| 40 |
+
color: #4b5563;
|
| 41 |
+
font-weight: 500;
|
| 42 |
+
text-decoration: none;
|
| 43 |
+
transition: color 0.2s;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.nav-links a:hover {
|
| 47 |
+
color: #2563eb;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.login-btn {
|
| 51 |
+
background-color: #2563eb;
|
| 52 |
+
color: white;
|
| 53 |
+
padding: 0.5rem 1rem;
|
| 54 |
+
border-radius: 0.375rem;
|
| 55 |
+
transition: background-color 0.2s;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.login-btn:hover {
|
| 59 |
+
background-color: #1d4ed8;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
@media (max-width: 768px) {
|
| 63 |
+
nav {
|
| 64 |
+
flex-direction: column;
|
| 65 |
+
padding: 1rem;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.nav-links {
|
| 69 |
+
margin-top: 1rem;
|
| 70 |
+
gap: 1rem;
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
</style>
|
| 74 |
+
<nav>
|
| 75 |
+
<a href="/" class="logo">
|
| 76 |
+
<i data-feather="code"></i>
|
| 77 |
+
Python Pathfinder
|
| 78 |
+
</a>
|
| 79 |
+
<div class="nav-links">
|
| 80 |
+
<a href="/">Home</a>
|
| 81 |
+
<a href="/assessment.html">Assessment</a>
|
| 82 |
+
<a href="#">Courses</a>
|
| 83 |
+
<a href="#">About</a>
|
| 84 |
+
<a href="#" class="login-btn">Sign In</a>
|
| 85 |
+
</div>
|
| 86 |
+
</nav>
|
| 87 |
+
`;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,77 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Python Pathfinder - Learn Python Smartly</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 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 |
+
</head>
|
| 12 |
+
<body class="bg-gray-50 min-h-screen">
|
| 13 |
+
<custom-navbar></custom-navbar>
|
| 14 |
+
|
| 15 |
+
<main class="container mx-auto px-4 py-8">
|
| 16 |
+
<section class="hero bg-gradient-to-r from-blue-600 to-indigo-700 rounded-xl p-8 text-white mb-12">
|
| 17 |
+
<div class="max-w-3xl">
|
| 18 |
+
<h1 class="text-4xl font-bold mb-4">Python Pathfinder</h1>
|
| 19 |
+
<p class="text-xl mb-6">Your personalized journey to mastering Python, Java, and CS fundamentals</p>
|
| 20 |
+
<a href="/assessment.html" class="bg-white text-blue-600 px-6 py-3 rounded-lg font-medium hover:bg-blue-50 transition">Take Pre-Assessment</a>
|
| 21 |
+
</div>
|
| 22 |
+
</section>
|
| 23 |
+
|
| 24 |
+
<section class="features grid md:grid-cols-3 gap-8 mb-12">
|
| 25 |
+
<div class="bg-white p-6 rounded-xl shadow-md">
|
| 26 |
+
<i data-feather="layers" class="text-blue-500 mb-4" width="40" height="40"></i>
|
| 27 |
+
<h3 class="text-xl font-semibold mb-2">Adaptive Learning</h3>
|
| 28 |
+
<p class="text-gray-600">Get customized learning paths based on your pre-assessment results.</p>
|
| 29 |
+
</div>
|
| 30 |
+
<div class="bg-white p-6 rounded-xl shadow-md">
|
| 31 |
+
<i data-feather="code" class="text-blue-500 mb-4" width="40" height="40"></i>
|
| 32 |
+
<h3 class="text-xl font-semibold mb-2">Multi-Language</h3>
|
| 33 |
+
<p class="text-gray-600">Learn how Python interacts with Java and CS concepts.</p>
|
| 34 |
+
</div>
|
| 35 |
+
<div class="bg-white p-6 rounded-xl shadow-md">
|
| 36 |
+
<i data-feather="award" class="text-blue-500 mb-4" width="40" height="40"></i>
|
| 37 |
+
<h3 class="text-xl font-semibold mb-2">Progress Tracking</h3>
|
| 38 |
+
<p class="text-gray-600">Track your learning journey with milestones and achievements.</p>
|
| 39 |
+
</div>
|
| 40 |
+
</section>
|
| 41 |
+
|
| 42 |
+
<section class="testimonials mb-12">
|
| 43 |
+
<h2 class="text-2xl font-bold mb-6 text-gray-800">What Our Learners Say</h2>
|
| 44 |
+
<div class="grid md:grid-cols-2 gap-6">
|
| 45 |
+
<div class="bg-white p-6 rounded-xl shadow-md">
|
| 46 |
+
<div class="flex items-center mb-4">
|
| 47 |
+
<img src="http://static.photos/people/200x200/1" alt="Learner" class="w-12 h-12 rounded-full mr-4">
|
| 48 |
+
<div>
|
| 49 |
+
<h4 class="font-medium">Sarah Johnson</h4>
|
| 50 |
+
<p class="text-gray-500 text-sm">Data Science Student</p>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
<p class="text-gray-600">"The adaptive learning path helped me focus on exactly what I needed to improve. I went from beginner to confident Python programmer in just 3 months!"</p>
|
| 54 |
+
</div>
|
| 55 |
+
<div class="bg-white p-6 rounded-xl shadow-md">
|
| 56 |
+
<div class="flex items-center mb-4">
|
| 57 |
+
<img src="http://static.photos/people/200x200/2" alt="Learner" class="w-12 h-12 rounded-full mr-4">
|
| 58 |
+
<div>
|
| 59 |
+
<h4 class="font-medium">Michael Chen</h4>
|
| 60 |
+
<p class="text-gray-500 text-sm">Software Engineer</p>
|
| 61 |
+
</div>
|
| 62 |
+
</div>
|
| 63 |
+
<p class="text-gray-600">"The Java-Python integration modules were exactly what I needed for my backend development work. The platform's structure is brilliant."</p>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
</section>
|
| 67 |
+
</main>
|
| 68 |
+
|
| 69 |
+
<custom-footer></custom-footer>
|
| 70 |
+
|
| 71 |
+
<script src="components/navbar.js"></script>
|
| 72 |
+
<script src="components/footer.js"></script>
|
| 73 |
+
<script src="script.js"></script>
|
| 74 |
+
<script>feather.replace();</script>
|
| 75 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 76 |
+
</body>
|
| 77 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
// Assessment form handling
|
| 3 |
+
const assessmentForm = document.getElementById('assessment-form');
|
| 4 |
+
if (assessmentForm) {
|
| 5 |
+
assessmentForm.addEventListener('submit', function(e) {
|
| 6 |
+
e.preventDefault();
|
| 7 |
+
|
| 8 |
+
// Calculate score
|
| 9 |
+
let score = 0;
|
| 10 |
+
const answers = document.querySelectorAll('input[type="radio"]:checked');
|
| 11 |
+
answers.forEach(answer => {
|
| 12 |
+
score += parseInt(answer.value);
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
// Determine learning path
|
| 16 |
+
const resultsDiv = document.getElementById('results');
|
| 17 |
+
const resultText = document.getElementById('result-text');
|
| 18 |
+
const startLearningBtn = document.getElementById('start-learning');
|
| 19 |
+
|
| 20 |
+
let path = '';
|
| 21 |
+
if (score <= 3) {
|
| 22 |
+
path = 'beginner';
|
| 23 |
+
resultText.textContent = 'Based on your results, we recommend starting with our Beginner Python track. This will cover fundamentals before moving to Java integration and CS concepts.';
|
| 24 |
+
startLearningBtn.href = '/beginner.html';
|
| 25 |
+
} else if (score <= 6) {
|
| 26 |
+
path = 'intermediate';
|
| 27 |
+
resultText.textContent = 'You have some Python knowledge! We recommend our Intermediate track which focuses on object-oriented programming and basic Java integration.';
|
| 28 |
+
startLearningBtn.href = '/intermediate.html';
|
| 29 |
+
} else {
|
| 30 |
+
path = 'advanced';
|
| 31 |
+
resultText.textContent = 'Great job! You have strong Python skills. We recommend our Advanced track focusing on Python-Java interoperability and advanced CS concepts.';
|
| 32 |
+
startLearningBtn.href = '/advanced.html';
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
// Store learning path in localStorage
|
| 36 |
+
localStorage.setItem('learningPath', path);
|
| 37 |
+
|
| 38 |
+
// Show results with animation
|
| 39 |
+
resultsDiv.classList.remove('hidden');
|
| 40 |
+
resultsDiv.classList.add('fade-in');
|
| 41 |
+
|
| 42 |
+
// Scroll to results
|
| 43 |
+
resultsDiv.scrollIntoView({ behavior: 'smooth' });
|
| 44 |
+
});
|
| 45 |
+
}
|
| 46 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 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 |
+
}
|
| 6 |
+
|
| 7 |
+
.hero {
|
| 8 |
+
background-image: url('http://static.photos/technology/1200x630/5');
|
| 9 |
+
background-size: cover;
|
| 10 |
+
background-position: center;
|
| 11 |
+
background-blend-mode: overlay;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
.question-group {
|
| 15 |
+
border-bottom: 1px solid #e5e7eb;
|
| 16 |
+
padding-bottom: 1.5rem;
|
| 17 |
}
|
| 18 |
|
| 19 |
+
.question-group:last-child {
|
| 20 |
+
border-bottom: none;
|
|
|
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
|
| 23 |
+
#results {
|
| 24 |
+
transition: all 0.3s ease-in-out;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
+
/* Animation for assessment submission */
|
| 28 |
+
@keyframes fadeIn {
|
| 29 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 30 |
+
to { opacity: 1; transform: translateY(0); }
|
| 31 |
}
|
| 32 |
+
|
| 33 |
+
.fade-in {
|
| 34 |
+
animation: fadeIn 0.5s ease-out forwards;
|
| 35 |
+
}
|