Spaces:
Running
Running
add a view details page for python course
Browse files- python-course.html +179 -0
- script.js +2 -2
- style.css +13 -0
python-course.html
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 基礎課程 | 張老師</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
</head>
|
| 11 |
+
<body class="bg-gray-50">
|
| 12 |
+
<custom-navbar></custom-navbar>
|
| 13 |
+
|
| 14 |
+
<main class="container mx-auto px-6 py-16">
|
| 15 |
+
<div class="max-w-4xl mx-auto">
|
| 16 |
+
<!-- Breadcrumb -->
|
| 17 |
+
<nav class="mb-8">
|
| 18 |
+
<ol class="flex items-center space-x-2 text-sm text-gray-600">
|
| 19 |
+
<li><a href="/" class="hover:text-primary">首頁</a></li>
|
| 20 |
+
<li><i data-feather="chevron-right" class="w-4 h-4"></i></li>
|
| 21 |
+
<li><a href="#projects" class="hover:text-primary">專案成果</a></li>
|
| 22 |
+
<li><i data-feather="chevron-right" class="w-4 h-4"></i></li>
|
| 23 |
+
<li class="text-gray-400">Python 基礎課程</li>
|
| 24 |
+
</ol>
|
| 25 |
+
</nav>
|
| 26 |
+
|
| 27 |
+
<!-- Course Header -->
|
| 28 |
+
<div class="flex flex-col md:flex-row gap-8 mb-12">
|
| 29 |
+
<div class="md:w-1/2">
|
| 30 |
+
<img src="https://huggingface.co/spaces/hklamsir/tech-edumaster/resolve/main/images/認識Python程式編寫_01.png"
|
| 31 |
+
alt="Python 基礎課程"
|
| 32 |
+
class="rounded-lg shadow-lg w-full h-auto">
|
| 33 |
+
</div>
|
| 34 |
+
<div class="md:w-1/2">
|
| 35 |
+
<span class="inline-block px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-semibold mb-4">課程</span>
|
| 36 |
+
<h1 class="text-3xl font-bold mb-4">Python 基礎課程</h1>
|
| 37 |
+
<p class="text-gray-700 mb-6">針對初學者設計的完整 Python 程式設計入門課程,包含實務練習。</p>
|
| 38 |
+
|
| 39 |
+
<div class="grid grid-cols-2 gap-4 mb-6">
|
| 40 |
+
<div>
|
| 41 |
+
<p class="text-sm text-gray-500">適合程度</p>
|
| 42 |
+
<p class="font-medium">初學者</p>
|
| 43 |
+
</div>
|
| 44 |
+
<div>
|
| 45 |
+
<p class="text-sm text-gray-500">課程時數</p>
|
| 46 |
+
<p class="font-medium">20 小時</p>
|
| 47 |
+
</div>
|
| 48 |
+
<div>
|
| 49 |
+
<p class="text-sm text-gray-500">發布年份</p>
|
| 50 |
+
<p class="font-medium">2023</p>
|
| 51 |
+
</div>
|
| 52 |
+
<div>
|
| 53 |
+
<p class="text-sm text-gray-500">語言</p>
|
| 54 |
+
<p class="font-medium">中文</p>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
|
| 58 |
+
<a href="#enroll" class="inline-block bg-primary text-white px-6 py-3 rounded-lg hover:bg-primary-600 transition font-medium">立即報名</a>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
|
| 62 |
+
<!-- Course Details -->
|
| 63 |
+
<div class="mb-16">
|
| 64 |
+
<h2 class="text-2xl font-bold mb-6">課程介紹</h2>
|
| 65 |
+
<div class="prose max-w-none">
|
| 66 |
+
<p>本課程專為程式設計初學者設計,從 Python 基礎語法開始,逐步引導學員掌握程式設計的核心概念。課程採用「學中做、做中學」的教學方法,透過大量實例練習幫助學員建立扎實的程式基礎。</p>
|
| 67 |
+
|
| 68 |
+
<h3 class="text-xl font-semibold mt-8 mb-4">課程特色</h3>
|
| 69 |
+
<ul class="list-disc pl-6">
|
| 70 |
+
<li>從零開始,無需程式基礎</li>
|
| 71 |
+
<li>實務導向的教學內容</li>
|
| 72 |
+
<li>互動式練習與即時反饋</li>
|
| 73 |
+
<li>結業專題實作</li>
|
| 74 |
+
<li>課後學習資源與社群支持</li>
|
| 75 |
+
</ul>
|
| 76 |
+
|
| 77 |
+
<h3 class="text-xl font-semibold mt-8 mb-4">學習目標</h3>
|
| 78 |
+
<ul class="list-disc pl-6">
|
| 79 |
+
<li>掌握 Python 基礎語法與程式結構</li>
|
| 80 |
+
<li>了解變數、條件判斷、迴圈等核心概念</li>
|
| 81 |
+
<li>學習函式與模組的設計與應用</li>
|
| 82 |
+
<li>培養解決問題的程式思維</li>
|
| 83 |
+
<li>能獨立開發簡單的 Python 應用程式</li>
|
| 84 |
+
</ul>
|
| 85 |
+
</div>
|
| 86 |
+
</div>
|
| 87 |
+
|
| 88 |
+
<!-- Curriculum -->
|
| 89 |
+
<div class="mb-16">
|
| 90 |
+
<h2 class="text-2xl font-bold mb-6">課程大綱</h2>
|
| 91 |
+
<div class="space-y-4">
|
| 92 |
+
<div class="border border-gray-200 rounded-lg overflow-hidden">
|
| 93 |
+
<div class="bg-gray-50 px-6 py-4 font-medium">第 1 章:Python 入門</div>
|
| 94 |
+
<div class="px-6 py-4 border-t border-gray-200">
|
| 95 |
+
<p class="mb-2">1.1 Python 簡介與環境設置</p>
|
| 96 |
+
<p class="mb-2">1.2 第一個 Python 程式</p>
|
| 97 |
+
<p class="mb-2">1.3 變數與資料類型</p>
|
| 98 |
+
<p>1.4 基本輸入輸出</p>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<div class="border border-gray-200 rounded-lg overflow-hidden">
|
| 103 |
+
<div class="bg-gray-50 px-6 py-4 font-medium">第 2 章:程式控制結構</div>
|
| 104 |
+
<div class="px-6 py-4 border-t border-gray-200">
|
| 105 |
+
<p class="mb-2">2.1 條件判斷 (if-elif-else)</p>
|
| 106 |
+
<p class="mb-2">2.2 迴圈 (while, for)</p>
|
| 107 |
+
<p>2.3 流程控制練習</p>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
|
| 111 |
+
<div class="border border-gray-200 rounded-lg overflow-hidden">
|
| 112 |
+
<div class="bg-gray-50 px-6 py-4 font-medium">第 3 章:函式與模組</div>
|
| 113 |
+
<div class="px-6 py-4 border-t border-gray-200">
|
| 114 |
+
<p class="mb-2">3.1 函式定義與呼叫</p>
|
| 115 |
+
<p class="mb-2">3.2 參數與回傳值</p>
|
| 116 |
+
<p class="mb-2">3.3 變數作用域</p>
|
| 117 |
+
<p>3.4 模組與套件管理</p>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<div class="border border-gray-200 rounded-lg overflow-hidden">
|
| 122 |
+
<div class="bg-gray-50 px-6 py-4 font-medium">第 4 章:結業專題</div>
|
| 123 |
+
<div class="px-6 py-4 border-t border-gray-200">
|
| 124 |
+
<p class="mb-2">4.1 專題需求分析</p>
|
| 125 |
+
<p class="mb-2">4.2 程式設計與實現</p>
|
| 126 |
+
<p>4.3 專題展示與回顧</p>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
|
| 132 |
+
<!-- Enrollment Form -->
|
| 133 |
+
<div id="enroll" class="bg-white p-8 rounded-lg shadow-md">
|
| 134 |
+
<h2 class="text-2xl font-bold mb-6">課程報名</h2>
|
| 135 |
+
<form class="space-y-4">
|
| 136 |
+
<div>
|
| 137 |
+
<label for="fullname" class="block mb-2 font-medium">姓名</label>
|
| 138 |
+
<input type="text" id="fullname" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 139 |
+
</div>
|
| 140 |
+
<div>
|
| 141 |
+
<label for="email" class="block mb-2 font-medium">電子郵件</label>
|
| 142 |
+
<input type="email" id="email" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 143 |
+
</div>
|
| 144 |
+
<div>
|
| 145 |
+
<label for="phone" class="block mb-2 font-medium">電話</label>
|
| 146 |
+
<input type="tel" id="phone" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 147 |
+
</div>
|
| 148 |
+
<div>
|
| 149 |
+
<label for="experience" class="block mb-2 font-medium">程式設計經驗</label>
|
| 150 |
+
<select id="experience" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent">
|
| 151 |
+
<option value="">選擇您的經驗水平</option>
|
| 152 |
+
<option value="beginner">完全初學者</option>
|
| 153 |
+
<option value="some">有一些經驗</option>
|
| 154 |
+
<option value="intermediate">中級水平</option>
|
| 155 |
+
</select>
|
| 156 |
+
</div>
|
| 157 |
+
<button type="submit" class="w-full bg-primary text-white py-3 px-6 rounded-lg hover:bg-primary-600 transition font-medium">提交報名表</button>
|
| 158 |
+
</form>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</main>
|
| 162 |
+
|
| 163 |
+
<custom-footer></custom-footer>
|
| 164 |
+
|
| 165 |
+
<script src="components/navbar.js"></script>
|
| 166 |
+
<script src="components/footer.js"></script>
|
| 167 |
+
<script src="script.js"></script>
|
| 168 |
+
<script>
|
| 169 |
+
feather.replace();
|
| 170 |
+
|
| 171 |
+
// Form submission
|
| 172 |
+
document.querySelector('form').addEventListener('submit', function(e) {
|
| 173 |
+
e.preventDefault();
|
| 174 |
+
alert('感謝您的報名!我們會盡快與您聯繫確認課程詳情。');
|
| 175 |
+
this.reset();
|
| 176 |
+
});
|
| 177 |
+
</script>
|
| 178 |
+
</body>
|
| 179 |
+
</html>
|
script.js
CHANGED
|
@@ -83,8 +83,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 83 |
<p class="text-gray-600 mb-4">${project.description}</p>
|
| 84 |
<div class="flex justify-between items-center text-sm text-gray-500">
|
| 85 |
<span>${project.year}</span>
|
| 86 |
-
|
| 87 |
-
|
| 88 |
</div>
|
| 89 |
`;
|
| 90 |
|
|
|
|
| 83 |
<p class="text-gray-600 mb-4">${project.description}</p>
|
| 84 |
<div class="flex justify-between items-center text-sm text-gray-500">
|
| 85 |
<span>${project.year}</span>
|
| 86 |
+
<a href="python-course.html" class="text-primary hover:underline">View details</a>
|
| 87 |
+
</div>
|
| 88 |
</div>
|
| 89 |
`;
|
| 90 |
|
style.css
CHANGED
|
@@ -17,6 +17,19 @@
|
|
| 17 |
html {
|
| 18 |
scroll-behavior: smooth;
|
| 19 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
/* Project category tags */
|
| 22 |
.project-tag {
|
|
|
|
| 17 |
html {
|
| 18 |
scroll-behavior: smooth;
|
| 19 |
}
|
| 20 |
+
/* Course details page styles */
|
| 21 |
+
.prose {
|
| 22 |
+
line-height: 1.75;
|
| 23 |
+
color: #374151;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.prose p {
|
| 27 |
+
margin-bottom: 1rem;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.prose ul {
|
| 31 |
+
margin-bottom: 1.5rem;
|
| 32 |
+
}
|
| 33 |
|
| 34 |
/* Project category tags */
|
| 35 |
.project-tag {
|